Completed
Push — master ( 47b46d...809bbe )
by
unknown
28:10
created
tests/lib/Authentication/TwoFactorAuth/ProviderLoaderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	public function testGetProviders(): void {
73 73
 		$provider = $this->createMock(IProvider::class);
74 74
 		$provider->method('getId')->willReturn('test');
75
-		\OC::$server->registerService('\\OCA\\TwoFactorTest\\Provider', function () use ($provider) {
75
+		\OC::$server->registerService('\\OCA\\TwoFactorTest\\Provider', function() use ($provider) {
76 76
 			return $provider;
77 77
 		});
78 78
 		$this->appManager->expects($this->once())
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 		$provider = $this->createMock(IProvider::class);
98 98
 		$provider->method('getId')->willReturn('test');
99 99
 
100
-		\OC::$server->registerService('\\OCA\\TwoFactorTest\\Provider', function () use ($provider) {
100
+		\OC::$server->registerService('\\OCA\\TwoFactorTest\\Provider', function() use ($provider) {
101 101
 			return $provider;
102 102
 		});
103 103
 
Please login to merge, or discard this patch.
tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 				['twofactor_enforced_excluded_groups', [], []],
92 92
 			]);
93 93
 		$this->groupManager->method('isInGroup')
94
-			->willReturnCallback(function ($user, $group) {
94
+			->willReturnCallback(function($user, $group) {
95 95
 				return $user === 'user123' && $group === 'twofactorers';
96 96
 			});
97 97
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 				['twofactor_enforced_excluded_groups', [], ['yoloers']],
130 130
 			]);
131 131
 		$this->groupManager->method('isInGroup')
132
-			->willReturnCallback(function ($user, $group) {
132
+			->willReturnCallback(function($user, $group) {
133 133
 				return $user === 'user123' && $group === 'yoloers';
134 134
 			});
135 135
 
Please login to merge, or discard this patch.
tests/lib/Authentication/Token/PublicKeyTokenMapperTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 			->from('authtoken')
119 119
 			->execute()
120 120
 			->fetch();
121
-		return (int)$result['count'];
121
+		return (int) $result['count'];
122 122
 	}
123 123
 
124 124
 	public function testInvalidate(): void {
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 		$result = $qb->execute();
243 243
 		$id = $result->fetch()['id'];
244 244
 
245
-		$token = $this->mapper->getTokenById((int)$id);
245
+		$token = $this->mapper->getTokenById((int) $id);
246 246
 		$this->assertEquals('user1', $token->getUID());
247 247
 	}
248 248
 
Please login to merge, or discard this patch.
tests/lib/Contacts/ContactsMenu/ManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 			$entry = $this->createMock(Entry::class);
52 52
 			$entry->expects($this->any())
53 53
 				->method('getFullName')
54
-				->willReturn('Contact ' . $char);
54
+				->willReturn('Contact '.$char);
55 55
 			$entries[] = $entry;
56 56
 		}
57 57
 		return $entries;
Please login to merge, or discard this patch.
tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -292,10 +292,10 @@  discard block
 block discarded – undo
292 292
 	protected function helpWithLiteral($input, $isLiteral) {
293 293
 		if ($isLiteral) {
294 294
 			if (is_array($input)) {
295
-				$doctrineInput = array_map(function ($ident) {
295
+				$doctrineInput = array_map(function($ident) {
296 296
 					return $this->doctrineExpressionBuilder->literal($ident);
297 297
 				}, $input);
298
-				$ocInput = array_map(function ($ident) {
298
+				$ocInput = array_map(function($ident) {
299 299
 					return $this->expressionBuilder->literal($ident);
300 300
 				}, $input);
301 301
 			} else {
@@ -304,12 +304,12 @@  discard block
 block discarded – undo
304 304
 			}
305 305
 		} else {
306 306
 			if (is_array($input)) {
307
-				$doctrineInput = array_map(function ($input) {
308
-					return '`' . $input . '`';
307
+				$doctrineInput = array_map(function($input) {
308
+					return '`'.$input.'`';
309 309
 				}, $input);
310 310
 				$ocInput = $input;
311 311
 			} else {
312
-				$doctrineInput = '`' . $input . '`';
312
+				$doctrineInput = '`'.$input.'`';
313 313
 				$ocInput = $input;
314 314
 			}
315 315
 		}
@@ -420,8 +420,8 @@  discard block
 block discarded – undo
420 420
 		$query->insert('appconfig')
421 421
 			->values([
422 422
 				'appid' => $query->createNamedParameter($appId),
423
-				'configkey' => $query->createNamedParameter((string)$key),
424
-				'configvalue' => $query->createNamedParameter((string)$value),
423
+				'configkey' => $query->createNamedParameter((string) $key),
424
+				'configvalue' => $query->createNamedParameter((string) $value),
425 425
 			])
426 426
 			->execute();
427 427
 	}
Please login to merge, or discard this patch.
tests/lib/DB/QueryBuilder/QuoteHelperTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,9 +123,9 @@
 block discarded – undo
123 123
 
124 124
 		if (substr_count($string, '.')) {
125 125
 			[$alias, $columnName] = explode('.', $string);
126
-			return '`' . $alias . '`.`' . $columnName . '`';
126
+			return '`'.$alias.'`.`'.$columnName.'`';
127 127
 		}
128 128
 
129
-		return '`' . $string . '`';
129
+		return '`'.$string.'`';
130 130
 	}
131 131
 }
Please login to merge, or discard this patch.
tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php 1 patch
Spacing   +5 added lines, -5 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
 				)
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
 		$query->insert('appconfig')
200 200
 			->values([
201 201
 				'appid' => $query->createNamedParameter($appId),
202
-				'configkey' => $query->createNamedParameter((string)$key),
203
-				'configvalue' => $query->createNamedParameter((string)$value),
202
+				'configkey' => $query->createNamedParameter((string) $key),
203
+				'configvalue' => $query->createNamedParameter((string) $value),
204 204
 			])
205 205
 			->execute();
206 206
 	}
@@ -213,11 +213,11 @@  discard block
 block discarded – undo
213 213
 		$prefix = Server::get(IConfig::class)->getSystemValueString('dbtableprefix', 'oc_');
214 214
 		$schema = $this->connection->createSchema();
215 215
 		try {
216
-			$schema->getTable($prefix . 'testing');
216
+			$schema->getTable($prefix.'testing');
217 217
 			$this->connection->getQueryBuilder()->delete('testing')->executeStatement();
218 218
 		} catch (SchemaException $e) {
219 219
 			$this->schemaSetup = true;
220
-			$table = $schema->createTable($prefix . 'testing');
220
+			$table = $schema->createTable($prefix.'testing');
221 221
 			$table->addColumn('id', Types::BIGINT, [
222 222
 				'autoincrement' => true,
223 223
 				'notnull' => true,
Please login to merge, or discard this patch.
tests/lib/DB/MigratorTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -64,18 +64,18 @@  discard block
 block discarded – undo
64 64
 	}
65 65
 
66 66
 	private function getUniqueTableName() {
67
-		return strtolower($this->getUniqueID($this->config->getSystemValueString('dbtableprefix', 'oc_') . 'test_'));
67
+		return strtolower($this->getUniqueID($this->config->getSystemValueString('dbtableprefix', 'oc_').'test_'));
68 68
 	}
69 69
 
70 70
 	protected function tearDown(): void {
71 71
 		// Try to delete if exists (IF EXISTS NOT SUPPORTED IN ORACLE)
72 72
 		try {
73
-			$this->connection->exec('DROP TABLE ' . $this->connection->quoteIdentifier($this->tableNameTmp));
73
+			$this->connection->exec('DROP TABLE '.$this->connection->quoteIdentifier($this->tableNameTmp));
74 74
 		} catch (Exception $e) {
75 75
 		}
76 76
 
77 77
 		try {
78
-			$this->connection->exec('DROP TABLE ' . $this->connection->quoteIdentifier($this->tableName));
78
+			$this->connection->exec('DROP TABLE '.$this->connection->quoteIdentifier($this->tableName));
79 79
 		} catch (Exception $e) {
80 80
 		}
81 81
 		parent::tearDown();
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 		$table = $startSchema->createTable($this->tableName);
90 90
 		$table->addColumn('id', 'integer');
91 91
 		$table->addColumn('name', 'string');
92
-		$table->addIndex(['id'], $this->tableName . '_id');
92
+		$table->addIndex(['id'], $this->tableName.'_id');
93 93
 
94 94
 		$endSchema = new Schema([], [], $this->getSchemaConfig());
95 95
 		$table = $endSchema->createTable($this->tableName);
96 96
 		$table->addColumn('id', 'integer');
97 97
 		$table->addColumn('name', 'string');
98
-		$table->addUniqueIndex(['id'], $this->tableName . '_id');
98
+		$table->addUniqueIndex(['id'], $this->tableName.'_id');
99 99
 
100 100
 		return [$startSchema, $endSchema];
101 101
 	}
@@ -108,13 +108,13 @@  discard block
 block discarded – undo
108 108
 		$table = $startSchema->createTable($this->tableName);
109 109
 		$table->addColumn('id', $from);
110 110
 		$table->addColumn('name', 'string');
111
-		$table->addIndex(['id'], $this->tableName . '_id');
111
+		$table->addIndex(['id'], $this->tableName.'_id');
112 112
 
113 113
 		$endSchema = new Schema([], [], $this->getSchemaConfig());
114 114
 		$table = $endSchema->createTable($this->tableName);
115 115
 		$table->addColumn('id', $to);
116 116
 		$table->addColumn('name', 'string');
117
-		$table->addIndex(['id'], $this->tableName . '_id');
117
+		$table->addIndex(['id'], $this->tableName.'_id');
118 118
 
119 119
 		return [$startSchema, $endSchema];
120 120
 	}
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 		$oldTablePrefix = $this->config->getSystemValueString('dbtableprefix', 'oc_');
144 144
 
145 145
 		$this->config->setSystemValue('dbtableprefix', 'ownc_');
146
-		$this->tableName = strtolower($this->getUniqueID($this->config->getSystemValueString('dbtableprefix') . 'test_'));
146
+		$this->tableName = strtolower($this->getUniqueID($this->config->getSystemValueString('dbtableprefix').'test_'));
147 147
 
148 148
 		[$startSchema, $endSchema] = $this->getDuplicateKeySchemas();
149 149
 		$migrator = $this->getMigrator();
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 		$table->addColumn('will_it_blend', $columnType, [
292 292
 			'notnull' => true,
293 293
 		]);
294
-		$table->addIndex(['id'], $this->tableName . '_id');
294
+		$table->addIndex(['id'], $this->tableName.'_id');
295 295
 
296 296
 		$migrator = $this->getMigrator();
297 297
 		$migrator->migrate($startSchema);
Please login to merge, or discard this patch.
tests/lib/RichObjectStrings/ValidatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 		}
91 91
 
92 92
 		$v = new Validator(new Definitions());
93
-		$v->validate('{' . $key . '}', [
93
+		$v->validate('{'.$key.'}', [
94 94
 			$key => [
95 95
 				'type' => 'highlight',
96 96
 				'id' => 'identifier',
Please login to merge, or discard this patch.