| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 7 |
| Ratio | 63.64 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 2 | protected function collectBackups() |
|
| 46 | { |
||
| 47 | 2 | $items = $this->disk->getResource($this->path->getPathThatIsNotChanging()); |
|
| 48 | 2 | View Code Duplication | foreach ($items->toArray()['items'] as $item) { |
| 49 | 2 | if (($item instanceof Disk\Resource\Closed) && $this->isFileMatch($item->getPath())) { |
|
| 50 | 2 | $file = new File\YandexDisk($this->disk, $item); |
|
| 51 | 2 | $index = $this->getFileIndex($file); |
|
| 52 | 2 | $this->files[$index] = $file; |
|
| 53 | } |
||
| 54 | } |
||
| 55 | 2 | } |
|
| 56 | } |
||
| 57 |