]> source.dussan.org Git - nextcloud-server.git/commitdiff
better variable naming
authorRobin Appelman <icewind@owncloud.com>
Mon, 29 Jul 2013 16:27:19 +0000 (18:27 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 29 Jul 2013 16:27:19 +0000 (18:27 +0200)
lib/files/cache/scanner.php

index d8e58f624a1b00c5942777def2c8717854d43fb5..53dc45e047cdf70ce190828f86f62fe267f09b08 100644 (file)
@@ -75,10 +75,10 @@ class Scanner extends BasicEmitter {
         *
         * @param string $file
         * @param int $reuseExisting
-        * @param bool $parentExists
+        * @param bool $parentExistsInCache
         * @return array with metadata of the scanned file
         */
-       public function scanFile($file, $reuseExisting = 0, $parentExists = false) {
+       public function scanFile($file, $reuseExisting = 0, $parentExistsInCache = false) {
                if (!self::isPartialFile($file)
                        and !Filesystem::isFileBlacklisted($file)
                ) {
@@ -86,7 +86,7 @@ class Scanner extends BasicEmitter {
                        \OC_Hook::emit('\OC\Files\Cache\Scanner', 'scan_file', array('path' => $file, 'storage' => $this->storageId));
                        $data = $this->getData($file);
                        if ($data) {
-                               if ($file and !$parentExists) {
+                               if ($file and !$parentExistsInCache) {
                                        $parent = dirname($file);
                                        if ($parent === '.' or $parent === '/') {
                                                $parent = '';