Completed
Push — master ( 84c4ef...9c109b )
by David
24:04 queued 10:09
created
Controllers/Backend/WbmTemplateManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
             new \RecursiveDirectoryIterator($templateRoot)
37 37
         );
38 38
 
39
-        $data = [];
39
+        $data = [ ];
40 40
 
41
-        foreach($fileInfos as $pathName => $fileInfo) {
41
+        foreach ($fileInfos as $pathName => $fileInfo) {
42 42
             if (!$fileInfo->isFile()) {
43 43
                 continue;
44 44
             }
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
                 $content = file_get_contents($templateRoot . $name);
52 52
             }
53 53
 
54
-            $data[] = [
55
-                'name' => $name ? : str_replace($templateRoot, '', $pathName),
54
+            $data[ ] = [
55
+                'name' => $name ?: str_replace($templateRoot, '', $pathName),
56 56
                 'content' => $content
57 57
             ];
58 58
         }
Please login to merge, or discard this patch.