예제 #1
0
 /**
  * @inheritdoc
  */
 public function terminate(ResultCollection $collection, ResultCollection $groupedResults)
 {
     $this->output->write(str_pad("\r", 80, " "));
     $this->output->writeln('');
     // score
     $score = $collection->getScore();
     //        if($score) {
     foreach ($score->all() as $name => $value) {
         $this->output->writeln(sprintf('%s %s', str_pad($name, 35, '.'), str_pad($value, 5, ' ', STR_PAD_LEFT) . ' / ' . Scoring::MAX));
     }
     $this->output->writeln('');
     //        }
 }
예제 #2
0
파일: Cli.php 프로젝트: truffo/PhpMetrics
 /**
  * @inheritdoc
  */
 public function terminate(ResultCollection $collection, ResultCollection $groupedResults)
 {
     $output = new ConsoleOutput(OutputInterface::VERBOSITY_NORMAL, true);
     $output->write(str_pad("\r", 80, " "));
     $output->writeln('');
     // score
     $score = $collection->getScore();
     //        if($score) {
     foreach ($score->all() as $name => $value) {
         $output->writeln(sprintf('%s %s', str_pad($name, 35, '.'), str_pad($value, 5, ' ', STR_PAD_LEFT) . ' / ' . Scoring::MAX));
     }
     $output->writeln('');
     //        }
 }
예제 #3
0
 /**
  * @inheritdoc
  */
 public function terminate(ResultCollection $collection, ResultCollection $groupedResults)
 {
     $this->output->write(str_pad("\r", 80, " "));
     $this->output->writeln('');
     // score
     $score = $collection->getScore();
     foreach ($score->all() as $name => $value) {
         $this->output->writeln(sprintf('%s %s', str_pad($name, 35, '.'), str_pad($value, 5, ' ', STR_PAD_LEFT) . ' / ' . Scoring::MAX));
     }
     $this->output->writeln('');
     // extensions
     foreach ($this->extensionsService->getRepository()->all() as $plugin) {
         $helper = $plugin->getReporterCliSummary();
         if (!$helper) {
             continue;
         }
         $this->output->write($helper->render());
     }
 }