@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | new \RecursiveDirectoryIterator($templateRoot) |
42 | 42 | ); |
43 | 43 | |
44 | - $data = []; |
|
44 | + $data = [ ]; |
|
45 | 45 | |
46 | - foreach($baseTemplates as $pathName => $baseTemplate) { |
|
46 | + foreach ($baseTemplates as $pathName => $baseTemplate) { |
|
47 | 47 | $namespace = str_replace($baseTemplateRoot, '', $pathName); |
48 | 48 | |
49 | 49 | if ( |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | continue; |
55 | 55 | } |
56 | 56 | |
57 | - $data[$namespace] = [ |
|
57 | + $data[ $namespace ] = [ |
|
58 | 58 | 'name' => $namespace, |
59 | 59 | 'content' => "{extends file='parent:" . $namespace . "'}", |
60 | 60 | 'oContent' => file_get_contents($pathName), |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | ]; |
63 | 63 | } |
64 | 64 | |
65 | - foreach($customTemplates as $pathName => $customTemplate) { |
|
65 | + foreach ($customTemplates as $pathName => $customTemplate) { |
|
66 | 66 | $namespace = str_replace($templateRoot, '', $pathName); |
67 | 67 | |
68 | 68 | if ( |
@@ -73,10 +73,10 @@ discard block |
||
73 | 73 | continue; |
74 | 74 | } |
75 | 75 | |
76 | - $data[$namespace] = [ |
|
76 | + $data[ $namespace ] = [ |
|
77 | 77 | 'name' => $namespace, |
78 | 78 | 'content' => file_get_contents($pathName), |
79 | - 'oContent' => isset($data[$namespace]['oContent']) ? $data[$namespace]['oContent'] : '', |
|
79 | + 'oContent' => isset($data[ $namespace ][ 'oContent' ]) ? $data[ $namespace ][ 'oContent' ] : '', |
|
80 | 80 | 'custom' => 1 |
81 | 81 | ]; |
82 | 82 | } |