Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function analyzerEndOfUse(\SCQAT\AnalyzerAbstract $analyzer)
 {
     if (!$this->inVerboseMode) {
         if ($this->runningProgress) {
             // End of an analyzer ? We just grab the current step to get the file count !
             $this->languageFilesCount = $this->runningProgress->getStep();
             if (empty($this->analyzerErrors)) {
                 $this->runningProgress->setMessage("<comment>OK</comment>", "result");
                 $this->runningProgress->finish();
                 $this->runningProgress = null;
             } else {
                 $this->runningProgress->setMessage("<error>KO</error>", "result");
                 $this->runningProgress->finish();
                 $this->runningProgress = null;
                 $this->output->writeln("");
                 foreach ($this->analyzerErrors as $outputMessage) {
                     $this->output->writeln($outputMessage);
                 }
             }
         }
     }
 }