@@ -179,11 +179,11 @@ |
||
| 179 | 179 | foreach($value->attributes as $k => $v){ |
| 180 | 180 | if(is_array($v)){ |
| 181 | 181 | $value->attributes[$k] = $this->parseValues($v, $allConfig, array_merge($keysPath, [$key])); |
| 182 | - }else{ |
|
| 182 | + } else{ |
|
| 183 | 183 | $value->attributes[$k] = $this->parseValue($v, $allConfig); |
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | - }elseif (is_array($value)) { |
|
| 186 | + } elseif (is_array($value)) { |
|
| 187 | 187 | $value = $this->parseValues($value, $allConfig, array_merge($keysPath, [$key])); |
| 188 | 188 | } elseif(!is_object($value)) { |
| 189 | 189 | $value = $this->parseValue($value, $allConfig); |
@@ -137,10 +137,10 @@ |
||
| 137 | 137 | if(is_file($destination)){ |
| 138 | 138 | if($options['onDuplicate'] == self::ERROR){ |
| 139 | 139 | $this->error("File '$destination' already exists."); |
| 140 | - }elseif($options['onDuplicate'] == self::SKIP){ |
|
| 140 | + } elseif($options['onDuplicate'] == self::SKIP){ |
|
| 141 | 141 | $this->log("File '$destination' already exists, skipping ..."); |
| 142 | 142 | continue; |
| 143 | - }elseif($options['onDuplicate'] == self::REWRITE){ |
|
| 143 | + } elseif($options['onDuplicate'] == self::REWRITE){ |
|
| 144 | 144 | @unlink($destination); |
| 145 | 145 | } |
| 146 | 146 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $container = require_once $bootstrapFile; |
| 55 | 55 | if($container === 1 || $container === TRUE){ // 1 = success, TRUE = already required |
| 56 | 56 | $container = NULL; |
| 57 | - }elseif(!($container instanceof Container)){ |
|
| 57 | + } elseif(!($container instanceof Container)){ |
|
| 58 | 58 | $this->log("Returned value from bootstrap.php must be instance of 'Genesis\\Container\\Container' or nothing (NULL).", 'red'); |
| 59 | 59 | exit(255); |
| 60 | 60 | } |