Passed
Push — master ( 078203...c81798 )
by Joas
14:40 queued 14s
created
lib/private/Collaboration/Resources/Manager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 			->setFirstResult($start);
149 149
 
150 150
 		if ($filter !== '') {
151
-			$query->andWhere($query->expr()->iLike('c.name', $query->createNamedParameter('%' . $this->connection->escapeLikeParameter($filter) . '%')));
151
+			$query->andWhere($query->expr()->iLike('c.name', $query->createNamedParameter('%'.$this->connection->escapeLikeParameter($filter).'%')));
152 152
 		}
153 153
 
154 154
 		$result = $query->execute();
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 		while ($row = $result->fetch()) {
159 159
 			$foundResults++;
160 160
 			$access = $row['access'] === null ? null : (bool) $row['access'];
161
-			$collection = new Collection($this, $this->connection, (int)$row['id'], (string)$row['name'], $user, $access);
161
+			$collection = new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, $access);
162 162
 			if ($collection->canAccess($user)) {
163 163
 				$collections[] = $collection;
164 164
 			}
Please login to merge, or discard this patch.