Code Duplication    Length = 5-5 lines in 2 locations

src/Backup/Collector/AmazonS3v3.php 1 location

@@ 67-71 (lines=5) @@
64
        }
65
66
        foreach ($result['Contents'] as $object) {
67
            if ($this->isFileMatch($object['Key'])) {
68
                $file                = new AwsFile($this->client, $this->bucket, $object);
69
                $index               = $this->getFileIndex($file);
70
                $this->files[$index] = $file;
71
            }
72
        }
73
    }
74

src/Backup/Collector/Dropbox.php 1 location

@@ 62-66 (lines=5) @@
59
            if ($item instanceof FolderMetadata) {
60
                continue;
61
            }
62
            if ($this->isFileMatch($item->getPathDisplay())) {
63
                $file                = new File\Dropbox($this->client, $item);
64
                $index               = $this->getFileIndex($file);
65
                $this->files[$index] = $file;
66
            }
67
        }
68
    }
69
}