$y = $size[1];
$aspectratio = $x / $y;
- if($aspectratio != $wantedaspectratio) {
+ if($aspectratio !== $wantedaspectratio) {
continue;
}
}
$path = \OC\Files\Filesystem::normalizePath($path, false);
- if(substr($path, 0, 1) == '/') {
+ if(substr($path, 0, 1) === '/') {
$path = substr($path, 1);
}
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);