@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | protected function handleClearOption() |
38 | 38 | { |
39 | - if (! $this->option('clear')) { |
|
39 | + if (!$this->option('clear')) { |
|
40 | 40 | return; |
41 | 41 | } |
42 | 42 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | Process::fromShellCommandline($this->getTailCommand(), $logDirectory) |
51 | 51 | ->setTty(true) |
52 | 52 | ->setTimeout(null) |
53 | - ->run(function ($type, $line) { |
|
53 | + ->run(function($type, $line) { |
|
54 | 54 | $this->handleClearOption(); |
55 | 55 | |
56 | 56 | $this->output->write($line); |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | $environmentConfig = $this->getEnvironmentConfiguration($environment); |
63 | 63 | |
64 | 64 | Ssh::create($environmentConfig['user'], $environmentConfig['host']) |
65 | - ->configureProcess(fn (Process $process) => $process->setTty(true)) |
|
66 | - ->onOutput(function ($type, $line) { |
|
65 | + ->configureProcess(fn(Process $process) => $process->setTty(true)) |
|
66 | + ->onOutput(function($type, $line) { |
|
67 | 67 | $this->handleClearOption(); |
68 | 68 | |
69 | 69 | $this->output->write($line); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $config = config('tail'); |
80 | 80 | |
81 | - if (! isset($config[$environment])) { |
|
81 | + if (!isset($config[$environment])) { |
|
82 | 82 | throw new Exception("No configuration set for environment `{$environment}`. Make sure this environment is specified in the `tail` config file!"); |
83 | 83 | } |
84 | 84 | |
@@ -88,9 +88,9 @@ discard block |
||
88 | 88 | public function getTailCommand(): string |
89 | 89 | { |
90 | 90 | $grep = $this->option('grep') |
91 | - ? ' | grep "' . $this->option('grep').'"' |
|
91 | + ? ' | grep "'.$this->option('grep').'"' |
|
92 | 92 | : ''; |
93 | 93 | |
94 | - return 'tail -f -n '.$this->option('lines').' "`ls -t | head -1`"' . $grep; |
|
94 | + return 'tail -f -n '.$this->option('lines').' "`ls -t | head -1`"'.$grep; |
|
95 | 95 | } |
96 | 96 | } |