@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | $logDirectory = storage_path('logs'); |
23 | 23 | |
24 | - if (! $path = $this->findLatestLogFile($logDirectory)) { |
|
24 | + if (!$path = $this->findLatestLogFile($logDirectory)) { |
|
25 | 25 | $this->warn("Could not find a log file in `{$logDirectory}`."); |
26 | 26 | |
27 | 27 | return; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | (new Process($tailCommand)) |
39 | 39 | ->setTty(true) |
40 | 40 | ->setTimeout(null) |
41 | - ->run(function ($type, $line) { |
|
41 | + ->run(function($type, $line) { |
|
42 | 42 | $this->handleClearOption(); |
43 | 43 | |
44 | 44 | $this->output->write($line); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | protected function findLatestLogFile(string $directory) |
49 | 49 | { |
50 | 50 | $logFile = collect(File::allFiles($directory)) |
51 | - ->sortByDesc(function (SplFileInfo $file) { |
|
51 | + ->sortByDesc(function(SplFileInfo $file) { |
|
52 | 52 | return $file->getMTime(); |
53 | 53 | }) |
54 | 54 | ->first(); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | protected function handleClearOption() |
62 | 62 | { |
63 | - if (! $this->option('clear')) { |
|
63 | + if (!$this->option('clear')) { |
|
64 | 64 | return; |
65 | 65 | } |
66 | 66 | |
@@ -72,13 +72,13 @@ discard block |
||
72 | 72 | $hideTraces = $this->option('hide-stack-traces'); |
73 | 73 | $addColor = $this->option('color'); |
74 | 74 | |
75 | - if (! $hideTraces && ! $addColor) { |
|
75 | + if (!$hideTraces && !$addColor) { |
|
76 | 76 | return ''; |
77 | 77 | } |
78 | 78 | |
79 | 79 | $patterns = '^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:'; |
80 | 80 | |
81 | - if ($addColor && ! $hideTraces) { |
|
81 | + if ($addColor && !$hideTraces) { |
|
82 | 82 | $patterns .= '|^'; |
83 | 83 | } |
84 | 84 |