src/Reader/LineReader.phpmodified+6-6Changes to src/Reader/LineReader.php | @@ -17,7 +17,7 @@ class LineReader |
| 17 | 17 | 'ERROR', |
| 18 | 18 | 'WARNING', |
| 19 | 19 | 'NOTICE', |
| 20 | | - 'INFO' |
| 20 | + 'INFO', |
| 21 | 21 | ]; |
| 22 | 22 | |
| 23 | 23 | public $type; |
formatting only · 8 hidden lines
Changes to src/Reader/LineReader.php | @@ -32,7 +32,7 @@ class LineReader formatting only |
| 32 | 32 | { |
| 33 | 33 | $this->line = $line; |
| 34 | 34 | |
| 35 | | - if(request()->filled('logreader_type') && request('logreader_type') !== 'all') { |
| 35 | + if (request()->filled('logreader_type') && request('logreader_type') !== 'all') { |
| 36 | 36 | $this->types = [strtoupper(request()->logreader_type)]; |
| 37 | 37 | } |
| 38 | 38 | } |
Changes to src/Reader/LineReader.php | @@ -51,9 +51,9 @@ class LineReader |
| 51 | 51 | public function getArray() |
| 52 | 52 | { |
| 53 | 53 | return [ |
| 54 | | - "date" => $this->date, |
| 55 | | - "type" => $this->type, |
| 56 | | - "message" => $this->message |
| 54 | + 'date' => $this->date, |
| 55 | + 'type' => $this->type, |
| 56 | + 'message' => $this->message, |
| 57 | 57 | ]; |
| 58 | 58 | } |
| 59 | 59 | |
| @@ -88,7 +88,7 @@ class LineReader |
| 88 | 88 | |
| 89 | 89 | public function retrieveMessage() |
| 90 | 90 | { |
| 91 | | - $this->message = Str::replaceFirst(config('logreader.env').'.'.$this->type.": ", '', $this->LineWithoutDate()); |
| 91 | + $this->message = Str::replaceFirst(config('logreader.env').'.'.$this->type.': ', '', $this->LineWithoutDate()); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | public function hasLoggerType($type) |