Code Duplication    Length = 4-4 lines in 2 locations

src/Runner/Simulate.php 1 location

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

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 Local($target);