Skip to content

Commit

Permalink
Merge pull request #4 from olaurendeau/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
Olivier Laurendeau committed Feb 15, 2016
2 parents 390afb0 + f9fa9d3 commit fa2156d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Command/VhostDefineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private function getVhostConfiguration(InputInterface $input)
/**
* @param InputInterface $input
* @param OutputInterface $output
* @param $message
* @param string $message
*/
private function comment(InputInterface $input, OutputInterface $output, $message)
{
Expand All @@ -116,7 +116,7 @@ private function comment(InputInterface $input, OutputInterface $output, $messag
/**
* @param InputInterface $input
* @param OutputInterface $output
* @param $message
* @param string $message
*/
private function success(InputInterface $input, OutputInterface $output, $message)
{
Expand All @@ -136,7 +136,7 @@ private function success(InputInterface $input, OutputInterface $output, $messag
*/
private function getIO(InputInterface $input, OutputInterface $output)
{
if(class_exists('Symfony\Component\Console\Style\SymfonyStyle')) {
if (class_exists('Symfony\Component\Console\Style\SymfonyStyle')) {
return new \Symfony\Component\Console\Style\SymfonyStyle($input, $output);
}

Expand Down
5 changes: 3 additions & 2 deletions Manager/AbstractManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ private function array_diff_assoc_recursive($array1, $array2) {
$difference[$key] = $value;
} else {
$new_diff = $this->array_diff_assoc_recursive($value, $array2[$key]);
if (!empty($new_diff))
$difference[$key] = $new_diff;
if (!empty($new_diff)) {
$difference[$key] = $new_diff;
}
}
} else if (!array_key_exists($key, $array2) || $array2[$key] !== $value) {
$difference[$key] = $value;
Expand Down

0 comments on commit fa2156d

Please sign in to comment.