summaryrefslogtreecommitdiffstats
path: root/lib/preview.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-12 10:03:25 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-12 10:04:27 +0200
commit33ac4d93d63b98761cf9c09467dcad7bc5d34bf0 (patch)
tree323083a566c032a0cc0cb1da3558f3a9d05b2d5b /lib/preview.php
parent10cc0511af5e1c5a37314ff2fabe0e27f9482e27 (diff)
downloadnextcloud-server-33ac4d93d63b98761cf9c09467dcad7bc5d34bf0.tar.gz
nextcloud-server-33ac4d93d63b98761cf9c09467dcad7bc5d34bf0.zip
OC\Preview - use !== and === instead of != and ==
Diffstat (limited to 'lib/preview.php')
-rwxr-xr-xlib/preview.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/preview.php b/lib/preview.php
index 73e01a9e552..5576981225b 100755
--- a/lib/preview.php
+++ b/lib/preview.php
@@ -305,7 +305,7 @@ class Preview {
$y = $size[1];
$aspectratio = $x / $y;
- if($aspectratio != $wantedaspectratio) {
+ if($aspectratio !== $wantedaspectratio) {
continue;
}
@@ -691,7 +691,7 @@ class PreviewManager {
}
$path = \OC\Files\Filesystem::normalizePath($path, false);
- if(substr($path, 0, 1) == '/') {
+ if(substr($path, 0, 1) === '/') {
$path = substr($path, 1);
}
@@ -768,7 +768,7 @@ class PreviewManager {
public static function post_delete($args) {
$path = $args['path'];
- if(substr($path, 0, 1) == '/') {
+ if(substr($path, 0, 1) === '/') {
$path = substr($path, 1);
}
$preview = new Preview(\OC_User::getUser(), 'files/', $path, 0, 0, false, true);