original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: format and print the errors from the queue to the output.
docstring_tokens: format and print the errors from the queue to the output .