private function printReportsOfFilesWithProblems()
    {
        $this->output->writeln(PHP_EOL . '<error>errors:</error>');

        foreach ($this->reports as $report) {
            if (false === $report->hasProblems()) {
                continue;
            }

            $file = $report->getFile();
            $this->output->writeln('file: ' . $file->getPath() . DIRECTORY_SEPARATOR . $file->getFilename());

            foreach ($report->getProblems() as $problem) {
                $this->output->write(
                    '  > ' . $problem->getMessage() . PHP_EOL
                );
            }

            $this->output->write(' - - ' . PHP_EOL);
        }
    }
private function printReportsOfFilesWithProblems()
    {
        $this->output->writeln(PHP_EOL . '<error>errors:</error>');

        foreach ($this->reports as $report) {
            if (false === $report->hasProblems()) {
                continue;
            }

            $file = $report->getFile();
            $this->output->writeln('file: ' . $file->getPath() . DIRECTORY_SEPARATOR . $file->getFilename());

            foreach ($report->getProblems() as $problem) {
                $this->output->write(
                    '  > ' . $problem->getMessage() . PHP_EOL
                );
            }

            $this->output->write(' - - ' . PHP_EOL);
        }
    }
private function printReportsOfFilesWithProblems ( ) { $ this -> output -> writeln ( PHP_EOL . '<error>errors:</error>' ) ; foreach ( $ this -> reports as $ report ) { if ( false === $ report -> hasProblems ( ) ) { continue ; } $ file = $ report -> getFile ( ) ; $ this -> output -> writeln ( 'file: ' . $ file -> getPath ( ) . DIRECTORY_SEPARATOR . $ file -> getFilename ( ) ) ; foreach ( $ report -> getProblems ( ) as $ problem ) { $ this -> output -> write ( '  > ' . $ problem -> getMessage ( ) . PHP_EOL ) ; } $ this -> output -> write ( ' - - ' . PHP_EOL ) ; } }
format and print the errors from the queue to the output.
format and print the errors from the queue to the output .