[BUGFIX] Improve method annotation and type hinting in FAL 72/22572/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 25 Jul 2013 20:53:04 +0000 (22:53 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 25 Jul 2013 20:58:02 +0000 (22:58 +0200)
Add a missing "@throws" annotation and a namespaced comment.

Change-Id: Ibc929a01dbfdef9cf8730a8da259570786b6118c
Resolves: #50447
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/22572
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php

index 7fc8f3f..993c970 100644 (file)
@@ -877,6 +877,7 @@ class LocalDriver extends \TYPO3\CMS\Core\Resource\Driver\AbstractDriver {
         * @param \TYPO3\CMS\Core\Resource\Folder $folderToCopy
         * @param \TYPO3\CMS\Core\Resource\Folder $targetFolder
         * @param string $newFolderName
+        * @throws \TYPO3\CMS\Core\Resource\Exception\FileOperationErrorException
         * @return boolean
         */
        public function copyFolderWithinStorage(\TYPO3\CMS\Core\Resource\Folder $folderToCopy, \TYPO3\CMS\Core\Resource\Folder $targetFolder, $newFolderName) {
@@ -885,10 +886,10 @@ class LocalDriver extends \TYPO3\CMS\Core\Resource\Driver\AbstractDriver {
                $targetFolderPath = $this->getAbsolutePath($targetFolder) . $newFolderName . '/';
                mkdir($targetFolderPath);
                $sourceFolderPath = $this->getAbsolutePath($folderToCopy);
-               /** @var $iterator RecursiveDirectoryIterator */
+               /** @var $iterator \RecursiveDirectoryIterator */
                $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($sourceFolderPath));
                while ($iterator->valid()) {
-                       /** @var $current RecursiveDirectoryIterator */
+                       /** @var $current \RecursiveDirectoryIterator */
                        $current = $iterator->current();
                        $itemSubPath = $iterator->getSubPathname();
                        if ($current->isDir() && !($itemSubPath === '..' || $itemSubPath === '.')) {