Skip to content

Commit

Permalink
Merge pull request #8 from janalis/analysis-zDWJJb
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
phcorp authored Mar 31, 2017
2 parents a69cf39 + 2432da7 commit 3bb6a1d
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 3bb6a1d

Please sign in to comment.