Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Mar 3, 2024
1 parent 3db8e6f commit d78f652
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions tests/Unit/Debug/Middleware/DebugHeadersTest.php
Expand Up @@ -33,12 +33,11 @@ public function testHeaders(): void

protected function createRequestHandler(): RequestHandlerInterface
{
return new class implements RequestHandlerInterface {
return new class () implements RequestHandlerInterface {
public function handle($request): ResponseInterface
{
return new Response(200);
}
};
}

}
4 changes: 1 addition & 3 deletions tests/Unit/Debug/Middleware/ResponseDataWrapperTest.php
Expand Up @@ -125,8 +125,7 @@ private function createMiddleware(): ResponseDataWrapper
{
$factory = $this->createDataResponseFactory();
$currentRoute = new CurrentRoute();
$middleware = new ResponseDataWrapper($factory, $currentRoute);
return $middleware;
return new ResponseDataWrapper($factory, $currentRoute);
}

private function createDataResponseFactory(): DataResponseFactory
Expand All @@ -136,5 +135,4 @@ private function createDataResponseFactory(): DataResponseFactory
new StreamFactory(),
);
}

}
1 change: 0 additions & 1 deletion tests/Unit/Debug/Provider/DebugApiProviderTest.php
Expand Up @@ -33,5 +33,4 @@ public function testExtension(): void

$this->assertSame($routeCollector, $routeCollectorDecorator($routeCollector));
}

}
1 change: 0 additions & 1 deletion tests/Unit/Debug/Repository/CollectorRepositoryTest.php
Expand Up @@ -97,5 +97,4 @@ private function createStorage(DebuggerIdGenerator $idGenerator): StorageInterfa
{
return new MemoryStorage($idGenerator);
}

}

0 comments on commit d78f652

Please sign in to comment.