@@ -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 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $PORT = @$connectionParameters['port'] ?: 22; |
| 78 | 78 | $this->guardAgainstInvalidConnectionParameters($connectionParameters); |
| 79 | 79 | |
| 80 | - $tailCommand = 'ssh '.($connectionParameters['user'] == '' ? '' : $connectionParameters['user'].'@').$connectionParameters['host']." -p " . $PORT . " -T 'cd ".$connectionParameters['logDirectory'].';tail -n '.$this->option('lines')." -f $(ls -t | head -n 1)'"; |
|
| 80 | + $tailCommand = 'ssh '.($connectionParameters['user'] == '' ? '' : $connectionParameters['user'].'@').$connectionParameters['host']." -p ".$PORT." -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'].' (port '.$PORT.') 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 | } |