From 2d9b2271abeff522e9591d98193b253893c6ffdf Mon Sep 17 00:00:00 2001 From: flip111 Date: Thu, 21 Nov 2013 16:44:34 +0100 Subject: [PATCH] Renamed variables --- src/Metadata/Cache/FileCache.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Metadata/Cache/FileCache.php b/src/Metadata/Cache/FileCache.php index 44a3bd6..2c5b011 100644 --- a/src/Metadata/Cache/FileCache.php +++ b/src/Metadata/Cache/FileCache.php @@ -50,20 +50,20 @@ public function putClassMetadataInCache(ClassMetadata $metadata) /** * Renames a file with fallback for windows * - * @param string $oldname - * @param string $newname + * @param string $source + * @param string $target */ - private function renameFile($oldname, $newname) { - if (false === @rename($oldname, $newname)) { + private function renameFile($source, $target) { + if (false === @rename($source, $target)) { if (defined('PHP_WINDOWS_VERSION_BUILD')) { - if (false === copy($oldname, $newname)) { - throw new \RuntimeException(sprintf('(WIN) Could not write new cache file to %s.', $newname)); + if (false === copy($source, $target)) { + throw new \RuntimeException(sprintf('(WIN) Could not write new cache file to %s.', $target)); } - if (false === unlink($oldname)) { - throw new \RuntimeException(sprintf('(WIN) Could not delete temp cache file to %s.', $oldname)); + if (false === unlink($source)) { + throw new \RuntimeException(sprintf('(WIN) Could not delete temp cache file to %s.', $source)); } } else { - throw new \RuntimeException(sprintf('Could not write new cache file to %s.', $newname)); + throw new \RuntimeException(sprintf('Could not write new cache file to %s.', $target)); } } }