Completed
Push — master ( b60a8d...de4a35 )
by
unknown
19:04
created
tests/lib/Http/Client/ClientTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 			->method('listCertificates');
480 480
 
481 481
 		$this->assertEquals([
482
-			'verify' => \OC::$SERVERROOT . '/resources/config/ca-bundle.crt',
482
+			'verify' => \OC::$SERVERROOT.'/resources/config/ca-bundle.crt',
483 483
 			'headers' => [
484 484
 				'User-Agent' => 'Nextcloud Server Crawler',
485 485
 				'Accept-Encoding' => 'gzip',
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
 				'allow_local_address' => false,
490 490
 			],
491 491
 			'allow_redirects' => [
492
-				'on_redirect' => function (
492
+				'on_redirect' => function(
493 493
 					\Psr\Http\Message\RequestInterface $request,
494 494
 					\Psr\Http\Message\ResponseInterface $response,
495 495
 					\Psr\Http\Message\UriInterface $uri,
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 				'allow_local_address' => false,
549 549
 			],
550 550
 			'allow_redirects' => [
551
-				'on_redirect' => function (
551
+				'on_redirect' => function(
552 552
 					\Psr\Http\Message\RequestInterface $request,
553 553
 					\Psr\Http\Message\ResponseInterface $response,
554 554
 					\Psr\Http\Message\UriInterface $uri,
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
 				'allow_local_address' => false,
609 609
 			],
610 610
 			'allow_redirects' => [
611
-				'on_redirect' => function (
611
+				'on_redirect' => function(
612 612
 					\Psr\Http\Message\RequestInterface $request,
613 613
 					\Psr\Http\Message\ResponseInterface $response,
614 614
 					\Psr\Http\Message\UriInterface $uri,
Please login to merge, or discard this patch.
tests/lib/Share20/DefaultShareProviderTest.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
 		$share2 = $this->provider->create($share);
718 718
 
719 719
 		$this->assertNotNull($share2->getId());
720
-		$this->assertSame('ocinternal:' . $share2->getId(), $share2->getFullId());
720
+		$this->assertSame('ocinternal:'.$share2->getId(), $share2->getFullId());
721 721
 		$this->assertSame(IShare::TYPE_USER, $share2->getShareType());
722 722
 		$this->assertSame('sharedWith', $share2->getSharedWith());
723 723
 		$this->assertSame('sharedBy', $share2->getSharedBy());
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
 		$share2 = $this->provider->create($share);
788 788
 
789 789
 		$this->assertNotNull($share2->getId());
790
-		$this->assertSame('ocinternal:' . $share2->getId(), $share2->getFullId());
790
+		$this->assertSame('ocinternal:'.$share2->getId(), $share2->getFullId());
791 791
 		$this->assertSame(IShare::TYPE_GROUP, $share2->getShareType());
792 792
 		$this->assertSame('sharedWith', $share2->getSharedWith());
793 793
 		$this->assertSame('sharedBy', $share2->getSharedBy());
@@ -856,7 +856,7 @@  discard block
 block discarded – undo
856 856
 		$share2 = $this->provider->create($share);
857 857
 
858 858
 		$this->assertNotNull($share2->getId());
859
-		$this->assertSame('ocinternal:' . $share2->getId(), $share2->getFullId());
859
+		$this->assertSame('ocinternal:'.$share2->getId(), $share2->getFullId());
860 860
 		$this->assertSame(IShare::TYPE_LINK, $share2->getShareType());
861 861
 		$this->assertSame('sharedBy', $share2->getSharedBy());
862 862
 		$this->assertSame('shareOwner', $share2->getShareOwner());
@@ -1068,7 +1068,7 @@  discard block
 block discarded – undo
1068 1068
 
1069 1069
 		$groups = [];
1070 1070
 		foreach (range(0, 100) as $i) {
1071
-			$groups[] = 'group' . $i;
1071
+			$groups[] = 'group'.$i;
1072 1072
 		}
1073 1073
 
1074 1074
 		$groups[] = 'sharedWith';
@@ -1187,7 +1187,7 @@  discard block
 block discarded – undo
1187 1187
 		$this->assertCount(1, $share);
1188 1188
 
1189 1189
 		$share = $share[0];
1190
-		$this->assertSame((string)$id, $share->getId());
1190
+		$this->assertSame((string) $id, $share->getId());
1191 1191
 		$this->assertSame('sharedWith', $share->getSharedWith());
1192 1192
 		$this->assertSame('shareOwner', $share->getShareOwner());
1193 1193
 		$this->assertSame('sharedBy', $share->getSharedBy());
@@ -1322,7 +1322,7 @@  discard block
 block discarded – undo
1322 1322
 
1323 1323
 		$groups = [];
1324 1324
 		foreach (range(0, 100) as $i) {
1325
-			$groups[] = 'group' . $i;
1325
+			$groups[] = 'group'.$i;
1326 1326
 		}
1327 1327
 
1328 1328
 		$groups[] = 'sharedWith';
@@ -1855,13 +1855,13 @@  discard block
 block discarded – undo
1855 1855
 		$users = [];
1856 1856
 		for ($i = 0; $i < 6; $i++) {
1857 1857
 			$user = $this->createMock(IUser::class);
1858
-			$user->method('getUID')->willReturn('user' . $i);
1859
-			$user->method('getDisplayName')->willReturn('user' . $i);
1860
-			$users['user' . $i] = $user;
1858
+			$user->method('getUID')->willReturn('user'.$i);
1859
+			$user->method('getDisplayName')->willReturn('user'.$i);
1860
+			$users['user'.$i] = $user;
1861 1861
 		}
1862 1862
 
1863 1863
 		$this->userManager->method('get')->willReturnCallback(
1864
-			function ($userId) use ($users) {
1864
+			function($userId) use ($users) {
1865 1865
 				return $users[$userId];
1866 1866
 			}
1867 1867
 		);
@@ -1913,12 +1913,12 @@  discard block
 block discarded – undo
1913 1913
 		$users = [];
1914 1914
 		for ($i = 0; $i < 6; $i++) {
1915 1915
 			$user = $this->createMock(IUser::class);
1916
-			$user->method('getUID')->willReturn('user' . $i);
1917
-			$users['user' . $i] = $user;
1916
+			$user->method('getUID')->willReturn('user'.$i);
1917
+			$users['user'.$i] = $user;
1918 1918
 		}
1919 1919
 
1920 1920
 		$this->userManager->method('get')->willReturnCallback(
1921
-			function ($userId) use ($users) {
1921
+			function($userId) use ($users) {
1922 1922
 				return $users[$userId];
1923 1923
 			}
1924 1924
 		);
@@ -1979,12 +1979,12 @@  discard block
 block discarded – undo
1979 1979
 		$users = [];
1980 1980
 		for ($i = 0; $i < 6; $i++) {
1981 1981
 			$user = $this->createMock(IUser::class);
1982
-			$user->method('getUID')->willReturn('user' . $i);
1983
-			$users['user' . $i] = $user;
1982
+			$user->method('getUID')->willReturn('user'.$i);
1983
+			$users['user'.$i] = $user;
1984 1984
 		}
1985 1985
 
1986 1986
 		$this->userManager->method('get')->willReturnCallback(
1987
-			function ($userId) use ($users) {
1987
+			function($userId) use ($users) {
1988 1988
 				return $users[$userId];
1989 1989
 			}
1990 1990
 		);
@@ -2036,12 +2036,12 @@  discard block
 block discarded – undo
2036 2036
 		$users = [];
2037 2037
 		for ($i = 0; $i < 6; $i++) {
2038 2038
 			$user = $this->createMock(IUser::class);
2039
-			$user->method('getUID')->willReturn('user' . $i);
2040
-			$users['user' . $i] = $user;
2039
+			$user->method('getUID')->willReturn('user'.$i);
2040
+			$users['user'.$i] = $user;
2041 2041
 		}
2042 2042
 
2043 2043
 		$this->userManager->method('get')->willReturnCallback(
2044
-			function ($userId) use ($users) {
2044
+			function($userId) use ($users) {
2045 2045
 				return $users[$userId];
2046 2046
 			}
2047 2047
 		);
@@ -2049,13 +2049,13 @@  discard block
 block discarded – undo
2049 2049
 		$groups = [];
2050 2050
 		for ($i = 0; $i < 2; $i++) {
2051 2051
 			$group = $this->createMock(IGroup::class);
2052
-			$group->method('getGID')->willReturn('group' . $i);
2053
-			$group->method('getDisplayName')->willReturn('group-displayname' . $i);
2054
-			$groups['group' . $i] = $group;
2052
+			$group->method('getGID')->willReturn('group'.$i);
2053
+			$group->method('getDisplayName')->willReturn('group-displayname'.$i);
2054
+			$groups['group'.$i] = $group;
2055 2055
 		}
2056 2056
 
2057 2057
 		$this->groupManager->method('get')->willReturnCallback(
2058
-			function ($groupId) use ($groups) {
2058
+			function($groupId) use ($groups) {
2059 2059
 				return $groups[$groupId];
2060 2060
 			}
2061 2061
 		);
@@ -2115,12 +2115,12 @@  discard block
 block discarded – undo
2115 2115
 		$users = [];
2116 2116
 		for ($i = 0; $i < 6; $i++) {
2117 2117
 			$user = $this->createMock(IUser::class);
2118
-			$user->method('getUID')->willReturn('user' . $i);
2119
-			$users['user' . $i] = $user;
2118
+			$user->method('getUID')->willReturn('user'.$i);
2119
+			$users['user'.$i] = $user;
2120 2120
 		}
2121 2121
 
2122 2122
 		$this->userManager->method('get')->willReturnCallback(
2123
-			function ($userId) use ($users) {
2123
+			function($userId) use ($users) {
2124 2124
 				return $users[$userId];
2125 2125
 			}
2126 2126
 		);
@@ -2128,13 +2128,13 @@  discard block
 block discarded – undo
2128 2128
 		$groups = [];
2129 2129
 		for ($i = 0; $i < 2; $i++) {
2130 2130
 			$group = $this->createMock(IGroup::class);
2131
-			$group->method('getGID')->willReturn('group' . $i);
2132
-			$group->method('getDisplayName')->willReturn('group-displayname' . $i);
2133
-			$groups['group' . $i] = $group;
2131
+			$group->method('getGID')->willReturn('group'.$i);
2132
+			$group->method('getDisplayName')->willReturn('group-displayname'.$i);
2133
+			$groups['group'.$i] = $group;
2134 2134
 		}
2135 2135
 
2136 2136
 		$this->groupManager->method('get')->willReturnCallback(
2137
-			function ($groupId) use ($groups) {
2137
+			function($groupId) use ($groups) {
2138 2138
 				return $groups[$groupId];
2139 2139
 			}
2140 2140
 		);
@@ -2192,12 +2192,12 @@  discard block
 block discarded – undo
2192 2192
 		$this->assertSame('user0', $shares[0]['share_with']);
2193 2193
 		$this->assertSame('user4', $shares[0]['uid_initiator']);
2194 2194
 		$this->assertSame('user5', $shares[0]['uid_owner']);
2195
-		$this->assertSame(1, (int)$shares[0]['permissions']);
2195
+		$this->assertSame(1, (int) $shares[0]['permissions']);
2196 2196
 
2197 2197
 		$this->assertSame('user3', $shares[1]['share_with']);
2198 2198
 		$this->assertSame('user4', $shares[1]['uid_initiator']);
2199 2199
 		$this->assertSame('user5', $shares[1]['uid_owner']);
2200
-		$this->assertSame(0, (int)$shares[1]['permissions']);
2200
+		$this->assertSame(0, (int) $shares[1]['permissions']);
2201 2201
 
2202 2202
 
2203 2203
 		$stmt->closeCursor();
Please login to merge, or discard this patch.
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/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.