Completed
Push — master ( 4b668d...887904 )
by Julius
29s queued 14s
created
lib/Listeners/Examples/ExampleRequestingCircleMember.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@
 block discarded – undo
91 91
 
92 92
 		$circle = $event->getCircle();
93 93
 		$member = $event->getMember();
94
-		$info .= 'circleId: ' . $circle->getSingleId() . '; userId: ' . $member->getUserId() . '; userType: '
95
-				 . Member::$TYPE[$member->getUserType()] . '; singleId: ' . $member->getSingleId()
96
-				 . '; memberId: ' . $member->getId() . '; isLocal: ' . json_encode($member->isLocal()) . '; ';
94
+		$info .= 'circleId: '.$circle->getSingleId().'; userId: '.$member->getUserId().'; userType: '
95
+				 . Member::$TYPE[$member->getUserType()].'; singleId: '.$member->getSingleId()
96
+				 . '; memberId: '.$member->getId().'; isLocal: '.json_encode($member->isLocal()).'; ';
97 97
 
98
-		$this->log(3, $prefix . $info);
98
+		$this->log(3, $prefix.$info);
99 99
 	}
100 100
 
101 101
 }
Please login to merge, or discard this patch.
lib/Service/OutputService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,14 +82,14 @@
 block discarded – undo
82 82
 	 */
83 83
 	public function output(string $message, bool $advance = false): void {
84 84
 		if (!is_null($this->occOutput)) {
85
-			$this->occOutput->writeln((($advance) ? '+' : '-') . ' ' . $message);
85
+			$this->occOutput->writeln((($advance) ? '+' : '-').' '.$message);
86 86
 		}
87 87
 
88 88
 		if (!is_null($this->migrationOutput)) {
89 89
 			if ($advance) {
90
-				$this->migrationOutput->advance(1, '(Circles) ' . $message);
90
+				$this->migrationOutput->advance(1, '(Circles) '.$message);
91 91
 			} else {
92
-				$this->migrationOutput->info('(Circles) ' . $message);
92
+				$this->migrationOutput->info('(Circles) '.$message);
93 93
 			}
94 94
 		}
95 95
 	}
Please login to merge, or discard this patch.
lib/Controller/AdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
 					throw new OCSException('works only from local instance', 404);
195 195
 				}
196 196
 
197
-				$userId = $currentUser->getUserId() . '/' . $userId;
197
+				$userId = $currentUser->getUserId().'/'.$userId;
198 198
 			}
199 199
 
200 200
 			$federatedUser = $this->federatedUserService->generateFederatedUser($userId, $type);
Please login to merge, or discard this patch.
lib/Command/CirclesConfig.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 		} catch (FederatedItemException $e) {
156 156
 			if ($input->getOption('status-code')) {
157 157
 				throw new FederatedItemException(
158
-					' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage()
158
+					' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage()
159 159
 				);
160 160
 			}
161 161
 
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
 			$value = array_search(strtoupper($item), $valid);
190 190
 			if (!$value) {
191 191
 				throw new InvalidArgumentException(
192
-					'Invalid config \'' . $item . '\'. Available values: '
193
-					. implode(', ', array_values($valid)) . '. '
192
+					'Invalid config \''.$item.'\'. Available values: '
193
+					. implode(', ', array_values($valid)).'. '
194 194
 					. 'To disable a config, start the value with an underscore'
195 195
 				);
196 196
 			}
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
 		array_walk(
221 221
 			$listing,
222
-			function (string &$v): void {
222
+			function(string &$v): void {
223 223
 				[, $long] = explode('|', $v);
224 224
 				$v = strtoupper(str_replace(' ', '', $long));
225 225
 			}
Please login to merge, or discard this patch.
lib/Command/SharesFiles.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 				$recipient = $share->getInitiator();
220 220
 				$sharedTo = $recipient->getDisplayName();
221 221
 				if (!$this->configService->isLocalInstance($recipient->getInstance())) {
222
-					$sharedTo .= '@' . $recipient->getInstance();
222
+					$sharedTo .= '@'.$recipient->getInstance();
223 223
 				}
224 224
 			}
225 225
 			$circle = $share->getCircle();
@@ -229,15 +229,15 @@  discard block
 block discarded – undo
229 229
 				$share->getShareOwner(),
230 230
 				$share->getFileTarget(),
231 231
 				$share->getSharedBy(),
232
-				$circle->getDisplayName() . ' (' . $share->getSharedWith()
233
-				. ', ' . Circle::$DEF_SOURCE[$circle->getSource()] . ')'
232
+				$circle->getDisplayName().' ('.$share->getSharedWith()
233
+				. ', '.Circle::$DEF_SOURCE[$circle->getSource()].')'
234 234
 			];
235 235
 
236 236
 			if (!$filterRecipient) {
237 237
 				$row = array_merge(
238 238
 					$row, [
239
-						$sharedTo . ' (' . $recipient->getSingleId() . ', '
240
-						. Circle::$DEF_SOURCE[$recipient->getBasedOn()->getSource()] . ')',
239
+						$sharedTo.' ('.$recipient->getSingleId().', '
240
+						. Circle::$DEF_SOURCE[$recipient->getBasedOn()->getSource()].')',
241 241
 						(($share->getChildId() > 0) ? $share->getChildFileTarget(
242 242
 						) : $share->getFileTarget()),
243 243
 					]
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
@@ -245,16 +245,16 @@  discard block
 block discarded – undo
245 245
 		try {
246 246
 			$test = new ReflectionClass($class);
247 247
 		} catch (ReflectionException $e) {
248
-			throw new FederatedEventException('ReflectionException with ' . $class . ': ' . $e->getMessage());
248
+			throw new FederatedEventException('ReflectionException with '.$class.': '.$e->getMessage());
249 249
 		}
250 250
 
251 251
 		if (!in_array(IFederatedItem::class, $test->getInterfaceNames())) {
252
-			throw new FederatedEventException($class . ' does not implements IFederatedItem');
252
+			throw new FederatedEventException($class.' does not implements IFederatedItem');
253 253
 		}
254 254
 
255 255
 		$item = OC::$server->get($class);
256 256
 		if (!($item instanceof IFederatedItem)) {
257
-			throw new FederatedEventException($class . ' not an IFederatedItem');
257
+			throw new FederatedEventException($class.' not an IFederatedItem');
258 258
 		}
259 259
 
260 260
 		if ($item instanceof IFederatedItemHighSeverity) {
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 			$knownInstances = $this->memberRequest->getMemberInstances($circle->getSingleId());
451 451
 			$instances = array_filter(
452 452
 				array_map(
453
-					function (RemoteInstance $instance) use ($knownInstances) {
453
+					function(RemoteInstance $instance) use ($knownInstances) {
454 454
 						if (!in_array($instance->getInstance(), $knownInstances)) {
455 455
 							return null;
456 456
 						}
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 		if ($event->hasMember()
466 466
 			&& !$this->configService->isLocalInstance($event->getMember()->getInstance())) {
467 467
 			$currentInstances = array_map(
468
-				function (RemoteInstance $instance): string {
468
+				function(RemoteInstance $instance): string {
469 469
 					return $instance->getInstance();
470 470
 				}, $instances
471 471
 			);
Please login to merge, or discard this patch.
lib/Service/MemberService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
 		}
252 252
 
253 253
 		$members = array_map(
254
-			function (FederatedUser $federatedUser) use ($patron) {
254
+			function(FederatedUser $federatedUser) use ($patron) {
255 255
 				$member = new Member();
256 256
 				$member->importFromIFederatedUser($federatedUser);
257 257
 				$member->setInvitedBy($patron);
Please login to merge, or discard this patch.
lib/Service/EventWrapperService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
 	 */
175 175
 	private function getFailedEvents(array $retryRange): array {
176 176
 		$token = array_map(
177
-			function (EventWrapper $event): string {
177
+			function(EventWrapper $event): string {
178 178
 				return $event->getToken();
179 179
 			}, $this->eventWrapperRequest->getFailedEvents($retryRange)
180 180
 		);
Please login to merge, or discard this patch.
lib/Circles/FileSharingBroadcaster.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			$this->miscService = OC::$server->query(MiscService::class);
137 137
 		} catch (QueryException $e) {
138 138
 			OC::$server->getLogger()
139
-					   ->log(1, 'Circles: cannot init FileSharingBroadcaster - ' . $e->getMessage());
139
+					   ->log(1, 'Circles: cannot init FileSharingBroadcaster - '.$e->getMessage());
140 140
 		}
141 141
 
142 142
 		try {
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
 		$allShares = $this->fileSharesRequest->getSharesForCircle($member->getCircleId());
283 283
 		$knownShares = array_map(
284
-			function (SharesToken $shareToken) {
284
+			function(SharesToken $shareToken) {
285 285
 				return $shareToken->getShareId();
286 286
 			},
287 287
 			$this->tokensRequest->getTokensFromMember($member)
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 	 * @throws IllegalIDChangeException
329 329
 	 */
330 330
 	private function generateShare($data): IShare {
331
-		$this->logger->log(0, 'Regenerate shares from payload: ' . json_encode($data));
331
+		$this->logger->log(0, 'Regenerate shares from payload: '.json_encode($data));
332 332
 
333 333
 		$share = new Share($this->rootFolder, $this->userManager);
334 334
 		$share->setId($data['id']);
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 			$this->sendPasswordByMail($share, $displayName, $email, $password);
422 422
 		} catch (Exception $e) {
423 423
 			OC::$server->getLogger()
424
-					   ->log(1, 'Circles::sharedByMail - mail were not sent: ' . $e->getMessage());
424
+					   ->log(1, 'Circles::sharedByMail - mail were not sent: '.$e->getMessage());
425 425
 		}
426 426
 	}
427 427
 
@@ -439,8 +439,8 @@  discard block
 block discarded – undo
439 439
 		$message = $this->mailer->createMessage();
440 440
 
441 441
 		$this->logger->log(
442
-			0, "Sending mail to circle '" . $circleName . "': " . $email . ' file: ' . $fileName
443
-			   . ' - link: ' . $link
442
+			0, "Sending mail to circle '".$circleName."': ".$email.' file: '.$fileName
443
+			   . ' - link: '.$link
444 444
 		);
445 445
 
446 446
 		$subject = $this->l10n->t('%s shared »%s« with you.', [$author, $fileName]);
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 
480 480
 		$message = $this->mailer->createMessage();
481 481
 
482
-		$this->logger->log(0, "Sending password mail to circle '" . $circleName . "': " . $email);
482
+		$this->logger->log(0, "Sending password mail to circle '".$circleName."': ".$email);
483 483
 
484 484
 		$filename = $share->getNode()
485 485
 						  ->getName();
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
 		$message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]);
535 535
 		if ($initiatorEmailAddress !== null) {
536 536
 			$message->setReplyTo([$initiatorEmailAddress => $initiatorDisplayName]);
537
-			$emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan());
537
+			$emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan());
538 538
 		} else {
539 539
 			$emailTemplate->addFooter();
540 540
 		}
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
 		$emailTemplate->addHeader();
570 570
 		$emailTemplate->addHeading($subject, false);
571 571
 		$emailTemplate->addBodyText(
572
-			htmlspecialchars($text) . '<br>' . htmlspecialchars(
572
+			htmlspecialchars($text).'<br>'.htmlspecialchars(
573 573
 				$this->l10n->t('Click the button below to open it.')
574 574
 			), $text
575 575
 		);
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 			$this->sendMailExistingShares($template, $author->getCachedName(), $recipient);
616 616
 			$this->sendPasswordExistingShares($author, $recipient, $password);
617 617
 		} catch (Exception $e) {
618
-			$this->logger->log(2, 'Failed to send mail about existing share ' . $e->getMessage());
618
+			$this->logger->log(2, 'Failed to send mail about existing share '.$e->getMessage());
619 619
 		}
620 620
 	}
621 621
 
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
 		$authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author;
639 639
 		$authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null;
640 640
 
641
-		$this->logger->log(0, "Sending password mail about existing files to '" . $email . "'");
641
+		$this->logger->log(0, "Sending password mail about existing files to '".$email."'");
642 642
 
643 643
 		$plainBodyPart = $this->l10n->t(
644 644
 			"%1\$s shared multiple files with you.\nYou should have already received a separate email with a link to access them.\n",
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
 		$message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]);
681 681
 		if ($authorEmail !== null) {
682 682
 			$message->setReplyTo([$authorEmail => $authorName]);
683
-			$emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan());
683
+			$emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan());
684 684
 		} else {
685 685
 			$emailTemplate->addFooter();
686 686
 		}
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
 	 */
726 726
 	protected function generateMailExitingShares($author, $circleName) {
727 727
 		$this->logger->log(
728
-			0, "Generating mail about existing share mail from '" . $author . "' in "
728
+			0, "Generating mail about existing share mail from '".$author."' in "
729 729
 			   . $circleName
730 730
 		);
731 731
 
Please login to merge, or discard this patch.