@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | $logDirectory = storage_path('logs'); |
| 22 | 22 | |
| 23 | - if (! $path = $this->findLatestLogFile($logDirectory)) { |
|
| 23 | + if (!$path = $this->findLatestLogFile($logDirectory)) { |
|
| 24 | 24 | $this->warn("Could not find a log file in `{$logDirectory}`."); |
| 25 | 25 | |
| 26 | 26 | return; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | (new Process($tailCommand)) |
| 38 | 38 | ->setTty(true) |
| 39 | 39 | ->setTimeout(null) |
| 40 | - ->run(function ($type, $line) { |
|
| 40 | + ->run(function($type, $line) { |
|
| 41 | 41 | $this->handleClearOption(); |
| 42 | 42 | |
| 43 | 43 | $this->output->write($line); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | protected function findLatestLogFile(string $directory) |
| 48 | 48 | { |
| 49 | 49 | $logFile = collect(File::allFiles($directory)) |
| 50 | - ->sortByDesc(function (SplFileInfo $file) { |
|
| 50 | + ->sortByDesc(function(SplFileInfo $file) { |
|
| 51 | 51 | return $file->getMTime(); |
| 52 | 52 | }) |
| 53 | 53 | ->first(); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | protected function handleClearOption() |
| 61 | 61 | { |
| 62 | - if (! $this->option('clear')) { |
|
| 62 | + if (!$this->option('clear')) { |
|
| 63 | 63 | return; |
| 64 | 64 | } |
| 65 | 65 | |