Permalink
Browse files

Merge pull request #4 from acidvertigo/patch-2

Moving explode out of foreach a bit more readable
  • Loading branch information...
2 parents 3cc4f27 + cfd6d3c commit 5ba23db0e81989ba1cc9a3628b61bbe0442458c7 @mrclay mrclay committed Aug 19, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 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.