Code Duplication    Length = 3-3 lines in 2 locations

typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php 2 locations

@@ 1029-1031 (lines=3) @@
1026
        // get all files and folders we are going to move, to have a map for updating later.
1027
        $filesAndFolders = $this->retrieveFileAndFoldersInPath($sourcePath, true);
1028
        $result = rename($sourcePath, $targetPath);
1029
        if ($result === false) {
1030
            throw new \RuntimeException('Moving folder ' . $sourcePath . ' to ' . $targetPath . ' failed.', 1320711817);
1031
        }
1032
        // Create a mapping from old to new identifiers
1033
        $identifierMap = $this->createIdentifierMap($filesAndFolders, $sourceFolderIdentifier, $relativeTargetPath);
1034
        return $identifierMap;
@@ 1115-1117 (lines=3) @@
1112
        $sourcePath = $this->getAbsolutePath($fileIdentifier);
1113
        $targetPath = $this->getAbsolutePath($newIdentifier);
1114
        $result = rename($sourcePath, $targetPath);
1115
        if ($result === false) {
1116
            throw new \RuntimeException('Renaming file ' . $sourcePath . ' to ' . $targetPath . ' failed.', 1320375115);
1117
        }
1118
        return $newIdentifier;
1119
    }
1120