phpmetrics / PhpMetrics

Beautiful and understandable static analysis tool for PHP
https://phpmetrics.github.io/website/
MIT License
2.48k stars 259 forks source link

Fixed issue with incorrect table header on the complexity report #464

Closed denniscoorn-paqt closed 2 years ago

denniscoorn-paqt commented 3 years ago

PR #421 accidentally moved the column "Relative system complexity" to the end of the table header causing an issue where the order of the header columns don't match the order of the data columns. A unit test has been added to validate the expected order of the columns.

Before: Screenshot 2021-09-19 at 17 12 30

After: Screenshot 2021-09-19 at 17 09 30

Note that in the second image the data values for "Bugs" and "Defects" are correctly displayed in their corresponding column.

Halleck45 commented 2 years ago

Thanks @denniscoorn-paqt

Adding tests on HTML report is a great idea :clap: