@@ -45,11 +45,11 @@ |
||
45 | 45 | { |
46 | 46 | $items = array_diff(scandir($path), array('.', '..')); |
47 | 47 | |
48 | - foreach ($items as $item) { |
|
48 | + foreach ($items as $item) { |
|
49 | 49 | |
50 | 50 | $item = "$path/$item"; |
51 | 51 | |
52 | - if (is_dir($item)) { |
|
52 | + if (is_dir($item)) { |
|
53 | 53 | $this->scan($item, $pattern); |
54 | 54 | continue; |
55 | 55 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | { |
52 | 52 | $source = PathSanitizer::sanitize($source); |
53 | 53 | |
54 | - if (! is_dir($source)) { |
|
54 | + if (!is_dir($source)) { |
|
55 | 55 | $err = sprintf('Template folder [%s] not found', $source); |
56 | 56 | throw new \Exception($err); |
57 | 57 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | { |
71 | 71 | $file = $this->getStubFile($name); |
72 | 72 | |
73 | - if (! is_file($file)) { |
|
73 | + if (!is_file($file)) { |
|
74 | 74 | throw new \Exception("Stub file called '{$file}' not found in folder template"); |
75 | 75 | } |
76 | 76 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | $name = $name ?? $this->name; |
104 | 104 | |
105 | - if (! $name) { |
|
105 | + if (!$name) { |
|
106 | 106 | throw new \Exception('Stub name bad formatted'); |
107 | 107 | } |
108 | 108 |