Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
33 | public function getBackupFiles(): array |
||
34 | { |
||
35 | $files = ftp_nlist($this->ftpConnection, '.'); |
||
36 | foreach ($files as $filename) { |
||
37 | if ($filename == $this->target->getFilename()) { |
||
38 | continue; |
||
39 | } |
||
40 | if ($this->isFilenameMatch($filename)) { |
||
41 | $this->files[] = new \phpbu\App\Backup\File\Ftp($this->ftpConnection, $filename); |
||
42 | } |
||
43 | } |
||
44 | return $this->files; |
||
45 | } |
||
46 | } |
||
47 |