Completed
Pull Request — master (#551)
by Maxence
84:52
created
lib/Model/Circle.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -78,22 +78,22 @@  discard block
 block discarded – undo
78 78
 
79 79
 
80 80
 	// specific value
81
-	const CFG_CIRCLE = 0;        // only for code readability. Circle is locked by default.
82
-	const CFG_SINGLE = 1;        // Circle with only one single member.
83
-	const CFG_PERSONAL = 2;      // Personal circle, only the owner can see it.
81
+	const CFG_CIRCLE = 0; // only for code readability. Circle is locked by default.
82
+	const CFG_SINGLE = 1; // Circle with only one single member.
83
+	const CFG_PERSONAL = 2; // Personal circle, only the owner can see it.
84 84
 
85 85
 	// bitwise
86
-	const CFG_VISIBLE = 8;        // Visible to everyone, if not visible, people have to know its name to be able to find it
87
-	const CFG_OPEN = 16;          // Circle is open, people can join
88
-	const CFG_INVITE = 32;        // Adding a member generate an invitation that needs to be accepted
89
-	const CFG_REQUEST = 64;       // Request to join Circles needs to be confirmed by a moderator
90
-	const CFG_FRIEND = 128;       // Members of the circle can invite their friends
91
-	const CFG_PROTECTED = 256;    // Password protected to join/request
92
-	const CFG_NO_OWNER = 512;     // no owner, only members
93
-	const CFG_HIDDEN = 1024;      // hidden from listing, but available as a share entity
94
-	const CFG_BACKEND = 2048;     // Fully hidden, only backend Circles
95
-	const CFG_ROOT = 4096;        // Circle cannot be inside another Circle
96
-	const CFG_FEDERATED = 8192;   // Federated
86
+	const CFG_VISIBLE = 8; // Visible to everyone, if not visible, people have to know its name to be able to find it
87
+	const CFG_OPEN = 16; // Circle is open, people can join
88
+	const CFG_INVITE = 32; // Adding a member generate an invitation that needs to be accepted
89
+	const CFG_REQUEST = 64; // Request to join Circles needs to be confirmed by a moderator
90
+	const CFG_FRIEND = 128; // Members of the circle can invite their friends
91
+	const CFG_PROTECTED = 256; // Password protected to join/request
92
+	const CFG_NO_OWNER = 512; // no owner, only members
93
+	const CFG_HIDDEN = 1024; // hidden from listing, but available as a share entity
94
+	const CFG_BACKEND = 2048; // Fully hidden, only backend Circles
95
+	const CFG_ROOT = 4096; // Circle cannot be inside another Circle
96
+	const CFG_FEDERATED = 8192; // Federated
97 97
 
98 98
 	static $DEF = [
99 99
 		1 => 'S|Single',
@@ -583,21 +583,21 @@  discard block
 block discarded – undo
583 583
 	 * @throws CircleNotFoundException
584 584
 	 */
585 585
 	public function importFromDatabase(array $data, string $prefix = ''): INC21QueryRow {
586
-		if (!array_key_exists($prefix . 'unique_id', $data)) {
586
+		if (!array_key_exists($prefix.'unique_id', $data)) {
587 587
 			throw new CircleNotFoundException();
588 588
 		}
589 589
 
590
-		$this->setId($this->get($prefix . 'unique_id', $data))
591
-			 ->setName($this->get($prefix . 'name', $data))
592
-			 ->setAltName($this->get($prefix . 'alt_name', $data))
593
-			 ->setConfig($this->getInt($prefix . 'config', $data))
594
-			 ->setInstance($this->get($prefix . 'instance', $data))
595
-			 ->setSettings($this->getArray($prefix . 'settings', $data))
596
-			 ->setContactAddressBook($this->getInt($prefix . 'contact_addressbook', $data))
597
-			 ->setContactGroupName($this->get($prefix . 'contact_groupname', $data))
598
-			 ->setDescription($this->get($prefix . 'description', $data));
599
-
600
-		$creation = $this->get($prefix . 'creation', $data);
590
+		$this->setId($this->get($prefix.'unique_id', $data))
591
+			 ->setName($this->get($prefix.'name', $data))
592
+			 ->setAltName($this->get($prefix.'alt_name', $data))
593
+			 ->setConfig($this->getInt($prefix.'config', $data))
594
+			 ->setInstance($this->get($prefix.'instance', $data))
595
+			 ->setSettings($this->getArray($prefix.'settings', $data))
596
+			 ->setContactAddressBook($this->getInt($prefix.'contact_addressbook', $data))
597
+			 ->setContactGroupName($this->get($prefix.'contact_groupname', $data))
598
+			 ->setDescription($this->get($prefix.'description', $data));
599
+
600
+		$creation = $this->get($prefix.'creation', $data);
601 601
 		$this->setCreation(DateTime::createFromFormat('Y-m-d H:i:s', $creation)->getTimestamp());
602 602
 
603 603
 		$this->getManager()->importOwnerFromDatabase($this, $data);
Please login to merge, or discard this patch.
lib/Model/Helpers/MemberHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 		try {
105 105
 			$level = Member::parseLevelString($levelString);
106 106
 		} catch (MemberLevelException $e) {
107
-			throw new MemberHelperException('method ' . $levelString . ' not found');
107
+			throw new MemberHelperException('method '.$levelString.' not found');
108 108
 		}
109 109
 
110 110
 		$this->mustHaveLevelEqualOrAbove($level);
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
 		try {
123 123
 			$level = Member::parseLevelString($levelString);
124 124
 		} catch (MemberLevelException $e) {
125
-			throw new MemberHelperException('method ' . $levelString . ' not found');
125
+			throw new MemberHelperException('method '.$levelString.' not found');
126 126
 		}
127 127
 
128 128
 		if ($this->member->getLevel() >= $level) {
129
-			throw new MemberLevelException('Member cannot be ' . $levelString);
129
+			throw new MemberLevelException('Member cannot be '.$levelString);
130 130
 		}
131 131
 	}
132 132
 
Please login to merge, or discard this patch.
lib/Command/MembersLevel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 		$level = Member::parseLevelString($input->getArgument('level'));
109 109
 		$outcome = $this->memberService->memberLevel($memberId, $level);
110 110
 
111
-		echo json_encode($outcome, JSON_PRETTY_PRINT) . "\n";
111
+		echo json_encode($outcome, JSON_PRETTY_PRINT)."\n";
112 112
 
113 113
 		return 0;
114 114
 	}
Please login to merge, or discard this patch.
lib/Command/MembersRemove.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
 		$outcome = $this->memberService->removeMember($memberId);
108 108
 
109
-		echo json_encode($outcome, JSON_PRETTY_PRINT) . "\n";
109
+		echo json_encode($outcome, JSON_PRETTY_PRINT)."\n";
110 110
 
111 111
 		return 0;
112 112
 	}
Please login to merge, or discard this patch.
lib/Service/RemoteService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 			$loop++;
190 190
 			if ($loop > 10 || in_array($instance, $knownInstance)) {
191 191
 				throw new CircleNotFoundException(
192
-					'circle not found after browsing ' . implode(', ', $knownInstance)
192
+					'circle not found after browsing '.implode(', ', $knownInstance)
193 193
 				);
194 194
 			}
195 195
 			$knownInstance[] = $instance;
Please login to merge, or discard this patch.
lib/Service/RemoteStreamService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
 		$request = new NC21Request('', $type);
263 263
 		if ($this->configService->isLocalInstance($instance)) {
264
-			$this->configService->configureRequest($request, 'circles.Remote.' . $item, $params);
264
+			$this->configService->configureRequest($request, 'circles.Remote.'.$item, $params);
265 265
 		} else {
266 266
 			$this->configService->configureRequest($request);
267 267
 			$link = $this->getRemoteInstanceEntry($instance, $item, $params);
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 	public function getCachedRemoteInstance(string $instance): RemoteInstance {
318 318
 		$remoteInstance = $this->remoteRequest->getFromInstance($instance);
319 319
 		if ($remoteInstance->getType() === RemoteInstance::TYPE_UNKNOWN) {
320
-			throw new UnknownRemoteException($instance . ' is set as \'unknown\' in database');
320
+			throw new UnknownRemoteException($instance.' is set as \'unknown\' in database');
321 321
 		}
322 322
 
323 323
 		return $remoteInstance;
Please login to merge, or discard this patch.
lib/Command/CirclesList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 		}
167 167
 
168 168
 		if ($input->getOption('json')) {
169
-			echo json_encode($circles, JSON_PRETTY_PRINT) . "\n";
169
+			echo json_encode($circles, JSON_PRETTY_PRINT)."\n";
170 170
 
171 171
 			return 0;
172 172
 		}
Please login to merge, or discard this patch.
lib/Command/CirclesDetails.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
 			}
158 158
 		}
159 159
 
160
-		echo json_encode($circle, JSON_PRETTY_PRINT) . "\n";
160
+		echo json_encode($circle, JSON_PRETTY_PRINT)."\n";
161 161
 
162 162
 		return 0;
163 163
 	}
Please login to merge, or discard this patch.
lib/Db/CoreQueryBuilder.php 1 patch
Spacing   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -161,16 +161,16 @@  discard block
 block discarded – undo
161 161
 		$this->generateMemberSelectAlias($alias, self::PREFIX_MEMBER)
162 162
 			 ->leftJoin(
163 163
 				 $this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $alias,
164
-				 $expr->eq($alias . '.circle_id', $this->getDefaultSelectAlias() . '.unique_id')
164
+				 $expr->eq($alias.'.circle_id', $this->getDefaultSelectAlias().'.unique_id')
165 165
 			 );
166 166
 
167 167
 		// TODO: Check in big table if it is better to put condition in andWhere() or in LeftJoin()
168 168
 		$this->andWhere(
169 169
 			$expr->andX(
170
-				$expr->eq($alias . '.user_id', $this->createNamedParameter($member->getUserId())),
171
-				$expr->eq($alias . '.user_type', $this->createNamedParameter($member->getUserType())),
172
-				$expr->eq($alias . '.instance', $this->createNamedParameter($this->getInstance($member))),
173
-				$expr->gte($alias . '.level', $this->createNamedParameter($level))
170
+				$expr->eq($alias.'.user_id', $this->createNamedParameter($member->getUserId())),
171
+				$expr->eq($alias.'.user_type', $this->createNamedParameter($member->getUserType())),
172
+				$expr->eq($alias.'.instance', $this->createNamedParameter($this->getInstance($member))),
173
+				$expr->gte($alias.'.level', $this->createNamedParameter($level))
174 174
 			)
175 175
 		);
176 176
 	}
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 			 ->leftJoin(
192 192
 				 $this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_CIRCLE, $alias,
193 193
 				 $expr->andX(
194
-					 $expr->eq($alias . '.unique_id', $this->getDefaultSelectAlias() . '.circle_id')
194
+					 $expr->eq($alias.'.unique_id', $this->getDefaultSelectAlias().'.circle_id')
195 195
 				 )
196 196
 			 );
197 197
 
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
 			 ->leftJoin(
222 222
 				 $circleTableAlias, CoreRequestBuilder::TABLE_MEMBER, $alias,
223 223
 				 $expr->andX(
224
-					 $expr->eq($alias . '.circle_id', $circleTableAlias . '.unique_id'),
225
-					 $expr->eq($alias . '.level', $this->createNamedParameter(Member::LEVEL_OWNER))
224
+					 $expr->eq($alias.'.circle_id', $circleTableAlias.'.unique_id'),
225
+					 $expr->eq($alias.'.level', $this->createNamedParameter(Member::LEVEL_OWNER))
226 226
 				 )
227 227
 			 );
228 228
 	}
@@ -248,11 +248,11 @@  discard block
 block discarded – undo
248 248
 			 ->leftJoin(
249 249
 				 $aliasCircle, CoreRequestBuilder::TABLE_MEMBER, $alias,
250 250
 				 $expr->andX(
251
-					 $expr->eq($alias . '.circle_id', $aliasCircle . '.unique_id'),
252
-					 $expr->eq($alias . '.user_id', $this->createNamedParameter($initiator->getUserId())),
253
-					 $expr->eq($alias . '.user_type', $this->createNamedParameter($initiator->getUserType())),
251
+					 $expr->eq($alias.'.circle_id', $aliasCircle.'.unique_id'),
252
+					 $expr->eq($alias.'.user_id', $this->createNamedParameter($initiator->getUserId())),
253
+					 $expr->eq($alias.'.user_type', $this->createNamedParameter($initiator->getUserType())),
254 254
 					 $expr->eq(
255
-						 $alias . '.instance', $this->createNamedParameter($this->getInstance($initiator))
255
+						 $alias.'.instance', $this->createNamedParameter($this->getInstance($initiator))
256 256
 					 )
257 257
 				 )
258 258
 			 );
@@ -278,9 +278,9 @@  discard block
 block discarded – undo
278 278
 		$this->leftJoin(
279 279
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $alias,
280 280
 			$expr->andX(
281
-				$expr->eq($alias . '.circle_id', $aliasCircle . '.unique_id'),
282
-				$expr->eq($alias . '.instance', $this->createNamedParameter($instance)),
283
-				$expr->gte($alias . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
281
+				$expr->eq($alias.'.circle_id', $aliasCircle.'.unique_id'),
282
+				$expr->eq($alias.'.instance', $this->createNamedParameter($instance)),
283
+				$expr->gte($alias.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
284 284
 			)
285 285
 		);
286 286
 	}
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 		$expr = $this->expr();
301 301
 		$this->leftJoin(
302 302
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_REMOTE, $alias,
303
-			$expr->eq($alias . '.instance', $this->createNamedParameter($instance))
303
+			$expr->eq($alias.'.instance', $this->createNamedParameter($instance))
304 304
 		);
305 305
 	}
306 306
 
@@ -319,15 +319,15 @@  discard block
 block discarded – undo
319 319
 		// - 4 (Visible to everyone)
320 320
 		$orX = $expr->orX();
321 321
 		$orX->add(
322
-			$expr->andX($expr->gte($alias . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER)))
322
+			$expr->andX($expr->gte($alias.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER)))
323 323
 		);
324 324
 		$orX->add(
325 325
 			$expr->andX(
326
-				$expr->bitwiseAnd($aliasCircle . '.config', Circle::CFG_PERSONAL),
327
-				$expr->eq($alias . '.level', $this->createNamedParameter(Member::LEVEL_OWNER))
326
+				$expr->bitwiseAnd($aliasCircle.'.config', Circle::CFG_PERSONAL),
327
+				$expr->eq($alias.'.level', $this->createNamedParameter(Member::LEVEL_OWNER))
328 328
 			)
329 329
 		);
330
-		$orX->add($expr->bitwiseAnd($aliasCircle . '.config', Circle::CFG_VISIBLE));
330
+		$orX->add($expr->bitwiseAnd($aliasCircle.'.config', Circle::CFG_VISIBLE));
331 331
 		$this->andWhere($orX);
332 332
 
333 333
 
@@ -362,10 +362,10 @@  discard block
 block discarded – undo
362 362
 		$expr = $this->expr();
363 363
 
364 364
 		$orHidden = $expr->orX();
365
-		$orHidden->add($expr->bitwiseAnd($alias . '.config', Circle::CFG_SINGLE));
366
-		$orHidden->add($expr->bitwiseAnd($alias . '.config', Circle::CFG_HIDDEN));
367
-		$orHidden->add($expr->bitwiseAnd($alias . '.config', Circle::CFG_BACKEND));
368
-		$this->andWhere($this->createFunction('NOT') . $orHidden);
365
+		$orHidden->add($expr->bitwiseAnd($alias.'.config', Circle::CFG_SINGLE));
366
+		$orHidden->add($expr->bitwiseAnd($alias.'.config', Circle::CFG_HIDDEN));
367
+		$orHidden->add($expr->bitwiseAnd($alias.'.config', Circle::CFG_BACKEND));
368
+		$this->andWhere($this->createFunction('NOT').$orHidden);
369 369
 	}
370 370
 
371 371
 
@@ -394,30 +394,30 @@  discard block
 block discarded – undo
394 394
 
395 395
 		$orX = $expr->orX();
396 396
 		$orX->add(
397
-			$expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBAL_SCALE))
397
+			$expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBAL_SCALE))
398 398
 		);
399 399
 
400 400
 		$orExtOrPassive = $expr->orX();
401 401
 		$orExtOrPassive->add(
402
-			$expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL))
402
+			$expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL))
403 403
 		);
404 404
 		if (!$sensitive) {
405 405
 			$orExtOrPassive->add(
406
-				$expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
406
+				$expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
407 407
 			);
408 408
 		} else {
409 409
 			if ($this->getDefaultSelectAlias() === 'm') {
410 410
 				$andPassive = $expr->andX();
411 411
 				$andPassive->add(
412
-					$expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
412
+					$expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
413 413
 				);
414 414
 				$orMemberOrLevel = $expr->orX();
415 415
 				$orMemberOrLevel->add(
416
-					$expr->eq($this->getDefaultSelectAlias() . '.instance', $alias . '.instance')
416
+					$expr->eq($this->getDefaultSelectAlias().'.instance', $alias.'.instance')
417 417
 				);
418 418
 				$orMemberOrLevel->add(
419 419
 					$expr->eq(
420
-						$this->getDefaultSelectAlias() . '.level',
420
+						$this->getDefaultSelectAlias().'.level',
421 421
 						$this->createNamedParameter(Member::LEVEL_OWNER)
422 422
 					)
423 423
 				);
@@ -428,18 +428,18 @@  discard block
 block discarded – undo
428 428
 
429 429
 		$andExternal = $expr->andX();
430 430
 		$andExternal->add($orExtOrPassive);
431
-		$andExternal->add($expr->isNotNull($aliasMembers . '.instance'));
431
+		$andExternal->add($expr->isNotNull($aliasMembers.'.instance'));
432 432
 
433 433
 		$orExtOrTrusted = $expr->orX();
434 434
 		$orExtOrTrusted->add($andExternal);
435 435
 		$orExtOrTrusted->add(
436
-			$expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED))
436
+			$expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED))
437 437
 		);
438 438
 
439 439
 		$andTrusted = $expr->andX();
440 440
 		$andTrusted->add($orExtOrTrusted);
441
-		$andTrusted->add($expr->bitwiseAnd($aliasCircle . '.config', Circle::CFG_FEDERATED));
442
-		$andTrusted->add($expr->emptyString($aliasOwner . '.instance'));
441
+		$andTrusted->add($expr->bitwiseAnd($aliasCircle.'.config', Circle::CFG_FEDERATED));
442
+		$andTrusted->add($expr->emptyString($aliasOwner.'.instance'));
443 443
 		$orX->add($andTrusted);
444 444
 
445 445
 		$this->andWhere($orX);
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 	 * @param int $flag
451 451
 	 */
452 452
 	public function filterConfig(int $flag): void {
453
-		$this->andWhere($this->expr()->bitwiseAnd($this->getDefaultSelectAlias() . '.config', $flag));
453
+		$this->andWhere($this->expr()->bitwiseAnd($this->getDefaultSelectAlias().'.config', $flag));
454 454
 	}
455 455
 
456 456
 
@@ -461,15 +461,15 @@  discard block
 block discarded – undo
461 461
 	 * @return $this
462 462
 	 */
463 463
 	private function generateCircleSelectAlias(string $alias, string $prefix): self {
464
-		$this->selectAlias($alias . '.unique_id', $prefix . 'unique_id')
465
-			 ->selectAlias($alias . '.name', $prefix . 'name')
466
-			 ->selectAlias($alias . '.alt_name', $prefix . 'alt_name')
467
-			 ->selectAlias($alias . '.description', $prefix . 'description')
468
-			 ->selectAlias($alias . '.settings', $prefix . 'settings')
469
-			 ->selectAlias($alias . '.config', $prefix . 'config')
470
-			 ->selectAlias($alias . '.contact_addressbook', $prefix . 'contact_addressbook')
471
-			 ->selectAlias($alias . '.contact_groupname', $prefix . 'contact_groupname')
472
-			 ->selectAlias($alias . '.creation', $prefix . 'creation');
464
+		$this->selectAlias($alias.'.unique_id', $prefix.'unique_id')
465
+			 ->selectAlias($alias.'.name', $prefix.'name')
466
+			 ->selectAlias($alias.'.alt_name', $prefix.'alt_name')
467
+			 ->selectAlias($alias.'.description', $prefix.'description')
468
+			 ->selectAlias($alias.'.settings', $prefix.'settings')
469
+			 ->selectAlias($alias.'.config', $prefix.'config')
470
+			 ->selectAlias($alias.'.contact_addressbook', $prefix.'contact_addressbook')
471
+			 ->selectAlias($alias.'.contact_groupname', $prefix.'contact_groupname')
472
+			 ->selectAlias($alias.'.creation', $prefix.'creation');
473 473
 
474 474
 		return $this;
475 475
 	}
@@ -481,20 +481,20 @@  discard block
 block discarded – undo
481 481
 	 * @return $this
482 482
 	 */
483 483
 	private function generateMemberSelectAlias(string $alias, string $prefix): self {
484
-		$this->selectAlias($alias . '.circle_id', $prefix . 'circle_id')
485
-			 ->selectAlias($alias . '.single_id', $prefix . 'single_id')
486
-			 ->selectAlias($alias . '.user_id', $prefix . 'user_id')
487
-			 ->selectAlias($alias . '.user_type', $prefix . 'user_type')
488
-			 ->selectAlias($alias . '.member_id', $prefix . 'member_id')
489
-			 ->selectAlias($alias . '.instance', $prefix . 'instance')
490
-			 ->selectAlias($alias . '.cached_name', $prefix . 'cached_name')
491
-			 ->selectAlias($alias . '.cached_update', $prefix . 'cached_update')
492
-			 ->selectAlias($alias . '.status', $prefix . 'status')
493
-			 ->selectAlias($alias . '.level', $prefix . 'level')
494
-			 ->selectAlias($alias . '.note', $prefix . 'note')
495
-			 ->selectAlias($alias . '.contact_id', $prefix . 'contact_id')
496
-			 ->selectAlias($alias . '.contact_meta', $prefix . 'contact_meta')
497
-			 ->selectAlias($alias . '.joined', $prefix . 'joined');
484
+		$this->selectAlias($alias.'.circle_id', $prefix.'circle_id')
485
+			 ->selectAlias($alias.'.single_id', $prefix.'single_id')
486
+			 ->selectAlias($alias.'.user_id', $prefix.'user_id')
487
+			 ->selectAlias($alias.'.user_type', $prefix.'user_type')
488
+			 ->selectAlias($alias.'.member_id', $prefix.'member_id')
489
+			 ->selectAlias($alias.'.instance', $prefix.'instance')
490
+			 ->selectAlias($alias.'.cached_name', $prefix.'cached_name')
491
+			 ->selectAlias($alias.'.cached_update', $prefix.'cached_update')
492
+			 ->selectAlias($alias.'.status', $prefix.'status')
493
+			 ->selectAlias($alias.'.level', $prefix.'level')
494
+			 ->selectAlias($alias.'.note', $prefix.'note')
495
+			 ->selectAlias($alias.'.contact_id', $prefix.'contact_id')
496
+			 ->selectAlias($alias.'.contact_meta', $prefix.'contact_meta')
497
+			 ->selectAlias($alias.'.joined', $prefix.'joined');
498 498
 
499 499
 		return $this;
500 500
 	}
Please login to merge, or discard this patch.