]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix variable names 4810/head
authorJoas Schilling <coding@schilljs.com>
Mon, 15 May 2017 10:38:30 +0000 (12:38 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 15 May 2017 10:38:30 +0000 (12:38 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Files/Type/Loader.php

index 1217e0dd4987e9d4ba8e9afb2c6603594bd7f3cd..1ae783e8f83539414deafb879b77b06d38a226e4 100644 (file)
@@ -154,19 +154,19 @@ class Loader implements IMimeTypeLoader {
         * Update filecache mimetype based on file extension
         *
         * @param string $ext file extension
-        * @param int $mimetypeId
+        * @param int $mimeTypeId
         * @return int number of changed rows
         */
-       public function updateFilecache($ext, $mimetypeId) {
-               $isFolderId = $this->getId('httpd/unix-directory');
+       public function updateFilecache($ext, $mimeTypeId) {
+               $folderMimeTypeId = $this->getId('httpd/unix-directory');
                $update = $this->dbConnection->getQueryBuilder();
                $update->update('filecache')
-                       ->set('mimetype', $update->createNamedParameter($mimetypeId))
+                       ->set('mimetype', $update->createNamedParameter($mimeTypeId))
                        ->where($update->expr()->neq(
-                               'mimetype', $update->createNamedParameter($mimetypeId)
+                               'mimetype', $update->createNamedParameter($mimeTypeId)
                        ))
                        ->andWhere($update->expr()->neq(
-                               'mimetype', $update->createNamedParameter($isFolderId)
+                               'mimetype', $update->createNamedParameter($folderMimeTypeId)
                        ))
                        ->andWhere($update->expr()->like(
                                $update->createFunction('LOWER(' . $update->getColumnName('name') . ')'),