Completed
Pull Request — master (#1829)
by
unknown
35s
created
lib/Activity/Provider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 			$this->parseAsNonMember($event, $circle);
69 69
 			$this->parseAsMember($event, $circle, $params);
70 70
 			$this->parseAsModerator($event, $circle, $params);
71
-		} catch (FakeException|InvalidItemException $e) {
71
+		} catch (FakeException | InvalidItemException $e) {
72 72
 			/** clean exit */
73 73
 		}
74 74
 
Please login to merge, or discard this patch.
lib/Command/CirclesCheck.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 			throw new Exception('Please specify a --type for the test');
131 131
 		}
132 132
 		if ($test !== '' && !in_array($type, self::$checks)) {
133
-			throw new Exception('Unknown type: ' . implode(', ', self::$checks));
133
+			throw new Exception('Unknown type: '.implode(', ', self::$checks));
134 134
 		}
135 135
 
136 136
 		//		$this->configService->setAppValue(ConfigService::TEST_NC_BASE, $test);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 		}
187 187
 
188 188
 		$output->writeln('');
189
-		$output->writeln('* testing current address: ' . $test);
189
+		$output->writeln('* testing current address: '.$test);
190 190
 
191 191
 		try {
192 192
 			$this->setupLoopback($input, $output, $test);
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
 				continue;
221 221
 			}
222 222
 
223
-			$loopback = rtrim($scheme . '://' . $cloudId . $path, '/');
224
-			$output->writeln('* testing address: ' . $loopback . ' ');
223
+			$loopback = rtrim($scheme.'://'.$cloudId.$path, '/');
224
+			$output->writeln('* testing address: '.$loopback.' ');
225 225
 
226 226
 			try {
227 227
 				$this->setupLoopback($input, $output, $loopback);
@@ -292,8 +292,8 @@  discard block
 block discarded – undo
292 292
 		$test = new FederatedEvent(LoopbackTest::class);
293 293
 		$this->federatedEventService->newEvent($test);
294 294
 		$output->writeln(
295
-			'<info>' . $test->getWrapperToken() . '</info> ' .
296
-			'(took ' . (round(microtime(true) * 1000) - $timer) . 'ms)'
295
+			'<info>'.$test->getWrapperToken().'</info> '.
296
+			'(took '.(round(microtime(true) * 1000) - $timer).'ms)'
297 297
 		);
298 298
 
299 299
 		$output->writeln('- Waiting for async process to finish (5s)');
@@ -312,18 +312,18 @@  discard block
 block discarded – undo
312 312
 
313 313
 		$checkVerify = $wrapper->getEvent()->getData()->gInt('verify');
314 314
 		if ($checkVerify === LoopbackTest::VERIFY) {
315
-			$output->write('<info>verify=' . $checkVerify . '</info> ');
315
+			$output->write('<info>verify='.$checkVerify.'</info> ');
316 316
 		} else {
317
-			$output->writeln('<error>verify=' . $checkVerify . '</error>');
317
+			$output->writeln('<error>verify='.$checkVerify.'</error>');
318 318
 
319 319
 			return false;
320 320
 		}
321 321
 
322 322
 		$checkManage = $wrapper->getResult()->gInt('manage');
323 323
 		if ($checkManage === LoopbackTest::MANAGE) {
324
-			$output->write('<info>manage=' . $checkManage . '</info> ');
324
+			$output->write('<info>manage='.$checkManage.'</info> ');
325 325
 		} else {
326
-			$output->writeln('<error>manage=' . $checkManage . '</error>');
326
+			$output->writeln('<error>manage='.$checkManage.'</error>');
327 327
 
328 328
 			return false;
329 329
 		}
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 		$this->configService->setAppValue(ConfigService::LOOPBACK_CLOUD_ID, $cloudId);
362 362
 		$this->configService->setAppValue(ConfigService::LOOPBACK_CLOUD_PATH, $path);
363 363
 		$output->writeln(
364
-			'- Address <info>' . $loopback . '</info> is now used as <info>loopback</info>'
364
+			'- Address <info>'.$loopback.'</info> is now used as <info>loopback</info>'
365 365
 		);
366 366
 	}
367 367
 
@@ -413,8 +413,8 @@  discard block
 block discarded – undo
413 413
 				continue;
414 414
 			}
415 415
 
416
-			$internal = rtrim($scheme . '://' . $cloudId, '/');
417
-			$fullInternal = rtrim($scheme . '://' . $cloudId . $path, '/');
416
+			$internal = rtrim($scheme.'://'.$cloudId, '/');
417
+			$fullInternal = rtrim($scheme.'://'.$cloudId.$path, '/');
418 418
 
419 419
 			$question = new ConfirmationQuestion(
420 420
 				'<comment>Do you want to check the validity of this internal address?</comment> (Y/n) ', true,
@@ -433,9 +433,9 @@  discard block
 block discarded – undo
433 433
 					'You will need to run this <info>curl</info> command from a terminal on your local network and paste its result: '
434 434
 				);
435 435
 				$output->writeln(
436
-					'     curl -L "' . $internal
436
+					'     curl -L "'.$internal
437 437
 					. '/.well-known/webfinger?resource=http://nextcloud.com/&test='
438
-					. $testToken . '"'
438
+					. $testToken.'"'
439 439
 				);
440 440
 
441 441
 				$output->writeln('paste the result here: ');
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 
470 470
 				if ($pastedHref !== $href) {
471 471
 					$output->writeln(
472
-						'<error>The returned data (' . $pastedHref . ') are not the one expected: </error>'
472
+						'<error>The returned data ('.$pastedHref.') are not the one expected: </error>'
473 473
 						. $href
474 474
 					);
475 475
 					continue;
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 					'Next step, please run this <info>curl</info> command from a terminal on your local network and paste its result: '
482 482
 				);
483 483
 				$output->writeln(
484
-					'     curl -L "' . $pastedHref . '?test=' . $testToken . '" -H "Accept: application/json"'
484
+					'     curl -L "'.$pastedHref.'?test='.$testToken.'" -H "Accept: application/json"'
485 485
 				);
486 486
 
487 487
 				$output->writeln('paste the result here: ');
@@ -497,9 +497,9 @@  discard block
 block discarded – undo
497 497
 					|| $appSignatory->getRoot() !== $pastedSignatory->g('root')) {
498 498
 					$output->writeln(
499 499
 						'<error>The returned data ('
500
-						. $pastedSignatory->g('uid') . '/' . $pastedSignatory->g('root')
500
+						. $pastedSignatory->g('uid').'/'.$pastedSignatory->g('root')
501 501
 						. ') are not the one expected: </error>'
502
-						. $appSignatory->getUid(true) . '/' . $appSignatory->getRoot()
502
+						. $appSignatory->getUid(true).'/'.$appSignatory->getRoot()
503 503
 					);
504 504
 					continue;
505 505
 				}
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
 
526 526
 		$output->writeln('');
527 527
 		$question = new ConfirmationQuestion(
528
-			'- Do you want to save <info>' . $internal
528
+			'- Do you want to save <info>'.$internal
529 529
 			. '</info> as your <info>internal</info> address ? (y/N) ',
530 530
 			false, '/^(y|Y)/i'
531 531
 		);
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
 		$this->configService->setAppValue(ConfigService::INTERNAL_CLOUD_ID, $cloudId);
542 542
 		$this->configService->setAppValue(ConfigService::INTERNAL_CLOUD_PATH, $path);
543 543
 
544
-		$output->writeln('- Address <info>' . $internal . '</info> is now used as <info>internal</info>');
544
+		$output->writeln('- Address <info>'.$internal.'</info> is now used as <info>internal</info>');
545 545
 	}
546 546
 
547 547
 	/**
@@ -591,8 +591,8 @@  discard block
 block discarded – undo
591 591
 				continue;
592 592
 			}
593 593
 
594
-			$frontal = rtrim($scheme . '://' . $cloudId, '/');
595
-			$fullFrontal = rtrim($scheme . '://' . $cloudId . $path, '/');
594
+			$frontal = rtrim($scheme.'://'.$cloudId, '/');
595
+			$fullFrontal = rtrim($scheme.'://'.$cloudId.$path, '/');
596 596
 
597 597
 			$question = new ConfirmationQuestion(
598 598
 				'<comment>Do you want to check the validity of this frontal address?</comment> (y/N) ', false,
@@ -611,9 +611,9 @@  discard block
 block discarded – undo
611 611
 					'You will need to run this <info>curl</info> command from a remote terminal and paste its result: '
612 612
 				);
613 613
 				$output->writeln(
614
-					'     curl -L "' . $frontal
614
+					'     curl -L "'.$frontal
615 615
 					. '/.well-known/webfinger?resource=http://nextcloud.com/&test='
616
-					. $testToken . '"'
616
+					. $testToken.'"'
617 617
 				);
618 618
 
619 619
 				$output->writeln('paste the result here: ');
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 
648 648
 				if ($pastedHref !== $href) {
649 649
 					$output->writeln(
650
-						'<error>The returned data (' . $pastedHref . ') are not the one expected: </error>'
650
+						'<error>The returned data ('.$pastedHref.') are not the one expected: </error>'
651 651
 						. $href
652 652
 					);
653 653
 					continue;
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
 					'Next step, please run this <info>curl</info> command from a remote terminal and paste its result: '
660 660
 				);
661 661
 				$output->writeln(
662
-					'     curl -L "' . $pastedHref . '?test=' . $testToken . '" -H "Accept: application/json"'
662
+					'     curl -L "'.$pastedHref.'?test='.$testToken.'" -H "Accept: application/json"'
663 663
 				);
664 664
 
665 665
 				$output->writeln('paste the result here: ');
@@ -675,9 +675,9 @@  discard block
 block discarded – undo
675 675
 					|| $appSignatory->getRoot() !== $pastedSignatory->g('root')) {
676 676
 					$output->writeln(
677 677
 						'<error>The returned data ('
678
-						. $pastedSignatory->g('uid') . '/' . $pastedSignatory->g('root')
678
+						. $pastedSignatory->g('uid').'/'.$pastedSignatory->g('root')
679 679
 						. ') are not the one expected: </error>'
680
-						. $appSignatory->getUid(true) . '/' . $appSignatory->getRoot()
680
+						. $appSignatory->getUid(true).'/'.$appSignatory->getRoot()
681 681
 					);
682 682
 					continue;
683 683
 				}
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
 
704 704
 		$output->writeln('');
705 705
 		$question = new ConfirmationQuestion(
706
-			'- Do you want to save <info>' . $frontal
706
+			'- Do you want to save <info>'.$frontal
707 707
 			. '</info> as your <info>frontal</info> address ? (y/N) ',
708 708
 			false, '/^(y|Y)/i'
709 709
 		);
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
 		$this->configService->setAppValue(ConfigService::FRONTAL_CLOUD_ID, $cloudId);
720 720
 		$this->configService->setAppValue(ConfigService::FRONTAL_CLOUD_PATH, $path);
721 721
 
722
-		$output->writeln('- Address <info>' . $frontal . '</info> is now used as <info>frontal</info>');
722
+		$output->writeln('- Address <info>'.$frontal.'</info> is now used as <info>frontal</info>');
723 723
 	}
724 724
 
725 725
 	/**
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
 			$request->setDataSerialize(new SimpleDataStore(['empty' => 1]));
745 745
 		}
746 746
 
747
-		$output->write('- ' . $type . ' request on ' . $request->getCompleteUrl() . ': ');
747
+		$output->write('- '.$type.' request on '.$request->getCompleteUrl().': ');
748 748
 
749 749
 		try {
750 750
 			$this->doRequest($request);
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 				$color = 'info';
756 756
 			}
757 757
 
758
-			$output->writeln('<' . $color . '>' . $result->getStatusCode() . '</' . $color . '>');
758
+			$output->writeln('<'.$color.'>'.$result->getStatusCode().'</'.$color.'>');
759 759
 			if ($result->getStatusCode() === 200) {
760 760
 				return true;
761 761
 			}
@@ -778,7 +778,7 @@  discard block
 block discarded – undo
778 778
 
779 779
 		$output->writeln('');
780 780
 		$output->writeln(
781
-			'The address <info>' . $address . '</info> seems to reach your local Nextcloud.'
781
+			'The address <info>'.$address.'</info> seems to reach your local Nextcloud.'
782 782
 		);
783 783
 
784 784
 		$helper = $this->getHelper('question');
@@ -795,8 +795,8 @@  discard block
 block discarded – undo
795 795
 
796 796
 		$this->configService->setAppValue(ConfigService::FORCE_NC_BASE, $address);
797 797
 		$output->writeln(
798
-			'New configuration <info>' . Application::APP_ID . '.' . ConfigService::FORCE_NC_BASE . '=\''
799
-			. $address . '\'</info> stored in database'
798
+			'New configuration <info>'.Application::APP_ID.'.'.ConfigService::FORCE_NC_BASE.'=\''
799
+			. $address.'\'</info> stored in database'
800 800
 		);
801 801
 	}
802 802
 
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
 		$path = rtrim($path, '/');
824 824
 
825 825
 		if (!is_null($cloudIdPort)) {
826
-			$cloudId = $cloudId . ':' . $cloudIdPort;
826
+			$cloudId = $cloudId.':'.$cloudIdPort;
827 827
 		}
828 828
 
829 829
 		return [$scheme, $cloudId, $path];
Please login to merge, or discard this patch.
lib/Handlers/WebfingerHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 				'version' => $this->configService->getAppValue('installed_version'),
88 88
 				'api' => Application::APP_API
89 89
 			];
90
-		} catch (UnknownInterfaceException|SignatoryException $e) {
90
+		} catch (UnknownInterfaceException | SignatoryException $e) {
91 91
 			return $response;
92 92
 		}
93 93
 
Please login to merge, or discard this patch.
lib/Dashboard/TeamDashboardWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 				->setItemsLimit($limit)
77 77
 				->setItemsOffset($since ? (int)$since : 0);
78 78
 
79
-			$circles = array_map(function (Circle $circle) {
79
+			$circles = array_map(function(Circle $circle) {
80 80
 				return new WidgetItem(
81 81
 					$circle->getDisplayName(),
82 82
 					'',
Please login to merge, or discard this patch.
lib/FileSharingTeamResourceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,18 +59,18 @@  discard block
 block discarded – undo
59 59
 		}
60 60
 
61 61
 		$shares = $this->shareByCircleProvider->getSharesToCircle($teamId);
62
-		usort($shares, function ($a, $b) {
62
+		usort($shares, function($a, $b) {
63 63
 			return (int)($b->getItemType() === 'folder') - (int)($a->getItemType() === 'folder');
64 64
 		});
65
-		return array_map(function (ShareWrapper $shareWrapper) {
65
+		return array_map(function(ShareWrapper $shareWrapper) {
66 66
 			$isFolder = $shareWrapper->getItemType() === 'folder';
67 67
 			return new TeamResource(
68 68
 				$this,
69 69
 				(string)$shareWrapper->getFileSource(),
70 70
 				basename($shareWrapper->getFileTarget()),
71
-				$this->urlGenerator->getAbsoluteURL('/index.php/f/' . $shareWrapper->getFileSource()),
71
+				$this->urlGenerator->getAbsoluteURL('/index.php/f/'.$shareWrapper->getFileSource()),
72 72
 				iconSvg: $isFolder ? '<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder" viewBox="0 0 24 24"><path d="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z" /></svg>' : null,
73
-				iconURL: !$isFolder ?
73
+				iconURL : !$isFolder ?
74 74
 					$this->urlGenerator->linkToRouteAbsolute('core.preview.getPreviewByFileId', ['fileId' => $shareWrapper->getFileSource(), 'mimeFallback' => true, ])
75 75
 					: null,
76 76
 			);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 			return false;
83 83
 		}
84 84
 
85
-		return count(array_filter($this->getSharedWith($teamId), function (TeamResource $resource) use ($resourceId) {
85
+		return count(array_filter($this->getSharedWith($teamId), function(TeamResource $resource) use ($resourceId) {
86 86
 			return $resource->getId() === $resourceId;
87 87
 		})) !== 0;
88 88
 	}
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
 		$shares = $this->shareByCircleProvider->getSharesByFileId((int)$resourceId);
96 96
 
97
-		return array_map(function ($share) {
97
+		return array_map(function($share) {
98 98
 			return $share->getSharedWith();
99 99
 		}, $shares);
100 100
 	}
Please login to merge, or discard this patch.
lib/Activity/ProviderParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 				continue;
126 126
 			}
127 127
 
128
-			$replace['{' . $k . '}'] = $data[$k]['_parsed'];
128
+			$replace['{'.$k.'}'] = $data[$k]['_parsed'];
129 129
 		}
130 130
 
131 131
 		$event->setParsedSubject(strtr($line, $replace));
Please login to merge, or discard this patch.
lib/Command/CirclesMaintenance.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 				'<error>WARNING! You are about to delete all data related to the Circles App!</error>'
109 109
 			);
110 110
 			$question = new ConfirmationQuestion(
111
-				'<comment>Do you really want to ' . $action . ' Circles ?</comment> (y/N) ', false,
111
+				'<comment>Do you really want to '.$action.' Circles ?</comment> (y/N) ', false,
112 112
 				'/^(y|Y)/i'
113 113
 			);
114 114
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 			$output->writeln('<error>WARNING! This operation is not reversible.</error>');
124 124
 
125 125
 			$question = new Question(
126
-				'<comment>Please confirm this destructive operation by typing \'' . $action
126
+				'<comment>Please confirm this destructive operation by typing \''.$action
127 127
 				. '\'</comment>: ', ''
128 128
 			);
129 129
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 				$this->coreRequestBuilder->uninstall();
141 141
 			}
142 142
 
143
-			$output->writeln('<info>' . $action . ' done</info>');
143
+			$output->writeln('<info>'.$action.' done</info>');
144 144
 
145 145
 			return 0;
146 146
 		}
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		$federatedUser = $this->federatedUserService->getLocalFederatedUser($userId);
172 172
 		$displayName = $this->maintenanceService->updateDisplayName($federatedUser);
173 173
 		if ($displayName !== '') {
174
-			$output->writeln('Display name of ' . $federatedUser->getSingleId() . ' updated to ' . $displayName);
174
+			$output->writeln('Display name of '.$federatedUser->getSingleId().' updated to '.$displayName);
175 175
 		}
176 176
 
177 177
 		return 0;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 			try {
187 187
 				$this->refreshSingleDisplayName($row['uid'], $output);
188 188
 			} catch (Exception $e) {
189
-				$output->writeln(get_class($e) . ' while trying to update display name of ' . $row['uid']);
189
+				$output->writeln(get_class($e).' while trying to update display name of '.$row['uid']);
190 190
 			}
191 191
 		}
192 192
 	}
Please login to merge, or discard this patch.
lib/ShareByCircleProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 
443 443
 		return array_filter(
444 444
 			array_map(
445
-				function (ShareWrapper $wrapper) {
445
+				function(ShareWrapper $wrapper) {
446 446
 					return $wrapper->getShare($this->rootFolder, $this->userManager, $this->urlGenerator);
447 447
 				}, $wrappedShares
448 448
 			)
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
 
495 495
 		return array_filter(
496 496
 			array_map(
497
-				function (ShareWrapper $wrapper) {
497
+				function(ShareWrapper $wrapper) {
498 498
 					return $wrapper->getShare($this->rootFolder, $this->userManager, $this->urlGenerator);
499 499
 				}, $wrappedShares
500 500
 			)
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 
544 544
 		return array_filter(
545 545
 			array_map(
546
-				function (ShareWrapper $wrapper) {
546
+				function(ShareWrapper $wrapper) {
547 547
 					return $wrapper->getShare(
548 548
 						$this->rootFolder, $this->userManager, $this->urlGenerator, true
549 549
 					);
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
 
575 575
 		$share = $wrappedShare->getShare($this->rootFolder, $this->userManager, $this->urlGenerator);
576 576
 		if ($share->getPassword() !== '') {
577
-			$this->logger->notice('share is protected by a password, hash: ' . $share->getPassword());
577
+			$this->logger->notice('share is protected by a password, hash: '.$share->getPassword());
578 578
 		}
579 579
 
580 580
 		return $share;
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
 							];
685 685
 						} else {
686 686
 							// we only store temp value, as token is unknown at this point
687
-							$remote[$member->getUserid() . '@' . $member->getInstance()] = [
687
+							$remote[$member->getUserid().'@'.$member->getInstance()] = [
688 688
 								'node_id' => $share->getFileSource(),
689 689
 								'shareId' => $share->getId(),
690 690
 								'memberId' => $member->getId(),
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
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 			$this->miscService = OC::$server->query(MiscService::class);
115 115
 		} catch (QueryException $e) {
116 116
 			OC::$server->getLogger()
117
-				->log(1, 'Circles: cannot init FileSharingBroadcaster - ' . $e->getMessage());
117
+				->log(1, 'Circles: cannot init FileSharingBroadcaster - '.$e->getMessage());
118 118
 		}
119 119
 
120 120
 		try {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
 		$allShares = $this->fileSharesRequest->getSharesForCircle($member->getCircleId());
261 261
 		$knownShares = array_map(
262
-			function (SharesToken $shareToken) {
262
+			function(SharesToken $shareToken) {
263 263
 				return $shareToken->getShareId();
264 264
 			},
265 265
 			$this->tokensRequest->getTokensFromMember($member)
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 	 * @throws IllegalIDChangeException
307 307
 	 */
308 308
 	private function generateShare($data): IShare {
309
-		$this->logger->log(0, 'Regenerate shares from payload: ' . json_encode($data));
309
+		$this->logger->log(0, 'Regenerate shares from payload: '.json_encode($data));
310 310
 
311 311
 		$share = new Share($this->rootFolder, $this->userManager);
312 312
 		$share->setId($data['id']);
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
 			$this->sendPasswordByMail($share, $displayName, $email, $password);
400 400
 		} catch (Exception $e) {
401 401
 			OC::$server->getLogger()
402
-				->log(1, 'Circles::sharedByMail - mail were not sent: ' . $e->getMessage());
402
+				->log(1, 'Circles::sharedByMail - mail were not sent: '.$e->getMessage());
403 403
 		}
404 404
 	}
405 405
 
@@ -417,8 +417,8 @@  discard block
 block discarded – undo
417 417
 		$message = $this->mailer->createMessage();
418 418
 
419 419
 		$this->logger->log(
420
-			0, "Sending mail to circle '" . $circleName . "': " . $email . ' file: ' . $fileName
421
-			   . ' - link: ' . $link
420
+			0, "Sending mail to circle '".$circleName."': ".$email.' file: '.$fileName
421
+			   . ' - link: '.$link
422 422
 		);
423 423
 
424 424
 		$subject = $this->l10n->t('%s shared »%s« with you.', [$author, $fileName]);
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 
457 457
 		$message = $this->mailer->createMessage();
458 458
 
459
-		$this->logger->log(0, "Sending password mail to circle '" . $circleName . "': " . $email);
459
+		$this->logger->log(0, "Sending password mail to circle '".$circleName."': ".$email);
460 460
 
461 461
 		$filename = $share->getNode()
462 462
 			->getName();
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
 		$message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]);
512 512
 		if ($initiatorEmailAddress !== null) {
513 513
 			$message->setReplyTo([$initiatorEmailAddress => $initiatorDisplayName]);
514
-			$emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan());
514
+			$emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan());
515 515
 		} else {
516 516
 			$emailTemplate->addFooter();
517 517
 		}
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
 		$emailTemplate->addHeader();
547 547
 		$emailTemplate->addHeading($subject, false);
548 548
 		$emailTemplate->addBodyText(
549
-			htmlspecialchars($text) . '<br>' . htmlspecialchars(
549
+			htmlspecialchars($text).'<br>'.htmlspecialchars(
550 550
 				$this->l10n->t('Click the button below to open it.')
551 551
 			), $text
552 552
 		);
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 			$this->sendMailExistingShares($template, $author->getCachedName(), $recipient);
593 593
 			$this->sendPasswordExistingShares($author, $recipient, $password);
594 594
 		} catch (Exception $e) {
595
-			$this->logger->log(2, 'Failed to send mail about existing share ' . $e->getMessage());
595
+			$this->logger->log(2, 'Failed to send mail about existing share '.$e->getMessage());
596 596
 		}
597 597
 	}
598 598
 
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 		$authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author;
616 616
 		$authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null;
617 617
 
618
-		$this->logger->log(0, "Sending password mail about existing files to '" . $email . "'");
618
+		$this->logger->log(0, "Sending password mail about existing files to '".$email."'");
619 619
 
620 620
 		$plainBodyPart = $this->l10n->t(
621 621
 			"%1\$s shared multiple files with you.\nYou should have already received a separate email with a link to access them.\n",
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
 		$message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]);
658 658
 		if ($authorEmail !== null) {
659 659
 			$message->setReplyTo([$authorEmail => $authorName]);
660
-			$emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan());
660
+			$emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan());
661 661
 		} else {
662 662
 			$emailTemplate->addFooter();
663 663
 		}
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
 	 */
703 703
 	protected function generateMailExitingShares($author, $circleName) {
704 704
 		$this->logger->log(
705
-			0, "Generating mail about existing share mail from '" . $author . "' in "
705
+			0, "Generating mail about existing share mail from '".$author."' in "
706 706
 			   . $circleName
707 707
 		);
708 708
 
Please login to merge, or discard this patch.