Code Duplication    Length = 4-7 lines in 2 locations

src/Command/ExecuteCoreUpgradeScriptsCommand.php 1 location

@@ 133-139 (lines=7) @@
130
					$locator->getRootDirItemsFromSignature($newSourcesDir)
131
				)
132
			);
133
			foreach ($rootDirContent as $dir){
134
				if ($dir === 'updater') {
135
					continue;
136
				}
137
				$this->getApplication()->getLogger()->debug('Replacing ' . $dir);
138
				$fsHelper->tripleMove($oldSourcesDir, $newSourcesDir, $tmpDir, $dir);
139
			}
140
141
			$fsHelper->copyr($tmpDir . '/config/config.php', $oldSourcesDir . '/config/config.php');
142

src/Command/PostUpgradeCleanupCommand.php 1 location

@@ 61-64 (lines=4) @@
58
		$tmpUpdaterDir = $tmpDir . '/updater';
59
		$fsHelper->mkdir($tmpUpdaterDir);
60
61
		foreach ($locator->getUpdaterContent() as $dir){
62
			$this->getApplication()->getLogger()->debug('Moving updater/' . $dir);
63
			$fsHelper->tripleMove($oldUpdaterDir, $newUpdaterDir, $tmpUpdaterDir, $dir);
64
		}
65
		
66
		//Cleanup Filesystem
67
		$fsHelper->removeIfExists($locator->getExtractionBaseDir());