summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-29 18:27:19 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-29 18:27:19 +0200
commit74c54587ec1d816b41e5fbfca6f8d61f334a280c (patch)
tree169eed784ae13f05538f2d2658481b2230b58122 /lib
parente1e7b6a9406d8f9512f37e44d396be12dc1d02df (diff)
downloadnextcloud-server-74c54587ec1d816b41e5fbfca6f8d61f334a280c.tar.gz
nextcloud-server-74c54587ec1d816b41e5fbfca6f8d61f334a280c.zip
better variable naming
Diffstat (limited to 'lib')
-rw-r--r--lib/files/cache/scanner.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index d8e58f624a1..53dc45e047c 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -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 = '';