Completed
Push — master ( fbff47...e613ba )
by Joas
43:30 queued 10s
created
tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 			->set('configvalue',
112 112
 				$query->expr()->castColumn(
113 113
 					$query->createFunction(
114
-						'(' . $query->expr()->castColumn('configvalue', IQueryBuilder::PARAM_INT)
114
+						'('.$query->expr()->castColumn('configvalue', IQueryBuilder::PARAM_INT)
115 115
 						. ' + 1)'
116 116
 					), IQueryBuilder::PARAM_STR
117 117
 				)
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 		$entries = $result->fetchAll();
178 178
 		$result->closeCursor();
179 179
 		self::assertCount(1, $entries);
180
-		self::assertEquals([['permissions','after']], json_decode($entries[0]['attributes'], true));
180
+		self::assertEquals([['permissions', 'after']], json_decode($entries[0]['attributes'], true));
181 181
 	}
182 182
 
183 183
 	public function testDateTimeEquals(): void {
@@ -238,8 +238,8 @@  discard block
 block discarded – undo
238 238
 		$query->insert('appconfig')
239 239
 			->values([
240 240
 				'appid' => $query->createNamedParameter($appId),
241
-				'configkey' => $query->createNamedParameter((string)$key),
242
-				'configvalue' => $query->createNamedParameter((string)$value),
241
+				'configkey' => $query->createNamedParameter((string) $key),
242
+				'configvalue' => $query->createNamedParameter((string) $value),
243 243
 			])
244 244
 			->executeStatement();
245 245
 	}
@@ -252,11 +252,11 @@  discard block
 block discarded – undo
252 252
 		$prefix = Server::get(IConfig::class)->getSystemValueString('dbtableprefix', 'oc_');
253 253
 		$schema = $this->connection->createSchema();
254 254
 		try {
255
-			$schema->getTable($prefix . 'testing');
255
+			$schema->getTable($prefix.'testing');
256 256
 			$this->connection->getQueryBuilder()->delete('testing')->executeStatement();
257 257
 		} catch (SchemaException $e) {
258 258
 			$this->schemaSetup = true;
259
-			$table = $schema->createTable($prefix . 'testing');
259
+			$table = $schema->createTable($prefix.'testing');
260 260
 			$table->addColumn('id', Types::BIGINT, [
261 261
 				'autoincrement' => true,
262 262
 				'notnull' => true,
Please login to merge, or discard this patch.
apps/settings/lib/SetupChecks/SupportedDatabase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			$versionlc = strtolower($version);
51 51
 			// we only care about X.Y not X.Y.Z differences
52 52
 			[$major, $minor, ] = explode('.', $versionlc);
53
-			$versionConcern = $major . '.' . $minor;
53
+			$versionConcern = $major.'.'.$minor;
54 54
 			if (str_contains($versionlc, 'mariadb')) {
55 55
 				if (version_compare($versionConcern, '10.3', '=')) {
56 56
 					return SetupResult::info(
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
 			$versionLower = strtolower($version);
116 116
 			// we only care about X.Y not X.Y.Z differences
117 117
 			[$major, $minor, ] = explode('.', $versionLower);
118
-			$versionConcern = $major . '.' . $minor;
118
+			$versionConcern = $major.'.'.$minor;
119 119
 			if (version_compare($versionConcern, self::MIN_ORACLE, '<') || version_compare($versionConcern, self::MAX_ORACLE, '>')) {
120 120
 				$extendedWarning = '';
121 121
 				if (version_compare($versionConcern, self::MIN_ORACLE, '<')) {
122
-					$extendedWarning = "\n" . $this->l10n->t('Nextcloud %d does not support your current version, so be sure to update the database before updating your Nextcloud Server.', [33]);
122
+					$extendedWarning = "\n".$this->l10n->t('Nextcloud %d does not support your current version, so be sure to update the database before updating your Nextcloud Server.', [33]);
123 123
 				}
124 124
 				return SetupResult::warning(
125 125
 					$this->l10n->t(
Please login to merge, or discard this patch.