Passed
Push — master ( a16703...c6645c )
by John
17:09 queued 13s
created
lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,11 +168,11 @@  discard block
 block discarded – undo
168 168
 	public function castColumn($column, $type): IQueryFunction {
169 169
 		if ($type === IQueryBuilder::PARAM_STR) {
170 170
 			$column = $this->helper->quoteColumnName($column);
171
-			return new QueryFunction('to_char(' . $column . ')');
171
+			return new QueryFunction('to_char('.$column.')');
172 172
 		}
173 173
 		if ($type === IQueryBuilder::PARAM_INT) {
174 174
 			$column = $this->helper->quoteColumnName($column);
175
-			return new QueryFunction('to_number(to_char(' . $column . '))');
175
+			return new QueryFunction('to_number(to_char('.$column.'))');
176 176
 		}
177 177
 
178 178
 		return parent::castColumn($column, $type);
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 	 * @inheritdoc
183 183
 	 */
184 184
 	public function like($x, $y, $type = null): string {
185
-		return parent::like($x, $y, $type) . " ESCAPE '\\'";
185
+		return parent::like($x, $y, $type)." ESCAPE '\\'";
186 186
 	}
187 187
 
188 188
 	/**
Please login to merge, or discard this patch.
lib/public/Security/ISecureRandom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 	public const CHAR_LOWER = 'abcdefghijklmnopqrstuvwxyz';
48 48
 	public const CHAR_DIGITS = '0123456789';
49 49
 	public const CHAR_SYMBOLS = '!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~';
50
-	public const CHAR_ALPHANUMERIC = self::CHAR_UPPER . self::CHAR_LOWER . self::CHAR_DIGITS;
50
+	public const CHAR_ALPHANUMERIC = self::CHAR_UPPER.self::CHAR_LOWER.self::CHAR_DIGITS;
51 51
 
52 52
 	/**
53 53
 	 * Characters that can be used for <code>generate($length, $characters)</code>, to
Please login to merge, or discard this patch.
apps/settings/lib/Mailer/NewUserMailHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,9 +106,9 @@
 block discarded – undo
106 106
 				21,
107 107
 				ISecureRandom::CHAR_ALPHANUMERIC
108 108
 			);
109
-			$tokenValue = $this->timeFactory->getTime() . ':' . $token;
109
+			$tokenValue = $this->timeFactory->getTime().':'.$token;
110 110
 			$mailAddress = (null !== $user->getEMailAddress()) ? $user->getEMailAddress() : '';
111
-			$encryptedValue = $this->crypto->encrypt($tokenValue, $mailAddress . $this->config->getSystemValue('secret'));
111
+			$encryptedValue = $this->crypto->encrypt($tokenValue, $mailAddress.$this->config->getSystemValue('secret'));
112 112
 			$this->config->setUserValue($user->getUID(), 'core', 'lostpassword', $encryptedValue);
113 113
 			$link = $this->urlGenerator->linkToRouteAbsolute('core.lost.resetform', ['userId' => $user->getUID(), 'token' => $token]);
114 114
 		} else {
Please login to merge, or discard this patch.
apps/dav/lib/Controller/DirectController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 		}
92 92
 
93 93
 		if ($expirationTime <= 0 || $expirationTime > (60 * 60 * 24)) {
94
-			throw new OCSBadRequestException('Expiration time should be greater than 0 and less than or equal to ' . (60 * 60 * 24));
94
+			throw new OCSBadRequestException('Expiration time should be greater than 0 and less than or equal to '.(60 * 60 * 24));
95 95
 		}
96 96
 
97 97
 		$file = array_shift($files);
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/FunctionBuilder/PgSqlFunctionBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@
 block discarded – undo
41 41
 		$castedExpression = $this->queryBuilder->expr()->castColumn($expr, IQueryBuilder::PARAM_STR);
42 42
 
43 43
 		if (is_null($separator)) {
44
-			return new QueryFunction('string_agg(' . $castedExpression . ')');
44
+			return new QueryFunction('string_agg('.$castedExpression.')');
45 45
 		}
46 46
 
47 47
 		$separator = $this->connection->quote($separator);
48
-		return new QueryFunction('string_agg(' . $castedExpression . ', ' . $separator . ')');
48
+		return new QueryFunction('string_agg('.$castedExpression.', '.$separator.')');
49 49
 	}
50 50
 }
Please login to merge, or discard this patch.
lib/private/DB/AdapterMySQL.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 * @param string $tableName
32 32
 	 */
33 33
 	public function lockTable($tableName) {
34
-		$this->conn->executeUpdate('LOCK TABLES `' .$tableName . '` WRITE');
34
+		$this->conn->executeUpdate('LOCK TABLES `'.$tableName.'` WRITE');
35 35
 	}
36 36
 
37 37
 	public function unlockTable() {
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
 	}
40 40
 
41 41
 	public function fixupStatement($statement) {
42
-		$statement = str_replace(' ILIKE ', ' COLLATE ' . $this->getCollation() . ' LIKE ', $statement);
42
+		$statement = str_replace(' ILIKE ', ' COLLATE '.$this->getCollation().' LIKE ', $statement);
43 43
 		return $statement;
44 44
 	}
45 45
 
46 46
 	protected function getCollation(): string {
47 47
 		if (!$this->collation) {
48 48
 			$params = $this->conn->getParams();
49
-			$this->collation = $params['collation'] ?? (($params['charset'] ?? 'utf8') . '_general_ci');
49
+			$this->collation = $params['collation'] ?? (($params['charset'] ?? 'utf8').'_general_ci');
50 50
 		}
51 51
 
52 52
 		return $this->collation;
Please login to merge, or discard this patch.
lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
 	public function afterException($controller, $methodName, \Exception $exception): Response {
248 248
 		if ($exception instanceof SecurityException) {
249 249
 			if ($exception instanceof StrictCookieMissingException) {
250
-				return new RedirectResponse(\OC::$WEBROOT . '/');
250
+				return new RedirectResponse(\OC::$WEBROOT.'/');
251 251
 			}
252 252
 			if (stripos($this->request->getHeader('Accept'), 'html') === false) {
253 253
 				$response = new JSONResponse(
Please login to merge, or discard this patch.
lib/private/Comments/Comment.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 		}
201 201
 		$message = trim($message);
202 202
 		if ($maxLength && mb_strlen($message, 'UTF-8') > $maxLength) {
203
-			throw new MessageTooLongException('Comment message must not exceed ' . $maxLength. ' characters');
203
+			throw new MessageTooLongException('Comment message must not exceed '.$maxLength.' characters');
204 204
 		}
205 205
 		$this->data['message'] = $message;
206 206
 		return $this;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 			return [];
233 233
 		}
234 234
 		$mentionIds = array_unique($mentions[0]);
235
-		usort($mentionIds, static function ($mentionId1, $mentionId2) {
235
+		usort($mentionIds, static function($mentionId1, $mentionId2) {
236 236
 			return mb_strlen($mentionId2) <=> mb_strlen($mentionId1);
237 237
 		});
238 238
 		$result = [];
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 	protected function fromArray($data) {
441 441
 		foreach (array_keys($data) as $key) {
442 442
 			// translate DB keys to internal setter names
443
-			$setter = 'set' . implode('', array_map('ucfirst', explode('_', $key)));
443
+			$setter = 'set'.implode('', array_map('ucfirst', explode('_', $key)));
444 444
 			$setter = str_replace('Timestamp', 'DateTime', $setter);
445 445
 
446 446
 			if (method_exists($this, $setter)) {
@@ -449,9 +449,9 @@  discard block
 block discarded – undo
449 449
 		}
450 450
 
451 451
 		foreach (['actor', 'object'] as $role) {
452
-			if (isset($data[$role . '_type']) && isset($data[$role . '_id'])) {
453
-				$setter = 'set' . ucfirst($role);
454
-				$this->$setter($data[$role . '_type'], $data[$role . '_id']);
452
+			if (isset($data[$role.'_type']) && isset($data[$role.'_id'])) {
453
+				$setter = 'set'.ucfirst($role);
454
+				$this->$setter($data[$role.'_type'], $data[$role.'_id']);
455 455
 			}
456 456
 		}
457 457
 
Please login to merge, or discard this patch.
lib/private/App/AppStore/Fetcher/AppFetcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
 			foreach ($releases as $release) {
152 152
 				$versions[] = $release['version'];
153 153
 			}
154
-			usort($versions, function ($version1, $version2) {
154
+			usort($versions, function($version1, $version2) {
155 155
 				return version_compare($version1, $version2);
156 156
 			});
157 157
 			$versions = array_reverse($versions);
158 158
 			if (isset($versions[0])) {
159 159
 				$highestVersion = $versions[0];
160 160
 				foreach ($releases as $release) {
161
-					if ((string)$release['version'] === (string)$highestVersion) {
161
+					if ((string) $release['version'] === (string) $highestVersion) {
162 162
 						$response['data'][$dataKey]['releases'] = [$release];
163 163
 						break;
164 164
 					}
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
 		// If the admin specified a allow list, filter apps from the appstore
190 190
 		if (is_array($allowList) && $this->registry->delegateHasValidSubscription()) {
191
-			return array_filter($apps, function ($app) use ($allowList) {
191
+			return array_filter($apps, function($app) use ($allowList) {
192 192
 				return in_array($app['id'], $allowList);
193 193
 			});
194 194
 		}
Please login to merge, or discard this patch.