Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4 from acidvertigo/patch-2

Moving explode out of foreach a bit more readable
  • Loading branch information...
commit 5ba23db0e81989ba1cc9a3628b61bbe0442458c7 2 parents 3cc4f27 + cfd6d3c
@mrclay mrclay authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  min/lib/Minify/Controller/MinApp.php
View
3  min/lib/Minify/Controller/MinApp.php
@@ -45,7 +45,8 @@ public function setupSources($options) {
$this->log("Duplicate group key found.");
return $options;
}
- foreach (explode(',', $_GET['g']) as $key) {
+ $keys = explode(',', $_GET['g']);
+ foreach ($keys as $key) {
if (! isset($cOptions['groups'][$key])) {
$this->log("A group configuration for \"{$key}\" was not found");
return $options;

0 comments on commit 5ba23db

Please sign in to comment.
Something went wrong with that request. Please try again.