Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
phcorp authored and StyleCIBot committed Mar 31, 2017
1 parent a69cf39 commit 2432da7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Command/DoctrinevizCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Graphviz/Graphviz.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
));
Expand Down
2 changes: 1 addition & 1 deletion test/DoctrinevizTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ protected function setMethodAccessible($className, $methodName)

return $method;
}
}
}

0 comments on commit 2432da7

Please sign in to comment.