@@ -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 | if (!$baseTemplate->isFile()) { |
48 | 48 | continue; |
49 | 49 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | continue; |
57 | 57 | } |
58 | 58 | |
59 | - $data[$namespace] = [ |
|
59 | + $data[ $namespace ] = [ |
|
60 | 60 | 'name' => $namespace, |
61 | 61 | 'content' => "{extends file='parent:" . $namespace . "'}", |
62 | 62 | 'oContent' => file_get_contents($pathName), |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | ]; |
65 | 65 | } |
66 | 66 | |
67 | - foreach($customTemplates as $pathName => $customTemplate) { |
|
67 | + foreach ($customTemplates as $pathName => $customTemplate) { |
|
68 | 68 | if (!$customTemplate->isFile()) { |
69 | 69 | continue; |
70 | 70 | } |
@@ -77,10 +77,10 @@ discard block |
||
77 | 77 | continue; |
78 | 78 | } |
79 | 79 | |
80 | - $data[$namespace] = [ |
|
80 | + $data[ $namespace ] = [ |
|
81 | 81 | 'name' => $namespace, |
82 | 82 | 'content' => file_get_contents($pathName), |
83 | - 'oContent' => isset($data[$namespace]['oContent']) ? $data[$namespace]['oContent'] : '', |
|
83 | + 'oContent' => isset($data[ $namespace ][ 'oContent' ]) ? $data[ $namespace ][ 'oContent' ] : '', |
|
84 | 84 | 'custom' => 1 |
85 | 85 | ]; |
86 | 86 | } |