Completed
Pull Request — master (#4136)
by Björn
13:40
created
apps/sharebymail/templates/altmailpassword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 ?>
7 7
 
8 8
 	--
9
-<?php p($theme->getName() . ' - ' . $theme->getSlogan()); ?>
9
+<?php p($theme->getName().' - '.$theme->getSlogan()); ?>
10 10
 <?php print_unescaped("\n".$theme->getBaseUrl());
Please login to merge, or discard this patch.
apps/sharebymail/templates/mailpassword.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 	<tr><td>
7 7
 			<table cellspacing="0" cellpadding="0" border="0" width="600px">
8 8
 				<tr>
9
-					<td colspan="2" bgcolor="<?php p($theme->getMailHeaderColor());?>">
9
+					<td colspan="2" bgcolor="<?php p($theme->getMailHeaderColor()); ?>">
10 10
 						<img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL(image_path('', 'logo-mail.png'))); ?>" alt="<?php p($theme->getName()); ?>"/>
11 11
 					</td>
12 12
 				</tr>
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 					<td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">--<br>
28 28
 						<?php p($theme->getName()); ?> -
29 29
 						<?php p($theme->getSlogan()); ?>
30
-						<br><a href="<?php p($theme->getBaseUrl()); ?>"><?php p($theme->getBaseUrl());?></a>
30
+						<br><a href="<?php p($theme->getBaseUrl()); ?>"><?php p($theme->getBaseUrl()); ?></a>
31 31
 					</td>
32 32
 				</tr>
33 33
 				<tr>
Please login to merge, or discard this patch.
apps/files_sharing/lib/Controller/ShareAPIController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 		// FIXME: If we inject the contacts manager it gets initialized bofore any address books are registered
217 217
 		$result = \OC::$server->getContactsManager()->search($query, [$property]);
218 218
 		foreach ($result as $r) {
219
-			foreach($r[$property] as $value) {
219
+			foreach ($r[$property] as $value) {
220 220
 				if ($value === $query) {
221 221
 					return $r['FN'];
222 222
 				}
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
 
495 495
 		$shares = array_merge($userShares, $groupShares, $circleShares);
496 496
 
497
-		$shares = array_filter($shares, function (IShare $share) {
497
+		$shares = array_filter($shares, function(IShare $share) {
498 498
 			return $share->getShareOwner() !== $this->currentUser;
499 499
 		});
500 500
 
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
 			$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_USER, $node, false, -1, 0));
530 530
 			$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_GROUP, $node, false, -1, 0));
531 531
 			$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_LINK, $node, false, -1, 0));
532
-			if($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_EMAIL)) {
532
+			if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_EMAIL)) {
533 533
 				$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_EMAIL, $node, false, -1, 0));
534 534
 			}
535 535
 			if ($this->shareManager->outgoingServer2ServerSharesAllowed()) {
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 			}
686 686
 
687 687
 			if ($permissions !== null) {
688
-				$newPermissions = (int)$permissions;
688
+				$newPermissions = (int) $permissions;
689 689
 			}
690 690
 
691 691
 			if ($newPermissions !== null &&
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
 
743 743
 		} else {
744 744
 			if ($permissions !== null) {
745
-				$permissions = (int)$permissions;
745
+				$permissions = (int) $permissions;
746 746
 				$share->setPermissions($permissions);
747 747
 			}
748 748
 
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
 
875 875
 		// First check if it is an internal share.
876 876
 		try {
877
-			$share = $this->shareManager->getShareById('ocinternal:' . $id);
877
+			$share = $this->shareManager->getShareById('ocinternal:'.$id);
878 878
 			return $share;
879 879
 		} catch (ShareNotFound $e) {
880 880
 			// Do nothing, just try the other share type
@@ -883,7 +883,7 @@  discard block
 block discarded – undo
883 883
 
884 884
 		try {
885 885
 			if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_CIRCLE)) {
886
-				$share = $this->shareManager->getShareById('ocCircleShare:' . $id);
886
+				$share = $this->shareManager->getShareById('ocCircleShare:'.$id);
887 887
 				return $share;
888 888
 			}
889 889
 		} catch (ShareNotFound $e) {
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
 
893 893
 		try {
894 894
 			if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_EMAIL)) {
895
-				$share = $this->shareManager->getShareById('ocMailShare:' . $id);
895
+				$share = $this->shareManager->getShareById('ocMailShare:'.$id);
896 896
 				return $share;
897 897
 			}
898 898
 		} catch (ShareNotFound $e) {
@@ -902,7 +902,7 @@  discard block
 block discarded – undo
902 902
 		if (!$this->shareManager->outgoingServer2ServerSharesAllowed()) {
903 903
 			throw new ShareNotFound();
904 904
 		}
905
-		$share = $this->shareManager->getShareById('ocFederatedSharing:' . $id);
905
+		$share = $this->shareManager->getShareById('ocFederatedSharing:'.$id);
906 906
 
907 907
 		return $share;
908 908
 	}
Please login to merge, or discard this patch.
apps/sharebymail/lib/ShareByMailProvider.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -227,11 +227,11 @@  discard block
 block discarded – undo
227 227
 				$share->getShareOwner(),
228 228
 				$share->getSharedBy(), $share->getSharedWith());
229 229
 		} catch (HintException $hintException) {
230
-			$this->logger->error('Failed to send share by mail: ' . $hintException->getMessage());
230
+			$this->logger->error('Failed to send share by mail: '.$hintException->getMessage());
231 231
 			$this->removeShareFromTable($shareId);
232 232
 			throw $hintException;
233 233
 		} catch (\Exception $e) {
234
-			$this->logger->error('Failed to send share by mail: ' . $e->getMessage());
234
+			$this->logger->error('Failed to send share by mail: '.$e->getMessage());
235 235
 			$this->removeShareFromTable($shareId);
236 236
 			throw new HintException('Failed to send share by mail',
237 237
 				$this->l->t('Failed to send share by E-mail'));
@@ -247,9 +247,9 @@  discard block
 block discarded – undo
247 247
 		$ownerDisplayName = ($ownerUser instanceof IUser) ? $ownerUser->getDisplayName() : $owner;
248 248
 		$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
249 249
 		if ($owner === $initiator) {
250
-			$subject = (string)$this->l->t('%s shared »%s« with you', array($ownerDisplayName, $filename));
250
+			$subject = (string) $this->l->t('%s shared »%s« with you', array($ownerDisplayName, $filename));
251 251
 		} else {
252
-			$subject = (string)$this->l->t('%s shared »%s« with you on behalf of %s', array($ownerDisplayName, $filename, $initiatorDisplayName));
252
+			$subject = (string) $this->l->t('%s shared »%s« with you on behalf of %s', array($ownerDisplayName, $filename, $initiatorDisplayName));
253 253
 		}
254 254
 
255 255
 		$message = $this->mailer->createMessage();
@@ -276,11 +276,11 @@  discard block
 block discarded – undo
276 276
 	protected function createMailBody($template, $filename, $link, $owner, $initiator) {
277 277
 
278 278
 		$mailBodyTemplate = new Template('sharebymail', $template, '');
279
-		$mailBodyTemplate->assign ('filename', \OCP\Util::sanitizeHTML($filename));
280
-		$mailBodyTemplate->assign ('link', $link);
281
-		$mailBodyTemplate->assign ('owner', \OCP\Util::sanitizeHTML($owner));
282
-		$mailBodyTemplate->assign ('initiator', \OCP\Util::sanitizeHTML($initiator));
283
-		$mailBodyTemplate->assign ('onBehalfOf', $initiator !== $owner);
279
+		$mailBodyTemplate->assign('filename', \OCP\Util::sanitizeHTML($filename));
280
+		$mailBodyTemplate->assign('link', $link);
281
+		$mailBodyTemplate->assign('owner', \OCP\Util::sanitizeHTML($owner));
282
+		$mailBodyTemplate->assign('initiator', \OCP\Util::sanitizeHTML($initiator));
283
+		$mailBodyTemplate->assign('onBehalfOf', $initiator !== $owner);
284 284
 		$mailBody = $mailBodyTemplate->fetchPage();
285 285
 
286 286
 		if (is_string($mailBody)) {
@@ -301,11 +301,11 @@  discard block
 block discarded – undo
301 301
 	protected function sendPassword($filename, $initiator, $shareWith, $password) {
302 302
 		$initiatorUser = $this->userManager->get($initiator);
303 303
 		$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
304
-		$subject = (string)$this->l->t('Password to access »%s« shared to you by %s', array($filename, $initiatorDisplayName));
304
+		$subject = (string) $this->l->t('Password to access »%s« shared to you by %s', array($filename, $initiatorDisplayName));
305 305
 
306 306
 		$message = $this->mailer->createMessage();
307 307
 		$htmlBody = $this->createMailBodyToSendPassword('mailpassword', $filename, $initiatorDisplayName, $password);
308
-		$textBody = $this->createMailBodyToSendPassword('altmailpassword', $filename,$initiatorDisplayName, $password);
308
+		$textBody = $this->createMailBodyToSendPassword('altmailpassword', $filename, $initiatorDisplayName, $password);
309 309
 		$message->setTo([$shareWith]);
310 310
 		$message->setSubject($subject);
311 311
 		$message->setBody($textBody, 'text/plain');
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
 	protected function createMailBodyToSendPassword($template, $filename, $initiator, $password) {
327 327
 
328 328
 		$mailBodyTemplate = new Template('sharebymail', $template, '');
329
-		$mailBodyTemplate->assign ('filename', \OCP\Util::sanitizeHTML($filename));
330
-		$mailBodyTemplate->assign ('password', \OCP\Util::sanitizeHTML($password));
331
-		$mailBodyTemplate->assign ('initiator', \OCP\Util::sanitizeHTML($initiator));
329
+		$mailBodyTemplate->assign('filename', \OCP\Util::sanitizeHTML($filename));
330
+		$mailBodyTemplate->assign('password', \OCP\Util::sanitizeHTML($password));
331
+		$mailBodyTemplate->assign('initiator', \OCP\Util::sanitizeHTML($initiator));
332 332
 		$mailBody = $mailBodyTemplate->fetchPage();
333 333
 
334 334
 		if (is_string($mailBody)) {
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 	 */
348 348
 	protected function generateToken() {
349 349
 		$token = $this->secureRandom->generate(
350
-			15, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_DIGITS);
350
+			15, ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_DIGITS);
351 351
 		return $token;
352 352
 	}
353 353
 
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 			->orderBy('id');
369 369
 
370 370
 		$cursor = $qb->execute();
371
-		while($data = $cursor->fetch()) {
371
+		while ($data = $cursor->fetch()) {
372 372
 			$children[] = $this->createShareObject($data);
373 373
 		}
374 374
 		$cursor->closeCursor();
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 		$qb->execute();
412 412
 		$id = $qb->getLastInsertId();
413 413
 
414
-		return (int)$id;
414
+		return (int) $id;
415 415
 	}
416 416
 
417 417
 	/**
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 		// a real password was given
429 429
 		$validPassword = $plainTextPassword !== null && $plainTextPassword !== '';
430 430
 
431
-		if($validPassword && $originalShare->getPassword() !== $share->getPassword()) {
431
+		if ($validPassword && $originalShare->getPassword() !== $share->getPassword()) {
432 432
 			$this->sendPassword($share->getNode()->getName(), $share->getSharedBy(), $share->getSharedWith(), $plainTextPassword);
433 433
 		}
434 434
 		/*
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 
523 523
 		$cursor = $qb->execute();
524 524
 		$shares = [];
525
-		while($data = $cursor->fetch()) {
525
+		while ($data = $cursor->fetch()) {
526 526
 			$shares[] = $this->createShareObject($data);
527 527
 		}
528 528
 		$cursor->closeCursor();
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
 			->execute();
575 575
 
576 576
 		$shares = [];
577
-		while($data = $cursor->fetch()) {
577
+		while ($data = $cursor->fetch()) {
578 578
 			$shares[] = $this->createShareObject($data);
579 579
 		}
580 580
 		$cursor->closeCursor();
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
 
614 614
 		$cursor = $qb->execute();
615 615
 
616
-		while($data = $cursor->fetch()) {
616
+		while ($data = $cursor->fetch()) {
617 617
 			$shares[] = $this->createShareObject($data);
618 618
 		}
619 619
 		$cursor->closeCursor();
@@ -676,15 +676,15 @@  discard block
 block discarded – undo
676 676
 	protected function createShareObject($data) {
677 677
 
678 678
 		$share = new Share($this->rootFolder, $this->userManager);
679
-		$share->setId((int)$data['id'])
680
-			->setShareType((int)$data['share_type'])
681
-			->setPermissions((int)$data['permissions'])
679
+		$share->setId((int) $data['id'])
680
+			->setShareType((int) $data['share_type'])
681
+			->setPermissions((int) $data['permissions'])
682 682
 			->setTarget($data['file_target'])
683
-			->setMailSend((bool)$data['mail_send'])
683
+			->setMailSend((bool) $data['mail_send'])
684 684
 			->setToken($data['token']);
685 685
 
686 686
 		$shareTime = new \DateTime();
687
-		$shareTime->setTimestamp((int)$data['stime']);
687
+		$shareTime->setTimestamp((int) $data['stime']);
688 688
 		$share->setShareTime($shareTime);
689 689
 		$share->setSharedWith($data['share_with']);
690 690
 		$share->setPassword($data['password']);
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
 		} else {
696 696
 			//OLD SHARE
697 697
 			$share->setSharedBy($data['uid_owner']);
698
-			$path = $this->getNode($share->getSharedBy(), (int)$data['file_source']);
698
+			$path = $this->getNode($share->getSharedBy(), (int) $data['file_source']);
699 699
 
700 700
 			$owner = $path->getOwner();
701 701
 			$share->setShareOwner($owner->getUID());
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
 			$share->setExpirationDate($expiration);
707 707
 		}
708 708
 
709
-		$share->setNodeId((int)$data['file_source']);
709
+		$share->setNodeId((int) $data['file_source']);
710 710
 		$share->setNodeType($data['item_type']);
711 711
 
712 712
 		$share->setProviderId($this->identifier());
@@ -825,7 +825,7 @@  discard block
 block discarded – undo
825 825
 			);
826 826
 		}
827 827
 
828
-		$qb->innerJoin('s', 'filecache' ,'f', 's.file_source = f.fileid');
828
+		$qb->innerJoin('s', 'filecache', 'f', 's.file_source = f.fileid');
829 829
 		$qb->andWhere($qb->expr()->eq('f.parent', $qb->createNamedParameter($node->getId())));
830 830
 
831 831
 		$qb->orderBy('id');
Please login to merge, or discard this patch.
lib/private/Share20/Manager.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
 		if ($fullId === null && $expirationDate === null && $this->shareApiLinkDefaultExpireDate()) {
322 322
 			$expirationDate = new \DateTime();
323
-			$expirationDate->setTime(0,0,0);
323
+			$expirationDate->setTime(0, 0, 0);
324 324
 			$expirationDate->add(new \DateInterval('P'.$this->shareApiLinkDefaultExpireDays().'D'));
325 325
 		}
326 326
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 
333 333
 			$date = new \DateTime();
334 334
 			$date->setTime(0, 0, 0);
335
-			$date->add(new \DateInterval('P' . $this->shareApiLinkDefaultExpireDays() . 'D'));
335
+			$date->add(new \DateInterval('P'.$this->shareApiLinkDefaultExpireDays().'D'));
336 336
 			if ($date < $expirationDate) {
337 337
 				$message = $this->l->t('Cannot set expiration date more than %s days in the future', [$this->shareApiLinkDefaultExpireDays()]);
338 338
 				throw new GenericShareException($message, $message, 404);
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 		 */
386 386
 		$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_USER);
387 387
 		$existingShares = $provider->getSharesByPath($share->getNode());
388
-		foreach($existingShares as $existingShare) {
388
+		foreach ($existingShares as $existingShare) {
389 389
 			// Ignore if it is the same share
390 390
 			try {
391 391
 				if ($existingShare->getFullId() === $share->getFullId()) {
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 		 */
443 443
 		$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_GROUP);
444 444
 		$existingShares = $provider->getSharesByPath($share->getNode());
445
-		foreach($existingShares as $existingShare) {
445
+		foreach ($existingShares as $existingShare) {
446 446
 			try {
447 447
 				if ($existingShare->getFullId() === $share->getFullId()) {
448 448
 					continue;
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
 		// Make sure that we do not share a path that contains a shared mountpoint
512 512
 		if ($path instanceof \OCP\Files\Folder) {
513 513
 			$mounts = $this->mountManager->findIn($path->getPath());
514
-			foreach($mounts as $mount) {
514
+			foreach ($mounts as $mount) {
515 515
 				if ($mount->getStorage()->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
516 516
 					throw new \InvalidArgumentException('Path contains files shared with you');
517 517
 				}
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 		$storage = $share->getNode()->getStorage();
560 560
 		if ($storage->instanceOfStorage('OCA\Files_Sharing\External\Storage')) {
561 561
 			$parent = $share->getNode()->getParent();
562
-			while($parent->getStorage()->instanceOfStorage('OCA\Files_Sharing\External\Storage')) {
562
+			while ($parent->getStorage()->instanceOfStorage('OCA\Files_Sharing\External\Storage')) {
563 563
 				$parent = $parent->getParent();
564 564
 			}
565 565
 			$share->setShareOwner($parent->getOwner()->getUID());
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
 		}
617 617
 
618 618
 		// Generate the target
619
-		$target = $this->config->getSystemValue('share_folder', '/') .'/'. $share->getNode()->getName();
619
+		$target = $this->config->getSystemValue('share_folder', '/').'/'.$share->getNode()->getName();
620 620
 		$target = \OC\Files\Filesystem::normalizePath($target);
621 621
 		$share->setTarget($target);
622 622
 
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
 	 * @param string $recipientId
864 864
 	 */
865 865
 	public function deleteFromSelf(\OCP\Share\IShare $share, $recipientId) {
866
-		list($providerId, ) = $this->splitFullId($share->getFullId());
866
+		list($providerId,) = $this->splitFullId($share->getFullId());
867 867
 		$provider = $this->factory->getProvider($providerId);
868 868
 
869 869
 		$provider->deleteFromSelf($share, $recipientId);
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
 		if ($share->getShareType() === \OCP\Share::SHARE_TYPE_GROUP) {
885 885
 			$sharedWith = $this->groupManager->get($share->getSharedWith());
886 886
 			if (is_null($sharedWith)) {
887
-				throw new \InvalidArgumentException('Group "' . $share->getSharedWith() . '" does not exist');
887
+				throw new \InvalidArgumentException('Group "'.$share->getSharedWith().'" does not exist');
888 888
 			}
889 889
 			$recipient = $this->userManager->get($recipientId);
890 890
 			if (!$sharedWith->inGroup($recipient)) {
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
 			}
893 893
 		}
894 894
 
895
-		list($providerId, ) = $this->splitFullId($share->getFullId());
895
+		list($providerId,) = $this->splitFullId($share->getFullId());
896 896
 		$provider = $this->factory->getProvider($providerId);
897 897
 
898 898
 		$provider->move($share, $recipientId);
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
 		if ($shareType === \OCP\Share::SHARE_TYPE_LINK) {
940 940
 			$shares2 = [];
941 941
 
942
-			while(true) {
942
+			while (true) {
943 943
 				$added = 0;
944 944
 				foreach ($shares as $share) {
945 945
 
@@ -1054,7 +1054,7 @@  discard block
 block discarded – undo
1054 1054
 	 *
1055 1055
 	 * @return Share[]
1056 1056
 	 */
1057
-	public function getSharesByPath(\OCP\Files\Node $path, $page=0, $perPage=50) {
1057
+	public function getSharesByPath(\OCP\Files\Node $path, $page = 0, $perPage = 50) {
1058 1058
 		return [];
1059 1059
 	}
1060 1060
 
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
 	public function getShareByToken($token) {
1070 1070
 		$share = null;
1071 1071
 		try {
1072
-			if($this->shareApiAllowLinks()) {
1072
+			if ($this->shareApiAllowLinks()) {
1073 1073
 				$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_LINK);
1074 1074
 				$share = $provider->getShareByToken($token);
1075 1075
 			}
@@ -1274,7 +1274,7 @@  discard block
 block discarded – undo
1274 1274
 	 * @return int
1275 1275
 	 */
1276 1276
 	public function shareApiLinkDefaultExpireDays() {
1277
-		return (int)$this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');
1277
+		return (int) $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');
1278 1278
 	}
1279 1279
 
1280 1280
 	/**
Please login to merge, or discard this patch.