@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Get the services provided by the provider. |
| 47 | 47 | * |
| 48 | - * @return array |
|
| 48 | + * @return string[] |
|
| 49 | 49 | */ |
| 50 | 50 | public function provides() |
| 51 | 51 | { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public function register() |
| 35 | 35 | { |
| 36 | 36 | $this->app['command.tail'] = $this->app->share( |
| 37 | - function ($app) { |
|
| 37 | + function($app) { |
|
| 38 | 38 | return new TailCommand(); |
| 39 | 39 | } |
| 40 | 40 | ); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | $this->guardAgainstInvalidConnectionParameters($connectionParameters); |
| 79 | 79 | |
| 80 | - $tailCommand = "ssh ".($connectionParameters['user'] == '' ? '' : $connectionParameters['user'] . '@').$connectionParameters['host']." -T 'cd ".$connectionParameters['logDirectory'].";tail -n ".$this->option('lines')." -f $(ls -t | head -n 1)'"; |
|
| 80 | + $tailCommand = "ssh ".($connectionParameters['user'] == '' ? '' : $connectionParameters['user'].'@').$connectionParameters['host']." -T 'cd ".$connectionParameters['logDirectory'].";tail -n ".$this->option('lines')." -f $(ls -t | head -n 1)'"; |
|
| 81 | 81 | |
| 82 | 82 | $this->info('start tailing latest remote log on host '.$connectionParameters['host'].' in directory '.$connectionParameters['logDirectory']); |
| 83 | 83 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | { |
| 94 | 94 | $output = $this->output; |
| 95 | 95 | |
| 96 | - (new Process($command))->setTimeout(null)->run(function ($type, $line) use ($output) { |
|
| 96 | + (new Process($command))->setTimeout(null)->run(function($type, $line) use ($output) { |
|
| 97 | 97 | $output->write($line); |
| 98 | 98 | }); |
| 99 | 99 | } |