Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoracsfer <carlos@reendex.com>2021-12-03 18:05:19 +0300
committerGitHub <noreply@github.com>2021-12-03 18:05:19 +0300
commit074a9a5e88340bd8087f7b610137a11ff84d3dff (patch)
tree381ffa0ddcabf1699ee439b6e9316c2cee9bb4af /lib/private/Files/Cache
parent82fc20f9d2225886a07200275e5b9d432e81772e (diff)
Switch logical operators
Unless there is a good reason to keep actual ones 👀
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r--lib/private/Files/Cache/Cache.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index dc2ba78457e..7c2e635549a 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -151,7 +151,7 @@ class Cache implements ICache {
$query = $this->getQueryBuilder();
$query->selectFileCache();
- if (is_string($file) or $file == '') {
+ if (is_string($file) || $file == '') {
// normalize file
$file = $this->normalize($file);
@@ -166,7 +166,7 @@ class Cache implements ICache {
$result->closeCursor();
//merge partial data
- if (!$data and is_string($file) and isset($this->partial[$file])) {
+ if (!$data && is_string($file) && isset($this->partial[$file])) {
return $this->partial[$file];
} elseif (!$data) {
return $data;
@@ -819,7 +819,7 @@ class Cache implements ICache {
$this->calculateFolderSize($path, $data);
if ($path !== '') {
$parent = dirname($path);
- if ($parent === '.' or $parent === '/') {
+ if ($parent === '.' || $parent === '/') {
$parent = '';
}
if ($isBackgroundScan) {
@@ -865,7 +865,7 @@ class Cache implements ICache {
*/
public function calculateFolderSize($path, $entry = null) {
$totalSize = 0;
- if (is_null($entry) or !isset($entry['fileid'])) {
+ if (is_null($entry) || !isset($entry['fileid'])) {
$entry = $this->get($path);
}
if (isset($entry['mimetype']) && $entry['mimetype'] === FileInfo::MIMETYPE_FOLDER) {