Completed
Pull Request — master (#323)
by John
01:58
created
lib/Model/FederatedLink.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -303,6 +303,9 @@
 block discarded – undo
303 303
 	}
304 304
 
305 305
 
306
+	/**
307
+	 * @param integer $status
308
+	 */
306 309
 	public function hasToBeValidStatusUpdate($status) {
307 310
 		try {
308 311
 			$this->hasToBeValidStatusUpdateWhileLinkDown($status);
Please login to merge, or discard this patch.
lib/Service/MiscService.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
 	/**
66 66
 	 * @param $arr
67
-	 * @param $k
67
+	 * @param string $k
68 68
 	 *
69 69
 	 * @param string $default
70 70
 	 *
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
 	}
80 80
 
81 81
 
82
+	/**
83
+	 * @param string[] $arr
84
+	 */
82 85
 	public static function mustContains($data, $arr) {
83 86
 		if (!is_array($arr)) {
84 87
 			$arr = [$arr];
@@ -188,7 +191,7 @@  discard block
 block discarded – undo
188 191
 
189 192
 
190 193
 	/**
191
-	 * @param $ident
194
+	 * @param string $ident
192 195
 	 *
193 196
 	 * @return mixed|string
194 197
 	 */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
 		ob_start();
285 285
 		echo(json_encode($result));
286 286
 		$size = ob_get_length();
287
-		header('Content-Length: ' . $size);
287
+		header('Content-Length: '.$size);
288 288
 		ob_end_flush();
289 289
 		flush();
290 290
 	}
Please login to merge, or discard this patch.
lib/Controller/TestController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 
129 129
 
130 130
 	/**
131
-	 * @return DataResponse
131
+	 * @return string
132 132
 	 */
133 133
 	public function testAsyncStatus() {
134 134
 		return $this->miscService->success(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 	 * @return string
92 92
 	 */
93 93
 	private function generateTestAsyncURL($remote) {
94
-		return $this->configService->generateRemoteHost($remote) . Application::TEST_URL_ASYNC;
94
+		return $this->configService->generateRemoteHost($remote).Application::TEST_URL_ASYNC;
95 95
 	}
96 96
 
97 97
 
Please login to merge, or discard this patch.
lib/Circles/FileSharingBroadcaster.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
 
180 180
 	/**
181
-	 * @param $circleName
181
+	 * @param string $circleName
182 182
 	 * @param IShare $share
183 183
 	 * @param string $email
184 184
 	 */
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 	 * @param $subject
234 234
 	 * @param $text
235 235
 	 * @param $fileName
236
-	 * @param $link
236
+	 * @param string $link
237 237
 	 * @param string $author
238 238
 	 * @param string $circleName
239 239
 	 *
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 * @return IShare
169 169
 	 */
170 170
 	private function generateShare($data) {
171
-		$this->logger->log(0, 'Regenerate shares from payload: ' . json_encode($data));
171
+		$this->logger->log(0, 'Regenerate shares from payload: '.json_encode($data));
172 172
 
173 173
 		$share = new Share($this->rootFolder, $this->userManager);
174 174
 		$share->setSharedBy($data['sharedBy']);
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
 		$message = $this->mailer->createMessage();
216 216
 
217 217
 		$this->logger->log(
218
-			0, "Sending mail to circle '" . $circleName . "': " . $email . ' file: ' . $fileName
219
-			   . ' - link: ' . $link
218
+			0, "Sending mail to circle '".$circleName."': ".$email.' file: '.$fileName
219
+			   . ' - link: '.$link
220 220
 		);
221 221
 
222 222
 		$subject = $this->l10n->t('%s shared »%s« with you.', [$author, $fileName]);
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 		$emailTemplate->addHeader();
264 264
 		$emailTemplate->addHeading($subject, false);
265 265
 		$emailTemplate->addBodyText(
266
-			htmlspecialchars($text) . '<br>' . htmlspecialchars(
266
+			htmlspecialchars($text).'<br>'.htmlspecialchars(
267 267
 				$this->l10n->t('Click the button below to open it.')
268 268
 			), $text
269 269
 		);
Please login to merge, or discard this patch.
lib/Service/SharingFrameService.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	 *
151 151
 	 * @param SharingFrame $frame
152 152
 	 * @param Circle $circle
153
-	 * @param $broadcast
153
+	 * @param string|null $broadcast
154 154
 	 */
155 155
 	private function generateHeaders(SharingFrame $frame, Circle $circle, $broadcast) {
156 156
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	 * Please use getFrameFromCircle();
190 190
 	 *
191 191
 	 * @param string $circleUniqueId
192
-	 * @param $viewerId
192
+	 * @param string $viewerId
193 193
 	 *
194 194
 	 * @return SharingFrame[]
195 195
 	 */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * @throws MemberDoesNotExistException
127 127
 	 */
128 128
 	public function createFrame($circleUniqueId, SharingFrame $frame, $broadcast = null) {
129
-		$this->miscService->log('Create frame with payload ' . json_encode($frame->getPayload()), 0);
129
+		$this->miscService->log('Create frame with payload '.json_encode($frame->getPayload()), 0);
130 130
 
131 131
 		try {
132 132
 			$circle = $this->circlesRequest->getCircle($circleUniqueId, $this->userId);
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 		try {
281 281
 			$client->post(
282 282
 				$this->generatePayloadDeliveryURL(
283
-					$this->configService->getLocalAddress() . \OC::$WEBROOT
283
+					$this->configService->getLocalAddress().\OC::$WEBROOT
284 284
 				), [
285 285
 					'body'            => $args,
286 286
 					'timeout'         => Application::CLIENT_TIMEOUT,
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 	 * @return string
302 302
 	 */
303 303
 	private function generatePayloadDeliveryURL($remote) {
304
-		return $this->configService->generateRemoteHost($remote) . Application::REMOTE_URL_PAYLOAD;
304
+		return $this->configService->generateRemoteHost($remote).Application::REMOTE_URL_PAYLOAD;
305 305
 	}
306 306
 
307 307
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 
376 376
 		} catch (Exception $e) {
377 377
 			$this->miscService->log(
378
-				'fail to send frame to ' . $link->getAddress() . ' - ' . $e->getMessage()
378
+				'fail to send frame to '.$link->getAddress().' - '.$e->getMessage()
379 379
 			);
380 380
 		}
381 381
 	}
Please login to merge, or discard this patch.
lib/ShareByCircleProvider.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -438,8 +438,8 @@
 block discarded – undo
438 438
 
439 439
 	/**
440 440
 	 * @param string $userId
441
-	 * @param $shareType
442
-	 * @param Node $node
441
+	 * @param integer $shareType
442
+	 * @param Node|null $node
443 443
 	 * @param int $limit
444 444
 	 * @param int $offset
445 445
 	 *
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -281,19 +281,19 @@  discard block
 block discarded – undo
281 281
 	 */
282 282
 	private function createShare($share) {
283 283
 		$this->miscService->log(
284
-			'Creating share (1/4) - type: ' . $share->getShareType() . ' - token: '
285
-			. $share->getToken() . ' - type: ' . $share->getShareType() . ' - with: '
286
-			. $share->getSharedWith() . ' - permissions: ' . $share->getPermissions(), 0
284
+			'Creating share (1/4) - type: '.$share->getShareType().' - token: '
285
+			. $share->getToken().' - type: '.$share->getShareType().' - with: '
286
+			. $share->getSharedWith().' - permissions: '.$share->getPermissions(), 0
287 287
 		);
288 288
 
289 289
 		$qb = $this->getBaseInsertSql($share);
290
-		$this->miscService->log('Share creation (2/4) : ' . json_encode($qb->getSQL()), 0);
290
+		$this->miscService->log('Share creation (2/4) : '.json_encode($qb->getSQL()), 0);
291 291
 
292 292
 		$result = $qb->execute();
293
-		$this->miscService->log('Share creation result (3/4) : ' . json_encode($result), 0);
293
+		$this->miscService->log('Share creation result (3/4) : '.json_encode($result), 0);
294 294
 
295 295
 		$id = $qb->getLastInsertId();
296
-		$this->miscService->log('Share created ID (4/4) : ' . $id, 0);
296
+		$this->miscService->log('Share created ID (4/4) : '.$id, 0);
297 297
 
298 298
 		return (int)$id;
299 299
 	}
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 	public function getShareByToken($token) {
516 516
 		$qb = $this->dbConnection->getQueryBuilder();
517 517
 
518
-		$this->miscService->log("Opening share by token '#" . $token . "'", 0);
518
+		$this->miscService->log("Opening share by token '#".$token."'", 0);
519 519
 
520 520
 		$cursor = $qb->select('*')
521 521
 					 ->from('share')
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 		$data = $cursor->fetch();
536 536
 
537 537
 		if ($data === false) {
538
-			$this->miscService->log("Share '#" . $token . "' not found.", 0);
538
+			$this->miscService->log("Share '#".$token."' not found.", 0);
539 539
 			throw new ShareNotFound('Share not found', $this->l10n->t('Could not find share'));
540 540
 		}
541 541
 
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 			$share = $this->createShareObject($data);
544 544
 		} catch (InvalidShare $e) {
545 545
 			$this->miscService->log(
546
-				"Share Object '#" . $token . "' not created. " . json_encode($data), 0
546
+				"Share Object '#".$token."' not created. ".json_encode($data), 0
547 547
 			);
548 548
 			throw new ShareNotFound('Share not found', $this->l10n->t('Could not find share'));
549 549
 		}
Please login to merge, or discard this patch.
lib/Activity/ProviderParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 				continue;
139 139
 			}
140 140
 
141
-			$replace['{' . $k . '}'] = $data[$k]['_parsed'];
141
+			$replace['{'.$k.'}'] = $data[$k]['_parsed'];
142 142
 		}
143 143
 
144 144
 		$line = strtr($line, $replace);
@@ -300,9 +300,9 @@  discard block
 block discarded – undo
300 300
 	 */
301 301
 	protected function generateExternalMemberParameter(Member $member) {
302 302
 		return [
303
-			'type'    => 'member_' . $member->getType(),
303
+			'type'    => 'member_'.$member->getType(),
304 304
 			'id'      => $member->getUserId(),
305
-			'name'    => $member->getDisplayName() . ' (' . $member->getTypeString() . ')',
305
+			'name'    => $member->getDisplayName().' ('.$member->getTypeString().')',
306 306
 			'_parsed' => $member->getDisplayName()
307 307
 		];
308 308
 	}
@@ -338,8 +338,8 @@  discard block
 block discarded – undo
338 338
 		return [
339 339
 			'type'    => 'circle',
340 340
 			'id'      => $link->getUniqueId(),
341
-			'name'    => $link->getToken() . '@' . $link->getAddress(),
342
-			'_parsed' => $link->getToken() . '@' . $link->getAddress()
341
+			'name'    => $link->getToken().'@'.$link->getAddress(),
342
+			'_parsed' => $link->getToken().'@'.$link->getAddress()
343 343
 		];
344 344
 	}
345 345
 
Please login to merge, or discard this patch.
lib/Db/CirclesRequestBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 				$expr->eq(
182 182
 					$qb->createNamedParameter($circleUniqueId),
183 183
 					$qb->createFunction(
184
-						'SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')'
184
+						'SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')'
185 185
 					)
186 186
 				)
187 187
 			);
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 		}
253 253
 
254 254
 		$expr = $qb->expr();
255
-		$pf = '`' . $this->default_select_alias . '`.';
255
+		$pf = '`'.$this->default_select_alias.'`.';
256 256
 
257 257
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
258 258
 		$qb->selectAlias('u.user_id', 'viewer_userid')
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 				   $expr->eq(
265 265
 					   'u.circle_id',
266 266
 					   $qb->createFunction(
267
-						   'SUBSTR(' . $pf . '`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH
267
+						   'SUBSTR('.$pf.'`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH
268 268
 						   . ')'
269 269
 					   )
270 270
 				   ),
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 		}
288 288
 
289 289
 		$expr = $qb->expr();
290
-		$pf = '`' . $this->default_select_alias . '`.';
290
+		$pf = '`'.$this->default_select_alias.'`.';
291 291
 
292 292
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
293 293
 		$qb->selectAlias('o.user_id', 'owner_userid')
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 			   $expr->andX(
299 299
 				   $expr->eq(
300 300
 					   $qb->createFunction(
301
-						   'SUBSTR(' . $pf . '`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH
301
+						   'SUBSTR('.$pf.'`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH
302 302
 						   . ')'
303 303
 					   )
304 304
 					   , 'o.circle_id'
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 			   $qb->expr()
360 360
 				  ->eq(
361 361
 					  $qb->createFunction(
362
-						  'SUBSTR(`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')'
362
+						  'SUBSTR(`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')'
363 363
 					  ),
364 364
 					  $qb->createNamedParameter($circleUniqueId)
365 365
 				  )
Please login to merge, or discard this patch.
lib/Db/CoreRequestBuilder.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -140,12 +140,12 @@  discard block
 block discarded – undo
140 140
 	 */
141 141
 	protected function limitToShortenUniqueId(IQueryBuilder &$qb, $circleUniqueId, $length) {
142 142
 		$expr = $qb->expr();
143
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? '`' . $this->default_select_alias . '`.' : '';
143
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? '`'.$this->default_select_alias.'`.' : '';
144 144
 
145 145
 		$qb->andWhere(
146 146
 			$expr->eq(
147 147
 				$qb->createNamedParameter($circleUniqueId),
148
-				$qb->createFunction('SUBSTR(' . $pf . '`unique_id`' . ', 1, ' . $length . ')')
148
+				$qb->createFunction('SUBSTR('.$pf.'`unique_id`'.', 1, '.$length.')')
149 149
 			)
150 150
 		);
151 151
 
@@ -198,8 +198,8 @@  discard block
 block discarded – undo
198 198
 		$expr = $qb->expr();
199 199
 
200 200
 		if ($pf === '') {
201
-			$p = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : '';
202
-			$qb->andWhere($expr->gte($p . 'level', $qb->createNamedParameter($level)));
201
+			$p = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : '';
202
+			$qb->andWhere($expr->gte($p.'level', $qb->createNamedParameter($level)));
203 203
 
204 204
 			return;
205 205
 		}
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 			if ($p === 'g' && !$this->leftJoinedNCGroupAndUser) {
228 228
 				continue;
229 229
 			}
230
-			$orX->add($expr->gte($p . '.level', $qb->createNamedParameter($level)));
230
+			$orX->add($expr->gte($p.'.level', $qb->createNamedParameter($level)));
231 231
 		}
232 232
 
233 233
 		return $orX;
@@ -242,12 +242,12 @@  discard block
 block discarded – undo
242 242
 	protected function limitToMembersAndAlmost(IQueryBuilder &$qb) {
243 243
 		$expr = $qb->expr();
244 244
 
245
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : '';
245
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : '';
246 246
 
247 247
 		$orX = $expr->orX();
248
-		$orX->add($expr->eq($pf . 'status', $qb->createNamedParameter(Member::STATUS_MEMBER)));
249
-		$orX->add($expr->eq($pf . 'status', $qb->createNamedParameter(Member::STATUS_INVITED)));
250
-		$orX->add($expr->eq($pf . 'status', $qb->createNamedParameter(Member::STATUS_REQUEST)));
248
+		$orX->add($expr->eq($pf.'status', $qb->createNamedParameter(Member::STATUS_MEMBER)));
249
+		$orX->add($expr->eq($pf.'status', $qb->createNamedParameter(Member::STATUS_INVITED)));
250
+		$orX->add($expr->eq($pf.'status', $qb->createNamedParameter(Member::STATUS_REQUEST)));
251 251
 
252 252
 		$qb->andWhere($orX);
253 253
 	}
@@ -260,8 +260,8 @@  discard block
 block discarded – undo
260 260
 	 */
261 261
 	private function limitToDBField(IQueryBuilder &$qb, $field, $value) {
262 262
 		$expr = $qb->expr();
263
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : '';
264
-		$qb->andWhere($expr->eq($pf . $field, $qb->createNamedParameter($value)));
263
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : '';
264
+		$qb->andWhere($expr->eq($pf.$field, $qb->createNamedParameter($value)));
265 265
 	}
266 266
 
267 267
 
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
 	 */
273 273
 	private function limitToDBFieldOrGreater(IQueryBuilder &$qb, $field, $value) {
274 274
 		$expr = $qb->expr();
275
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : '';
276
-		$qb->andWhere($expr->gte($pf . $field, $qb->createNamedParameter($value)));
275
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : '';
276
+		$qb->andWhere($expr->gte($pf.$field, $qb->createNamedParameter($value)));
277 277
 	}
278 278
 
279 279
 
@@ -288,9 +288,9 @@  discard block
 block discarded – undo
288 288
 	protected function limitToNCGroupUser(IQueryBuilder $qb, $userId = '') {
289 289
 		$expr = $qb->expr();
290 290
 
291
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : '';
291
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : '';
292 292
 
293
-		$and = $expr->andX($expr->eq($pf . 'group_id', 'ncgu.gid'));
293
+		$and = $expr->andX($expr->eq($pf.'group_id', 'ncgu.gid'));
294 294
 		if ($userId !== '') {
295 295
 			$and->add($expr->eq('ncgu.uid', $qb->createNamedParameter($userId)));
296 296
 		} else {
@@ -311,14 +311,14 @@  discard block
 block discarded – undo
311 311
 	 */
312 312
 	protected function rightJoinCircles(IQueryBuilder &$qb) {
313 313
 		$expr = $qb->expr();
314
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : '';
314
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : '';
315 315
 
316 316
 		$qb->from(self::TABLE_CIRCLES, 'c')
317 317
 		   ->andWhere(
318 318
 			   $expr->eq(
319
-				   $pf . 'circle_id',
319
+				   $pf.'circle_id',
320 320
 				   $qb->createFunction(
321
-					   'SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')'
321
+					   'SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')'
322 322
 				   )
323 323
 			   )
324 324
 		   );
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 		}
339 339
 
340 340
 		$expr = $qb->expr();
341
-		$pf = $this->default_select_alias . '.';
341
+		$pf = $this->default_select_alias.'.';
342 342
 
343 343
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
344 344
 		$qb->selectAlias('lc.type', 'circle_type')
@@ -346,9 +346,9 @@  discard block
 block discarded – undo
346 346
 		   ->leftJoin(
347 347
 			   $this->default_select_alias, CoreRequestBuilder::TABLE_CIRCLES, 'lc',
348 348
 			   $expr->eq(
349
-				   $pf . 'circle_id',
349
+				   $pf.'circle_id',
350 350
 				   $qb->createFunction(
351
-					   'SUBSTR(`lc`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')'
351
+					   'SUBSTR(`lc`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')'
352 352
 				   )
353 353
 			   )
354 354
 		   );
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 				$expr->eq('ncgu.gid', 'g.group_id'),
382 382
 				$expr->eq(
383 383
 					'g.circle_id', $qb->createFunction(
384
-					'SUBSTR(' . $field . ', 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')'
384
+					'SUBSTR('.$field.', 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')'
385 385
 				)
386 386
 				)
387 387
 			)
Please login to merge, or discard this patch.