Passed
Push — master ( a16703...c6645c )
by John
17:09 queued 13s
created
apps/federatedfilesharing/composer/composer/autoload_static.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -6,44 +6,44 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitFederatedFileSharing
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'O' => 
11
-        array (
11
+        array(
12 12
             'OCA\\FederatedFileSharing\\' => 25,
13 13
         ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'OCA\\FederatedFileSharing\\' => 
18
-        array (
19
-            0 => __DIR__ . '/..' . '/../lib',
18
+        array(
19
+            0 => __DIR__.'/..'.'/../lib',
20 20
         ),
21 21
     );
22 22
 
23
-    public static $classMap = array (
24
-        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
25
-        'OCA\\FederatedFileSharing\\AddressHandler' => __DIR__ . '/..' . '/../lib/AddressHandler.php',
26
-        'OCA\\FederatedFileSharing\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
27
-        'OCA\\FederatedFileSharing\\BackgroundJob\\RetryJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/RetryJob.php',
28
-        'OCA\\FederatedFileSharing\\Controller\\MountPublicLinkController' => __DIR__ . '/..' . '/../lib/Controller/MountPublicLinkController.php',
29
-        'OCA\\FederatedFileSharing\\Controller\\RequestHandlerController' => __DIR__ . '/..' . '/../lib/Controller/RequestHandlerController.php',
30
-        'OCA\\FederatedFileSharing\\Events\\FederatedShareAddedEvent' => __DIR__ . '/..' . '/../lib/Events/FederatedShareAddedEvent.php',
31
-        'OCA\\FederatedFileSharing\\FederatedShareProvider' => __DIR__ . '/..' . '/../lib/FederatedShareProvider.php',
32
-        'OCA\\FederatedFileSharing\\Listeners\\LoadAdditionalScriptsListener' => __DIR__ . '/..' . '/../lib/Listeners/LoadAdditionalScriptsListener.php',
33
-        'OCA\\FederatedFileSharing\\Migration\\Version1010Date20200630191755' => __DIR__ . '/..' . '/../lib/Migration/Version1010Date20200630191755.php',
34
-        'OCA\\FederatedFileSharing\\Migration\\Version1011Date20201120125158' => __DIR__ . '/..' . '/../lib/Migration/Version1011Date20201120125158.php',
35
-        'OCA\\FederatedFileSharing\\Notifications' => __DIR__ . '/..' . '/../lib/Notifications.php',
36
-        'OCA\\FederatedFileSharing\\Notifier' => __DIR__ . '/..' . '/../lib/Notifier.php',
37
-        'OCA\\FederatedFileSharing\\OCM\\CloudFederationProviderFiles' => __DIR__ . '/..' . '/../lib/OCM/CloudFederationProviderFiles.php',
38
-        'OCA\\FederatedFileSharing\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php',
39
-        'OCA\\FederatedFileSharing\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php',
40
-        'OCA\\FederatedFileSharing\\Settings\\PersonalSection' => __DIR__ . '/..' . '/../lib/Settings/PersonalSection.php',
41
-        'OCA\\FederatedFileSharing\\TokenHandler' => __DIR__ . '/..' . '/../lib/TokenHandler.php',
23
+    public static $classMap = array(
24
+        'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php',
25
+        'OCA\\FederatedFileSharing\\AddressHandler' => __DIR__.'/..'.'/../lib/AddressHandler.php',
26
+        'OCA\\FederatedFileSharing\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php',
27
+        'OCA\\FederatedFileSharing\\BackgroundJob\\RetryJob' => __DIR__.'/..'.'/../lib/BackgroundJob/RetryJob.php',
28
+        'OCA\\FederatedFileSharing\\Controller\\MountPublicLinkController' => __DIR__.'/..'.'/../lib/Controller/MountPublicLinkController.php',
29
+        'OCA\\FederatedFileSharing\\Controller\\RequestHandlerController' => __DIR__.'/..'.'/../lib/Controller/RequestHandlerController.php',
30
+        'OCA\\FederatedFileSharing\\Events\\FederatedShareAddedEvent' => __DIR__.'/..'.'/../lib/Events/FederatedShareAddedEvent.php',
31
+        'OCA\\FederatedFileSharing\\FederatedShareProvider' => __DIR__.'/..'.'/../lib/FederatedShareProvider.php',
32
+        'OCA\\FederatedFileSharing\\Listeners\\LoadAdditionalScriptsListener' => __DIR__.'/..'.'/../lib/Listeners/LoadAdditionalScriptsListener.php',
33
+        'OCA\\FederatedFileSharing\\Migration\\Version1010Date20200630191755' => __DIR__.'/..'.'/../lib/Migration/Version1010Date20200630191755.php',
34
+        'OCA\\FederatedFileSharing\\Migration\\Version1011Date20201120125158' => __DIR__.'/..'.'/../lib/Migration/Version1011Date20201120125158.php',
35
+        'OCA\\FederatedFileSharing\\Notifications' => __DIR__.'/..'.'/../lib/Notifications.php',
36
+        'OCA\\FederatedFileSharing\\Notifier' => __DIR__.'/..'.'/../lib/Notifier.php',
37
+        'OCA\\FederatedFileSharing\\OCM\\CloudFederationProviderFiles' => __DIR__.'/..'.'/../lib/OCM/CloudFederationProviderFiles.php',
38
+        'OCA\\FederatedFileSharing\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php',
39
+        'OCA\\FederatedFileSharing\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php',
40
+        'OCA\\FederatedFileSharing\\Settings\\PersonalSection' => __DIR__.'/..'.'/../lib/Settings/PersonalSection.php',
41
+        'OCA\\FederatedFileSharing\\TokenHandler' => __DIR__.'/..'.'/../lib/TokenHandler.php',
42 42
     );
43 43
 
44 44
     public static function getInitializer(ClassLoader $loader)
45 45
     {
46
-        return \Closure::bind(function () use ($loader) {
46
+        return \Closure::bind(function() use ($loader) {
47 47
             $loader->prefixLengthsPsr4 = ComposerStaticInitFederatedFileSharing::$prefixLengthsPsr4;
48 48
             $loader->prefixDirsPsr4 = ComposerStaticInitFederatedFileSharing::$prefixDirsPsr4;
49 49
             $loader->classMap = ComposerStaticInitFederatedFileSharing::$classMap;
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/Notifications.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 		];
152 152
 
153 153
 		$ocmFields = $fields;
154
-		$ocmFields['remoteId'] = (string)$id;
154
+		$ocmFields['remoteId'] = (string) $id;
155 155
 		$ocmFields['localId'] = $shareId;
156 156
 		$ocmFields['name'] = $filename;
157 157
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 			return [$ocmResult['token'], $ocmResult['providerId']];
161 161
 		}
162 162
 
163
-		$result = $this->tryLegacyEndPoint(rtrim($remote, '/'), '/' . $id . '/reshare', $fields);
163
+		$result = $this->tryLegacyEndPoint(rtrim($remote, '/'), '/'.$id.'/reshare', $fields);
164 164
 		$status = json_decode($result['result'], true);
165 165
 
166 166
 		$httpRequestSuccessful = $result['success'];
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 			$fields[$key] = $value;
258 258
 		}
259 259
 
260
-		$result = $this->tryHttpPostToShareEndpoint(rtrim($remote, '/'), '/' . $remoteId . '/' . $action, $fields, $action);
260
+		$result = $this->tryHttpPostToShareEndpoint(rtrim($remote, '/'), '/'.$remoteId.'/'.$action, $fields, $action);
261 261
 		$status = json_decode($result['result'], true);
262 262
 
263 263
 		if ($result['success'] &&
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
 	 */
308 308
 	protected function tryHttpPostToShareEndpoint($remoteDomain, $urlSuffix, array $fields, $action = "share") {
309 309
 		if ($this->addressHandler->urlContainProtocol($remoteDomain) === false) {
310
-			$remoteDomain = 'https://' . $remoteDomain;
310
+			$remoteDomain = 'https://'.$remoteDomain;
311 311
 		}
312 312
 
313 313
 		$result = [
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 		$federationEndpoints = $this->discoveryService->discover($remoteDomain, 'FEDERATED_SHARING');
348 348
 		$endpoint = isset($federationEndpoints['share']) ? $federationEndpoints['share'] : '/ocs/v2.php/cloud/shares';
349 349
 		try {
350
-			$response = $client->post($remoteDomain . $endpoint . $urlSuffix . '?format=' . self::RESPONSE_FORMAT, [
350
+			$response = $client->post($remoteDomain.$endpoint.$urlSuffix.'?format='.self::RESPONSE_FORMAT, [
351 351
 				'body' => $fields,
352 352
 				'timeout' => 10,
353 353
 				'connect_timeout' => 10,
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 		switch ($action) {
380 380
 			case 'share':
381 381
 				$share = $this->cloudFederationFactory->getCloudFederationShare(
382
-					$fields['shareWith'] . '@' . $remoteDomain,
382
+					$fields['shareWith'].'@'.$remoteDomain,
383 383
 					$fields['name'],
384 384
 					'',
385 385
 					$fields['remoteId'],
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/SaveAccountsTableData.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		}
80 80
 
81 81
 		// oc_persistent_locks will be removed later on anyways so we can just drop and ignore any foreign key constraints here
82
-		$tableName = $this->config->getSystemValue('dbtableprefix', 'oc_') . 'persistent_locks';
82
+		$tableName = $this->config->getSystemValue('dbtableprefix', 'oc_').'persistent_locks';
83 83
 		$schema = $this->db->createSchema();
84 84
 		$table = $schema->getTable($tableName);
85 85
 		foreach ($table->getForeignKeys() as $foreignKey) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 		$schema = $this->db->createSchema();
102 102
 		$prefix = $this->config->getSystemValue('dbtableprefix', 'oc_');
103 103
 
104
-		$tableName = $prefix . 'accounts';
104
+		$tableName = $prefix.'accounts';
105 105
 		if (!$schema->hasTable($tableName)) {
106 106
 			return false;
107 107
 		}
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
 			return false;
112 112
 		}
113 113
 
114
-		if ($schema->hasTable($prefix . 'persistent_locks')) {
115
-			$locksTable = $schema->getTable($prefix . 'persistent_locks');
114
+		if ($schema->hasTable($prefix.'persistent_locks')) {
115
+			$locksTable = $schema->getTable($prefix.'persistent_locks');
116 116
 			$foreignKeys = $locksTable->getForeignKeys();
117 117
 			foreach ($foreignKeys as $foreignKey) {
118 118
 				if ($tableName === $foreignKey->getForeignTableName()) {
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/CleanPreviews.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
 	public function run(IOutput $output) {
66 66
 		if (!$this->config->getAppValue('core', 'previewsCleanedUp', false)) {
67
-			$this->userManager->callForSeenUsers(function (IUser $user) {
67
+			$this->userManager->callForSeenUsers(function(IUser $user) {
68 68
 				$this->jobList->add(CleanPreviewsBackgroundJob::class, ['uid' => $user->getUID()]);
69 69
 			});
70 70
 			$this->config->setAppValue('core', 'previewsCleanedUp', '1');
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,17 +72,17 @@
 block discarded – undo
72 72
 	public function run($arguments) {
73 73
 		$uid = $arguments['uid'];
74 74
 		if (!$this->userManager->userExists($uid)) {
75
-			$this->logger->info('User no longer exists, skip user ' . $uid);
75
+			$this->logger->info('User no longer exists, skip user '.$uid);
76 76
 			return;
77 77
 		}
78
-		$this->logger->info('Started preview cleanup for ' . $uid);
78
+		$this->logger->info('Started preview cleanup for '.$uid);
79 79
 		$empty = $this->cleanupPreviews($uid);
80 80
 
81 81
 		if (!$empty) {
82 82
 			$this->jobList->add(self::class, ['uid' => $uid]);
83
-			$this->logger->info('New preview cleanup scheduled for ' . $uid);
83
+			$this->logger->info('New preview cleanup scheduled for '.$uid);
84 84
 		} else {
85
-			$this->logger->info('Preview cleanup done for ' . $uid);
85
+			$this->logger->info('Preview cleanup done for '.$uid);
86 86
 		}
87 87
 	}
88 88
 
Please login to merge, or discard this patch.
lib/private/Repair/Owncloud/UpdateLanguageCodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 				->andWhere($qb->expr()->eq('configvalue', $qb->createNamedParameter($oldCode), IQueryBuilder::PARAM_STR))
85 85
 				->execute();
86 86
 
87
-			$output->info('Changed ' . $affectedRows . ' setting(s) from "' . $oldCode . '" to "' . $newCode . '" in preferences table.');
87
+			$output->info('Changed '.$affectedRows.' setting(s) from "'.$oldCode.'" to "'.$newCode.'" in preferences table.');
88 88
 		}
89 89
 	}
90 90
 }
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/QueryBuilder.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -198,11 +198,11 @@  discard block
 block discarded – undo
198 198
 				$params = [];
199 199
 				foreach ($this->getParameters() as $placeholder => $value) {
200 200
 					if ($value instanceof \DateTime) {
201
-						$params[] = $placeholder . ' => DateTime:\'' . $value->format('c') . '\'';
201
+						$params[] = $placeholder.' => DateTime:\''.$value->format('c').'\'';
202 202
 					} elseif (is_array($value)) {
203
-						$params[] = $placeholder . ' => (\'' . implode('\', \'', $value) . '\')';
203
+						$params[] = $placeholder.' => (\''.implode('\', \'', $value).'\')';
204 204
 					} else {
205
-						$params[] = $placeholder . ' => \'' . $value . '\'';
205
+						$params[] = $placeholder.' => \''.$value.'\'';
206 206
 					}
207 207
 				}
208 208
 				if (empty($params)) {
@@ -226,10 +226,10 @@  discard block
 block discarded – undo
226 226
 
227 227
 		if (!empty($this->getQueryPart('select'))) {
228 228
 			$select = $this->getQueryPart('select');
229
-			$hasSelectAll = array_filter($select, static function ($s) {
229
+			$hasSelectAll = array_filter($select, static function($s) {
230 230
 				return $s === '*';
231 231
 			});
232
-			$hasSelectSpecific = array_filter($select, static function ($s) {
232
+			$hasSelectSpecific = array_filter($select, static function($s) {
233 233
 				return $s !== '*';
234 234
 			});
235 235
 
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 	 */
446 446
 	public function selectAlias($select, $alias) {
447 447
 		$this->queryBuilder->addSelect(
448
-			$this->helper->quoteColumnName($select) . ' AS ' . $this->helper->quoteColumnName($alias)
448
+			$this->helper->quoteColumnName($select).' AS '.$this->helper->quoteColumnName($alias)
449 449
 		);
450 450
 
451 451
 		return $this;
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
 		$quotedSelect = $this->helper->quoteColumnNames($select);
473 473
 
474 474
 		$this->queryBuilder->addSelect(
475
-			'DISTINCT ' . implode(', ', $quotedSelect)
475
+			'DISTINCT '.implode(', ', $quotedSelect)
476 476
 		);
477 477
 
478 478
 		return $this;
@@ -1155,7 +1155,7 @@  discard block
 block discarded – undo
1155 1155
 	 * @return IParameter
1156 1156
 	 */
1157 1157
 	public function createParameter($name) {
1158
-		return new Parameter(':' . $name);
1158
+		return new Parameter(':'.$name);
1159 1159
 	}
1160 1160
 
1161 1161
 	/**
@@ -1226,7 +1226,7 @@  discard block
 block discarded – undo
1226 1226
 			return $table;
1227 1227
 		}
1228 1228
 
1229
-		return '*PREFIX*' . $table;
1229
+		return '*PREFIX*'.$table;
1230 1230
 	}
1231 1231
 
1232 1232
 	/**
@@ -1241,7 +1241,7 @@  discard block
 block discarded – undo
1241 1241
 			$tableAlias .= '.';
1242 1242
 		}
1243 1243
 
1244
-		return $this->helper->quoteColumnName($tableAlias . $column);
1244
+		return $this->helper->quoteColumnName($tableAlias.$column);
1245 1245
 	}
1246 1246
 
1247 1247
 	/**
Please login to merge, or discard this patch.
apps/dav/lib/DAV/GroupPrincipalBackend.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	 * @return array
105 105
 	 */
106 106
 	public function getPrincipalByPath($path) {
107
-		$elements = explode('/', $path,  3);
107
+		$elements = explode('/', $path, 3);
108 108
 		if ($elements[0] !== 'principals') {
109 109
 			return null;
110 110
 		}
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 			return [];
144 144
 		}
145 145
 
146
-		return array_map(function ($user) {
146
+		return array_map(function($user) {
147 147
 			return $this->userToPrincipal($user);
148 148
 		}, $group->getUsers());
149 149
 	}
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 				case '{DAV:}displayname':
224 224
 					$groups = $this->groupManager->search($value, $searchLimit);
225 225
 
226
-					$results[] = array_reduce($groups, function (array $carry, IGroup $group) use ($restrictGroups) {
226
+					$results[] = array_reduce($groups, function(array $carry, IGroup $group) use ($restrictGroups) {
227 227
 						$gid = $group->getGID();
228 228
 						// is sharing restricted to groups only?
229 229
 						if ($restrictGroups !== false) {
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 							}
233 233
 						}
234 234
 
235
-						$carry[] = self::PRINCIPAL_PREFIX . '/' . urlencode($gid);
235
+						$carry[] = self::PRINCIPAL_PREFIX.'/'.urlencode($gid);
236 236
 						return $carry;
237 237
 					}, []);
238 238
 					break;
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 		$displayName = $group->getDisplayName();
313 313
 
314 314
 		return [
315
-			'uri' => 'principals/groups/' . urlencode($groupId),
315
+			'uri' => 'principals/groups/'.urlencode($groupId),
316 316
 			'{DAV:}displayname' => $displayName,
317 317
 			'{urn:ietf:params:xml:ns:caldav}calendar-user-type' => 'GROUP',
318 318
 		];
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 		$displayName = $user->getDisplayName();
329 329
 
330 330
 		$principal = [
331
-			'uri' => 'principals/users/' . $userId,
331
+			'uri' => 'principals/users/'.$userId,
332 332
 			'{DAV:}displayname' => $displayName,
333 333
 			'{urn:ietf:params:xml:ns:caldav}calendar-user-type' => 'INDIVIDUAL',
334 334
 		];
Please login to merge, or discard this patch.
apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		$offset = $arguments['offset'];
71 71
 		$stopAt = $arguments['stopAt'];
72 72
 
73
-		$this->logger->info('Indexing social profile data (' . $offset .'/' . $stopAt . ')');
73
+		$this->logger->info('Indexing social profile data ('.$offset.'/'.$stopAt.')');
74 74
 
75 75
 		$offset = $this->buildIndex($offset, $stopAt);
76 76
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 				'offset' => $offset,
82 82
 				'stopAt' => $stopAt
83 83
 			]);
84
-			$this->logger->info('New social profile indexing job scheduled with offset ' . $offset);
84
+			$this->logger->info('New social profile indexing job scheduled with offset '.$offset);
85 85
 		}
86 86
 	}
87 87
 
Please login to merge, or discard this patch.