Skip to content

HTML and Markdown report generation with single table configuration#69

Merged
floriankraemer merged 5 commits into
masterfrom
group-by-class
May 23, 2026
Merged

HTML and Markdown report generation with single table configuration#69
floriankraemer merged 5 commits into
masterfrom
group-by-class

Conversation

@floriankraemer

Copy link
Copy Markdown
Contributor
  • Updated HtmlReport to support a single table layout for metrics when configured.
  • Modified MarkdownReport to include a single table format for all methods.
  • Added new test cases to validate the single table output for both HTML and Markdown reports.
  • Introduced configuration options to toggle between grouped and single table formats in reports.

Refs #58

…ration

- Updated HtmlReport to support a single table layout for metrics when configured.
- Modified MarkdownReport to include a single table format for all methods.
- Added new test cases to validate the single table output for both HTML and Markdown reports.
- Introduced configuration options to toggle between grouped and single table formats in reports.
- Updated file handling in MarkdownReport to use a local variable for the file handle, improving clarity and reducing potential errors.
- Removed unnecessary type assertions and adjusted docblocks for better type hinting.
- Ensured consistent usage of the file handle across methods for writing report data.
- Introduced a new method `writeGroupedByClassBatch` to encapsulate the logic for writing class sections to the report.
- Created a dedicated `buildClassSection` method to streamline the construction of class report sections, enhancing code readability and maintainability.
- Removed redundant code and improved the flow of data writing to the file handle.
- Changed base image from php:8.3-cli to php:8.5-cli to leverage new features and improvements in PHP 8.5.
- Updated package installation to ensure compatibility with the new PHP version.
@floriankraemer floriankraemer merged commit ceaf458 into master May 23, 2026
5 checks passed
@floriankraemer floriankraemer deleted the group-by-class branch May 24, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant