diff --git a/app/RemoteSite/Connection.php b/app/RemoteSite/Connection.php index e4fa96f..467c4da 100644 --- a/app/RemoteSite/Connection.php +++ b/app/RemoteSite/Connection.php @@ -70,7 +70,7 @@ public function performExtractionRequest(array $requestData): array return $this->decodeResponse($response, $request); } - protected function performWebserviceRequest( + public function performWebserviceRequest( HttpMethod $method, string $endpoint, ?array $requestData = null diff --git a/database/migrations/2024_11_17_115646_remove_patch_minor_columns_from_sites.php b/database/migrations/2024_11_17_115646_remove_patch_minor_columns_from_sites.php index 7529f8b..8ba27de 100644 --- a/database/migrations/2024_11_17_115646_remove_patch_minor_columns_from_sites.php +++ b/database/migrations/2024_11_17_115646_remove_patch_minor_columns_from_sites.php @@ -4,8 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration -{ +return new class () extends Migration { /** * Run the migrations. */ diff --git a/tests/Feature/Api/SiteControllerTest.php b/tests/Feature/Api/SiteControllerTest.php index c404b52..6470805 100644 --- a/tests/Feature/Api/SiteControllerTest.php +++ b/tests/Feature/Api/SiteControllerTest.php @@ -39,7 +39,7 @@ public function testRegisteringASiteWithUrlAndKeyCreatesRow(): void "server_os" => "Joomla OS 1.0.0" ])); - $this->app->bind(Connection::class, fn() => $mock); + $this->app->bind(Connection::class, fn () => $mock); $response = $this->postJson( '/api/v1/register', @@ -64,7 +64,7 @@ public function testRegisteringASiteFailsWhenHealthCheckFails(): void $mock->method('__call')->willThrowException(new \Exception()); - $this->app->bind(Connection::class, fn() => $mock); + $this->app->bind(Connection::class, fn () => $mock); $response = $this->postJson( '/api/v1/register',