Skip to content

Commit

Permalink
fix Scrutinizer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gulch committed Feb 17, 2018
1 parent 6427516 commit 7a70eaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Processor/InlineCssMinifier.php
Expand Up @@ -70,8 +70,6 @@ private function minifyCss(string $buffer): string
$buffer
);

return \is_array($tags)
? $tags['open'] . $buffer . $tags['close']
: $buffer;
return $tags['open'] . $buffer . $tags['close'];
}
}
4 changes: 1 addition & 3 deletions src/Processor/InlineJavascriptMinifier.php
Expand Up @@ -84,8 +84,6 @@ private function minifyJavascript(string $buffer): string
\ksort($js_code);
$buffer = \implode($js_code);

return \is_array($tags)
? $tags['open'] . $buffer . $tags['close']
: $buffer;
return $tags['open'] . $buffer . $tags['close'];
}
}

0 comments on commit 7a70eaf

Please sign in to comment.