| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 6 | protected function getFilesToDelete (AbstractAdapter $source) |
|
| 34 | { |
||
| 35 | 6 | $filesToDelete = []; |
|
| 36 | 6 | foreach ($source->listContents() as $file) |
|
| 37 | { |
||
| 38 | 6 | if (! Util::endsWith($file['path'], '.7z') && ! Util::endsWith($file['path'], '.zip')) |
|
| 39 | { |
||
| 40 | 3 | continue; |
|
| 41 | } |
||
| 42 | |||
| 43 | 6 | $filesToDelete[] = $file['path']; |
|
| 44 | } |
||
| 45 | 6 | return $filesToDelete; |
|
| 46 | } |
||
| 47 | } |
||
| 48 |