@@ -122,7 +122,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 204 | 204 | return $url; |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | - return 'https://' . $url; |
|
| 207 | + return 'https://'.$url; |
|
| 208 | 208 | } |
| 209 | 209 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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)); |