/** * @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(''); // } }
/** * @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(''); // } }
/** * @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()); } }