Completed
Pull Request — master (#4146)
by Robin
24:09 queued 09:57
created
lib/private/DB/QueryBuilder/QuoteHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@
 block discarded – undo
73 73
 				return $string;
74 74
 			}
75 75
 
76
-			return '`' . $alias . '`.`' . $columnName . '`';
76
+			return '`'.$alias.'`.`'.$columnName.'`';
77 77
 		}
78 78
 
79
-		return '`' . $string . '`';
79
+		return '`'.$string.'`';
80 80
 	}
81 81
 }
Please login to merge, or discard this patch.
lib/private/Comments/Manager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 			!is_string($type) || empty($type)
192 192
 			|| !is_string($id) || empty($id)
193 193
 		) {
194
-			throw new \InvalidArgumentException($role . ' parameters must be string and not empty');
194
+			throw new \InvalidArgumentException($role.' parameters must be string and not empty');
195 195
 		}
196 196
 	}
197 197
 
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 	public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) {
414 414
 		$qb = $this->dbConn->getQueryBuilder();
415 415
 		$query = $qb->select('fileid', $qb->createFunction(
416
-			'COUNT(' . $qb->getColumnName('c.id') . ')')
416
+			'COUNT('.$qb->getColumnName('c.id').')')
417 417
 		)->from('comments', 'c')
418 418
 			->innerJoin('c', 'filecache', 'f', $qb->expr()->andX(
419 419
 				$qb->expr()->eq('c.object_type', $qb->createNamedParameter('files')),
@@ -432,8 +432,8 @@  discard block
 block discarded – undo
432 432
 			->groupBy('f.fileid');
433 433
 
434 434
 		$resultStatement = $query->execute();
435
-		return array_map(function ($count) {
436
-			return (int)$count;
435
+		return array_map(function($count) {
436
+			return (int) $count;
437 437
 		}, $resultStatement->fetchAll(\PDO::FETCH_KEY_PAIR));
438 438
 	}
439 439
 
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 	 * @param IComment $comment
541 541
 	 * @return bool
542 542
 	 */
543
-	protected function insert(IComment &$comment) {
543
+	protected function insert(IComment & $comment) {
544 544
 		$qb = $this->dbConn->getQueryBuilder();
545 545
 		$affectedRows = $qb
546 546
 			->insert('comments')
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
 		if (!isset($this->displayNameResolvers[$type])) {
840 840
 			throw new \OutOfBoundsException('No Displayname resolver for this type registered');
841 841
 		}
842
-		return (string)$this->displayNameResolvers[$type]($id);
842
+		return (string) $this->displayNameResolvers[$type]($id);
843 843
 	}
844 844
 
845 845
 	/**
Please login to merge, or discard this patch.