@@ -46,7 +46,9 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | public function setCollections ($collections) |
| 48 | 48 | { |
| 49 | - if (empty($collections)) { return; } |
|
| 49 | + if (empty($collections)) |
|
| 50 | + { |
|
| 51 | +return; } |
|
| 50 | 52 | |
| 51 | 53 | $this->collections = $collections; |
| 52 | 54 | } |
@@ -85,7 +87,9 @@ discard block |
||
| 85 | 87 | */ |
| 86 | 88 | public function parsePageViews ($pageViewFolders) |
| 87 | 89 | { |
| 88 | - if (empty($pageViewFolders)) { return; } |
|
| 90 | + if (empty($pageViewFolders)) |
|
| 91 | + { |
|
| 92 | +return; } |
|
| 89 | 93 | |
| 90 | 94 | /** |
| 91 | 95 | * The name of the folder where PageViews are located |
@@ -182,7 +182,8 @@ |
||
| 182 | 182 | |
| 183 | 183 | $this->output->notice('Watch started successfully'); |
| 184 | 184 | |
| 185 | - $listener->onAnything(function (Event $event, FileResource $resouce, $path) use ($targetPath) { |
|
| 185 | + $listener->onAnything(function (Event $event, FileResource $resouce, $path) use ($targetPath) |
|
| 186 | + { |
|
| 186 | 187 | $filePath = $this->fs->getRelativePath($path); |
| 187 | 188 | |
| 188 | 189 | if ((substr($filePath, 0, strlen($targetPath)) === $targetPath) || |