Completed
Push — master ( 86d952...cbfcfb )
by Morris
24:23
created
lib/private/Share20/DefaultShareProvider.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 			->orderBy('id');
297 297
 
298 298
 		$cursor = $qb->execute();
299
-		while($data = $cursor->fetch()) {
299
+		while ($data = $cursor->fetch()) {
300 300
 			$children[] = $this->createShare($data);
301 301
 		}
302 302
 		$cursor->closeCursor();
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 			$user = $this->userManager->get($recipient);
342 342
 
343 343
 			if (is_null($group)) {
344
-				throw new ProviderException('Group "' . $share->getSharedWith() . '" does not exist');
344
+				throw new ProviderException('Group "'.$share->getSharedWith().'" does not exist');
345 345
 			}
346 346
 
347 347
 			if (!$group->inGroup($user)) {
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
 			);
537 537
 		}
538 538
 
539
-		$qb->innerJoin('s', 'filecache' ,'f', $qb->expr()->eq('s.file_source', 'f.fileid'));
539
+		$qb->innerJoin('s', 'filecache', 'f', $qb->expr()->eq('s.file_source', 'f.fileid'));
540 540
 		$qb->andWhere($qb->expr()->eq('f.parent', $qb->createNamedParameter($node->getId())));
541 541
 
542 542
 		$qb->orderBy('id');
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 
593 593
 		$cursor = $qb->execute();
594 594
 		$shares = [];
595
-		while($data = $cursor->fetch()) {
595
+		while ($data = $cursor->fetch()) {
596 596
 			$shares[] = $this->createShare($data);
597 597
 		}
598 598
 		$cursor->closeCursor();
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
 			->execute();
672 672
 
673 673
 		$shares = [];
674
-		while($data = $cursor->fetch()) {
674
+		while ($data = $cursor->fetch()) {
675 675
 			$shares[] = $this->createShare($data);
676 676
 		}
677 677
 		$cursor->closeCursor();
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
 
743 743
 			$cursor = $qb->execute();
744 744
 
745
-			while($data = $cursor->fetch()) {
745
+			while ($data = $cursor->fetch()) {
746 746
 				if ($this->isAccessibleResult($data)) {
747 747
 					$shares[] = $this->createShare($data);
748 748
 				}
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
 			$shares2 = [];
758 758
 
759 759
 			$start = 0;
760
-			while(true) {
760
+			while (true) {
761 761
 				$groups = array_slice($allGroups, $start, 100);
762 762
 				$start += 100;
763 763
 
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
 					));
803 803
 
804 804
 				$cursor = $qb->execute();
805
-				while($data = $cursor->fetch()) {
805
+				while ($data = $cursor->fetch()) {
806 806
 					if ($offset > 0) {
807 807
 						$offset--;
808 808
 						continue;
@@ -871,14 +871,14 @@  discard block
 block discarded – undo
871 871
 	 */
872 872
 	private function createShare($data) {
873 873
 		$share = new Share($this->rootFolder, $this->userManager);
874
-		$share->setId((int)$data['id'])
875
-			->setShareType((int)$data['share_type'])
876
-			->setPermissions((int)$data['permissions'])
874
+		$share->setId((int) $data['id'])
875
+			->setShareType((int) $data['share_type'])
876
+			->setPermissions((int) $data['permissions'])
877 877
 			->setTarget($data['file_target'])
878
-			->setMailSend((bool)$data['mail_send']);
878
+			->setMailSend((bool) $data['mail_send']);
879 879
 
880 880
 		$shareTime = new \DateTime();
881
-		$shareTime->setTimestamp((int)$data['stime']);
881
+		$shareTime->setTimestamp((int) $data['stime']);
882 882
 		$share->setShareTime($shareTime);
883 883
 
884 884
 		if ($share->getShareType() === \OCP\Share::SHARE_TYPE_USER) {
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
 		$share->setSharedBy($data['uid_initiator']);
894 894
 		$share->setShareOwner($data['uid_owner']);
895 895
 
896
-		$share->setNodeId((int)$data['file_source']);
896
+		$share->setNodeId((int) $data['file_source']);
897 897
 		$share->setNodeType($data['item_type']);
898 898
 
899 899
 		if ($data['expiration'] !== null) {
@@ -923,7 +923,7 @@  discard block
 block discarded – undo
923 923
 		$result = [];
924 924
 
925 925
 		$start = 0;
926
-		while(true) {
926
+		while (true) {
927 927
 			/** @var Share[] $shareSlice */
928 928
 			$shareSlice = array_slice($shares, $start, 100);
929 929
 			$start += 100;
@@ -938,7 +938,7 @@  discard block
 block discarded – undo
938 938
 			$shareMap = [];
939 939
 
940 940
 			foreach ($shareSlice as $share) {
941
-				$ids[] = (int)$share->getId();
941
+				$ids[] = (int) $share->getId();
942 942
 				$shareMap[$share->getId()] = $share;
943 943
 			}
944 944
 
@@ -955,8 +955,8 @@  discard block
 block discarded – undo
955 955
 
956 956
 			$stmt = $query->execute();
957 957
 
958
-			while($data = $stmt->fetch()) {
959
-				$shareMap[$data['parent']]->setPermissions((int)$data['permissions']);
958
+			while ($data = $stmt->fetch()) {
959
+				$shareMap[$data['parent']]->setPermissions((int) $data['permissions']);
960 960
 				$shareMap[$data['parent']]->setTarget($data['file_target']);
961 961
 				$shareMap[$data['parent']]->setParent($data['parent']);
962 962
 			}
@@ -1054,8 +1054,8 @@  discard block
 block discarded – undo
1054 1054
 
1055 1055
 		$cursor = $qb->execute();
1056 1056
 		$ids = [];
1057
-		while($row = $cursor->fetch()) {
1058
-			$ids[] = (int)$row['id'];
1057
+		while ($row = $cursor->fetch()) {
1058
+			$ids[] = (int) $row['id'];
1059 1059
 		}
1060 1060
 		$cursor->closeCursor();
1061 1061
 
@@ -1097,8 +1097,8 @@  discard block
 block discarded – undo
1097 1097
 
1098 1098
 		$cursor = $qb->execute();
1099 1099
 		$ids = [];
1100
-		while($row = $cursor->fetch()) {
1101
-			$ids[] = (int)$row['id'];
1100
+		while ($row = $cursor->fetch()) {
1101
+			$ids[] = (int) $row['id'];
1102 1102
 		}
1103 1103
 		$cursor->closeCursor();
1104 1104
 
@@ -1152,8 +1152,8 @@  discard block
 block discarded – undo
1152 1152
 
1153 1153
 		$users = [];
1154 1154
 		$link = false;
1155
-		while($row = $cursor->fetch()) {
1156
-			$type = (int)$row['share_type'];
1155
+		while ($row = $cursor->fetch()) {
1156
+			$type = (int) $row['share_type'];
1157 1157
 			if ($type === \OCP\Share::SHARE_TYPE_USER) {
1158 1158
 				$uid = $row['share_with'];
1159 1159
 				$users[$uid] = isset($users[$uid]) ? $users[$uid] : [];
Please login to merge, or discard this patch.
apps/files_sharing/composer/composer/autoload_static.php 1 patch
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -6,76 +6,76 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitFiles_Sharing
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'O' => 
11
-        array (
11
+        array(
12 12
             'OCA\\Files_Sharing\\' => 18,
13 13
         ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'OCA\\Files_Sharing\\' => 
18
-        array (
19
-            0 => __DIR__ . '/..' . '/../lib',
18
+        array(
19
+            0 => __DIR__.'/..'.'/../lib',
20 20
         ),
21 21
     );
22 22
 
23
-    public static $classMap = array (
24
-        'OCA\\Files_Sharing\\Activity\\Filter' => __DIR__ . '/..' . '/../lib/Activity/Filter.php',
25
-        'OCA\\Files_Sharing\\Activity\\Providers\\Base' => __DIR__ . '/..' . '/../lib/Activity/Providers/Base.php',
26
-        'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => __DIR__ . '/..' . '/../lib/Activity/Providers/Downloads.php',
27
-        'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => __DIR__ . '/..' . '/../lib/Activity/Providers/Groups.php',
28
-        'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => __DIR__ . '/..' . '/../lib/Activity/Providers/PublicLinks.php',
29
-        'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => __DIR__ . '/..' . '/../lib/Activity/Providers/RemoteShares.php',
30
-        'OCA\\Files_Sharing\\Activity\\Providers\\Users' => __DIR__ . '/..' . '/../lib/Activity/Providers/Users.php',
31
-        'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => __DIR__ . '/..' . '/../lib/Activity/Settings/PublicLinks.php',
32
-        'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => __DIR__ . '/..' . '/../lib/Activity/Settings/RemoteShare.php',
33
-        'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => __DIR__ . '/..' . '/../lib/Activity/Settings/Shared.php',
34
-        'OCA\\Files_Sharing\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
35
-        'OCA\\Files_Sharing\\BackgroundJob\\FederatedSharesDiscoverJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/FederatedSharesDiscoverJob.php',
36
-        'OCA\\Files_Sharing\\Cache' => __DIR__ . '/..' . '/../lib/Cache.php',
37
-        'OCA\\Files_Sharing\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php',
38
-        'OCA\\Files_Sharing\\Collaboration\\ShareRecipientSorter' => __DIR__ . '/..' . '/../lib/Collaboration/ShareRecipientSorter.php',
39
-        'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => __DIR__ . '/..' . '/../lib/Command/CleanupRemoteStorages.php',
40
-        'OCA\\Files_Sharing\\Controller\\DeletedShareAPIController' => __DIR__ . '/..' . '/../lib/Controller/DeletedShareAPIController.php',
41
-        'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => __DIR__ . '/..' . '/../lib/Controller/ExternalSharesController.php',
42
-        'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => __DIR__ . '/..' . '/../lib/Controller/PublicPreviewController.php',
43
-        'OCA\\Files_Sharing\\Controller\\RemoteController' => __DIR__ . '/..' . '/../lib/Controller/RemoteController.php',
44
-        'OCA\\Files_Sharing\\Controller\\ShareAPIController' => __DIR__ . '/..' . '/../lib/Controller/ShareAPIController.php',
45
-        'OCA\\Files_Sharing\\Controller\\ShareController' => __DIR__ . '/..' . '/../lib/Controller/ShareController.php',
46
-        'OCA\\Files_Sharing\\Controller\\ShareInfoController' => __DIR__ . '/..' . '/../lib/Controller/ShareInfoController.php',
47
-        'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => __DIR__ . '/..' . '/../lib/Controller/ShareesAPIController.php',
48
-        'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => __DIR__ . '/..' . '/../lib/DeleteOrphanedSharesJob.php',
49
-        'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => __DIR__ . '/..' . '/../lib/Exceptions/BrokenPath.php',
50
-        'OCA\\Files_Sharing\\Exceptions\\S2SException' => __DIR__ . '/..' . '/../lib/Exceptions/S2SException.php',
51
-        'OCA\\Files_Sharing\\ExpireSharesJob' => __DIR__ . '/..' . '/../lib/ExpireSharesJob.php',
52
-        'OCA\\Files_Sharing\\External\\Cache' => __DIR__ . '/..' . '/../lib/External/Cache.php',
53
-        'OCA\\Files_Sharing\\External\\Manager' => __DIR__ . '/..' . '/../lib/External/Manager.php',
54
-        'OCA\\Files_Sharing\\External\\Mount' => __DIR__ . '/..' . '/../lib/External/Mount.php',
55
-        'OCA\\Files_Sharing\\External\\MountProvider' => __DIR__ . '/..' . '/../lib/External/MountProvider.php',
56
-        'OCA\\Files_Sharing\\External\\Scanner' => __DIR__ . '/..' . '/../lib/External/Scanner.php',
57
-        'OCA\\Files_Sharing\\External\\Storage' => __DIR__ . '/..' . '/../lib/External/Storage.php',
58
-        'OCA\\Files_Sharing\\External\\Watcher' => __DIR__ . '/..' . '/../lib/External/Watcher.php',
59
-        'OCA\\Files_Sharing\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php',
60
-        'OCA\\Files_Sharing\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php',
61
-        'OCA\\Files_Sharing\\ISharedStorage' => __DIR__ . '/..' . '/../lib/ISharedStorage.php',
62
-        'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/OCSShareAPIMiddleware.php',
63
-        'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/ShareInfoMiddleware.php',
64
-        'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/SharingCheckMiddleware.php',
65
-        'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => __DIR__ . '/..' . '/../lib/Migration/OwncloudGuestShareType.php',
66
-        'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => __DIR__ . '/..' . '/../lib/Migration/SetPasswordColumn.php',
67
-        'OCA\\Files_Sharing\\MountProvider' => __DIR__ . '/..' . '/../lib/MountProvider.php',
68
-        'OCA\\Files_Sharing\\Scanner' => __DIR__ . '/..' . '/../lib/Scanner.php',
69
-        'OCA\\Files_Sharing\\ShareBackend\\File' => __DIR__ . '/..' . '/../lib/ShareBackend/File.php',
70
-        'OCA\\Files_Sharing\\ShareBackend\\Folder' => __DIR__ . '/..' . '/../lib/ShareBackend/Folder.php',
71
-        'OCA\\Files_Sharing\\SharedMount' => __DIR__ . '/..' . '/../lib/SharedMount.php',
72
-        'OCA\\Files_Sharing\\SharedStorage' => __DIR__ . '/..' . '/../lib/SharedStorage.php',
73
-        'OCA\\Files_Sharing\\Updater' => __DIR__ . '/..' . '/../lib/Updater.php',
23
+    public static $classMap = array(
24
+        'OCA\\Files_Sharing\\Activity\\Filter' => __DIR__.'/..'.'/../lib/Activity/Filter.php',
25
+        'OCA\\Files_Sharing\\Activity\\Providers\\Base' => __DIR__.'/..'.'/../lib/Activity/Providers/Base.php',
26
+        'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => __DIR__.'/..'.'/../lib/Activity/Providers/Downloads.php',
27
+        'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => __DIR__.'/..'.'/../lib/Activity/Providers/Groups.php',
28
+        'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => __DIR__.'/..'.'/../lib/Activity/Providers/PublicLinks.php',
29
+        'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => __DIR__.'/..'.'/../lib/Activity/Providers/RemoteShares.php',
30
+        'OCA\\Files_Sharing\\Activity\\Providers\\Users' => __DIR__.'/..'.'/../lib/Activity/Providers/Users.php',
31
+        'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => __DIR__.'/..'.'/../lib/Activity/Settings/PublicLinks.php',
32
+        'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => __DIR__.'/..'.'/../lib/Activity/Settings/RemoteShare.php',
33
+        'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => __DIR__.'/..'.'/../lib/Activity/Settings/Shared.php',
34
+        'OCA\\Files_Sharing\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php',
35
+        'OCA\\Files_Sharing\\BackgroundJob\\FederatedSharesDiscoverJob' => __DIR__.'/..'.'/../lib/BackgroundJob/FederatedSharesDiscoverJob.php',
36
+        'OCA\\Files_Sharing\\Cache' => __DIR__.'/..'.'/../lib/Cache.php',
37
+        'OCA\\Files_Sharing\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php',
38
+        'OCA\\Files_Sharing\\Collaboration\\ShareRecipientSorter' => __DIR__.'/..'.'/../lib/Collaboration/ShareRecipientSorter.php',
39
+        'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => __DIR__.'/..'.'/../lib/Command/CleanupRemoteStorages.php',
40
+        'OCA\\Files_Sharing\\Controller\\DeletedShareAPIController' => __DIR__.'/..'.'/../lib/Controller/DeletedShareAPIController.php',
41
+        'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => __DIR__.'/..'.'/../lib/Controller/ExternalSharesController.php',
42
+        'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => __DIR__.'/..'.'/../lib/Controller/PublicPreviewController.php',
43
+        'OCA\\Files_Sharing\\Controller\\RemoteController' => __DIR__.'/..'.'/../lib/Controller/RemoteController.php',
44
+        'OCA\\Files_Sharing\\Controller\\ShareAPIController' => __DIR__.'/..'.'/../lib/Controller/ShareAPIController.php',
45
+        'OCA\\Files_Sharing\\Controller\\ShareController' => __DIR__.'/..'.'/../lib/Controller/ShareController.php',
46
+        'OCA\\Files_Sharing\\Controller\\ShareInfoController' => __DIR__.'/..'.'/../lib/Controller/ShareInfoController.php',
47
+        'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => __DIR__.'/..'.'/../lib/Controller/ShareesAPIController.php',
48
+        'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => __DIR__.'/..'.'/../lib/DeleteOrphanedSharesJob.php',
49
+        'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => __DIR__.'/..'.'/../lib/Exceptions/BrokenPath.php',
50
+        'OCA\\Files_Sharing\\Exceptions\\S2SException' => __DIR__.'/..'.'/../lib/Exceptions/S2SException.php',
51
+        'OCA\\Files_Sharing\\ExpireSharesJob' => __DIR__.'/..'.'/../lib/ExpireSharesJob.php',
52
+        'OCA\\Files_Sharing\\External\\Cache' => __DIR__.'/..'.'/../lib/External/Cache.php',
53
+        'OCA\\Files_Sharing\\External\\Manager' => __DIR__.'/..'.'/../lib/External/Manager.php',
54
+        'OCA\\Files_Sharing\\External\\Mount' => __DIR__.'/..'.'/../lib/External/Mount.php',
55
+        'OCA\\Files_Sharing\\External\\MountProvider' => __DIR__.'/..'.'/../lib/External/MountProvider.php',
56
+        'OCA\\Files_Sharing\\External\\Scanner' => __DIR__.'/..'.'/../lib/External/Scanner.php',
57
+        'OCA\\Files_Sharing\\External\\Storage' => __DIR__.'/..'.'/../lib/External/Storage.php',
58
+        'OCA\\Files_Sharing\\External\\Watcher' => __DIR__.'/..'.'/../lib/External/Watcher.php',
59
+        'OCA\\Files_Sharing\\Helper' => __DIR__.'/..'.'/../lib/Helper.php',
60
+        'OCA\\Files_Sharing\\Hooks' => __DIR__.'/..'.'/../lib/Hooks.php',
61
+        'OCA\\Files_Sharing\\ISharedStorage' => __DIR__.'/..'.'/../lib/ISharedStorage.php',
62
+        'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => __DIR__.'/..'.'/../lib/Middleware/OCSShareAPIMiddleware.php',
63
+        'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => __DIR__.'/..'.'/../lib/Middleware/ShareInfoMiddleware.php',
64
+        'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => __DIR__.'/..'.'/../lib/Middleware/SharingCheckMiddleware.php',
65
+        'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => __DIR__.'/..'.'/../lib/Migration/OwncloudGuestShareType.php',
66
+        'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => __DIR__.'/..'.'/../lib/Migration/SetPasswordColumn.php',
67
+        'OCA\\Files_Sharing\\MountProvider' => __DIR__.'/..'.'/../lib/MountProvider.php',
68
+        'OCA\\Files_Sharing\\Scanner' => __DIR__.'/..'.'/../lib/Scanner.php',
69
+        'OCA\\Files_Sharing\\ShareBackend\\File' => __DIR__.'/..'.'/../lib/ShareBackend/File.php',
70
+        'OCA\\Files_Sharing\\ShareBackend\\Folder' => __DIR__.'/..'.'/../lib/ShareBackend/Folder.php',
71
+        'OCA\\Files_Sharing\\SharedMount' => __DIR__.'/..'.'/../lib/SharedMount.php',
72
+        'OCA\\Files_Sharing\\SharedStorage' => __DIR__.'/..'.'/../lib/SharedStorage.php',
73
+        'OCA\\Files_Sharing\\Updater' => __DIR__.'/..'.'/../lib/Updater.php',
74 74
     );
75 75
 
76 76
     public static function getInitializer(ClassLoader $loader)
77 77
     {
78
-        return \Closure::bind(function () use ($loader) {
78
+        return \Closure::bind(function() use ($loader) {
79 79
             $loader->prefixLengthsPsr4 = ComposerStaticInitFiles_Sharing::$prefixLengthsPsr4;
80 80
             $loader->prefixDirsPsr4 = ComposerStaticInitFiles_Sharing::$prefixDirsPsr4;
81 81
             $loader->classMap = ComposerStaticInitFiles_Sharing::$classMap;
Please login to merge, or discard this patch.
apps/files_sharing/composer/composer/autoload_classmap.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -6,54 +6,54 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\Files_Sharing\\Activity\\Filter' => $baseDir . '/../lib/Activity/Filter.php',
10
-    'OCA\\Files_Sharing\\Activity\\Providers\\Base' => $baseDir . '/../lib/Activity/Providers/Base.php',
11
-    'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => $baseDir . '/../lib/Activity/Providers/Downloads.php',
12
-    'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => $baseDir . '/../lib/Activity/Providers/Groups.php',
13
-    'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => $baseDir . '/../lib/Activity/Providers/PublicLinks.php',
14
-    'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => $baseDir . '/../lib/Activity/Providers/RemoteShares.php',
15
-    'OCA\\Files_Sharing\\Activity\\Providers\\Users' => $baseDir . '/../lib/Activity/Providers/Users.php',
16
-    'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => $baseDir . '/../lib/Activity/Settings/PublicLinks.php',
17
-    'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => $baseDir . '/../lib/Activity/Settings/RemoteShare.php',
18
-    'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => $baseDir . '/../lib/Activity/Settings/Shared.php',
19
-    'OCA\\Files_Sharing\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
20
-    'OCA\\Files_Sharing\\BackgroundJob\\FederatedSharesDiscoverJob' => $baseDir . '/../lib/BackgroundJob/FederatedSharesDiscoverJob.php',
21
-    'OCA\\Files_Sharing\\Cache' => $baseDir . '/../lib/Cache.php',
22
-    'OCA\\Files_Sharing\\Capabilities' => $baseDir . '/../lib/Capabilities.php',
23
-    'OCA\\Files_Sharing\\Collaboration\\ShareRecipientSorter' => $baseDir . '/../lib/Collaboration/ShareRecipientSorter.php',
24
-    'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => $baseDir . '/../lib/Command/CleanupRemoteStorages.php',
25
-    'OCA\\Files_Sharing\\Controller\\DeletedShareAPIController' => $baseDir . '/../lib/Controller/DeletedShareAPIController.php',
26
-    'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => $baseDir . '/../lib/Controller/ExternalSharesController.php',
27
-    'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => $baseDir . '/../lib/Controller/PublicPreviewController.php',
28
-    'OCA\\Files_Sharing\\Controller\\RemoteController' => $baseDir . '/../lib/Controller/RemoteController.php',
29
-    'OCA\\Files_Sharing\\Controller\\ShareAPIController' => $baseDir . '/../lib/Controller/ShareAPIController.php',
30
-    'OCA\\Files_Sharing\\Controller\\ShareController' => $baseDir . '/../lib/Controller/ShareController.php',
31
-    'OCA\\Files_Sharing\\Controller\\ShareInfoController' => $baseDir . '/../lib/Controller/ShareInfoController.php',
32
-    'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => $baseDir . '/../lib/Controller/ShareesAPIController.php',
33
-    'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => $baseDir . '/../lib/DeleteOrphanedSharesJob.php',
34
-    'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => $baseDir . '/../lib/Exceptions/BrokenPath.php',
35
-    'OCA\\Files_Sharing\\Exceptions\\S2SException' => $baseDir . '/../lib/Exceptions/S2SException.php',
36
-    'OCA\\Files_Sharing\\ExpireSharesJob' => $baseDir . '/../lib/ExpireSharesJob.php',
37
-    'OCA\\Files_Sharing\\External\\Cache' => $baseDir . '/../lib/External/Cache.php',
38
-    'OCA\\Files_Sharing\\External\\Manager' => $baseDir . '/../lib/External/Manager.php',
39
-    'OCA\\Files_Sharing\\External\\Mount' => $baseDir . '/../lib/External/Mount.php',
40
-    'OCA\\Files_Sharing\\External\\MountProvider' => $baseDir . '/../lib/External/MountProvider.php',
41
-    'OCA\\Files_Sharing\\External\\Scanner' => $baseDir . '/../lib/External/Scanner.php',
42
-    'OCA\\Files_Sharing\\External\\Storage' => $baseDir . '/../lib/External/Storage.php',
43
-    'OCA\\Files_Sharing\\External\\Watcher' => $baseDir . '/../lib/External/Watcher.php',
44
-    'OCA\\Files_Sharing\\Helper' => $baseDir . '/../lib/Helper.php',
45
-    'OCA\\Files_Sharing\\Hooks' => $baseDir . '/../lib/Hooks.php',
46
-    'OCA\\Files_Sharing\\ISharedStorage' => $baseDir . '/../lib/ISharedStorage.php',
47
-    'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => $baseDir . '/../lib/Middleware/OCSShareAPIMiddleware.php',
48
-    'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => $baseDir . '/../lib/Middleware/ShareInfoMiddleware.php',
49
-    'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => $baseDir . '/../lib/Middleware/SharingCheckMiddleware.php',
50
-    'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => $baseDir . '/../lib/Migration/OwncloudGuestShareType.php',
51
-    'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => $baseDir . '/../lib/Migration/SetPasswordColumn.php',
52
-    'OCA\\Files_Sharing\\MountProvider' => $baseDir . '/../lib/MountProvider.php',
53
-    'OCA\\Files_Sharing\\Scanner' => $baseDir . '/../lib/Scanner.php',
54
-    'OCA\\Files_Sharing\\ShareBackend\\File' => $baseDir . '/../lib/ShareBackend/File.php',
55
-    'OCA\\Files_Sharing\\ShareBackend\\Folder' => $baseDir . '/../lib/ShareBackend/Folder.php',
56
-    'OCA\\Files_Sharing\\SharedMount' => $baseDir . '/../lib/SharedMount.php',
57
-    'OCA\\Files_Sharing\\SharedStorage' => $baseDir . '/../lib/SharedStorage.php',
58
-    'OCA\\Files_Sharing\\Updater' => $baseDir . '/../lib/Updater.php',
9
+    'OCA\\Files_Sharing\\Activity\\Filter' => $baseDir.'/../lib/Activity/Filter.php',
10
+    'OCA\\Files_Sharing\\Activity\\Providers\\Base' => $baseDir.'/../lib/Activity/Providers/Base.php',
11
+    'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => $baseDir.'/../lib/Activity/Providers/Downloads.php',
12
+    'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => $baseDir.'/../lib/Activity/Providers/Groups.php',
13
+    'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => $baseDir.'/../lib/Activity/Providers/PublicLinks.php',
14
+    'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => $baseDir.'/../lib/Activity/Providers/RemoteShares.php',
15
+    'OCA\\Files_Sharing\\Activity\\Providers\\Users' => $baseDir.'/../lib/Activity/Providers/Users.php',
16
+    'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => $baseDir.'/../lib/Activity/Settings/PublicLinks.php',
17
+    'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => $baseDir.'/../lib/Activity/Settings/RemoteShare.php',
18
+    'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => $baseDir.'/../lib/Activity/Settings/Shared.php',
19
+    'OCA\\Files_Sharing\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php',
20
+    'OCA\\Files_Sharing\\BackgroundJob\\FederatedSharesDiscoverJob' => $baseDir.'/../lib/BackgroundJob/FederatedSharesDiscoverJob.php',
21
+    'OCA\\Files_Sharing\\Cache' => $baseDir.'/../lib/Cache.php',
22
+    'OCA\\Files_Sharing\\Capabilities' => $baseDir.'/../lib/Capabilities.php',
23
+    'OCA\\Files_Sharing\\Collaboration\\ShareRecipientSorter' => $baseDir.'/../lib/Collaboration/ShareRecipientSorter.php',
24
+    'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => $baseDir.'/../lib/Command/CleanupRemoteStorages.php',
25
+    'OCA\\Files_Sharing\\Controller\\DeletedShareAPIController' => $baseDir.'/../lib/Controller/DeletedShareAPIController.php',
26
+    'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => $baseDir.'/../lib/Controller/ExternalSharesController.php',
27
+    'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => $baseDir.'/../lib/Controller/PublicPreviewController.php',
28
+    'OCA\\Files_Sharing\\Controller\\RemoteController' => $baseDir.'/../lib/Controller/RemoteController.php',
29
+    'OCA\\Files_Sharing\\Controller\\ShareAPIController' => $baseDir.'/../lib/Controller/ShareAPIController.php',
30
+    'OCA\\Files_Sharing\\Controller\\ShareController' => $baseDir.'/../lib/Controller/ShareController.php',
31
+    'OCA\\Files_Sharing\\Controller\\ShareInfoController' => $baseDir.'/../lib/Controller/ShareInfoController.php',
32
+    'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => $baseDir.'/../lib/Controller/ShareesAPIController.php',
33
+    'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => $baseDir.'/../lib/DeleteOrphanedSharesJob.php',
34
+    'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => $baseDir.'/../lib/Exceptions/BrokenPath.php',
35
+    'OCA\\Files_Sharing\\Exceptions\\S2SException' => $baseDir.'/../lib/Exceptions/S2SException.php',
36
+    'OCA\\Files_Sharing\\ExpireSharesJob' => $baseDir.'/../lib/ExpireSharesJob.php',
37
+    'OCA\\Files_Sharing\\External\\Cache' => $baseDir.'/../lib/External/Cache.php',
38
+    'OCA\\Files_Sharing\\External\\Manager' => $baseDir.'/../lib/External/Manager.php',
39
+    'OCA\\Files_Sharing\\External\\Mount' => $baseDir.'/../lib/External/Mount.php',
40
+    'OCA\\Files_Sharing\\External\\MountProvider' => $baseDir.'/../lib/External/MountProvider.php',
41
+    'OCA\\Files_Sharing\\External\\Scanner' => $baseDir.'/../lib/External/Scanner.php',
42
+    'OCA\\Files_Sharing\\External\\Storage' => $baseDir.'/../lib/External/Storage.php',
43
+    'OCA\\Files_Sharing\\External\\Watcher' => $baseDir.'/../lib/External/Watcher.php',
44
+    'OCA\\Files_Sharing\\Helper' => $baseDir.'/../lib/Helper.php',
45
+    'OCA\\Files_Sharing\\Hooks' => $baseDir.'/../lib/Hooks.php',
46
+    'OCA\\Files_Sharing\\ISharedStorage' => $baseDir.'/../lib/ISharedStorage.php',
47
+    'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => $baseDir.'/../lib/Middleware/OCSShareAPIMiddleware.php',
48
+    'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => $baseDir.'/../lib/Middleware/ShareInfoMiddleware.php',
49
+    'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => $baseDir.'/../lib/Middleware/SharingCheckMiddleware.php',
50
+    'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => $baseDir.'/../lib/Migration/OwncloudGuestShareType.php',
51
+    'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => $baseDir.'/../lib/Migration/SetPasswordColumn.php',
52
+    'OCA\\Files_Sharing\\MountProvider' => $baseDir.'/../lib/MountProvider.php',
53
+    'OCA\\Files_Sharing\\Scanner' => $baseDir.'/../lib/Scanner.php',
54
+    'OCA\\Files_Sharing\\ShareBackend\\File' => $baseDir.'/../lib/ShareBackend/File.php',
55
+    'OCA\\Files_Sharing\\ShareBackend\\Folder' => $baseDir.'/../lib/ShareBackend/Folder.php',
56
+    'OCA\\Files_Sharing\\SharedMount' => $baseDir.'/../lib/SharedMount.php',
57
+    'OCA\\Files_Sharing\\SharedStorage' => $baseDir.'/../lib/SharedStorage.php',
58
+    'OCA\\Files_Sharing\\Updater' => $baseDir.'/../lib/Updater.php',
59 59
 );
Please login to merge, or discard this patch.
lib/private/Share20/Manager.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 
358 358
 		if ($fullId === null && $expirationDate === null && $this->shareApiLinkDefaultExpireDate()) {
359 359
 			$expirationDate = new \DateTime();
360
-			$expirationDate->setTime(0,0,0);
360
+			$expirationDate->setTime(0, 0, 0);
361 361
 			$expirationDate->add(new \DateInterval('P'.$this->shareApiLinkDefaultExpireDays().'D'));
362 362
 		}
363 363
 
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 
370 370
 			$date = new \DateTime();
371 371
 			$date->setTime(0, 0, 0);
372
-			$date->add(new \DateInterval('P' . $this->shareApiLinkDefaultExpireDays() . 'D'));
372
+			$date->add(new \DateInterval('P'.$this->shareApiLinkDefaultExpireDays().'D'));
373 373
 			if ($date < $expirationDate) {
374 374
 				$message = $this->l->t('Can’t set expiration date more than %s days in the future', [$this->shareApiLinkDefaultExpireDays()]);
375 375
 				throw new GenericShareException($message, $message, 404);
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 		 */
423 423
 		$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_USER);
424 424
 		$existingShares = $provider->getSharesByPath($share->getNode());
425
-		foreach($existingShares as $existingShare) {
425
+		foreach ($existingShares as $existingShare) {
426 426
 			// Ignore if it is the same share
427 427
 			try {
428 428
 				if ($existingShare->getFullId() === $share->getFullId()) {
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 		 */
480 480
 		$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_GROUP);
481 481
 		$existingShares = $provider->getSharesByPath($share->getNode());
482
-		foreach($existingShares as $existingShare) {
482
+		foreach ($existingShares as $existingShare) {
483 483
 			try {
484 484
 				if ($existingShare->getFullId() === $share->getFullId()) {
485 485
 					continue;
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 		// Make sure that we do not share a path that contains a shared mountpoint
549 549
 		if ($path instanceof \OCP\Files\Folder) {
550 550
 			$mounts = $this->mountManager->findIn($path->getPath());
551
-			foreach($mounts as $mount) {
551
+			foreach ($mounts as $mount) {
552 552
 				if ($mount->getStorage()->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
553 553
 					throw new \InvalidArgumentException('Path contains files shared with you');
554 554
 				}
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
 		$storage = $share->getNode()->getStorage();
597 597
 		if ($storage->instanceOfStorage('OCA\Files_Sharing\External\Storage')) {
598 598
 			$parent = $share->getNode()->getParent();
599
-			while($parent->getStorage()->instanceOfStorage('OCA\Files_Sharing\External\Storage')) {
599
+			while ($parent->getStorage()->instanceOfStorage('OCA\Files_Sharing\External\Storage')) {
600 600
 				$parent = $parent->getParent();
601 601
 			}
602 602
 			$share->setShareOwner($parent->getOwner()->getUID());
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 		}
650 650
 
651 651
 		// Generate the target
652
-		$target = $this->config->getSystemValue('share_folder', '/') .'/'. $share->getNode()->getName();
652
+		$target = $this->config->getSystemValue('share_folder', '/').'/'.$share->getNode()->getName();
653 653
 		$target = \OC\Files\Filesystem::normalizePath($target);
654 654
 		$share->setTarget($target);
655 655
 
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
 
673 673
 		if ($share->getShareType() === \OCP\Share::SHARE_TYPE_USER) {
674 674
 			$mailSend = $share->getMailSend();
675
-			if($mailSend === true) {
675
+			if ($mailSend === true) {
676 676
 				$user = $this->userManager->get($share->getSharedWith());
677 677
 				if ($user !== null) {
678 678
 					$emailAddress = $user->getEMailAddress();
@@ -687,12 +687,12 @@  discard block
 block discarded – undo
687 687
 							$emailAddress,
688 688
 							$share->getExpirationDate()
689 689
 						);
690
-						$this->logger->debug('Send share notification to ' . $emailAddress . ' for share with ID ' . $share->getId(), ['app' => 'share']);
690
+						$this->logger->debug('Send share notification to '.$emailAddress.' for share with ID '.$share->getId(), ['app' => 'share']);
691 691
 					} else {
692
-						$this->logger->debug('Share notification not send to ' . $share->getSharedWith() . ' because email address is not set.', ['app' => 'share']);
692
+						$this->logger->debug('Share notification not send to '.$share->getSharedWith().' because email address is not set.', ['app' => 'share']);
693 693
 					}
694 694
 				} else {
695
-					$this->logger->debug('Share notification not send to ' . $share->getSharedWith() . ' because user could not be found.', ['app' => 'share']);
695
+					$this->logger->debug('Share notification not send to '.$share->getSharedWith().' because user could not be found.', ['app' => 'share']);
696 696
 				}
697 697
 			} else {
698 698
 				$this->logger->debug('Share notification not send because mailsend is false.', ['app' => 'share']);
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
 		$text = $l->t('%s shared »%s« with you.', [$initiatorDisplayName, $filename]);
737 737
 
738 738
 		$emailTemplate->addBodyText(
739
-			htmlspecialchars($text . ' ' . $l->t('Click the button below to open it.')),
739
+			htmlspecialchars($text.' '.$l->t('Click the button below to open it.')),
740 740
 			$text
741 741
 		);
742 742
 		$emailTemplate->addBodyButton(
@@ -760,9 +760,9 @@  discard block
 block discarded – undo
760 760
 		// The "Reply-To" is set to the sharer if an mail address is configured
761 761
 		// also the default footer contains a "Do not reply" which needs to be adjusted.
762 762
 		$initiatorEmail = $initiatorUser->getEMailAddress();
763
-		if($initiatorEmail !== null) {
763
+		if ($initiatorEmail !== null) {
764 764
 			$message->setReplyTo([$initiatorEmail => $initiatorDisplayName]);
765
-			$emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : ''));
765
+			$emailTemplate->addFooter($instanceName.($this->defaults->getSlogan() !== '' ? ' - '.$this->defaults->getSlogan() : ''));
766 766
 		} else {
767 767
 			$emailTemplate->addFooter();
768 768
 		}
@@ -971,7 +971,7 @@  discard block
 block discarded – undo
971 971
 	 * @param string $recipientId
972 972
 	 */
973 973
 	public function deleteFromSelf(\OCP\Share\IShare $share, $recipientId) {
974
-		list($providerId, ) = $this->splitFullId($share->getFullId());
974
+		list($providerId,) = $this->splitFullId($share->getFullId());
975 975
 		$provider = $this->factory->getProvider($providerId);
976 976
 
977 977
 		$provider->deleteFromSelf($share, $recipientId);
@@ -980,7 +980,7 @@  discard block
 block discarded – undo
980 980
 	}
981 981
 
982 982
 	public function restoreShare(IShare $share, string $recipientId): IShare {
983
-		list($providerId, ) = $this->splitFullId($share->getFullId());
983
+		list($providerId,) = $this->splitFullId($share->getFullId());
984 984
 		$provider = $this->factory->getProvider($providerId);
985 985
 
986 986
 		return $provider->restore($share, $recipientId);
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
 		if ($share->getShareType() === \OCP\Share::SHARE_TYPE_GROUP) {
1002 1002
 			$sharedWith = $this->groupManager->get($share->getSharedWith());
1003 1003
 			if (is_null($sharedWith)) {
1004
-				throw new \InvalidArgumentException('Group "' . $share->getSharedWith() . '" does not exist');
1004
+				throw new \InvalidArgumentException('Group "'.$share->getSharedWith().'" does not exist');
1005 1005
 			}
1006 1006
 			$recipient = $this->userManager->get($recipientId);
1007 1007
 			if (!$sharedWith->inGroup($recipient)) {
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
 			}
1010 1010
 		}
1011 1011
 
1012
-		list($providerId, ) = $this->splitFullId($share->getFullId());
1012
+		list($providerId,) = $this->splitFullId($share->getFullId());
1013 1013
 		$provider = $this->factory->getProvider($providerId);
1014 1014
 
1015 1015
 		$provider->move($share, $recipientId);
@@ -1056,7 +1056,7 @@  discard block
 block discarded – undo
1056 1056
 
1057 1057
 		$shares2 = [];
1058 1058
 
1059
-		while(true) {
1059
+		while (true) {
1060 1060
 			$added = 0;
1061 1061
 			foreach ($shares as $share) {
1062 1062
 
@@ -1141,7 +1141,7 @@  discard block
 block discarded – undo
1141 1141
 		});
1142 1142
 
1143 1143
 		// Only get shares where the owner still exists
1144
-		$shares = array_filter($shares, function (IShare $share) {
1144
+		$shares = array_filter($shares, function(IShare $share) {
1145 1145
 			return $this->userManager->userExists($share->getShareOwner());
1146 1146
 		});
1147 1147
 
@@ -1180,7 +1180,7 @@  discard block
 block discarded – undo
1180 1180
 	 *
1181 1181
 	 * @return Share[]
1182 1182
 	 */
1183
-	public function getSharesByPath(\OCP\Files\Node $path, $page=0, $perPage=50) {
1183
+	public function getSharesByPath(\OCP\Files\Node $path, $page = 0, $perPage = 50) {
1184 1184
 		return [];
1185 1185
 	}
1186 1186
 
@@ -1195,7 +1195,7 @@  discard block
 block discarded – undo
1195 1195
 	public function getShareByToken($token) {
1196 1196
 		$share = null;
1197 1197
 		try {
1198
-			if($this->shareApiAllowLinks()) {
1198
+			if ($this->shareApiAllowLinks()) {
1199 1199
 				$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_LINK);
1200 1200
 				$share = $provider->getShareByToken($token);
1201 1201
 			}
@@ -1402,7 +1402,7 @@  discard block
 block discarded – undo
1402 1402
 			}
1403 1403
 			$al['users'][$owner] = [
1404 1404
 				'node_id' => $path->getId(),
1405
-				'node_path' => '/' . $ownerPath,
1405
+				'node_path' => '/'.$ownerPath,
1406 1406
 			];
1407 1407
 		} else {
1408 1408
 			$al['users'][] = $owner;
@@ -1502,7 +1502,7 @@  discard block
 block discarded – undo
1502 1502
 	 * @return int
1503 1503
 	 */
1504 1504
 	public function shareApiLinkDefaultExpireDays() {
1505
-		return (int)$this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');
1505
+		return (int) $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');
1506 1506
 	}
1507 1507
 
1508 1508
 	/**
Please login to merge, or discard this patch.
apps/files_sharing/lib/Controller/DeletedShareAPIController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 	public function index(): DataResponse {
110 110
 		$shares = $this->shareManager->getDeletedSharedWith($this->userId, \OCP\Share::SHARE_TYPE_GROUP, null, -1, 0);
111 111
 
112
-		$shares = array_map(function (IShare $share) {
112
+		$shares = array_map(function(IShare $share) {
113 113
 			return $this->formatShare($share);
114 114
 		}, $shares);
115 115
 
Please login to merge, or discard this patch.
apps/files_sharing/appinfo/app.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 $userSession = \OC::$server->getUserSession();
53 53
 
54 54
 if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
55
-	\OCA\Files\App::getNavigationManager()->add(function () {
55
+	\OCA\Files\App::getNavigationManager()->add(function() {
56 56
 		$l = \OC::$server->getL10N('files_sharing');
57 57
 		return [
58 58
 			'id' => 'sharingin',
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		];
64 64
 	});
65 65
 	
66
-	\OCA\Files\App::getNavigationManager()->add(function () {
66
+	\OCA\Files\App::getNavigationManager()->add(function() {
67 67
 		$l = \OC::$server->getL10N('files_sharing');
68 68
 		return [
69 69
 			'id' => 'deletedshares',
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	});
76 76
 
77 77
 	if (\OCP\Util::isSharingDisabledForUser() === false) {
78
-		\OCA\Files\App::getNavigationManager()->add(function () {
78
+		\OCA\Files\App::getNavigationManager()->add(function() {
79 79
 			$l = \OC::$server->getL10N('files_sharing');
80 80
 			return [
81 81
 				'id' => 'sharingout',
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
 		// Check if sharing by link is enabled
90 90
 		if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') {
91
-			\OCA\Files\App::getNavigationManager()->add(function () {
91
+			\OCA\Files\App::getNavigationManager()->add(function() {
92 92
 				$l = \OC::$server->getL10N('files_sharing');
93 93
 				return [
94 94
 					'id' => 'sharinglinks',
Please login to merge, or discard this patch.