Completed
Pull Request — master (#2254)
by Konstantin
30s
created
lib/Db/GSSharesRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,11 +97,11 @@
 block discarded – undo
97 97
 
98 98
 	private function leftJoinMountPoint(IQueryBuilder $qb, string $userId) {
99 99
 		$expr = $qb->expr();
100
-		$pf = '' . $this->default_select_alias . '.';
100
+		$pf = ''.$this->default_select_alias.'.';
101 101
 
102 102
 		$on = $expr->andX(
103 103
 			$expr->eq('mp.user_id', $qb->createNamedParameter($userId)),
104
-			$expr->eq('mp.share_id', $pf . 'id'),
104
+			$expr->eq('mp.share_id', $pf.'id'),
105 105
 		);
106 106
 
107 107
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
Please login to merge, or discard this patch.
lib/Listeners/GroupChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 		$groupId = $event->getGroup()->getGID();
42 42
 
43 43
 		$circle = new Circle();
44
-		$circle->setName('group:' . $groupId)
44
+		$circle->setName('group:'.$groupId)
45 45
 			->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN)
46 46
 			->setSource(Member::TYPE_GROUP);
47 47
 
Please login to merge, or discard this patch.
lib/Tools/Db/ExtendedQueryBuilder.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	 */
196 196
 	public function limitToCreation(int $delay = 0): self {
197 197
 		$date = new DateTime('now');
198
-		$date->sub(new DateInterval('PT' . ((string)$delay) . 'M'));
198
+		$date->sub(new DateInterval('PT'.((string)$delay).'M'));
199 199
 
200 200
 		$this->limitToDBFieldDateTime('creation', $date, true);
201 201
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 		$expr = $this->expr();
213 213
 		$pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias()
214 214
 																. '.' : '';
215
-		$field = $pf . $field;
215
+		$field = $pf.$field;
216 216
 
217 217
 		$orX = [$expr->lte($field, $this->createNamedParameter($date, IQueryBuilder::PARAM_DATE))];
218 218
 
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
 		}
240 240
 
241 241
 		$expr = $this->expr();
242
-		$pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias() . '.' : '';
243
-		$field = $pf . $field;
242
+		$pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias().'.' : '';
243
+		$field = $pf.$field;
244 244
 
245 245
 		$this->andWhere($expr->gte($field, $this->createNamedParameter($dTime, IQueryBuilder::PARAM_DATE)));
246 246
 	}
@@ -253,8 +253,8 @@  discard block
 block discarded – undo
253 253
 	public function searchInDBField(string $field, string $value): void {
254 254
 		$expr = $this->expr();
255 255
 
256
-		$pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias() . '.' : '';
257
-		$field = $pf . $field;
256
+		$pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias().'.' : '';
257
+		$field = $pf.$field;
258 258
 
259 259
 		$this->andWhere($expr->iLike($field, $this->createNamedParameter($value)));
260 260
 	}
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 	 */
378 378
 	public function exprLike(string $field, string $value, string $alias = '', bool $cs = true): string {
379 379
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
380
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
380
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
381 381
 		}
382 382
 
383 383
 		$expr = $this->expr();
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 
391 391
 	public function exprLimit(string $field, string $value, string $alias = '', bool $cs = true): string {
392 392
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
393
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
393
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
394 394
 		}
395 395
 
396 396
 		$expr = $this->expr();
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 
409 409
 	public function exprLimitInt(string $field, int $value, string $alias = ''): string {
410 410
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
411
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
411
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
412 412
 		}
413 413
 
414 414
 		$expr = $this->expr();
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 	 */
427 427
 	public function exprLimitBool(string $field, bool $value, string $alias = ''): string {
428 428
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
429
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
429
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
430 430
 		}
431 431
 
432 432
 		$expr = $this->expr();
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 		string $alias = '',
448 448
 	): ICompositeExpression {
449 449
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
450
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
450
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
451 451
 		}
452 452
 
453 453
 		$expr = $this->expr();
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
 		string $alias = '',
473 473
 	): ICompositeExpression {
474 474
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
475
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
475
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
476 476
 		}
477 477
 
478 478
 		$expr = $this->expr();
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 		int $type = IQueryBuilder::PARAM_STR_ARRAY,
527 527
 	): string {
528 528
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
529
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
529
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
530 530
 		}
531 531
 
532 532
 		$expr = $this->expr();
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 	 */
544 544
 	public function exprLimitBitwise(string $field, int $flag, string $alias = ''): string {
545 545
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
546
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
546
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
547 547
 		}
548 548
 
549 549
 		$expr = $this->expr();
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
 	 */
566 566
 	public function exprLt(string $field, int $value, bool $lte = false, string $alias = ''): string {
567 567
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
568
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
568
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
569 569
 		}
570 570
 
571 571
 		$expr = $this->expr();
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
 	 */
588 588
 	public function exprGt(string $field, int $value, bool $gte = false, string $alias = ''): string {
589 589
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
590
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
590
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
591 591
 		}
592 592
 
593 593
 		$expr = $this->expr();
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
 	 */
697 697
 	public function exprUnlike(string $field, string $value, string $alias = '', bool $cs = true): string {
698 698
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
699
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
699
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
700 700
 		}
701 701
 
702 702
 		$expr = $this->expr();
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
 	 */
721 721
 	public function exprFilter(string $field, string $value, string $alias = '', bool $cs = true): string {
722 722
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
723
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
723
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
724 724
 		}
725 725
 
726 726
 		$expr = $this->expr();
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
 	 */
747 747
 	public function exprFilterInt(string $field, int $value, string $alias = ''): string {
748 748
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
749
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
749
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
750 750
 		}
751 751
 
752 752
 		$expr = $this->expr();
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
 	 */
765 765
 	public function exprFilterBool(string $field, bool $value, string $alias = ''): string {
766 766
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
767
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
767
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
768 768
 		}
769 769
 
770 770
 		$expr = $this->expr();
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
 		string $alias = '',
786 786
 	): ICompositeExpression {
787 787
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
788
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
788
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
789 789
 		}
790 790
 
791 791
 		$expr = $this->expr();
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 		string $alias = '',
811 811
 	): ICompositeExpression {
812 812
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
813
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
813
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
814 814
 		}
815 815
 
816 816
 		$expr = $this->expr();
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
 		bool $cs = true,
839 839
 	): ICompositeExpression {
840 840
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
841
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
841
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
842 842
 		}
843 843
 
844 844
 		$orX = [];
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
 	 */
864 864
 	public function exprFilterInArray(string $field, array $values, string $alias = ''): string {
865 865
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
866
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
866
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
867 867
 		}
868 868
 
869 869
 		$expr = $this->expr();
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
 	 */
882 882
 	public function exprFilterBitwise(string $field, int $flag, string $alias = ''): string {
883 883
 		if ($this->getType() === DBALQueryBuilder::SELECT) {
884
-			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field;
884
+			$field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field;
885 885
 		}
886 886
 
887 887
 		$expr = $this->expr();
@@ -1042,12 +1042,12 @@  discard block
 block discarded – undo
1042 1042
 		string $alias = '',
1043 1043
 	): self {
1044 1044
 		$selectFields = array_map(
1045
-			function (string $item) use ($alias) {
1045
+			function(string $item) use ($alias) {
1046 1046
 				if ($alias === '') {
1047 1047
 					return $item;
1048 1048
 				}
1049 1049
 
1050
-				return $alias . '.' . $item;
1050
+				return $alias.'.'.$item;
1051 1051
 			}, $fields
1052 1052
 		);
1053 1053
 
@@ -1073,13 +1073,13 @@  discard block
 block discarded – undo
1073 1073
 		string $prefix,
1074 1074
 		array $default = [],
1075 1075
 	): self {
1076
-		$prefix = trim($prefix) . '_';
1076
+		$prefix = trim($prefix).'_';
1077 1077
 		foreach ($default as $k => $v) {
1078
-			$this->addDefaultValue($prefix . $k, (string)$v);
1078
+			$this->addDefaultValue($prefix.$k, (string)$v);
1079 1079
 		}
1080 1080
 
1081 1081
 		foreach ($fields as $field) {
1082
-			$this->selectAlias($alias . '.' . $field, $prefix . $field);
1082
+			$this->selectAlias($alias.'.'.$field, $prefix.$field);
1083 1083
 		}
1084 1084
 
1085 1085
 		return $this;
Please login to merge, or discard this patch.
lib/Service/SyncService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 	 * @throws SingleCircleNotFoundException
227 227
 	 */
228 228
 	public function syncNextcloudUser(string $userId): FederatedUser {
229
-		$this->outputService->output('Syncing Nextcloud Account \'' . $userId . '\'', true);
229
+		$this->outputService->output('Syncing Nextcloud Account \''.$userId.'\'', true);
230 230
 
231 231
 		return $this->federatedUserService->getLocalFederatedUser($userId, false, true);
232 232
 	}
@@ -270,12 +270,12 @@  discard block
 block discarded – undo
270 270
 	 * @throws RequestBuilderException
271 271
 	 */
272 272
 	public function syncNextcloudGroup(string $groupId): Circle {
273
-		$this->outputService->output('Syncing Nextcloud Group \'' . $groupId . '\'', true);
273
+		$this->outputService->output('Syncing Nextcloud Group \''.$groupId.'\'', true);
274 274
 
275 275
 		$circle = $this->federatedUserService->getGroupCircle($groupId);
276 276
 		$this->circleService->updateDisplayName($circle->getSingleId(), $this->groupManager->getDisplayName($groupId));
277 277
 
278
-		$members = array_map(function (Member $member): string {
278
+		$members = array_map(function(Member $member): string {
279 279
 			return $member->getSingleId();
280 280
 		}, $this->memberRequest->getMembers($circle->getSingleId()));
281 281
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 	 */
354 354
 	public function groupDeleted(string $groupId): void {
355 355
 		$circle = new Circle();
356
-		$circle->setName('group:' . $groupId)
356
+		$circle->setName('group:'.$groupId)
357 357
 			->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN)
358 358
 			->setSource(Member::TYPE_GROUP);
359 359
 
Please login to merge, or discard this patch.
tests/stubs/doctrine_dbal_schema_schema.php 1 patch
Indentation   +245 added lines, -245 removed lines patch added patch discarded remove patch
@@ -40,276 +40,276 @@
 block discarded – undo
40 40
  */
41 41
 class Schema extends AbstractAsset
42 42
 {
43
-    /** @var Table[] */
44
-    protected $_tables = [];
43
+	/** @var Table[] */
44
+	protected $_tables = [];
45 45
 
46
-    /** @var Sequence[] */
47
-    protected $_sequences = [];
46
+	/** @var Sequence[] */
47
+	protected $_sequences = [];
48 48
 
49
-    /** @var SchemaConfig */
50
-    protected $_schemaConfig;
49
+	/** @var SchemaConfig */
50
+	protected $_schemaConfig;
51 51
 
52
-    /**
53
-     * @param Table[]    $tables
54
-     * @param Sequence[] $sequences
55
-     * @param string[]   $namespaces
56
-     *
57
-     * @throws SchemaException
58
-     */
59
-    public function __construct(array $tables = [], array $sequences = [], ?SchemaConfig $schemaConfig = null, array $namespaces = [])
60
-    {
61
-    }
52
+	/**
53
+	 * @param Table[]    $tables
54
+	 * @param Sequence[] $sequences
55
+	 * @param string[]   $namespaces
56
+	 *
57
+	 * @throws SchemaException
58
+	 */
59
+	public function __construct(array $tables = [], array $sequences = [], ?SchemaConfig $schemaConfig = null, array $namespaces = [])
60
+	{
61
+	}
62 62
 
63
-    /**
64
-     * @deprecated
65
-     *
66
-     * @return bool
67
-     */
68
-    public function hasExplicitForeignKeyIndexes()
69
-    {
70
-    }
63
+	/**
64
+	 * @deprecated
65
+	 *
66
+	 * @return bool
67
+	 */
68
+	public function hasExplicitForeignKeyIndexes()
69
+	{
70
+	}
71 71
 
72
-    /**
73
-     * @return void
74
-     *
75
-     * @throws SchemaException
76
-     */
77
-    protected function _addTable(Table $table)
78
-    {
79
-    }
72
+	/**
73
+	 * @return void
74
+	 *
75
+	 * @throws SchemaException
76
+	 */
77
+	protected function _addTable(Table $table)
78
+	{
79
+	}
80 80
 
81
-    /**
82
-     * @return void
83
-     *
84
-     * @throws SchemaException
85
-     */
86
-    protected function _addSequence(Sequence $sequence)
87
-    {
88
-    }
81
+	/**
82
+	 * @return void
83
+	 *
84
+	 * @throws SchemaException
85
+	 */
86
+	protected function _addSequence(Sequence $sequence)
87
+	{
88
+	}
89 89
 
90
-    /**
91
-     * Returns the namespaces of this schema.
92
-     *
93
-     * @return string[] A list of namespace names.
94
-     */
95
-    public function getNamespaces()
96
-    {
97
-    }
90
+	/**
91
+	 * Returns the namespaces of this schema.
92
+	 *
93
+	 * @return string[] A list of namespace names.
94
+	 */
95
+	public function getNamespaces()
96
+	{
97
+	}
98 98
 
99
-    /**
100
-     * Gets all tables of this schema.
101
-     *
102
-     * @return Table[]
103
-     */
104
-    public function getTables()
105
-    {
106
-    }
99
+	/**
100
+	 * Gets all tables of this schema.
101
+	 *
102
+	 * @return Table[]
103
+	 */
104
+	public function getTables()
105
+	{
106
+	}
107 107
 
108
-    /**
109
-     * @param string $name
110
-     *
111
-     * @return Table
112
-     *
113
-     * @throws SchemaException
114
-     */
115
-    public function getTable($name)
116
-    {
117
-    }
108
+	/**
109
+	 * @param string $name
110
+	 *
111
+	 * @return Table
112
+	 *
113
+	 * @throws SchemaException
114
+	 */
115
+	public function getTable($name)
116
+	{
117
+	}
118 118
 
119
-    /**
120
-     * Does this schema have a namespace with the given name?
121
-     *
122
-     * @param string $name
123
-     *
124
-     * @return bool
125
-     */
126
-    public function hasNamespace($name)
127
-    {
128
-    }
119
+	/**
120
+	 * Does this schema have a namespace with the given name?
121
+	 *
122
+	 * @param string $name
123
+	 *
124
+	 * @return bool
125
+	 */
126
+	public function hasNamespace($name)
127
+	{
128
+	}
129 129
 
130
-    /**
131
-     * Does this schema have a table with the given name?
132
-     *
133
-     * @param string $name
134
-     *
135
-     * @return bool
136
-     */
137
-    public function hasTable($name)
138
-    {
139
-    }
130
+	/**
131
+	 * Does this schema have a table with the given name?
132
+	 *
133
+	 * @param string $name
134
+	 *
135
+	 * @return bool
136
+	 */
137
+	public function hasTable($name)
138
+	{
139
+	}
140 140
 
141
-    /**
142
-     * Gets all table names, prefixed with a schema name, even the default one if present.
143
-     *
144
-     * @deprecated Use {@see getTables()} and {@see Table::getName()} instead.
145
-     *
146
-     * @return string[]
147
-     */
148
-    public function getTableNames()
149
-    {
150
-    }
141
+	/**
142
+	 * Gets all table names, prefixed with a schema name, even the default one if present.
143
+	 *
144
+	 * @deprecated Use {@see getTables()} and {@see Table::getName()} instead.
145
+	 *
146
+	 * @return string[]
147
+	 */
148
+	public function getTableNames()
149
+	{
150
+	}
151 151
 
152
-    /**
153
-     * @param string $name
154
-     *
155
-     * @return bool
156
-     */
157
-    public function hasSequence($name)
158
-    {
159
-    }
152
+	/**
153
+	 * @param string $name
154
+	 *
155
+	 * @return bool
156
+	 */
157
+	public function hasSequence($name)
158
+	{
159
+	}
160 160
 
161
-    /**
162
-     * @param string $name
163
-     *
164
-     * @return Sequence
165
-     *
166
-     * @throws SchemaException
167
-     */
168
-    public function getSequence($name)
169
-    {
170
-    }
161
+	/**
162
+	 * @param string $name
163
+	 *
164
+	 * @return Sequence
165
+	 *
166
+	 * @throws SchemaException
167
+	 */
168
+	public function getSequence($name)
169
+	{
170
+	}
171 171
 
172
-    /** @return Sequence[] */
173
-    public function getSequences()
174
-    {
175
-    }
172
+	/** @return Sequence[] */
173
+	public function getSequences()
174
+	{
175
+	}
176 176
 
177
-    /**
178
-     * Creates a new namespace.
179
-     *
180
-     * @param string $name The name of the namespace to create.
181
-     *
182
-     * @return Schema This schema instance.
183
-     *
184
-     * @throws SchemaException
185
-     */
186
-    public function createNamespace($name)
187
-    {
188
-    }
177
+	/**
178
+	 * Creates a new namespace.
179
+	 *
180
+	 * @param string $name The name of the namespace to create.
181
+	 *
182
+	 * @return Schema This schema instance.
183
+	 *
184
+	 * @throws SchemaException
185
+	 */
186
+	public function createNamespace($name)
187
+	{
188
+	}
189 189
 
190
-    /**
191
-     * Creates a new table.
192
-     *
193
-     * @param string $name
194
-     *
195
-     * @return Table
196
-     *
197
-     * @throws SchemaException
198
-     */
199
-    public function createTable($name)
200
-    {
201
-    }
190
+	/**
191
+	 * Creates a new table.
192
+	 *
193
+	 * @param string $name
194
+	 *
195
+	 * @return Table
196
+	 *
197
+	 * @throws SchemaException
198
+	 */
199
+	public function createTable($name)
200
+	{
201
+	}
202 202
 
203
-    /**
204
-     * Renames a table.
205
-     *
206
-     * @param string $oldName
207
-     * @param string $newName
208
-     *
209
-     * @return Schema
210
-     *
211
-     * @throws SchemaException
212
-     */
213
-    public function renameTable($oldName, $newName)
214
-    {
215
-    }
203
+	/**
204
+	 * Renames a table.
205
+	 *
206
+	 * @param string $oldName
207
+	 * @param string $newName
208
+	 *
209
+	 * @return Schema
210
+	 *
211
+	 * @throws SchemaException
212
+	 */
213
+	public function renameTable($oldName, $newName)
214
+	{
215
+	}
216 216
 
217
-    /**
218
-     * Drops a table from the schema.
219
-     *
220
-     * @param string $name
221
-     *
222
-     * @return Schema
223
-     *
224
-     * @throws SchemaException
225
-     */
226
-    public function dropTable($name)
227
-    {
228
-    }
217
+	/**
218
+	 * Drops a table from the schema.
219
+	 *
220
+	 * @param string $name
221
+	 *
222
+	 * @return Schema
223
+	 *
224
+	 * @throws SchemaException
225
+	 */
226
+	public function dropTable($name)
227
+	{
228
+	}
229 229
 
230
-    /**
231
-     * Creates a new sequence.
232
-     *
233
-     * @param string $name
234
-     * @param int    $allocationSize
235
-     * @param int    $initialValue
236
-     *
237
-     * @return Sequence
238
-     *
239
-     * @throws SchemaException
240
-     */
241
-    public function createSequence($name, $allocationSize = 1, $initialValue = 1)
242
-    {
243
-    }
230
+	/**
231
+	 * Creates a new sequence.
232
+	 *
233
+	 * @param string $name
234
+	 * @param int    $allocationSize
235
+	 * @param int    $initialValue
236
+	 *
237
+	 * @return Sequence
238
+	 *
239
+	 * @throws SchemaException
240
+	 */
241
+	public function createSequence($name, $allocationSize = 1, $initialValue = 1)
242
+	{
243
+	}
244 244
 
245
-    /**
246
-     * @param string $name
247
-     *
248
-     * @return Schema
249
-     */
250
-    public function dropSequence($name)
251
-    {
252
-    }
245
+	/**
246
+	 * @param string $name
247
+	 *
248
+	 * @return Schema
249
+	 */
250
+	public function dropSequence($name)
251
+	{
252
+	}
253 253
 
254
-    /**
255
-     * Returns an array of necessary SQL queries to create the schema on the given platform.
256
-     *
257
-     * @return list<string>
258
-     *
259
-     * @throws Exception
260
-     */
261
-    public function toSql(AbstractPlatform $platform)
262
-    {
263
-    }
254
+	/**
255
+	 * Returns an array of necessary SQL queries to create the schema on the given platform.
256
+	 *
257
+	 * @return list<string>
258
+	 *
259
+	 * @throws Exception
260
+	 */
261
+	public function toSql(AbstractPlatform $platform)
262
+	{
263
+	}
264 264
 
265
-    /**
266
-     * Return an array of necessary SQL queries to drop the schema on the given platform.
267
-     *
268
-     * @return list<string>
269
-     *
270
-     * @throws Exception
271
-     */
272
-    public function toDropSql(AbstractPlatform $platform)
273
-    {
274
-    }
265
+	/**
266
+	 * Return an array of necessary SQL queries to drop the schema on the given platform.
267
+	 *
268
+	 * @return list<string>
269
+	 *
270
+	 * @throws Exception
271
+	 */
272
+	public function toDropSql(AbstractPlatform $platform)
273
+	{
274
+	}
275 275
 
276
-    /**
277
-     * @deprecated
278
-     *
279
-     * @return string[]
280
-     *
281
-     * @throws SchemaException
282
-     */
283
-    public function getMigrateToSql(Schema $toSchema, AbstractPlatform $platform)
284
-    {
285
-    }
276
+	/**
277
+	 * @deprecated
278
+	 *
279
+	 * @return string[]
280
+	 *
281
+	 * @throws SchemaException
282
+	 */
283
+	public function getMigrateToSql(Schema $toSchema, AbstractPlatform $platform)
284
+	{
285
+	}
286 286
 
287
-    /**
288
-     * @deprecated
289
-     *
290
-     * @return string[]
291
-     *
292
-     * @throws SchemaException
293
-     */
294
-    public function getMigrateFromSql(Schema $fromSchema, AbstractPlatform $platform)
295
-    {
296
-    }
287
+	/**
288
+	 * @deprecated
289
+	 *
290
+	 * @return string[]
291
+	 *
292
+	 * @throws SchemaException
293
+	 */
294
+	public function getMigrateFromSql(Schema $fromSchema, AbstractPlatform $platform)
295
+	{
296
+	}
297 297
 
298
-    /**
299
-     * @deprecated
300
-     *
301
-     * @return void
302
-     */
303
-    public function visit(Visitor $visitor)
304
-    {
305
-    }
298
+	/**
299
+	 * @deprecated
300
+	 *
301
+	 * @return void
302
+	 */
303
+	public function visit(Visitor $visitor)
304
+	{
305
+	}
306 306
 
307
-    /**
308
-     * Cloning a Schema triggers a deep clone of all related assets.
309
-     *
310
-     * @return void
311
-     */
312
-    public function __clone()
313
-    {
314
-    }
307
+	/**
308
+	 * Cloning a Schema triggers a deep clone of all related assets.
309
+	 *
310
+	 * @return void
311
+	 */
312
+	public function __clone()
313
+	{
314
+	}
315 315
 }
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 
13 13
 return RectorConfig::configure()
14 14
 	->withPaths([
15
-		__DIR__ . '/appinfo',
16
-		__DIR__ . '/lib',
17
-		__DIR__ . '/tests/unit',
15
+		__DIR__.'/appinfo',
16
+		__DIR__.'/lib',
17
+		__DIR__.'/tests/unit',
18 18
 	])
19 19
 	->withImportNames(importShortClasses: false)
20 20
 	->withSets([
Please login to merge, or discard this patch.
lib/Service/FederatedEventService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -241,16 +241,16 @@  discard block
 block discarded – undo
241 241
 		try {
242 242
 			$test = new ReflectionClass($class);
243 243
 		} catch (ReflectionException $e) {
244
-			throw new FederatedEventException('ReflectionException with ' . $class . ': ' . $e->getMessage());
244
+			throw new FederatedEventException('ReflectionException with '.$class.': '.$e->getMessage());
245 245
 		}
246 246
 
247 247
 		if (!in_array(IFederatedItem::class, $test->getInterfaceNames())) {
248
-			throw new FederatedEventException($class . ' does not implements IFederatedItem');
248
+			throw new FederatedEventException($class.' does not implements IFederatedItem');
249 249
 		}
250 250
 
251 251
 		$item = Server::get($class);
252 252
 		if (!($item instanceof IFederatedItem)) {
253
-			throw new FederatedEventException($class . ' not an IFederatedItem');
253
+			throw new FederatedEventException($class.' not an IFederatedItem');
254 254
 		}
255 255
 
256 256
 		if ($item instanceof IFederatedItemHighSeverity) {
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 			$knownInstances = $this->memberRequest->getMemberInstances($circle->getSingleId());
449 449
 			$instances = array_filter(
450 450
 				array_map(
451
-					function (RemoteInstance $instance) use ($knownInstances) {
451
+					function(RemoteInstance $instance) use ($knownInstances) {
452 452
 						if (!in_array($instance->getInstance(), $knownInstances)) {
453 453
 							return null;
454 454
 						}
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
 		if ($event->hasMember()
464 464
 			&& !$this->configService->isLocalInstance($event->getMember()->getInstance())) {
465 465
 			$currentInstances = array_map(
466
-				function (RemoteInstance $instance): string {
466
+				function(RemoteInstance $instance): string {
467 467
 					return $instance->getInstance();
468 468
 				}, $instances
469 469
 			);
Please login to merge, or discard this patch.
lib/Command/CirclesList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -236,9 +236,9 @@
 block discarded – undo
236 236
 				Circle::$DEF_SOURCE[$circle->getSource()],
237 237
 				$this->cut($displayName ? $owner->getDisplayName() : $owner->getUserId(), 40),
238 238
 				$this->configService->displayInstance($owner->getInstance()),
239
-				((string)$circle->getPopulation()) . '/'
239
+				((string)$circle->getPopulation()).'/'
240 240
 				. ((string)$this->getInt('members_limit', $circle->getSettings(), -1))
241
-				. ' (' . ((string)$circle->getPopulationInherited()) . ')'
241
+				. ' ('.((string)$circle->getPopulationInherited()).')'
242 242
 			];
243 243
 		}
244 244
 
Please login to merge, or discard this patch.
lib/Command/CirclesRemote.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -154,19 +154,19 @@  discard block
 block discarded – undo
154 154
 
155 155
 		$webfinger = $this->getWebfinger($host, Application::APP_SUBJECT);
156 156
 		if ($this->input->getOption('all')) {
157
-			$this->output->writeln('- Webfinger on <info>' . $host . '</info>');
157
+			$this->output->writeln('- Webfinger on <info>'.$host.'</info>');
158 158
 			$this->output->writeln(json_encode($webfinger, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
159 159
 			$this->output->writeln('');
160 160
 		}
161 161
 
162 162
 		if ($this->input->getOption('all')) {
163 163
 			$circleLink = $this->extractLink(Application::APP_REL, $webfinger);
164
-			$this->output->writeln('- Information about Circles app on <info>' . $host . '</info>');
164
+			$this->output->writeln('- Information about Circles app on <info>'.$host.'</info>');
165 165
 			$this->output->writeln(json_encode($circleLink, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
166 166
 			$this->output->writeln('');
167 167
 		}
168 168
 
169
-		$this->output->writeln('- Available services on <info>' . $host . '</info>');
169
+		$this->output->writeln('- Available services on <info>'.$host.'</info>');
170 170
 		foreach ($webfinger->getLinks() as $link) {
171 171
 			$app = $link->getProperty('name');
172 172
 			$ver = $link->getProperty('version');
@@ -174,14 +174,14 @@  discard block
 block discarded – undo
174 174
 				$app .= ' ';
175 175
 			}
176 176
 			if ($ver !== '') {
177
-				$ver = 'v' . $ver;
177
+				$ver = 'v'.$ver;
178 178
 			}
179 179
 
180
-			$this->output->writeln(' * ' . $link->getRel() . ' ' . $app . $ver);
180
+			$this->output->writeln(' * '.$link->getRel().' '.$app.$ver);
181 181
 		}
182 182
 		$this->output->writeln('');
183 183
 
184
-		$this->output->writeln('- Resources related to Circles on <info>' . $host . '</info>');
184
+		$this->output->writeln('- Resources related to Circles on <info>'.$host.'</info>');
185 185
 		$resource = $this->getResourceData($host, Application::APP_SUBJECT, Application::APP_REL);
186 186
 		$this->output->writeln(json_encode($resource, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
187 187
 		$this->output->writeln('');
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
 		$tempUid = $resource->g('uid');
191 191
 		$this->output->writeln(
192
-			'- Confirming UID=' . $tempUid . ' from parsed Signatory at <info>' . $host . '</info>'
192
+			'- Confirming UID='.$tempUid.' from parsed Signatory at <info>'.$host.'</info>'
193 193
 		);
194 194
 
195 195
 		try {
@@ -198,15 +198,15 @@  discard block
 block discarded – undo
198 198
 			$this->output->writeln(' * No SignatureException: <info>Identity authed</info>');
199 199
 		} catch (SignatureException $e) {
200 200
 			$this->output->writeln(
201
-				'<error>' . $host . ' cannot auth its identity: ' . $e->getMessage() . '</error>'
201
+				'<error>'.$host.' cannot auth its identity: '.$e->getMessage().'</error>'
202 202
 			);
203 203
 
204 204
 			return;
205 205
 		}
206 206
 
207
-		$this->output->writeln(' * Found <info>' . $remoteSignatory->getUid() . '</info>');
207
+		$this->output->writeln(' * Found <info>'.$remoteSignatory->getUid().'</info>');
208 208
 		if ($remoteSignatory->getUid(true) !== $tempUid) {
209
-			$this->output->writeln('<error>looks like ' . $host . ' is faking its identity');
209
+			$this->output->writeln('<error>looks like '.$host.' is faking its identity');
210 210
 
211 211
 			return;
212 212
 		}
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 		$this->output->writeln('');
215 215
 
216 216
 		$testUrl = $resource->g('test');
217
-		$this->output->writeln('- Testing signed payload on <info>' . $testUrl . '</info>');
217
+		$this->output->writeln('- Testing signed payload on <info>'.$testUrl.'</info>');
218 218
 
219 219
 		try {
220 220
 			$localSignatory = $this->remoteStreamService->getAppSignatory();
@@ -236,18 +236,18 @@  discard block
 block discarded – undo
236 236
 		$this->output->writeln('');
237 237
 
238 238
 		$this->output->writeln(' * Clear Signature: ');
239
-		$this->output->writeln('<comment>' . $signedRequest->getClearSignature() . '</comment>');
239
+		$this->output->writeln('<comment>'.$signedRequest->getClearSignature().'</comment>');
240 240
 		$this->output->writeln('');
241 241
 
242 242
 		$this->output->writeln(' * Signed Signature (base64 encoded): ');
243 243
 		$this->output->writeln(
244
-			'<comment>' . base64_encode($signedRequest->getSignedSignature()) . '</comment>'
244
+			'<comment>'.base64_encode($signedRequest->getSignedSignature()).'</comment>'
245 245
 		);
246 246
 		$this->output->writeln('');
247 247
 
248 248
 		$result = $signedRequest->getOutgoingRequest()->getResult();
249 249
 		$code = $result->getStatusCode();
250
-		$this->output->writeln(' * Result: ' . (($code === 200) ? '<info>' . ((string)$code) . '</info>' : $code));
250
+		$this->output->writeln(' * Result: '.(($code === 200) ? '<info>'.((string)$code).'</info>' : $code));
251 251
 		$this->output->writeln(
252 252
 			json_encode(json_decode($result->getContent(), true), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
253 253
 		);
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 				$stored = new RemoteInstance();
270 270
 				$this->remoteStreamService->confirmValidRemote($remoteSignatory, $stored);
271 271
 				$this->output->writeln(
272
-					'<info>The remote instance ' . $host
272
+					'<info>The remote instance '.$host
273 273
 					. ' is already known with this current identity</info>'
274 274
 				);
275 275
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 
280 280
 				if ($remoteSignatory->getType() !== $stored->getType()) {
281 281
 					$this->output->writeln(
282
-						'- updating type from ' . $stored->getType() . ' to '
282
+						'- updating type from '.$stored->getType().' to '
283 283
 						. $remoteSignatory->getType()
284 284
 					);
285 285
 					$this->remoteStreamService->update(
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
 				if ($remoteSignatory->getInstance() !== $stored->getInstance()) {
291 291
 					$this->output->writeln(
292
-						'- updating host from ' . $stored->getInstance() . ' to '
292
+						'- updating host from '.$stored->getInstance().' to '
293 293
 						. $remoteSignatory->getInstance()
294 294
 					);
295 295
 					$this->remoteStreamService->update(
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 				}
299 299
 				if ($remoteSignatory->getId() !== $stored->getId()) {
300 300
 					$this->output->writeln(
301
-						'- updating href/Id from ' . $stored->getId() . ' to '
301
+						'- updating href/Id from '.$stored->getId().' to '
302 302
 						. $remoteSignatory->getId()
303 303
 					);
304 304
 					$this->remoteStreamService->update($remoteSignatory, RemoteStreamService::UPDATE_HREF);
@@ -323,10 +323,10 @@  discard block
 block discarded – undo
323 323
 		$helper = $this->getHelper('question');
324 324
 
325 325
 		$this->output->writeln(
326
-			'The remote instance <info>' . $remoteSignatory->getInstance() . '</info> looks good.'
326
+			'The remote instance <info>'.$remoteSignatory->getInstance().'</info> looks good.'
327 327
 		);
328 328
 		$question = new ConfirmationQuestion(
329
-			'Would you like to identify this remote instance as \'<comment>' . $remoteSignatory->getType()
329
+			'Would you like to identify this remote instance as \'<comment>'.$remoteSignatory->getType()
330 330
 			. '</comment>\' using interface \'<comment>'
331 331
 			. InterfaceService::$LIST_IFACE[$remoteSignatory->getInterface()]
332 332
 			. '</comment>\' ? (y/N) ',
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 		$helper = $this->getHelper('question');
356 356
 
357 357
 		$this->output->writeln(
358
-			'The remote instance <info>' . $remoteSignatory->getInstance()
358
+			'The remote instance <info>'.$remoteSignatory->getInstance()
359 359
 			. '</info> is known but <error>its identity has changed.</error>'
360 360
 		);
361 361
 		$this->output->writeln(
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 	private function verifyGSInstances(): void {
418 418
 		$instances = $this->globalScaleService->getGlobalScaleInstances();
419 419
 		$known = array_map(
420
-			function (RemoteInstance $instance): string {
420
+			function(RemoteInstance $instance): string {
421 421
 				return $instance->getInstance();
422 422
 			}, $this->remoteRequest->getFromType(RemoteInstance::TYPE_GLOBALSCALE)
423 423
 		);
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
 	 * @param string $instance
434 434
 	 */
435 435
 	private function syncGSInstance(string $instance): void {
436
-		$this->output->write('Adding <comment>' . $instance . '</comment>: ');
436
+		$this->output->write('Adding <comment>'.$instance.'</comment>: ');
437 437
 		if ($this->configService->isLocalInstance($instance)) {
438 438
 			$this->output->writeln('<comment>instance is local</comment>');
439 439
 			return;
@@ -448,8 +448,8 @@  discard block
 block discarded – undo
448 448
 			);
449 449
 			$this->output->writeln('<info>ok</info>');
450 450
 		} catch (Exception $e) {
451
-			$msg = ($e->getMessage() === '') ? '' : ' (' . $e->getMessage() . ')';
452
-			$this->output->writeln('<error>' . get_class($e) . $msg . '</error>');
451
+			$msg = ($e->getMessage() === '') ? '' : ' ('.$e->getMessage().')';
452
+			$this->output->writeln('<error>'.get_class($e).$msg.'</error>');
453 453
 		}
454 454
 	}
455 455
 
@@ -467,12 +467,12 @@  discard block
 block discarded – undo
467 467
 			try {
468 468
 				$current = $this->remoteStreamService->retrieveRemoteInstance($instance->getInstance());
469 469
 				if ($current->getUid(true) === $instance->getUid(true)) {
470
-					$currentUid = '<info>' . $current->getUid(true) . '</info>';
470
+					$currentUid = '<info>'.$current->getUid(true).'</info>';
471 471
 				} else {
472
-					$currentUid = '<error>' . $current->getUid(true) . '</error>';
472
+					$currentUid = '<error>'.$current->getUid(true).'</error>';
473 473
 				}
474 474
 			} catch (Exception $e) {
475
-				$currentUid = '<error>' . $e->getMessage() . '</error>';
475
+				$currentUid = '<error>'.$e->getMessage().'</error>';
476 476
 			}
477 477
 
478 478
 			$rows[] = [
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 			}
501 501
 		}
502 502
 
503
-		throw new Exception('Unknown type: ' . implode(', ', RemoteInstance::$LIST_TYPE));
503
+		throw new Exception('Unknown type: '.implode(', ', RemoteInstance::$LIST_TYPE));
504 504
 	}
505 505
 
506 506
 	/**
@@ -513,6 +513,6 @@  discard block
 block discarded – undo
513 513
 			}
514 514
 		}
515 515
 
516
-		throw new Exception('Unknown interface: ' . implode(', ', InterfaceService::$LIST_IFACE));
516
+		throw new Exception('Unknown interface: '.implode(', ', InterfaceService::$LIST_IFACE));
517 517
 	}
518 518
 }
Please login to merge, or discard this patch.