Completed
Push — master ( b60a8d...de4a35 )
by
unknown
19:04
created
tests/lib/DirectEditing/ManagerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	}
54 54
 
55 55
 	public function getMimetypes(): array {
56
-		return [ 'text/plain' ];
56
+		return ['text/plain'];
57 57
 	}
58 58
 
59 59
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
 
164 164
 	public function testCreateToken(): void {
165
-		$expectedToken = 'TOKEN' . time();
165
+		$expectedToken = 'TOKEN'.time();
166 166
 		$file = $this->createMock(File::class);
167 167
 		$file->expects($this->any())
168 168
 			->method('getId')
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	}
188 188
 
189 189
 	public function testCreateTokenAccess(): void {
190
-		$expectedToken = 'TOKEN' . time();
190
+		$expectedToken = 'TOKEN'.time();
191 191
 		$file = $this->createMock(File::class);
192 192
 		$file->expects($this->any())
193 193
 			->method('getId')
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	}
216 216
 
217 217
 	public function testOpenByPath(): void {
218
-		$expectedToken = 'TOKEN' . time();
218
+		$expectedToken = 'TOKEN'.time();
219 219
 		$file = $this->createMock(File::class);
220 220
 		$file->expects($this->any())
221 221
 			->method('getId')
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	}
247 247
 
248 248
 	public function testOpenById(): void {
249
-		$expectedToken = 'TOKEN' . time();
249
+		$expectedToken = 'TOKEN'.time();
250 250
 		$fileRead = $this->createMock(File::class);
251 251
 		$fileRead->method('getPermissions')
252 252
 			->willReturn(1);
Please login to merge, or discard this patch.
tests/lib/Avatar/GuestAvatarTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 		$avatar = $this->guestAvatar->getFile(32);
50 50
 		self::assertInstanceOf(InMemoryFile::class, $avatar);
51 51
 		$expectedFile = file_get_contents(
52
-			__DIR__ . '/../../data/guest_avatar_einstein_32.png'
52
+			__DIR__.'/../../data/guest_avatar_einstein_32.png'
53 53
 		);
54 54
 		self::assertEquals(trim($expectedFile), trim($avatar->getContent()));
55 55
 	}
Please login to merge, or discard this patch.
tests/lib/Config/UserConfigTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 					'app2' => [
143 143
 						'key1' => ['key1', 'value1'],
144 144
 						'key2' => ['key2', 'value2A', ValueType::MIXED, false, 0, true],
145
-						'key3' => ['key3', 'value3', ValueType::STRING, true,],
145
+						'key3' => ['key3', 'value3', ValueType::STRING, true, ],
146 146
 						'key4' => ['key4', 'value4', ValueType::STRING, false, UserConfig::FLAG_SENSITIVE],
147 147
 					],
148 148
 					'app3' => [
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 					$flags = $row[4] ?? 0;
220 220
 					if ((UserConfig::FLAG_SENSITIVE & $flags) !== 0) {
221 221
 						$value = self::invokePrivate(UserConfig::class, 'ENCRYPTION_PREFIX')
222
-								 . $this->crypto->encrypt((string)$value);
222
+								 . $this->crypto->encrypt((string) $value);
223 223
 					} else {
224 224
 						$indexed = (($row[5] ?? false) === true) ? $value : '';
225 225
 					}
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
 	public function testSearchUsersByValueString(
775 775
 		string $app,
776 776
 		string $key,
777
-		string|array $value,
777
+		string | array $value,
778 778
 		bool $ci,
779 779
 		array $result,
780 780
 	): void {
Please login to merge, or discard this patch.
tests/lib/Command/BackgroundModeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 			->with('core', 'backgroundjobs_mode', $mode);
42 42
 
43 43
 		$commandTester = new CommandTester($this->command);
44
-		$commandTester->execute(['command' => 'background:' . $mode]);
44
+		$commandTester->execute(['command' => 'background:'.$mode]);
45 45
 
46 46
 		$commandTester->assertCommandIsSuccessful();
47 47
 
Please login to merge, or discard this patch.
tests/lib/Security/Bruteforce/Backend/MemoryCacheBackendTest.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
 			->method('get')
77 77
 			->with('8b9da631d1f7b022bb2c3c489e16092f82b42fd4')
78 78
 			->willReturn(json_encode([
79
-				'1' . '#' . hash('sha1', 'action1') . '#' . hash('sha1', json_encode(['metadata1'])),
80
-				'300' . '#' . hash('sha1', 'action1') . '#' . hash('sha1', json_encode(['metadata2'])),
81
-				'1' . '#' . hash('sha1', 'action2') . '#' . hash('sha1', json_encode(['metadata1'])),
82
-				'300' . '#' . hash('sha1', 'action2') . '#' . hash('sha1', json_encode(['metadata2'])),
79
+				'1'.'#'.hash('sha1', 'action1').'#'.hash('sha1', json_encode(['metadata1'])),
80
+				'300'.'#'.hash('sha1', 'action1').'#'.hash('sha1', json_encode(['metadata2'])),
81
+				'1'.'#'.hash('sha1', 'action2').'#'.hash('sha1', json_encode(['metadata1'])),
82
+				'300'.'#'.hash('sha1', 'action2').'#'.hash('sha1', json_encode(['metadata2'])),
83 83
 			]));
84 84
 
85 85
 		$this->assertSame($expected, $this->backend->getAttempts('10.10.10.10/32', $maxAge, $action, $metadata));
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 			->method('set')
97 97
 			->with(
98 98
 				'8b9da631d1f7b022bb2c3c489e16092f82b42fd4',
99
-				json_encode(['223#' . hash('sha1', 'action1') . '#' . hash('sha1', json_encode(['metadata1']))])
99
+				json_encode(['223#'.hash('sha1', 'action1').'#'.hash('sha1', json_encode(['metadata1']))])
100 100
 			);
101 101
 
102 102
 		$this->backend->registerAttempt('10.10.10.10', '10.10.10.10/32', 223, 'action1', ['metadata1']);
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
 			->method('get')
114 114
 			->with('8b9da631d1f7b022bb2c3c489e16092f82b42fd4')
115 115
 			->willReturn(json_encode([
116
-				'1#' . hash('sha1', 'action1') . '#' . hash('sha1', json_encode(['metadata1'])),
117
-				'2#' . hash('sha1', 'action2') . '#' . hash('sha1', json_encode(['metadata1'])),
118
-				'87#' . hash('sha1', 'action3') . '#' . hash('sha1', json_encode(['metadata1'])),
119
-				'123#' . hash('sha1', 'action4') . '#' . hash('sha1', json_encode(['metadata1'])),
120
-				'123#' . hash('sha1', 'action5') . '#' . hash('sha1', json_encode(['metadata1'])),
121
-				'124#' . hash('sha1', 'action6') . '#' . hash('sha1', json_encode(['metadata1'])),
116
+				'1#'.hash('sha1', 'action1').'#'.hash('sha1', json_encode(['metadata1'])),
117
+				'2#'.hash('sha1', 'action2').'#'.hash('sha1', json_encode(['metadata1'])),
118
+				'87#'.hash('sha1', 'action3').'#'.hash('sha1', json_encode(['metadata1'])),
119
+				'123#'.hash('sha1', 'action4').'#'.hash('sha1', json_encode(['metadata1'])),
120
+				'123#'.hash('sha1', 'action5').'#'.hash('sha1', json_encode(['metadata1'])),
121
+				'124#'.hash('sha1', 'action6').'#'.hash('sha1', json_encode(['metadata1'])),
122 122
 			]));
123 123
 		$this->cache
124 124
 			->expects($this->once())
@@ -126,11 +126,11 @@  discard block
 block discarded – undo
126 126
 			->with(
127 127
 				'8b9da631d1f7b022bb2c3c489e16092f82b42fd4',
128 128
 				json_encode([
129
-					'87#' . hash('sha1', 'action3') . '#' . hash('sha1', json_encode(['metadata1'])),
130
-					'123#' . hash('sha1', 'action4') . '#' . hash('sha1', json_encode(['metadata1'])),
131
-					'123#' . hash('sha1', 'action5') . '#' . hash('sha1', json_encode(['metadata1'])),
132
-					'124#' . hash('sha1', 'action6') . '#' . hash('sha1', json_encode(['metadata1'])),
133
-					'186#' . hash('sha1', 'action7') . '#' . hash('sha1', json_encode(['metadata2'])),
129
+					'87#'.hash('sha1', 'action3').'#'.hash('sha1', json_encode(['metadata1'])),
130
+					'123#'.hash('sha1', 'action4').'#'.hash('sha1', json_encode(['metadata1'])),
131
+					'123#'.hash('sha1', 'action5').'#'.hash('sha1', json_encode(['metadata1'])),
132
+					'124#'.hash('sha1', 'action6').'#'.hash('sha1', json_encode(['metadata1'])),
133
+					'186#'.hash('sha1', 'action7').'#'.hash('sha1', json_encode(['metadata2'])),
134 134
 				])
135 135
 			);
136 136
 
Please login to merge, or discard this patch.
tests/lib/Security/CSP/ContentSecurityPolicyNonceManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
 	public function testGetNonce(): void {
37 37
 		$secret = base64_encode('secret');
38
-		$tokenValue = base64_encode('secret' ^ 'value_') . ':' . $secret;
38
+		$tokenValue = base64_encode('secret' ^ 'value_').':'.$secret;
39 39
 		$token = $this->createMock(CsrfToken::class);
40 40
 		$token
41 41
 			->expects($this->once())
Please login to merge, or discard this patch.
tests/lib/Security/Normalizer/IpAddressTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,6 +65,6 @@
 block discarded – undo
65 65
 	}
66 66
 
67 67
 	public function testToString(): void {
68
-		$this->assertSame('127.0.0.1', (string)(new IpAddress('127.0.0.1')));
68
+		$this->assertSame('127.0.0.1', (string) (new IpAddress('127.0.0.1')));
69 69
 	}
70 70
 }
Please login to merge, or discard this patch.
tests/lib/Security/TrustedDomainHelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 			]);
41 41
 
42 42
 		$trustedDomainHelper = new TrustedDomainHelper($this->config);
43
-		$this->assertEquals($result, $trustedDomainHelper->isTrustedUrl('https://' . $testDomain . '/index.php/something'));
43
+		$this->assertEquals($result, $trustedDomainHelper->isTrustedUrl('https://'.$testDomain.'/index.php/something'));
44 44
 	}
45 45
 
46 46
 	/**
Please login to merge, or discard this patch.
tests/lib/Security/CertificateTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
 	protected function setUp(): void {
24 24
 		parent::setUp();
25 25
 
26
-		$goodCertificate = file_get_contents(__DIR__ . '/../../data/certificates/goodCertificate.crt');
26
+		$goodCertificate = file_get_contents(__DIR__.'/../../data/certificates/goodCertificate.crt');
27 27
 		$this->goodCertificate = new Certificate($goodCertificate, 'GoodCertificate');
28
-		$badCertificate = file_get_contents(__DIR__ . '/../../data/certificates/badCertificate.crt');
28
+		$badCertificate = file_get_contents(__DIR__.'/../../data/certificates/badCertificate.crt');
29 29
 		$this->invalidCertificate = new Certificate($badCertificate, 'BadCertificate');
30
-		$expiredCertificate = file_get_contents(__DIR__ . '/../../data/certificates/expiredCertificate.crt');
30
+		$expiredCertificate = file_get_contents(__DIR__.'/../../data/certificates/expiredCertificate.crt');
31 31
 		$this->expiredCertificate = new Certificate($expiredCertificate, 'ExpiredCertificate');
32 32
 	}
33 33
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	}
42 42
 
43 43
 	public function testOpenSslTrustedCertificateFormat(): void {
44
-		$trustedCertificate = file_get_contents(__DIR__ . '/../../data/certificates/openSslTrustedCertificate.crt');
44
+		$trustedCertificate = file_get_contents(__DIR__.'/../../data/certificates/openSslTrustedCertificate.crt');
45 45
 		$certificate = new Certificate($trustedCertificate, 'TrustedCertificate');
46 46
 		$this->assertSame('thawte, Inc.', $certificate->getOrganization());
47 47
 	}
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		$this->expectException(\Exception::class);
51 51
 		$this->expectExceptionMessage('Certificate could not get parsed.');
52 52
 
53
-		new Certificate('file://' . __DIR__ . '/../../data/certificates/goodCertificate.crt', 'bar');
53
+		new Certificate('file://'.__DIR__.'/../../data/certificates/goodCertificate.crt', 'bar');
54 54
 	}
55 55
 
56 56
 	public function testGetName(): void {
Please login to merge, or discard this patch.