diff --git a/src/Command/DoctrinevizCommand.php b/src/Command/DoctrinevizCommand.php index a324072..9e74bad 100644 --- a/src/Command/DoctrinevizCommand.php +++ b/src/Command/DoctrinevizCommand.php @@ -161,7 +161,7 @@ public function execute(InputInterface $input, OutputInterface $output) $graphviz = new Graphviz($format, $binary); if (!$path) { if ('dot' === $format) { - $output->writeln((string)$graph); + $output->writeln((string) $graph); } else { $graphviz->display($graph); } diff --git a/src/Graphviz/Graphviz.php b/src/Graphviz/Graphviz.php index a7c6c1c..0f6558f 100644 --- a/src/Graphviz/Graphviz.php +++ b/src/Graphviz/Graphviz.php @@ -164,7 +164,7 @@ protected function execute($format, ...$args) { $process = new Process(sprintf( $format, - ...array_map(function($arg, $index) use ($format) { + ...array_map(function ($arg, $index) use ($format) { return 0 === $index && 0 === strpos('%s', $format) ? escapeshellcmd($arg) : escapeshellarg($arg); }, $args, array_keys($args)) )); diff --git a/test/DoctrinevizTestCase.php b/test/DoctrinevizTestCase.php index ad57e7e..cd131c6 100644 --- a/test/DoctrinevizTestCase.php +++ b/test/DoctrinevizTestCase.php @@ -41,4 +41,4 @@ protected function setMethodAccessible($className, $methodName) return $method; } -} \ No newline at end of file +}