@@ -61,15 +61,15 @@ |
||
| 61 | 61 | private function isSiteReachable(string $site): bool { |
| 62 | 62 | // if there is no protocol specified, test http:// first then, if necessary, https:// |
| 63 | 63 | if (preg_match('/^https?:\/\//', $site) !== 1) { |
| 64 | - $httpSite = 'http://' . $site . '/'; |
|
| 65 | - $httpsSite = 'https://' . $site . '/'; |
|
| 64 | + $httpSite = 'http://'.$site.'/'; |
|
| 65 | + $httpsSite = 'https://'.$site.'/'; |
|
| 66 | 66 | return $this->isSiteReachable($httpSite) || $this->isSiteReachable($httpsSite); |
| 67 | 67 | } |
| 68 | 68 | try { |
| 69 | 69 | $client = $this->clientService->newClient(); |
| 70 | 70 | $client->head($site); |
| 71 | 71 | } catch (\Exception $e) { |
| 72 | - $this->logger->error('Cannot connect to: ' . $site, [ |
|
| 72 | + $this->logger->error('Cannot connect to: '.$site, [ |
|
| 73 | 73 | 'app' => 'internet_connection_check', |
| 74 | 74 | 'exception' => $e, |
| 75 | 75 | ]); |