Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Nov 13, 2024
1 parent 4ecb155 commit c4383b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Services/Reload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/Services/SchemaPoster.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c4383b0

Please sign in to comment.