Passed
Push — master ( f61779...efbe97 )
by John
31:43 queued 16:46
created
apps/dav/lib/CardDAV/AddressBookImpl.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 		$update = false;
136 136
 		if (!isset($properties['URI'])) { // create a new contact
137 137
 			$uid = $this->createUid();
138
-			$uri = $uid . '.vcf';
138
+			$uri = $uid.'.vcf';
139 139
 			$vCard = $this->createEmptyVCard($uid);
140 140
 		} else { // update existing contact
141 141
 			$uri = $properties['URI'];
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 	protected function createUid() {
211 211
 		do {
212 212
 			$uid = $this->getUid();
213
-			$contact = $this->backend->getContact($this->getKey(), $uid . '.vcf');
213
+			$contact = $this->backend->getContact($this->getKey(), $uid.'.vcf');
214 214
 		} while (!empty($contact));
215 215
 
216 216
 		return $uid;
@@ -251,15 +251,15 @@  discard block
 block discarded – undo
251 251
 		foreach ($vCard->children() as $property) {
252 252
 			if ($property->name === 'PHOTO' && $property->getValueType() === 'BINARY') {
253 253
 				$url = $this->urlGenerator->getAbsoluteURL(
254
-					$this->urlGenerator->linkTo('', 'remote.php') . '/dav/');
254
+					$this->urlGenerator->linkTo('', 'remote.php').'/dav/');
255 255
 				$url .= implode('/', [
256 256
 					'addressbooks',
257 257
 					substr($this->addressBookInfo['principaluri'], 11), //cut off 'principals/'
258 258
 					$this->addressBookInfo['uri'],
259 259
 					$uri
260
-				]) . '?photo';
260
+				]).'?photo';
261 261
 
262
-				$result['PHOTO'] = 'VALUE=uri:' . $url;
262
+				$result['PHOTO'] = 'VALUE=uri:'.$url;
263 263
 			} elseif (in_array($property->name, ['URL', 'GEO', 'CLOUD', 'ADR', 'EMAIL', 'IMPP', 'TEL', 'X-SOCIALPROFILE', 'RELATED', 'LANG', 'X-ADDRESSBOOKSERVER-MEMBER'])) {
264 264
 				if (!isset($result[$property->name])) {
265 265
 					$result[$property->name] = [];
Please login to merge, or discard this patch.
apps/dav/lib/CardDAV/HasPhotoPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 		$ns = '{http://nextcloud.com/ns}';
61 61
 
62 62
 		if ($node instanceof Card) {
63
-			$propFind->handle($ns . 'has-photo', function () use ($node) {
63
+			$propFind->handle($ns.'has-photo', function() use ($node) {
64 64
 				$vcard = Reader::read($node->get());
65 65
 				return $vcard instanceof VCard
66 66
 					&& $vcard->PHOTO
Please login to merge, or discard this patch.
lib/private/Preview/BackgroundCleanupJob.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	public function run($argument) {
65 65
 		foreach ($this->getDeletedFiles() as $fileId) {
66 66
 			try {
67
-				$preview = $this->previewFolder->getFolder((string)$fileId);
67
+				$preview = $this->previewFolder->getFolder((string) $fileId);
68 68
 				$preview->delete();
69 69
 			} catch (NotFoundException $e) {
70 70
 				// continue
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 		 * We take the md5 of the name (fileid) and split the first 7 chars. That way
126 126
 		 * there are not a gazillion files in the root of the preview appdata.
127 127
 		 */
128
-		$like = $this->connection->escapeLikeParameter($data['path']) . '/_/_/_/_/_/_/_/%';
128
+		$like = $this->connection->escapeLikeParameter($data['path']).'/_/_/_/_/_/_/_/%';
129 129
 
130 130
 		$qb = $this->connection->getQueryBuilder();
131 131
 		$qb->select('a.name')
Please login to merge, or discard this patch.
lib/public/AppFramework/AuthPublicShareController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 		if (substr($class, -10) === 'Controller') {
169 169
 			$class = substr($class, 0, -10);
170 170
 		}
171
-		return $app .'.'. $class .'.'. $function;
171
+		return $app.'.'.$class.'.'.$function;
172 172
 	}
173 173
 
174 174
 	/**
Please login to merge, or discard this patch.
apps/user_ldap/lib/Mapping/UserMapping.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
 	 */
36 36
 	protected function getTableName(bool $includePrefix = true) {
37 37
 		$p = $includePrefix ? '*PREFIX*' : '';
38
-		return $p . 'ldap_user_mapping';
38
+		return $p.'ldap_user_mapping';
39 39
 	}
40 40
 }
Please login to merge, or discard this patch.
apps/user_ldap/lib/Mapping/GroupMapping.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
 	 */
36 36
 	protected function getTableName(bool $includePrefix = true) {
37 37
 		$p = $includePrefix ? '*PREFIX*' : '';
38
-		return $p . 'ldap_group_mapping';
38
+		return $p.'ldap_group_mapping';
39 39
 	}
40 40
 }
Please login to merge, or discard this patch.
apps/user_ldap/lib/Proxy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 * @return string
108 108
 	 */
109 109
 	protected function getUserCacheKey($uid) {
110
-		return 'user-' . $uid . '-lastSeenOn';
110
+		return 'user-'.$uid.'-lastSeenOn';
111 111
 	}
112 112
 
113 113
 	/**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 * @return string
116 116
 	 */
117 117
 	protected function getGroupCacheKey($gid) {
118
-		return 'group-' . $gid . '-lastSeenOn';
118
+		return 'group-'.$gid.'-lastSeenOn';
119 119
 	}
120 120
 
121 121
 	/**
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 		if ($key === null) {
179 179
 			return $prefix;
180 180
 		}
181
-		return $prefix . hash('sha256', $key);
181
+		return $prefix.hash('sha256', $key);
182 182
 	}
183 183
 
184 184
 	/**
Please login to merge, or discard this patch.
lib/public/AppFramework/Services/IAppConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	 * @return string[] the keys stored for the app
38 38
 	 * @since 20.0.0
39 39
 	 */
40
-	public function getAppKeys(): array ;
40
+	public function getAppKeys(): array;
41 41
 
42 42
 	/**
43 43
 	 * Writes a new app wide value
Please login to merge, or discard this patch.
core/Controller/ClientFlowLoginController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 			);
358 358
 			$this->session->remove('oauth.state');
359 359
 		} else {
360
-			$redirectUri = 'nc://login/server:' . $this->getServerPath() . '&user:' . urlencode($loginName) . '&password:' . urlencode($token);
360
+			$redirectUri = 'nc://login/server:'.$this->getServerPath().'&user:'.urlencode($loginName).'&password:'.urlencode($token);
361 361
 
362 362
 			// Clear the token from the login here
363 363
 			$this->tokenProvider->invalidateToken($sessionId);
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 			return $response;
396 396
 		}
397 397
 
398
-		$redirectUri = 'nc://login/server:' . $this->getServerPath() . '&user:' . urlencode($user) . '&password:' . urlencode($password);
398
+		$redirectUri = 'nc://login/server:'.$this->getServerPath().'&user:'.urlencode($user).'&password:'.urlencode($password);
399 399
 		return new Http\RedirectResponse($redirectUri);
400 400
 	}
401 401
 
@@ -418,6 +418,6 @@  discard block
 block discarded – undo
418 418
 			}
419 419
 		}
420 420
 
421
-		return $protocol . "://" . $this->request->getServerHost() . $serverPostfix;
421
+		return $protocol."://".$this->request->getServerHost().$serverPostfix;
422 422
 	}
423 423
 }
Please login to merge, or discard this patch.