@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | use Cion\LaravelLogReader\Reader\LogReader; |
4 | 4 | |
5 | -Route::group(['prefix' => config('logreader.prefix')], function () { |
|
5 | +Route::group(['prefix' => config('logreader.prefix')], function() { |
|
6 | 6 | Route::get('/', 'Cion\LaravelLogReader\Reader\LogReaderController@index'); |
7 | 7 | }); |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | |
22 | 22 | public function read() |
23 | 23 | { |
24 | - $this->getFiles()->each(function ($file) { |
|
25 | - $this->getFileLines($file)->each(function ($line) { |
|
24 | + $this->getFiles()->each(function($file) { |
|
25 | + $this->getFileLines($file)->each(function($line) { |
|
26 | 26 | if ($lineHandler = (new LineReader($line))->handle()) { |
27 | 27 | $this->loggers[] = $lineHandler->getArray(); |
28 | 28 | } |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | { |
47 | 47 | // TODO:Add Expection if this path doesn't exists |
48 | 48 | |
49 | - return collect($this->filesystem->files(config('logreader.path')))->filter(function ($file) { |
|
50 | - if (! is_null($this->time)) { |
|
49 | + return collect($this->filesystem->files(config('logreader.path')))->filter(function($file) { |
|
50 | + if (!is_null($this->time)) { |
|
51 | 51 | return $file->getFilename() === "laravel-{$this->time}.log"; |
52 | 52 | } |
53 | 53 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | |
60 | 60 | public function hasAtLeastOneLoggerType() |
61 | 61 | { |
62 | - return collect($this->types)->filter(function ($type) { |
|
62 | + return collect($this->types)->filter(function($type) { |
|
63 | 63 | if ($this->hasLoggerType($type)) { |
64 | 64 | return true; |
65 | 65 | } |