@@ -36,9 +36,9 @@ discard block |
||
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 |
||
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 | } |