| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 48 | { |
||
| 49 | $credentials = [ |
||
| 50 | 'username' => 'sftpuser', |
||
| 51 | 'password' => 'sftpuser', |
||
| 52 | 'host' => 'localhost', |
||
| 53 | 'port' => 22, |
||
| 54 | |||
| 55 | ]; |
||
| 56 | $result = null; |
||
| 57 | $this->credentials->set($credentials); |
||
| 58 | $connected = $this->client->connect($this->credentials); |
||
| 59 | if ($connected) { |
||
| 60 | $result = $this->client->download('comeco/sftp/Descriptions.csv'); |
||
| 61 | } |
||
| 62 | $output->write($result, true); |
||
| 63 | } |
||
| 65 |