summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-15 12:38:30 +0200
committerJoas Schilling <coding@schilljs.com>2017-05-15 12:38:30 +0200
commit00ebd5c1846b90f8ad249734abec1f9a7138faaf (patch)
treec05911e533bbb04b9c3e9892839bc6e97af4982b /lib
parentfd75c082386444ff5f9a61853cf493597c2bea28 (diff)
downloadnextcloud-server-00ebd5c1846b90f8ad249734abec1f9a7138faaf.tar.gz
nextcloud-server-00ebd5c1846b90f8ad249734abec1f9a7138faaf.zip
Fix variable names
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Type/Loader.php12
1 files changed, 6 insertions, 6 deletions
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') . ')'),