@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $this->setTime(); |
| 26 | 26 | |
| 27 | - $this->getLogFiles()->each(function ($file) { |
|
| 28 | - $this->getFileLines($file)->each(function ($line) { |
|
| 27 | + $this->getLogFiles()->each(function($file) { |
|
| 28 | + $this->getFileLines($file)->each(function($line) { |
|
| 29 | 29 | $this->handleFileLine($line); |
| 30 | 30 | }); |
| 31 | 31 | }); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | public function getLogFiles() |
| 54 | 54 | { |
| 55 | - if (! $this->filesystem->exists($this->getPath())) { |
|
| 55 | + if (!$this->filesystem->exists($this->getPath())) { |
|
| 56 | 56 | throw new FolderNotFoundException(); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | public function getFiles() |
| 63 | 63 | { |
| 64 | - return collect($this->files)->filter(function ($file) { |
|
| 65 | - if (! is_null($this->getTime())) { |
|
| 64 | + return collect($this->files)->filter(function($file) { |
|
| 65 | + if (!is_null($this->getTime())) { |
|
| 66 | 66 | return $file->getFilename() === "laravel-{$this->getTime()}.log"; |
| 67 | 67 | } |
| 68 | 68 | |
@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | public function getSubDirectoriesFiles() |
| 74 | 74 | { |
| 75 | - collect($this->filesystem->directories($this->getPath()))->map(function ($directory) { |
|
| 76 | - collect($this->filesystem->files($directory))->filter(function ($file) { |
|
| 75 | + collect($this->filesystem->directories($this->getPath()))->map(function($directory) { |
|
| 76 | + collect($this->filesystem->files($directory))->filter(function($file) { |
|
| 77 | 77 | $this->files[] = $file; |
| 78 | 78 | }); |
| 79 | 79 | }); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | public function getDiretoryFiles() |
| 85 | 85 | { |
| 86 | - collect($this->filesystem->files($this->getPath()))->filter(function ($file) { |
|
| 86 | + collect($this->filesystem->files($this->getPath()))->filter(function($file) { |
|
| 87 | 87 | $this->files[] = $file; |
| 88 | 88 | }); |
| 89 | 89 | |