Passed
Push — master ( 7ef10b...59c1ff )
by Joas
11:15 queued 11s
created
apps/files_sharing/composer/composer/autoload_static.php 1 patch
Spacing   +70 added lines, -70 removed lines patch added patch discarded remove patch
@@ -6,89 +6,89 @@
 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\\Command\\ExiprationNotification' => __DIR__ . '/..' . '/../lib/Command/ExiprationNotification.php',
41
-        'OCA\\Files_Sharing\\Controller\\AcceptController' => __DIR__ . '/..' . '/../lib/Controller/AcceptController.php',
42
-        'OCA\\Files_Sharing\\Controller\\DeletedShareAPIController' => __DIR__ . '/..' . '/../lib/Controller/DeletedShareAPIController.php',
43
-        'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => __DIR__ . '/..' . '/../lib/Controller/ExternalSharesController.php',
44
-        'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => __DIR__ . '/..' . '/../lib/Controller/PublicPreviewController.php',
45
-        'OCA\\Files_Sharing\\Controller\\RemoteController' => __DIR__ . '/..' . '/../lib/Controller/RemoteController.php',
46
-        'OCA\\Files_Sharing\\Controller\\SettingsController' => __DIR__ . '/..' . '/../lib/Controller/SettingsController.php',
47
-        'OCA\\Files_Sharing\\Controller\\ShareAPIController' => __DIR__ . '/..' . '/../lib/Controller/ShareAPIController.php',
48
-        'OCA\\Files_Sharing\\Controller\\ShareController' => __DIR__ . '/..' . '/../lib/Controller/ShareController.php',
49
-        'OCA\\Files_Sharing\\Controller\\ShareInfoController' => __DIR__ . '/..' . '/../lib/Controller/ShareInfoController.php',
50
-        'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => __DIR__ . '/..' . '/../lib/Controller/ShareesAPIController.php',
51
-        'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => __DIR__ . '/..' . '/../lib/DeleteOrphanedSharesJob.php',
52
-        'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => __DIR__ . '/..' . '/../lib/Exceptions/BrokenPath.php',
53
-        'OCA\\Files_Sharing\\Exceptions\\S2SException' => __DIR__ . '/..' . '/../lib/Exceptions/S2SException.php',
54
-        'OCA\\Files_Sharing\\Exceptions\\SharingRightsException' => __DIR__ . '/..' . '/../lib/Exceptions/SharingRightsException.php',
55
-        'OCA\\Files_Sharing\\ExpireSharesJob' => __DIR__ . '/..' . '/../lib/ExpireSharesJob.php',
56
-        'OCA\\Files_Sharing\\External\\Cache' => __DIR__ . '/..' . '/../lib/External/Cache.php',
57
-        'OCA\\Files_Sharing\\External\\Manager' => __DIR__ . '/..' . '/../lib/External/Manager.php',
58
-        'OCA\\Files_Sharing\\External\\Mount' => __DIR__ . '/..' . '/../lib/External/Mount.php',
59
-        'OCA\\Files_Sharing\\External\\MountProvider' => __DIR__ . '/..' . '/../lib/External/MountProvider.php',
60
-        'OCA\\Files_Sharing\\External\\Scanner' => __DIR__ . '/..' . '/../lib/External/Scanner.php',
61
-        'OCA\\Files_Sharing\\External\\Storage' => __DIR__ . '/..' . '/../lib/External/Storage.php',
62
-        'OCA\\Files_Sharing\\External\\Watcher' => __DIR__ . '/..' . '/../lib/External/Watcher.php',
63
-        'OCA\\Files_Sharing\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php',
64
-        'OCA\\Files_Sharing\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php',
65
-        'OCA\\Files_Sharing\\ISharedStorage' => __DIR__ . '/..' . '/../lib/ISharedStorage.php',
66
-        'OCA\\Files_Sharing\\Listener\\LoadAdditionalListener' => __DIR__ . '/..' . '/../lib/Listener/LoadAdditionalListener.php',
67
-        'OCA\\Files_Sharing\\Listener\\LoadSidebarListener' => __DIR__ . '/..' . '/../lib/Listener/LoadSidebarListener.php',
68
-        'OCA\\Files_Sharing\\Listener\\ShareInteractionListener' => __DIR__ . '/..' . '/../lib/Listener/ShareInteractionListener.php',
69
-        'OCA\\Files_Sharing\\Listener\\UserAddedToGroupListener' => __DIR__ . '/..' . '/../lib/Listener/UserAddedToGroupListener.php',
70
-        'OCA\\Files_Sharing\\Listener\\UserShareAcceptanceListener' => __DIR__ . '/..' . '/../lib/Listener/UserShareAcceptanceListener.php',
71
-        'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/OCSShareAPIMiddleware.php',
72
-        'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/ShareInfoMiddleware.php',
73
-        'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/SharingCheckMiddleware.php',
74
-        'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => __DIR__ . '/..' . '/../lib/Migration/OwncloudGuestShareType.php',
75
-        'OCA\\Files_Sharing\\Migration\\SetAcceptedStatus' => __DIR__ . '/..' . '/../lib/Migration/SetAcceptedStatus.php',
76
-        'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => __DIR__ . '/..' . '/../lib/Migration/SetPasswordColumn.php',
77
-        'OCA\\Files_Sharing\\MountProvider' => __DIR__ . '/..' . '/../lib/MountProvider.php',
78
-        'OCA\\Files_Sharing\\Notification\\Listener' => __DIR__ . '/..' . '/../lib/Notification/Listener.php',
79
-        'OCA\\Files_Sharing\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php',
80
-        'OCA\\Files_Sharing\\Scanner' => __DIR__ . '/..' . '/../lib/Scanner.php',
81
-        'OCA\\Files_Sharing\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php',
82
-        'OCA\\Files_Sharing\\ShareBackend\\File' => __DIR__ . '/..' . '/../lib/ShareBackend/File.php',
83
-        'OCA\\Files_Sharing\\ShareBackend\\Folder' => __DIR__ . '/..' . '/../lib/ShareBackend/Folder.php',
84
-        'OCA\\Files_Sharing\\SharedMount' => __DIR__ . '/..' . '/../lib/SharedMount.php',
85
-        'OCA\\Files_Sharing\\SharedStorage' => __DIR__ . '/..' . '/../lib/SharedStorage.php',
86
-        '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\\Command\\ExiprationNotification' => __DIR__.'/..'.'/../lib/Command/ExiprationNotification.php',
41
+        'OCA\\Files_Sharing\\Controller\\AcceptController' => __DIR__.'/..'.'/../lib/Controller/AcceptController.php',
42
+        'OCA\\Files_Sharing\\Controller\\DeletedShareAPIController' => __DIR__.'/..'.'/../lib/Controller/DeletedShareAPIController.php',
43
+        'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => __DIR__.'/..'.'/../lib/Controller/ExternalSharesController.php',
44
+        'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => __DIR__.'/..'.'/../lib/Controller/PublicPreviewController.php',
45
+        'OCA\\Files_Sharing\\Controller\\RemoteController' => __DIR__.'/..'.'/../lib/Controller/RemoteController.php',
46
+        'OCA\\Files_Sharing\\Controller\\SettingsController' => __DIR__.'/..'.'/../lib/Controller/SettingsController.php',
47
+        'OCA\\Files_Sharing\\Controller\\ShareAPIController' => __DIR__.'/..'.'/../lib/Controller/ShareAPIController.php',
48
+        'OCA\\Files_Sharing\\Controller\\ShareController' => __DIR__.'/..'.'/../lib/Controller/ShareController.php',
49
+        'OCA\\Files_Sharing\\Controller\\ShareInfoController' => __DIR__.'/..'.'/../lib/Controller/ShareInfoController.php',
50
+        'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => __DIR__.'/..'.'/../lib/Controller/ShareesAPIController.php',
51
+        'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => __DIR__.'/..'.'/../lib/DeleteOrphanedSharesJob.php',
52
+        'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => __DIR__.'/..'.'/../lib/Exceptions/BrokenPath.php',
53
+        'OCA\\Files_Sharing\\Exceptions\\S2SException' => __DIR__.'/..'.'/../lib/Exceptions/S2SException.php',
54
+        'OCA\\Files_Sharing\\Exceptions\\SharingRightsException' => __DIR__.'/..'.'/../lib/Exceptions/SharingRightsException.php',
55
+        'OCA\\Files_Sharing\\ExpireSharesJob' => __DIR__.'/..'.'/../lib/ExpireSharesJob.php',
56
+        'OCA\\Files_Sharing\\External\\Cache' => __DIR__.'/..'.'/../lib/External/Cache.php',
57
+        'OCA\\Files_Sharing\\External\\Manager' => __DIR__.'/..'.'/../lib/External/Manager.php',
58
+        'OCA\\Files_Sharing\\External\\Mount' => __DIR__.'/..'.'/../lib/External/Mount.php',
59
+        'OCA\\Files_Sharing\\External\\MountProvider' => __DIR__.'/..'.'/../lib/External/MountProvider.php',
60
+        'OCA\\Files_Sharing\\External\\Scanner' => __DIR__.'/..'.'/../lib/External/Scanner.php',
61
+        'OCA\\Files_Sharing\\External\\Storage' => __DIR__.'/..'.'/../lib/External/Storage.php',
62
+        'OCA\\Files_Sharing\\External\\Watcher' => __DIR__.'/..'.'/../lib/External/Watcher.php',
63
+        'OCA\\Files_Sharing\\Helper' => __DIR__.'/..'.'/../lib/Helper.php',
64
+        'OCA\\Files_Sharing\\Hooks' => __DIR__.'/..'.'/../lib/Hooks.php',
65
+        'OCA\\Files_Sharing\\ISharedStorage' => __DIR__.'/..'.'/../lib/ISharedStorage.php',
66
+        'OCA\\Files_Sharing\\Listener\\LoadAdditionalListener' => __DIR__.'/..'.'/../lib/Listener/LoadAdditionalListener.php',
67
+        'OCA\\Files_Sharing\\Listener\\LoadSidebarListener' => __DIR__.'/..'.'/../lib/Listener/LoadSidebarListener.php',
68
+        'OCA\\Files_Sharing\\Listener\\ShareInteractionListener' => __DIR__.'/..'.'/../lib/Listener/ShareInteractionListener.php',
69
+        'OCA\\Files_Sharing\\Listener\\UserAddedToGroupListener' => __DIR__.'/..'.'/../lib/Listener/UserAddedToGroupListener.php',
70
+        'OCA\\Files_Sharing\\Listener\\UserShareAcceptanceListener' => __DIR__.'/..'.'/../lib/Listener/UserShareAcceptanceListener.php',
71
+        'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => __DIR__.'/..'.'/../lib/Middleware/OCSShareAPIMiddleware.php',
72
+        'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => __DIR__.'/..'.'/../lib/Middleware/ShareInfoMiddleware.php',
73
+        'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => __DIR__.'/..'.'/../lib/Middleware/SharingCheckMiddleware.php',
74
+        'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => __DIR__.'/..'.'/../lib/Migration/OwncloudGuestShareType.php',
75
+        'OCA\\Files_Sharing\\Migration\\SetAcceptedStatus' => __DIR__.'/..'.'/../lib/Migration/SetAcceptedStatus.php',
76
+        'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => __DIR__.'/..'.'/../lib/Migration/SetPasswordColumn.php',
77
+        'OCA\\Files_Sharing\\MountProvider' => __DIR__.'/..'.'/../lib/MountProvider.php',
78
+        'OCA\\Files_Sharing\\Notification\\Listener' => __DIR__.'/..'.'/../lib/Notification/Listener.php',
79
+        'OCA\\Files_Sharing\\Notification\\Notifier' => __DIR__.'/..'.'/../lib/Notification/Notifier.php',
80
+        'OCA\\Files_Sharing\\Scanner' => __DIR__.'/..'.'/../lib/Scanner.php',
81
+        'OCA\\Files_Sharing\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php',
82
+        'OCA\\Files_Sharing\\ShareBackend\\File' => __DIR__.'/..'.'/../lib/ShareBackend/File.php',
83
+        'OCA\\Files_Sharing\\ShareBackend\\Folder' => __DIR__.'/..'.'/../lib/ShareBackend/Folder.php',
84
+        'OCA\\Files_Sharing\\SharedMount' => __DIR__.'/..'.'/../lib/SharedMount.php',
85
+        'OCA\\Files_Sharing\\SharedStorage' => __DIR__.'/..'.'/../lib/SharedStorage.php',
86
+        'OCA\\Files_Sharing\\Updater' => __DIR__.'/..'.'/../lib/Updater.php',
87 87
     );
88 88
 
89 89
     public static function getInitializer(ClassLoader $loader)
90 90
     {
91
-        return \Closure::bind(function () use ($loader) {
91
+        return \Closure::bind(function() use ($loader) {
92 92
             $loader->prefixLengthsPsr4 = ComposerStaticInitFiles_Sharing::$prefixLengthsPsr4;
93 93
             $loader->prefixDirsPsr4 = ComposerStaticInitFiles_Sharing::$prefixDirsPsr4;
94 94
             $loader->classMap = ComposerStaticInitFiles_Sharing::$classMap;
Please login to merge, or discard this patch.
cron.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
  *
36 36
  */
37 37
 
38
-require_once __DIR__ . '/lib/versioncheck.php';
38
+require_once __DIR__.'/lib/versioncheck.php';
39 39
 
40 40
 try {
41 41
 
42
-	require_once __DIR__ . '/lib/base.php';
42
+	require_once __DIR__.'/lib/base.php';
43 43
 
44 44
 	if (\OCP\Util::needUpgrade()) {
45 45
 		\OC::$server->getLogger()->debug('Update required, skipping cron', ['app' => 'cron']);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	$appMode = $config->getAppValue('core', 'backgroundjobs_mode', 'ajax');
76 76
 	if ($appMode === 'none') {
77 77
 		if (OC::$CLI) {
78
-			echo 'Background Jobs are disabled!' . PHP_EOL;
78
+			echo 'Background Jobs are disabled!'.PHP_EOL;
79 79
 		} else {
80 80
 			OC_JSON::error(['data' => ['message' => 'Background jobs disabled!']]);
81 81
 		}
@@ -90,16 +90,16 @@  discard block
 block discarded – undo
90 90
 
91 91
 		// the cron job must be executed with the right user
92 92
 		if (!function_exists('posix_getuid')) {
93
-			echo "The posix extensions are required - see http://php.net/manual/en/book.posix.php" . PHP_EOL;
93
+			echo "The posix extensions are required - see http://php.net/manual/en/book.posix.php".PHP_EOL;
94 94
 			exit(1);
95 95
 		}
96 96
 
97 97
 		$user = posix_getpwuid(posix_getuid());
98
-		$configUser = posix_getpwuid(fileowner(OC::$configDir . 'config.php'));
98
+		$configUser = posix_getpwuid(fileowner(OC::$configDir.'config.php'));
99 99
 		if ($user['name'] !== $configUser['name']) {
100
-			echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL;
101
-			echo "Current user: " . $user['name'] . PHP_EOL;
102
-			echo "Owner of config.php: " . $configUser['name'] . PHP_EOL;
100
+			echo "Console has to be executed with the user that owns the file config/config.php".PHP_EOL;
101
+			echo "Current user: ".$user['name'].PHP_EOL;
102
+			echo "Owner of config.php: ".$configUser['name'].PHP_EOL;
103 103
 			exit(1);
104 104
 		}
105 105
 
Please login to merge, or discard this patch.
apps/files/ajax/list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 $l = \OC::$server->getL10N('files');
34 34
 
35 35
 // Load the files
36
-$dir = isset($_GET['dir']) ? (string)$_GET['dir'] : '';
36
+$dir = isset($_GET['dir']) ? (string) $_GET['dir'] : '';
37 37
 $dir = \OC\Files\Filesystem::normalizePath($dir);
38 38
 
39 39
 try {
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	$data = [];
47
-	$baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php') . '?dir=';
47
+	$baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php').'?dir=';
48 48
 
49 49
 	$permissions = $dirInfo->getPermissions();
50 50
 
51
-	$sortAttribute = isset($_GET['sort']) ? (string)$_GET['sort'] : 'name';
51
+	$sortAttribute = isset($_GET['sort']) ? (string) $_GET['sort'] : 'name';
52 52
 	$sortDirection = isset($_GET['sortdirection']) ? ($_GET['sortdirection'] === 'desc') : false;
53 53
 	$mimetypeFilters = isset($_GET['mimetypes']) ? json_decode($_GET['mimetypes']) : '';
54 54
 
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/AmazonS3.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 			try {
164 164
 				$result = $this->getConnection()->listObjects([
165 165
 					'Bucket' => $this->bucket,
166
-					'Prefix' => rtrim($path, '/') . '/',
166
+					'Prefix' => rtrim($path, '/').'/',
167 167
 					'MaxKeys' => 1,
168 168
 				]);
169 169
 				$this->directoryCache[$path] = $result['Contents'] || $result['CommonPrefixes'];
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 * @param array $params
186 186
 	 */
187 187
 	public function updateLegacyId(array $params) {
188
-		$oldId = 'amazon::' . $params['key'] . md5($params['secret']);
188
+		$oldId = 'amazon::'.$params['key'].md5($params['secret']);
189 189
 
190 190
 		// find by old id or bucket
191 191
 		$stmt = \OC::$server->getDatabaseConnection()->prepare(
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 		try {
238 238
 			$this->getConnection()->putObject([
239 239
 				'Bucket' => $this->bucket,
240
-				'Key' => $path . '/',
240
+				'Key' => $path.'/',
241 241
 				'Body' => '',
242 242
 				'ContentType' => 'httpd/unix-directory'
243 243
 			]);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 			'Bucket' => $this->bucket
289 289
 		];
290 290
 		if ($path !== null) {
291
-			$params['Prefix'] = $path . '/';
291
+			$params['Prefix'] = $path.'/';
292 292
 		}
293 293
 		try {
294 294
 			$connection = $this->getConnection();
@@ -354,9 +354,9 @@  discard block
 block discarded – undo
354 354
 						$files[] = $file;
355 355
 
356 356
 						// store this information for later usage
357
-						$this->filesCache[$path . $file] = [
357
+						$this->filesCache[$path.$file] = [
358 358
 							'ContentLength' => $object['Size'],
359
-							'LastModified' => (string)$object['LastModified'],
359
+							'LastModified' => (string) $object['LastModified'],
360 360
 						];
361 361
 					}
362 362
 				}
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 				$tmpFile = \OC::$server->getTempManager()->getTemporaryFile();
516 516
 
517 517
 				$handle = fopen($tmpFile, 'w');
518
-				return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
518
+				return CallbackWrapper::wrap($handle, null, null, function() use ($path, $tmpFile) {
519 519
 					$this->writeBack($tmpFile, $path);
520 520
 				});
521 521
 			case 'a':
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 				}
541 541
 
542 542
 				$handle = fopen($tmpFile, $mode);
543
-				return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
543
+				return CallbackWrapper::wrap($handle, null, null, function() use ($path, $tmpFile) {
544 544
 					$this->writeBack($tmpFile, $path);
545 545
 				});
546 546
 		}
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 					'Bucket' => $this->bucket,
569 569
 					'Key' => $this->cleanKey($path),
570 570
 					'Metadata' => $metadata,
571
-					'CopySource' => $this->bucket . '/' . $path,
571
+					'CopySource' => $this->bucket.'/'.$path,
572 572
 					'MetadataDirective' => 'REPLACE',
573 573
 				]);
574 574
 				$this->testTimeout();
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
 				$this->getConnection()->copyObject([
603 603
 					'Bucket' => $this->bucket,
604 604
 					'Key' => $this->cleanKey($path2),
605
-					'CopySource' => S3Client::encodeKey($this->bucket . '/' . $path1)
605
+					'CopySource' => S3Client::encodeKey($this->bucket.'/'.$path1)
606 606
 				]);
607 607
 				$this->testTimeout();
608 608
 			} catch (S3Exception $e) {
@@ -615,8 +615,8 @@  discard block
 block discarded – undo
615 615
 			try {
616 616
 				$this->getConnection()->copyObject([
617 617
 					'Bucket' => $this->bucket,
618
-					'Key' => $path2 . '/',
619
-					'CopySource' => S3Client::encodeKey($this->bucket . '/' . $path1 . '/')
618
+					'Key' => $path2.'/',
619
+					'CopySource' => S3Client::encodeKey($this->bucket.'/'.$path1.'/')
620 620
 				]);
621 621
 				$this->testTimeout();
622 622
 			} catch (S3Exception $e) {
@@ -631,8 +631,8 @@  discard block
 block discarded – undo
631 631
 						continue;
632 632
 					}
633 633
 
634
-					$source = $path1 . '/' . $file;
635
-					$target = $path2 . '/' . $file;
634
+					$source = $path1.'/'.$file;
635
+					$target = $path2.'/'.$file;
636 636
 					$this->copy($source, $target);
637 637
 				}
638 638
 			}
Please login to merge, or discard this patch.
apps/files_sharing/public.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 	} else {
35 35
 		http_response_code(307);
36 36
 	}
37
-	header('Location: ' . $urlGenerator->linkToRoute($route, ['token' => $token]));
37
+	header('Location: '.$urlGenerator->linkToRoute($route, ['token' => $token]));
38 38
 } else {
39 39
 	http_response_code(404);
40 40
 	$tmpl = new OCP\Template('', '404', 'guest');
Please login to merge, or discard this patch.
apps/files_sharing/lib/SharedStorage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	 * @return string
184 184
 	 */
185 185
 	public function getId() {
186
-		return 'shared::' . $this->getMountPoint();
186
+		return 'shared::'.$this->getMountPoint();
187 187
 	}
188 188
 
189 189
 	/**
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 					}
287 287
 			}
288 288
 			$info = [
289
-				'target' => $this->getMountPoint() . $path,
289
+				'target' => $this->getMountPoint().$path,
290 290
 				'source' => $source,
291 291
 				'mode' => $mode,
292 292
 			];
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 		if (!$storage) {
380 380
 			$storage = $this;
381 381
 		}
382
-		$sourceRoot  = $this->getSourceRootInfo();
382
+		$sourceRoot = $this->getSourceRootInfo();
383 383
 		if ($this->storage instanceof FailedStorage) {
384 384
 			return new FailedCache();
385 385
 		}
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
 
486 486
 	public function file_get_contents($path) {
487 487
 		$info = [
488
-			'target' => $this->getMountPoint() . '/' . $path,
488
+			'target' => $this->getMountPoint().'/'.$path,
489 489
 			'source' => $this->getUnjailedPath($path),
490 490
 		];
491 491
 		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info);
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
 
495 495
 	public function file_put_contents($path, $data) {
496 496
 		$info = [
497
-			'target' => $this->getMountPoint() . '/' . $path,
497
+			'target' => $this->getMountPoint().'/'.$path,
498 498
 			'source' => $this->getUnjailedPath($path),
499 499
 		];
500 500
 		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info);
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Helper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 		$result = [];
50 50
 		$timestamp = null;
51 51
 
52
-		$view = new \OC\Files\View('/' . $user . '/files_trashbin/files');
52
+		$view = new \OC\Files\View('/'.$user.'/files_trashbin/files');
53 53
 
54 54
 		if (ltrim($dir, '/') !== '' && !$view->is_dir($dir)) {
55 55
 			throw new \Exception('Directory does not exists');
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 				$timestamp = substr(pathinfo($parts[0], PATHINFO_EXTENSION), 1);
77 77
 			}
78 78
 			$originalPath = '';
79
-			$originalName = substr($entryName, 0, -strlen($timestamp)-2);
79
+			$originalName = substr($entryName, 0, -strlen($timestamp) - 2);
80 80
 			if (isset($originalLocations[$originalName][$timestamp])) {
81 81
 				$originalPath = $originalLocations[$originalName][$timestamp];
82 82
 				if (substr($originalPath, -1) === '/') {
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
 			];
98 98
 			if ($originalPath) {
99 99
 				if ($originalPath !== '.') {
100
-					$i['extraData'] = $originalPath . '/' . $originalName;
100
+					$i['extraData'] = $originalPath.'/'.$originalName;
101 101
 				} else {
102 102
 					$i['extraData'] = $originalName;
103 103
 				}
104 104
 			}
105
-			$result[] = new FileInfo($absoluteDir . '/' . $i['name'], $storage, $internalPath . '/' . $i['name'], $i, $mount);
105
+			$result[] = new FileInfo($absoluteDir.'/'.$i['name'], $storage, $internalPath.'/'.$i['name'], $i, $mount);
106 106
 		}
107 107
 
108 108
 		if ($sortAttribute !== '') {
Please login to merge, or discard this patch.
config/config.sample.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
  *
235 235
  * Defaults to ``60*60*24*15`` seconds (15 days)
236 236
  */
237
-'remember_login_cookie_lifetime' => 60*60*24*15,
237
+'remember_login_cookie_lifetime' => 60 * 60 * 24 * 15,
238 238
 
239 239
 /**
240 240
  * The lifetime of a session after inactivity.
@@ -1184,7 +1184,7 @@  discard block
 block discarded – undo
1184 1184
  * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1
1185 1185
  */
1186 1186
 'redis.cluster' => [
1187
-	'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1187
+	'seeds' => [// provide some/all of the cluster servers to bootstrap discovery, port required
1188 1188
 		'localhost:7000',
1189 1189
 		'localhost:7001',
1190 1190
 	],
@@ -1249,7 +1249,7 @@  discard block
 block discarded – undo
1249 1249
  *
1250 1250
  * Defaults to ``60*60*24`` (1 day)
1251 1251
  */
1252
-'cache_chunk_gc_ttl' => 60*60*24,
1252
+'cache_chunk_gc_ttl' => 60 * 60 * 24,
1253 1253
 
1254 1254
 /**
1255 1255
  * Using Object Store with Nextcloud
@@ -1682,7 +1682,7 @@  discard block
 block discarded – undo
1682 1682
  * Defaults to ``60*60`` seconds (1 hour) or the php
1683 1683
  *             max_execution_time, whichever is higher.
1684 1684
  */
1685
-'filelocking.ttl' => 60*60,
1685
+'filelocking.ttl' => 60 * 60,
1686 1686
 
1687 1687
 /**
1688 1688
  * Memory caching backend for file locking
Please login to merge, or discard this patch.
lib/public/Template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 	 * @since 8.0.0
125 125
 	 * @suppress PhanDeprecatedFunction
126 126
 	 */
127
-	public static function html_select_options($options, $selected, $params=[]) {
127
+	public static function html_select_options($options, $selected, $params = []) {
128 128
 		return \html_select_options($options, $selected, $params);
129 129
 	}
130 130
 }
Please login to merge, or discard this patch.