Exemplo n.º 1
0
 /**
  * @inheritDoc
  */
 public function printMetadata(CheckMetadata $metadata)
 {
     $this->output->writeln(sprintf('Checked %d file(s) in %f second(s)', $metadata->getCheckedFileCount(), $metadata->getElapsedTime()));
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function printMetadata(CheckMetadata $metadata)
 {
     $checkedFileCount = $metadata->getCheckedFileCount();
     $elapsedTime = $metadata->getElapsedTime();
     $this->output->writeln(sprintf('Checked <fg=green>%d</fg=green> file%s in <fg=green>%.3f</fg=green> second%s', $checkedFileCount, $checkedFileCount > 1 ? 's' : '', $elapsedTime, $elapsedTime > 1 ? 's' : ''));
 }