Code Duplication    Length = 4-4 lines in 2 locations

src/Runner/Backup.php 1 location

@@ 56-59 (lines=4) @@
53
                break;
54
            }
55
            // make sure the backup should be executed and is not excluded via the --limit option
56
            if (!$configuration->isBackupActive($backup->getName())) {
57
                $this->result->debug('skipping backup: ' . $backup->getName() . PHP_EOL);
58
                continue;
59
            }
60
            // setup target and collector, reset failure state
61
            $target        = $this->factory->createTarget($backup->getTarget());
62
            $collector     = new Collector($target);

src/Runner/Simulate.php 1 location

@@ 41-44 (lines=4) @@
38
        /** @var \phpbu\App\Configuration\Backup $backup */
39
        foreach ($configuration->getBackups() as $backup) {
40
            // make sure the backup should be executed and is not excluded via the --limit option
41
            if (!$configuration->isBackupActive($backup->getName())) {
42
                $this->result->debug('skipping backup: ' . $backup->getName() . PHP_EOL);
43
                continue;
44
            }
45
            // setup target and collector
46
            $target    = $this->factory->createTarget($backup->getTarget());
47
            $collector = new Collector($target);