Passed
Push — master ( fec7a7...e6f852 )
by Giuliano
03:19
created
src/Foundation/FolderReader.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
     static public function read(string $path, int $level) : array
10 10
     {
11
-        if (! is_dir($path)) return [];
11
+        if (!is_dir($path)) return [];
12 12
 
13 13
         self::scan($path, 1, $level);
14 14
 
@@ -20,16 +20,16 @@  discard block
 block discarded – undo
20 20
         $folder = '';
21 21
         $items  = array_diff(scandir($path), array('.', '..'));        
22 22
         
23
-        foreach($items as $item) {
23
+        foreach ($items as $item) {
24 24
 
25 25
             $folder = "$path/$item"; 
26 26
 
27
-            if (! is_dir($folder)) {
27
+            if (!is_dir($folder)) {
28 28
                 continue;
29 29
             }
30 30
             
31 31
             if (is_dir($folder) && $step < $level) {
32
-                self::scan($folder, $step+1, $level);
32
+                self::scan($folder, $step + 1, $level);
33 33
             }
34 34
 
35 35
             if ($step == $level) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,9 @@
 block discarded – undo
8 8
 
9 9
     static public function read(string $path, int $level) : array
10 10
     {
11
-        if (! is_dir($path)) return [];
11
+        if (! is_dir($path)) {
12
+            return [];
13
+        }
12 14
 
13 15
         self::scan($path, 1, $level);
14 16
 
Please login to merge, or discard this patch.
src/Foundation/Template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 
144 144
     public function load(string $filename) : ?string
145 145
     {
146
-        if (! $this->exists($filename)) {
146
+        if (!$this->exists($filename)) {
147 147
             return null;
148 148
         }
149 149
 
Please login to merge, or discard this patch.