If an ELSE token is both an opener and closer, but it is followed by an IF, the scope_condition will be unset to allow it to act as an opener, but the condition will never be set again. So added a sanity check for this case.
Dont create a new report object for every file when using a custom report
More metrics
Changes to info report output to categorise metrics
Merge branch 'master' into phpcs-fixer