diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index b07dc498cdf8e89f08be50abb7b340ea718d77f2..518d3ec400c9fad79a1a1e9c51d82752451d065e 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -54,11 +54,11 @@ abstract class Common implements \OC\Files\Storage\Storage {
 	}
 
 	public function is_dir($path) {
-		return $this->filetype($path) == 'dir';
+		return $this->filetype($path) === 'dir';
 	}
 
 	public function is_file($path) {
-		return $this->filetype($path) == 'file';
+		return $this->filetype($path) === 'file';
 	}
 
 	public function filesize($path) {