summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/amazons3.php
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2013-07-10 16:09:22 +0200
committerChristian Berendt <berendt@b1-systems.de>2013-07-10 16:09:22 +0200
commit4fdf2793955d979e9396aa491f9cf0e19ca6e9ec (patch)
tree53a84298fffd98115e7c9388a093d6ad4f67bd74 /apps/files_external/lib/amazons3.php
parenta8b2aa34a491ca3de7a8330a9f196c9173562b8c (diff)
downloadnextcloud-server-4fdf2793955d979e9396aa491f9cf0e19ca6e9ec.tar.gz
nextcloud-server-4fdf2793955d979e9396aa491f9cf0e19ca6e9ec.zip
use === instead of ==
Diffstat (limited to 'apps/files_external/lib/amazons3.php')
-rw-r--r--apps/files_external/lib/amazons3.php14
1 files changed, 7 insertions, 7 deletions
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;
}