From: Christian Berendt Date: Wed, 10 Jul 2013 14:09:22 +0000 (+0200) Subject: use === instead of == X-Git-Tag: v6.0.0alpha2~426^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4fdf2793955d979e9396aa491f9cf0e19ca6e9ec;p=nextcloud-server.git use === instead of == --- diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index 1ad34a9bff4..4af1d1b6929 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -166,7 +166,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { $dh = $this->opendir($path); while ($file = readdir($dh)) { - if ($file == '.' || $file == '..') { + if ($file === '.' || $file === '..') { continue; } @@ -193,7 +193,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { public function opendir($path) { $path = $this->normalizePath($path); - if ($path == '.') { + if ($path === '.') { $path = ''; } else if ($path) { $path .= '/'; @@ -437,7 +437,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { $dh = $this->opendir($path1); while ($file = readdir($dh)) { - if ($file == '.' || $file == '..') { + if ($file === '.' || $file === '..') { continue; } @@ -455,11 +455,11 @@ class AmazonS3 extends \OC\Files\Storage\Common { $path2 = $this->normalizePath($path2); if ($this->is_file($path1)) { - if ($this->copy($path1, $path2) == false) { + if ($this->copy($path1, $path2) === false) { return false; } - if ($this->unlink($path1) == false) { + if ($this->unlink($path1) === false) { $this->unlink($path2); return false; } @@ -468,11 +468,11 @@ class AmazonS3 extends \OC\Files\Storage\Common { return false; } - if ($this->copy($path1, $path2) == false) { + if ($this->copy($path1, $path2) === false) { return false; } - if($this->rmdir($path1) == false) { + if($this->rmdir($path1) === false) { $this->rmdir($path2); return false; }