Completed
Push — master ( 6ab97c...6a4e84 )
by Maxence
02:33
created
lib/Migration/ImportOwncloudCustomGroups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
 				continue;
149 149
 			}
150 150
 
151
-			$level = (int) $row['role'] === 1 ? Member::LEVEL_OWNER : Member::LEVEL_MEMBER;
151
+			$level = (int)$row['role'] === 1 ? Member::LEVEL_OWNER : Member::LEVEL_MEMBER;
152 152
 
153 153
 			if ($level === Member::LEVEL_OWNER) {
154 154
 				if (isset($this->circleHasAdmin[$this->circlesById[$row['group_id']]])) {
Please login to merge, or discard this patch.
lib/Service/CirclesService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@
 block discarded – undo
273 273
 
274 274
 
275 275
 	/**
276
-	 * @param $circleName
276
+	 * @param string $circleName
277 277
 	 *
278 278
 	 * @return Circle|null
279 279
 	 */
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	 *
196 196
 	 * @param Circle $circle
197 197
 	 */
198
-	private function detailsCircleMembers(Circle &$circle) {
198
+	private function detailsCircleMembers(Circle & $circle) {
199 199
 		$members =
200 200
 			$this->membersRequest->getMembers($circle->getUniqueId(), $circle->getHigherViewer());
201 201
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 *
209 209
 	 * @param Circle $circle
210 210
 	 */
211
-	private function detailsCircleLinkedGroups(Circle &$circle) {
211
+	private function detailsCircleLinkedGroups(Circle & $circle) {
212 212
 		$groups = [];
213 213
 		if ($this->configService->isLinkedGroupsAllowed()) {
214 214
 			$groups =
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 	 *
227 227
 	 * @param Circle $circle
228 228
 	 */
229
-	private function detailsCircleFederatedCircles(Circle &$circle) {
229
+	private function detailsCircleFederatedCircles(Circle & $circle) {
230 230
 		$links = [];
231 231
 
232 232
 		try {
@@ -407,23 +407,23 @@  discard block
 block discarded – undo
407 407
 		switch ($type) {
408 408
 			case Circle::CIRCLES_PERSONAL:
409 409
 				return $urlGen->getAbsoluteURL(
410
-					$urlGen->imagePath(Application::APP_NAME, 'personal' . $ext)
410
+					$urlGen->imagePath(Application::APP_NAME, 'personal'.$ext)
411 411
 				);
412 412
 			case Circle::CIRCLES_CLOSED:
413 413
 				return $urlGen->getAbsoluteURL(
414
-					$urlGen->imagePath(Application::APP_NAME, 'closed' . $ext)
414
+					$urlGen->imagePath(Application::APP_NAME, 'closed'.$ext)
415 415
 				);
416 416
 			case Circle::CIRCLES_SECRET:
417 417
 				return $urlGen->getAbsoluteURL(
418
-					$urlGen->imagePath(Application::APP_NAME, 'secret' . $ext)
418
+					$urlGen->imagePath(Application::APP_NAME, 'secret'.$ext)
419 419
 				);
420 420
 			case Circle::CIRCLES_PUBLIC:
421 421
 				return $urlGen->getAbsoluteURL(
422
-					$urlGen->imagePath(Application::APP_NAME, 'public' . $ext)
422
+					$urlGen->imagePath(Application::APP_NAME, 'public'.$ext)
423 423
 				);
424 424
 		}
425 425
 
426
-		return $urlGen->getAbsoluteURL($urlGen->imagePath(Application::APP_NAME, 'black_circle' . $ext));
426
+		return $urlGen->getAbsoluteURL($urlGen->imagePath(Application::APP_NAME, 'black_circle'.$ext));
427 427
 	}
428 428
 
429 429
 }
430 430
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Migration/GenerateUniqueIdOnCreatedCircle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 
94 94
 			$update = $this->connection->getQueryBuilder();
95 95
 			$update->update('circles_circles')
96
-				   ->set('unique_id', $update->createNamedParameter('d' . $uniqueId))
96
+				   ->set('unique_id', $update->createNamedParameter('d'.$uniqueId))
97 97
 				   ->where(
98 98
 					   $update->expr()
99 99
 							  ->eq('id', $update->createNamedParameter($itemId))
Please login to merge, or discard this patch.
lib/Service/EventsService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
 	 * generateEvent()
283 283
 	 * Create an Activity Event with the basic settings for the app.
284 284
 	 *
285
-	 * @param $type
285
+	 * @param string $type
286 286
 	 *
287 287
 	 * @return \OCP\Activity\IEvent
288 288
 	 */
Please login to merge, or discard this patch.
lib/Service/FederatedService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
 	 *
228 228
 	 * @param Circle $circle
229 229
 	 * @param FederatedLink $link
230
-	 * @param $status
230
+	 * @param integer $status
231 231
 	 *
232 232
 	 * @return bool
233 233
 	 */
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 	 * @return string
313 313
 	 */
314 314
 	private function generateLinkRemoteURL($remote) {
315
-		return $this->generateRemoteHost($remote) . self::REMOTE_URL_LINK;
315
+		return $this->generateRemoteHost($remote).self::REMOTE_URL_LINK;
316 316
 	}
317 317
 
318 318
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	 * @return string
323 323
 	 */
324 324
 	private function generatePayloadDeliveryURL($remote) {
325
-		return $this->generateRemoteHost($remote) . self::REMOTE_URL_PAYLOAD;
325
+		return $this->generateRemoteHost($remote).self::REMOTE_URL_PAYLOAD;
326 326
 	}
327 327
 
328 328
 
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 		if ((!$this->configService->isNonSSLLinksAllowed() || strpos($remote, 'http://') !== 0)
336 336
 			&& strpos($remote, 'https://') !== 0
337 337
 		) {
338
-			$remote = 'https://' . $remote;
338
+			$remote = 'https://'.$remote;
339 339
 		}
340 340
 
341 341
 		return rtrim($remote, '/');
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 	 * @return boolean
353 353
 	 * @throws Exception
354 354
 	 */
355
-	private function requestLink(Circle $circle, FederatedLink &$link) {
355
+	private function requestLink(Circle $circle, FederatedLink & $link) {
356 356
 		$args = [
357 357
 			'apiVersion' => Circles::version(),
358 358
 			'token'      => $link->getToken(true),
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
 	 * @return bool
610 610
 	 * @throws Exception
611 611
 	 */
612
-	public function updateLinkRemote(FederatedLink &$link) {
612
+	public function updateLinkRemote(FederatedLink & $link) {
613 613
 		$args = [
614 614
 			'apiVersion' => Circles::version(),
615 615
 			'token'      => $link->getToken(true),
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 	 *
648 648
 	 * @throws Exception
649 649
 	 */
650
-	public function initiateLink(Circle $circle, FederatedLink &$link) {
650
+	public function initiateLink(Circle $circle, FederatedLink & $link) {
651 651
 
652 652
 		try {
653 653
 			$this->checkLinkRequestValidity($circle, $link);
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
 	 * @return bool
698 698
 	 * @throws Exception
699 699
 	 */
700
-	public function receiveFrame($token, $uniqueId, SharingFrame &$frame) {
700
+	public function receiveFrame($token, $uniqueId, SharingFrame & $frame) {
701 701
 		try {
702 702
 			$link = $this->circlesRequest->getLinkFromToken((string)$token, (string)$uniqueId);
703 703
 		} catch (Exception $e) {
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
 
822 822
 			} catch (Exception $e) {
823 823
 				$this->miscService->log(
824
-					'Issue while sending sharing frame to ' . $link->getAddress() . ' - '
824
+					'Issue while sending sharing frame to '.$link->getAddress().' - '
825 825
 					. $e->getMessage()
826 826
 				);
827 827
 			}
Please login to merge, or discard this patch.
lib/Db/CirclesRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
 	 *
186 186
 	 * @throws CircleAlreadyExistsException
187 187
 	 */
188
-	public function createCircle(Circle &$circle, $userId) {
188
+	public function createCircle(Circle & $circle, $userId) {
189 189
 
190 190
 		if (!$this->isCircleUnique($circle, $userId)) {
191 191
 			throw new CircleAlreadyExistsException(
Please login to merge, or discard this patch.
lib/Service/GroupsService.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
 	 *
191 191
 	 * @throws \Exception
192 192
 	 */
193
-	private function editGroupLevel(Circle $circle, Member &$group, $level) {
193
+	private function editGroupLevel(Circle $circle, Member & $group, $level) {
194 194
 		try {
195 195
 			$isMod = $circle->getHigherViewer();
196 196
 			$isMod->hasToBeAdmin();
Please login to merge, or discard this patch.
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 * @param string $circleUniqueId
87 87
 	 * @param string $groupId
88 88
 	 *
89
-	 * @return array
89
+	 * @return Member[]
90 90
 	 * @throws \Exception
91 91
 	 */
92 92
 	public function linkGroup($circleUniqueId, $groupId) {
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
 	/**
113 113
 	 * Check if a fresh member can be generated (by linkGroup)
114 114
 	 *
115
-	 * @param $circleId
116
-	 * @param $groupId
115
+	 * @param string $circleId
116
+	 * @param string $groupId
117 117
 	 *
118 118
 	 * @return null|Member
119 119
 	 * @throws MemberAlreadyExistsException
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	 * @param string $groupId
149 149
 	 * @param int $level
150 150
 	 *
151
-	 * @return array
151
+	 * @return Member[]
152 152
 	 * @throws \Exception
153 153
 	 */
154 154
 	public function levelGroup($circleUniqueId, $groupId, $level) {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	/**
187 187
 	 * @param Circle $circle
188 188
 	 * @param Member $group
189
-	 * @param $level
189
+	 * @param integer $level
190 190
 	 *
191 191
 	 * @throws \Exception
192 192
 	 */
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 	 * @param string $circleUniqueId
214 214
 	 * @param string $groupId
215 215
 	 *
216
-	 * @return array
216
+	 * @return Member[]
217 217
 	 * @throws \Exception
218 218
 	 */
219 219
 	public function unlinkGroup($circleUniqueId, $groupId) {
Please login to merge, or discard this patch.
lib/ShareByCircleProvider.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -432,6 +432,13 @@
 block discarded – undo
432 432
 	}
433 433
 
434 434
 
435
+	/**
436
+	 * @param string $userId
437
+	 * @param integer $shareType
438
+	 * @param Node|null $node
439
+	 * @param integer $limit
440
+	 * @param integer $offset
441
+	 */
435 442
 	private function getSharedWithCircleMembers($userId, $shareType, $node, $limit, $offset) {
436 443
 
437 444
 		$qb = $this->getCompleteSelectSql();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
 	 * @param IShare $share
570 570
 	 * @param $data
571 571
 	 */
572
-	private function assignShareObjectPropertiesFromParent(IShare &$share, $data) {
572
+	private function assignShareObjectPropertiesFromParent(IShare & $share, $data) {
573 573
 		if (isset($data['f_permissions'])) {
574 574
 			$entryData = $data;
575 575
 			$entryData['permissions'] = $entryData['f_permissions'];
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
 	 * @param IShare $share
589 589
 	 * @param $data
590 590
 	 */
591
-	private function assignShareObjectSharesProperties(IShare &$share, $data) {
591
+	private function assignShareObjectSharesProperties(IShare & $share, $data) {
592 592
 		$shareTime = new \DateTime();
593 593
 		$shareTime->setTimestamp((int)$data['stime']);
594 594
 
Please login to merge, or discard this patch.
lib/Db/CircleProviderRequestBuilder.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 	 * limit the request to the children of a share
108 108
 	 *
109 109
 	 * @param IQueryBuilder $qb
110
-	 * @param $userId
110
+	 * @param string $userId
111 111
 	 * @param int $parentId
112 112
 	 */
113 113
 	protected function limitToShareChildren(IQueryBuilder &$qb, $userId, $parentId = -1) {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
 			'c', CoreRequestBuilder::TABLE_MEMBERS, 'mo', $expr->andX(
254 254
 			$expr->eq(
255 255
 				'mo.circle_id',
256
-        $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')')
256
+		$qb->createFunction('SUBSTR(`c`.`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')')
257 257
 			), $expr->eq('mo.user_type', $qb->createNamedParameter(Member::TYPE_USER)),
258 258
 			$expr->eq('mo.level', $qb->createNamedParameter(Member::LEVEL_OWNER))
259 259
 		)
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
 	 * @param IQueryBuilder $qb
70 70
 	 * @param int $circleId
71 71
 	 */
72
-	protected function limitToCircle(IQueryBuilder &$qb, $circleId) {
72
+	protected function limitToCircle(IQueryBuilder & $qb, $circleId) {
73 73
 		$expr = $qb->expr();
74 74
 		$pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : '';
75 75
 
76
-		$qb->andWhere($expr->eq($pf . 'share_with', $qb->createNamedParameter($circleId)));
76
+		$qb->andWhere($expr->eq($pf.'share_with', $qb->createNamedParameter($circleId)));
77 77
 	}
78 78
 
79 79
 
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
 	 * @param IQueryBuilder $qb
84 84
 	 * @param $shareId
85 85
 	 */
86
-	protected function limitToShare(IQueryBuilder &$qb, $shareId) {
86
+	protected function limitToShare(IQueryBuilder & $qb, $shareId) {
87 87
 		$expr = $qb->expr();
88 88
 		$pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : '';
89 89
 
90
-		$qb->andWhere($expr->eq($pf . 'id', $qb->createNamedParameter($shareId)));
90
+		$qb->andWhere($expr->eq($pf.'id', $qb->createNamedParameter($shareId)));
91 91
 	}
92 92
 
93 93
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 *
97 97
 	 * @param IQueryBuilder $qb
98 98
 	 */
99
-	protected function limitToShareParent(IQueryBuilder &$qb) {
99
+	protected function limitToShareParent(IQueryBuilder & $qb) {
100 100
 		$expr = $qb->expr();
101 101
 
102 102
 		$qb->andWhere($expr->isNull('parent'));
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 * @param $userId
111 111
 	 * @param int $parentId
112 112
 	 */
113
-	protected function limitToShareChildren(IQueryBuilder &$qb, $userId, $parentId = -1) {
113
+	protected function limitToShareChildren(IQueryBuilder & $qb, $userId, $parentId = -1) {
114 114
 		$expr = $qb->expr();
115 115
 		$qb->andWhere($expr->eq('share_with', $qb->createNamedParameter($userId)));
116 116
 
@@ -129,15 +129,15 @@  discard block
 block discarded – undo
129 129
 	 * @param IQueryBuilder $qb
130 130
 	 * @param $circleId
131 131
 	 */
132
-	protected function limitToShareAndChildren(IQueryBuilder &$qb, $circleId) {
132
+	protected function limitToShareAndChildren(IQueryBuilder & $qb, $circleId) {
133 133
 		$expr = $qb->expr();
134 134
 		$pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : '';
135 135
 
136 136
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
137 137
 		$qb->andWhere(
138 138
 			$expr->orX(
139
-				$expr->eq($pf . 'parent', $qb->createNamedParameter($circleId)),
140
-				$expr->eq($pf . 'id', $qb->createNamedParameter($circleId))
139
+				$expr->eq($pf.'parent', $qb->createNamedParameter($circleId)),
140
+				$expr->eq($pf.'id', $qb->createNamedParameter($circleId))
141 141
 			)
142 142
 		);
143 143
 	}
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 *
152 152
 	 * @internal param $fileId
153 153
 	 */
154
-	protected function limitToFiles(IQueryBuilder &$qb, $files) {
154
+	protected function limitToFiles(IQueryBuilder & $qb, $files) {
155 155
 
156 156
 		if (!is_array($files)) {
157 157
 			$files = array($files);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 		$pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : '';
162 162
 		$qb->andWhere(
163 163
 			$expr->in(
164
-				$pf . 'file_source',
164
+				$pf.'file_source',
165 165
 				$qb->createNamedParameter($files, IQueryBuilder::PARAM_INT_ARRAY)
166 166
 			)
167 167
 		);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 * @param int $limit
174 174
 	 * @param int $offset
175 175
 	 */
176
-	protected function limitToPage(IQueryBuilder &$qb, $limit = -1, $offset = 0) {
176
+	protected function limitToPage(IQueryBuilder & $qb, $limit = -1, $offset = 0) {
177 177
 		if ($limit !== -1) {
178 178
 			$qb->setMaxResults($limit);
179 179
 		}
@@ -189,18 +189,18 @@  discard block
 block discarded – undo
189 189
 	 * @param string $userId
190 190
 	 * @param bool $reShares
191 191
 	 */
192
-	protected function limitToShareOwner(IQueryBuilder &$qb, $userId, $reShares = false) {
192
+	protected function limitToShareOwner(IQueryBuilder & $qb, $userId, $reShares = false) {
193 193
 		$expr = $qb->expr();
194 194
 		$pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : '';
195 195
 
196 196
 		if ($reShares === false) {
197
-			$qb->andWhere($expr->eq($pf . 'uid_initiator', $qb->createNamedParameter($userId)));
197
+			$qb->andWhere($expr->eq($pf.'uid_initiator', $qb->createNamedParameter($userId)));
198 198
 		} else {
199 199
 			/** @noinspection PhpMethodParametersCountMismatchInspection */
200 200
 			$qb->andWhere(
201 201
 				$expr->orX(
202
-					$expr->eq($pf . 'uid_owner', $qb->createNamedParameter($userId)),
203
-					$expr->eq($pf . 'uid_initiator', $qb->createNamedParameter($userId))
202
+					$expr->eq($pf.'uid_owner', $qb->createNamedParameter($userId)),
203
+					$expr->eq($pf.'uid_initiator', $qb->createNamedParameter($userId))
204 204
 				)
205 205
 			);
206 206
 		}
@@ -215,14 +215,14 @@  discard block
 block discarded – undo
215 215
 	 * @param IQueryBuilder $qb
216 216
 	 * @param int $shareId
217 217
 	 */
218
-	protected function linkCircleField(IQueryBuilder &$qb, $shareId = -1) {
218
+	protected function linkCircleField(IQueryBuilder & $qb, $shareId = -1) {
219 219
 		$expr = $qb->expr();
220 220
 
221 221
 		$qb->from(CoreRequestBuilder::TABLE_CIRCLES, 'c');
222 222
 
223 223
 		$tmpOrX = $expr->eq(
224 224
 			's.share_with',
225
-			$qb->createFunction('SUBSTR(`c`.`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')')
225
+			$qb->createFunction('SUBSTR(`c`.`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH.')')
226 226
 		);
227 227
 
228 228
 		if ($shareId === -1) {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 	/**
245 245
 	 * @param IQueryBuilder $qb
246 246
 	 */
247
-	protected function linkToCircleOwner(IQueryBuilder &$qb) {
247
+	protected function linkToCircleOwner(IQueryBuilder & $qb) {
248 248
 		$expr = $qb->expr();
249 249
 
250 250
 		$qb->selectAlias('mo.user_id', 'circle_owner');
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 			'c', CoreRequestBuilder::TABLE_MEMBERS, 'mo', $expr->andX(
254 254
 			$expr->eq(
255 255
 				'mo.circle_id',
256
-        $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')')
256
+        $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH.')')
257 257
 			), $expr->eq('mo.user_type', $qb->createNamedParameter(Member::TYPE_USER)),
258 258
 			$expr->eq('mo.level', $qb->createNamedParameter(Member::LEVEL_OWNER))
259 259
 		)
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 	 * @param string $userId
269 269
 	 * @param bool $groupMemberAllowed
270 270
 	 */
271
-	protected function linkToMember(IQueryBuilder &$qb, $userId, $groupMemberAllowed) {
271
+	protected function linkToMember(IQueryBuilder & $qb, $userId, $groupMemberAllowed) {
272 272
 		$expr = $qb->expr();
273 273
 
274 274
 		$qb->from(CoreRequestBuilder::TABLE_MEMBERS, 'm');
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 	 *
293 293
 	 * @return \OCP\DB\QueryBuilder\ICompositeExpression
294 294
 	 */
295
-	private function exprLinkToMemberAsCircleMember(IQueryBuilder &$qb, $userId) {
295
+	private function exprLinkToMemberAsCircleMember(IQueryBuilder & $qb, $userId) {
296 296
 
297 297
 		$expr = $qb->expr();
298 298
 		$andX = $expr->andX();
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 			$expr->eq(
304 304
 				'm.circle_id',
305 305
 				$qb->createFunction(
306
-					'SUBSTR(`c`.`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')'
306
+					'SUBSTR(`c`.`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH.')'
307 307
 				)
308 308
 			)
309 309
 		);
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 	 *
322 322
 	 * @return \OCP\DB\QueryBuilder\ICompositeExpression
323 323
 	 */
324
-	private function exprLinkToMemberAsGroupMember(IQueryBuilder &$qb, $userId) {
324
+	private function exprLinkToMemberAsGroupMember(IQueryBuilder & $qb, $userId) {
325 325
 		$expr = $qb->expr();
326 326
 
327 327
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 			$expr->andX(
331 331
 				$expr->eq(
332 332
 					'g.circle_id',
333
-					$qb->createFunction('SUBSTR(`c`.`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')')
333
+					$qb->createFunction('SUBSTR(`c`.`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH.')')
334 334
 				),
335 335
 				$expr->gte('g.level', $qb->createNamedParameter(Member::LEVEL_MEMBER))
336 336
 			)
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 	 *
351 351
 	 * @param IQueryBuilder $qb
352 352
 	 */
353
-	protected function leftJoinShareInitiator(IQueryBuilder &$qb) {
353
+	protected function leftJoinShareInitiator(IQueryBuilder & $qb) {
354 354
 		$expr = $qb->expr();
355 355
 
356 356
 		$qb->selectAlias('src_m.level', 'initiator_circle_level');
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 	 *
387 387
 	 * @param IQueryBuilder $qb
388 388
 	 */
389
-	protected function joinCircleMembers(IQueryBuilder &$qb) {
389
+	protected function joinCircleMembers(IQueryBuilder & $qb) {
390 390
 		$expr = $qb->expr();
391 391
 
392 392
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
 	 * @param IQueryBuilder $qb
408 408
 	 * @param string $userId
409 409
 	 */
410
-	protected function linkToFileCache(IQueryBuilder &$qb, $userId) {
410
+	protected function linkToFileCache(IQueryBuilder & $qb, $userId) {
411 411
 		$expr = $qb->expr();
412 412
 
413 413
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 	/**
524 524
 	 * @param IQueryBuilder $qb
525 525
 	 */
526
-	private function joinShare(IQueryBuilder &$qb) {
526
+	private function joinShare(IQueryBuilder & $qb) {
527 527
 		$expr = $qb->expr();
528 528
 
529 529
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
Please login to merge, or discard this patch.