Passed
Push — master ( 022cd7...5acc43 )
by Chris
02:09
created
src/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
src/Reader/LogReader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Reader/LineReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.