Refactor part of printErrorReport into separate method
Refactor part of printErrorReport into separate method

This reduces the N path complexity of the printErrorReport method and improves the readability.

ravage84/PHP_CodeSniffer,ravage84/PHP_CodeSniffer