/** * @inheritdoc */ public function execute(ResultCollection $collection, ResultCollection $aggregatedResults) { if (!$this->enabled) { return; } $this->output->write($this->formater->terminate($collection, $aggregatedResults)); }
/** * @inheritdoc */ public function execute(ResultCollection $collection, ResultCollection $aggregatedResults) { if (!$this->destination) { return; } $dir = dirname($this->destination); if (!file_exists($dir)) { mkdir($dir, 0777, true); } $this->output->writeln(sprintf('Generating %s Report...', $this->formater->getName())); $handle = fopen($this->destination, 'w'); fwrite($handle, $this->formater->terminate($collection, $aggregatedResults)); fflush($handle); fclose($handle); }
/** * @inheritdoc */ public function execute(ResultCollection $collection, ResultCollection $aggregatedResults) { $this->output->write($this->formater->terminate($collection, $aggregatedResults)); }