Code Duplication    Length = 5-5 lines in 2 locations

src/BackupAbstract.php 2 locations

@@ 116-120 (lines=5) @@
113
114
        $backupInstance =  $this->getBackupEngineInstance();
115
116
        if ($exportCommand === null) {
117
            $exportCommand = isset($options['processors'][$this->getBackupEngineName()]['export']) ?
118
                $options['processors'][$this->getBackupEngineName()]['export'] . $backupInstance->getExportProcess() :
119
                null;
120
        }
121
122
        $restoreCommand = $this->backupFilesystemInstance
123
            ->locateCommand(self::$backupEngineInstance->getRestoreProcess());
@@ 125-129 (lines=5) @@
122
        $restoreCommand = $this->backupFilesystemInstance
123
            ->locateCommand(self::$backupEngineInstance->getRestoreProcess());
124
125
        if ($restoreCommand === null) {
126
            $restoreCommand = isset($options['processors'][$this->getBackupEngineName()]['restore']) ?
127
                $options['processors'][$this->getBackupEngineName()]['restore'] . $backupInstance->getRestoreProcess() :
128
                null;
129
        }
130
131
        self::$backupEngineInstance->setExportCommand($exportCommand);
132
        self::$backupEngineInstance->setRestoreCommand($restoreCommand);