Completed
Push — master ( 7c0388...e2a184 )
by Joschi
05:29
created
src/Admin/Infrastructure/App.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -228,12 +228,12 @@  discard block
 block discarded – undo
228 228
             return self::$config;
229 229
         }
230 230
         $keyParts = explode('.', $key);
231
-        $config =& self::$config;
231
+        $config = & self::$config;
232 232
         foreach ($keyParts as $keyPart) {
233 233
             if (!array_key_exists($keyPart, $config)) {
234 234
                 throw new \InvalidArgumentException(sprintf('Invalid config key "%s"', $key), 1466179561);
235 235
             }
236
-            $config =& $config[$keyPart];
236
+            $config = & $config[$keyPart];
237 237
         }
238 238
         return $config;
239 239
     }
@@ -248,8 +248,7 @@  discard block
 block discarded – undo
248 248
     public static function getTemplate($template, $useDefault = false)
249 249
     {
250 250
         $templateFile = self::$rootDirectory;
251
-        $templateFile .= $useDefault ? 'config' :
252
-            'src'.DIRECTORY_SEPARATOR.'Admin'.DIRECTORY_SEPARATOR.'Infrastructure'.DIRECTORY_SEPARATOR.'Templates';
251
+        $templateFile .= $useDefault ? 'config' : 'src'.DIRECTORY_SEPARATOR.'Admin'.DIRECTORY_SEPARATOR.'Infrastructure'.DIRECTORY_SEPARATOR.'Templates';
253 252
         $templateFile .= DIRECTORY_SEPARATOR.$template;
254 253
         if (!file_exists($templateFile)) {
255 254
             throw new \RuntimeException(
Please login to merge, or discard this patch.