Code Duplication    Length = 3-3 lines in 2 locations

src/Backup/Collector/AmazonS3v3.php 1 location

@@ 67-69 (lines=3) @@
64
            if ($object['Key'] == $this->path . $this->target->getFilename()) {
65
                continue;
66
            }
67
            if (preg_match('#' . $this->fileRegex . '#i', basename($object['Key']))) {
68
                $this->files[] = new \phpbu\App\Backup\File\AmazonS3v3($this->client, $this->bucket, $object);
69
            }
70
        }
71
72
        return $this->files;

src/Backup/Collector/OpenStack.php 1 location

@@ 57-59 (lines=3) @@
54
            if ($object->name == $this->path . $this->target->getFilename()) {
55
                continue;
56
            }
57
            if (preg_match('#' . $this->fileRegex . '#i', basename($object->name))) {
58
                $this->files[] = new \phpbu\App\Backup\File\OpenStack($this->container, $object);
59
            }
60
        }
61
62
        return $this->files;