Completed
Push — master ( cf0b70...b4302f )
by
unknown
21:27 queued 15s
created
apps/federation/lib/TrustedServers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 			}
123 123
 		}
124 124
 
125
-		throw new \Exception('No server found with ID: ' . $id);
125
+		throw new \Exception('No server found with ID: '.$id);
126 126
 	}
127 127
 
128 128
 	/**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 		$client = $this->httpClientService->newClient();
155 155
 		try {
156 156
 			$result = $client->get(
157
-				$url . '/status.php',
157
+				$url.'/status.php',
158 158
 				[
159 159
 					'timeout' => 3,
160 160
 					'connect_timeout' => 3,
@@ -204,6 +204,6 @@  discard block
 block discarded – undo
204 204
 			return $url;
205 205
 		}
206 206
 
207
-		return 'https://' . $url;
207
+		return 'https://'.$url;
208 208
 	}
209 209
 }
Please login to merge, or discard this patch.
apps/federation/tests/TrustedServersTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 			->willReturn($server);
127 127
 		$this->dispatcher->expects($this->once())->method('dispatchTyped')
128 128
 			->willReturnCallback(
129
-				function ($event): void {
129
+				function($event): void {
130 130
 					$this->assertSame(get_class($event), TrustedServerRemovedEvent::class);
131 131
 					/** @var \OCP\Federated\Events\TrustedServerRemovedEvent $event */
132 132
 					$this->assertSame('url_hash', $event->getUrlHash());
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
 		if ($expectedServer === null) {
196 196
 			$this->expectException(\Exception::class);
197
-			$this->expectExceptionMessage('No server found with ID: ' . $id);
197
+			$this->expectExceptionMessage('No server found with ID: '.$id);
198 198
 		}
199 199
 
200 200
 		$this->assertEquals(
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 		$this->httpClientService->expects($this->once())->method('newClient')
253 253
 			->willReturn($this->httpClient);
254 254
 
255
-		$this->httpClient->expects($this->once())->method('get')->with($server . '/status.php')
255
+		$this->httpClient->expects($this->once())->method('get')->with($server.'/status.php')
256 256
 			->willReturn($this->response);
257 257
 
258 258
 		$this->response->expects($this->once())->method('getStatusCode')
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
 		$this->httpClient->expects($this->once())
291 291
 			->method('get')
292
-			->with($server . '/status.php')
292
+			->with($server.'/status.php')
293 293
 			->willThrowException(new \Exception('simulated exception'));
294 294
 
295 295
 		$this->assertFalse($this->trustedServers->isNextcloudServer($server));
Please login to merge, or discard this patch.