Passed
Push — master ( 3c9d18...091c04 )
by
unknown
18:35 queued 04:36
created
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.
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', 'logreader')], function () {
5
+Route::group(['prefix' => config('logreader.prefix', 'logreader')], 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   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function read()
24 24
     {
25
-        $this->getLogFiles()->each(function ($file) {
26
-            $this->getFileLines($file)->each(function ($line) {
25
+        $this->getLogFiles()->each(function($file) {
26
+            $this->getFileLines($file)->each(function($line) {
27 27
                 $this->handleFileLine($line);
28 28
             });
29 29
         });
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     public function getLogFiles()
52 52
     {
53
-        if (! $this->filesystem->exists($this->getPath())) {
53
+        if (!$this->filesystem->exists($this->getPath())) {
54 54
             throw new FolderNotFoundException();
55 55
         }
56 56
 
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function getFiles()
61 61
     {
62
-        return collect($this->files)->filter(function ($file) {
63
-            if (! is_null($this->getTime())) {
62
+        return collect($this->files)->filter(function($file) {
63
+            if (!is_null($this->getTime())) {
64 64
                 return $file->getFilename() === "laravel-{$this->getTime()}.log";
65 65
             }
66 66
 
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function getSubDirectoriesFiles()
72 72
     {
73
-        collect($this->filesystem->directories($this->getPath()))->map(function ($directory) {
74
-            collect($this->filesystem->files($directory))->filter(function ($file) {
73
+        collect($this->filesystem->directories($this->getPath()))->map(function($directory) {
74
+            collect($this->filesystem->files($directory))->filter(function($file) {
75 75
                 $this->files[] = $file;
76 76
             });
77 77
         });
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     public function getDiretoryFiles()
83 83
     {
84
-        collect($this->filesystem->files($this->getPath()))->filter(function ($file) {
84
+        collect($this->filesystem->files($this->getPath()))->filter(function($file) {
85 85
             $this->files[] = $file;
86 86
         });
87 87
 
Please login to merge, or discard this patch.