Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SniperSister committed Nov 17, 2024
1 parent dda172d commit 12f6571
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/RemoteSite/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Api/SiteControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 12f6571

Please sign in to comment.