Completed
Push — master ( cc6284...4d23a9 )
by Daniel
33:37
created
tests/lib/LargeFileHelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 	public function testFormatUnsignedIntegerFloat(): void {
19 19
 		$this->assertSame(
20 20
 			'9007199254740992',
21
-			$this->helper->formatUnsignedInteger((float)9007199254740992)
21
+			$this->helper->formatUnsignedInteger((float) 9007199254740992)
22 22
 		);
23 23
 	}
24 24
 
Please login to merge, or discard this patch.
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/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/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/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.
tests/lib/RichObjectStrings/DefinitionsTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,18 +58,18 @@
 block discarded – undo
58 58
 	}
59 59
 
60 60
 	public function validateParameter($parameter, $data) {
61
-		$this->assertTrue(is_array($data), 'Parameter ' . $parameter . ' is invalid');
61
+		$this->assertTrue(is_array($data), 'Parameter '.$parameter.' is invalid');
62 62
 		$this->assertArrayHasKey('since', $data);
63
-		$this->assertNotEmpty($data['since'], 'Since of parameter ' . $parameter . ' must not be empty');
63
+		$this->assertNotEmpty($data['since'], 'Since of parameter '.$parameter.' must not be empty');
64 64
 		$this->assertArrayHasKey('required', $data);
65
-		$this->assertTrue(is_bool($data['required']), 'Required of parameter ' . $parameter . ' must be a boolean');
65
+		$this->assertTrue(is_bool($data['required']), 'Required of parameter '.$parameter.' must be a boolean');
66 66
 		if ($parameter === 'id' || $parameter === 'name') {
67
-			$this->assertTrue($data['required'], 'Parameter ' . $parameter . ' must be required');
67
+			$this->assertTrue($data['required'], 'Parameter '.$parameter.' must be required');
68 68
 		}
69 69
 
70 70
 		$this->assertArrayHasKey('description', $data);
71
-		$this->assertNotEquals('', $data['description'], 'Description of parameter ' . $parameter . ' must not be empty');
71
+		$this->assertNotEquals('', $data['description'], 'Description of parameter '.$parameter.' must not be empty');
72 72
 		$this->assertArrayHasKey('example', $data);
73
-		$this->assertNotEquals('', $data['example'], 'Example of parameter ' . $parameter . ' must not be empty');
73
+		$this->assertNotEquals('', $data['example'], 'Example of parameter '.$parameter.' must not be empty');
74 74
 	}
75 75
 }
Please login to merge, or discard this patch.
tests/lib/Collaboration/Collaborators/LookupPluginTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$this->userSession->expects($this->any())->method('getUser')
53 53
 			->willReturn($user);
54 54
 		$this->cloudIdManager->expects($this->any())->method('resolveCloudId')
55
-			->willReturnCallback(function ($cloudId) {
55
+			->willReturnCallback(function($cloudId) {
56 56
 				if ($cloudId === '[email protected]') {
57 57
 					return new CloudId('[email protected]', 'user', 'myNextcloud.net');
58 58
 				}
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
 		$client = $this->createMock(IClient::class);
163 163
 		$client->expects($this->once())
164 164
 			->method('get')
165
-			->willReturnCallback(function ($url) use ($searchParams, $response) {
166
-				$this->assertSame(strpos($url, $searchParams['server'] . '/users?search='), 0);
165
+			->willReturnCallback(function($url) use ($searchParams, $response) {
166
+				$this->assertSame(strpos($url, $searchParams['server'].'/users?search='), 0);
167 167
 				$this->assertNotFalse(strpos($url, urlencode($searchParams['search'])));
168 168
 				return $response;
169 169
 			});
@@ -226,8 +226,8 @@  discard block
 block discarded – undo
226 226
 			$client = $this->createMock(IClient::class);
227 227
 			$client->expects($this->once())
228 228
 				->method('get')
229
-				->willReturnCallback(function ($url) use ($searchParams, $response) {
230
-					$this->assertSame(strpos($url, $searchParams['server'] . '/users?search='), 0);
229
+				->willReturnCallback(function($url) use ($searchParams, $response) {
230
+					$this->assertSame(strpos($url, $searchParams['server'].'/users?search='), 0);
231 231
 					$this->assertNotFalse(strpos($url, urlencode($searchParams['search'])));
232 232
 					return $response;
233 233
 				});
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
 						'extra' => ['federationId' => $fedIDs[2]],
324 324
 					],
325 325
 				]
326
-			],// GS , Lookup
326
+			], // GS , Lookup
327 327
 				true, true
328 328
 			],
329 329
 			[[
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 						'extra' => ['federationId' => $fedIDs[2]],
366 366
 					],
367 367
 				]
368
-			],// GS , Lookup
368
+			], // GS , Lookup
369 369
 				true, false
370 370
 			],
371 371
 			[[
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 						'extra' => ['federationId' => $fedIDs[2]],
405 405
 					],
406 406
 				]
407
-			],// GS , Lookup
407
+			], // GS , Lookup
408 408
 				false, true
409 409
 			],
410 410
 			[[
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 						'extra' => ['federationId' => $fedIDs[2]],
444 444
 					],
445 445
 				]
446
-			],// GS , Lookup
446
+			], // GS , Lookup
447 447
 				false, false
448 448
 			],
449 449
 		];
Please login to merge, or discard this patch.