Skip to content

Commit

Permalink
polish #750
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Jan 23, 2024
1 parent ee13ccd commit 10c0ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function isDiscoveryEndpointValid($url) {
$body = $response->getBody();

// Check if the request was successful
if ($httpCode == 200 && !empty($body)) {
if ($httpCode === Http::STATUS_OK && !empty($body)) {
$result['isReachable'] = true;
$data = json_decode($body, true);

Expand All @@ -104,7 +104,7 @@ public function isDiscoveryEndpointValid($url) {
}
}
} catch (Exception $e) {
$this->logger->error('Error - discovery endpoint validation: ' . $e);
$this->logger->error('Discovery endpoint validation error', ['exception' => $e]);
}

return $result;
Expand Down

0 comments on commit 10c0ea2

Please sign in to comment.