Code Duplication    Length = 4-4 lines in 2 locations

src/Command/ExecuteCoreUpgradeScriptsCommand.php 1 location

@@ 96-99 (lines=4) @@
93
			$oldSourcesDir = $locator->getOwncloudRootPath();
94
			$newSourcesDir = $fullExtractionPath . '/owncloud';
95
96
			foreach ($locator->getRootDirContent() as $dir){
97
				$this->getApplication()->getLogger()->debug('Replacing ' . $dir);
98
				$fsHelper->tripleMove($oldSourcesDir, $newSourcesDir, $tmpDir, $dir);
99
			}
100
			
101
			$fsHelper->copyr($tmpDir . '/config/config.php', $oldSourcesDir . '/config/config.php');
102

src/Command/PostUpgradeCleanupCommand.php 1 location

@@ 52-55 (lines=4) @@
49
		$tmpUpdaterDir = $tmpDir . '/updater';
50
		$fsHelper->mkdir($tmpUpdaterDir);
51
52
		foreach ($locator->getUpdaterContent() as $dir){
53
			$this->getApplication()->getLogger()->debug('Moving updater/' . $dir);
54
			$fsHelper->tripleMove($oldUpdaterDir, $newUpdaterDir, $tmpUpdaterDir, $dir);
55
		}
56
		
57
		//Cleanup Filesystem
58
		$fsHelper->removeIfExists($locator->getExtractionBaseDir());