Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 1 | public function getFiles() { |
|
29 | 1 | $client = $this->getClient(); |
|
30 | 1 | $file = $this->createFile($this->fileName); |
|
31 | |||
32 | 1 | $client->connect($this->host, $this->ssl, $this->port, $this->timeout); |
|
33 | 1 | $client->login($this->login, $this->password); |
|
34 | 1 | $client->raw('OPTS UTF8 ON'); |
|
35 | 1 | $client->pasv(true); |
|
36 | 1 | $client->get($file->filePath, trim($this->dir, '/') . '/' . $this->fileName, FTP_BINARY); |
|
37 | |||
38 | return [ |
||
39 | 1 | $file, |
|
40 | ]; |
||
57 | } |