diff --git a/src/Services/Reload.php b/src/Services/Reload.php index cccbe87c..4de21a26 100644 --- a/src/Services/Reload.php +++ b/src/Services/Reload.php @@ -3,7 +3,6 @@ namespace Drupal\search_api_pantheon\Services; use Drupal\Core\Logger\LoggerChannelFactoryInterface; -use Drupal\search_api_pantheon\Exceptions\PantheonSearchApiException; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Uri; use Psr\Log\LoggerAwareInterface; @@ -70,10 +69,10 @@ public function reloadServer(): bool { ]; if ($status_code >= 200 && $status_code < 300) { $this->logger->info('Server reloaded: {status_code} {reason}', $reload_logger_content); - return true; + return TRUE; } $this->logger->error('Server not reloaded: {status_code} {reason}', $reload_logger_content); - return false; + return FALSE; } public function getClient(): PantheonGuzzle { diff --git a/src/Services/SchemaPoster.php b/src/Services/SchemaPoster.php index f1e25d47..c8c45d22 100644 --- a/src/Services/SchemaPoster.php +++ b/src/Services/SchemaPoster.php @@ -124,6 +124,7 @@ public function postSchema(string $server_id, $files = []): array { * Reload the server after schema upload. * * @throws \Drupal\search_api_pantheon\Exceptions\PantheonSearchApiException + * * @return bool */ public function reloadServer(): bool {