From: Joas Schilling Date: Mon, 15 May 2017 10:38:30 +0000 (+0200) Subject: Fix variable names X-Git-Tag: v12.0.0beta3~6^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=00ebd5c1846b90f8ad249734abec1f9a7138faaf;p=nextcloud-server.git Fix variable names Signed-off-by: Joas Schilling --- diff --git a/lib/private/Files/Type/Loader.php b/lib/private/Files/Type/Loader.php index 1217e0dd498..1ae783e8f83 100644 --- a/lib/private/Files/Type/Loader.php +++ b/lib/private/Files/Type/Loader.php @@ -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') . ')'),