diff --git a/src/HttpMiddleware/AssetHttpMiddleware.php b/src/HttpMiddleware/AssetHttpMiddleware.php index 7969781..90d2817 100644 --- a/src/HttpMiddleware/AssetHttpMiddleware.php +++ b/src/HttpMiddleware/AssetHttpMiddleware.php @@ -84,13 +84,13 @@ private function isJsonResponse(Response $response) : bool { /** * Checks for xml type mainly for sitemap. * - * @param Response $response + * @param \Symfony\Component\HttpFoundation\Response $response * The response. * * @return bool * TRUE if response is XML */ - private function isXmlResponse(Response $response){ + private function isXmlResponse(Response $response) : bool { return str_starts_with( strtolower($response->headers->get('content-type')), 'application/xml' @@ -102,8 +102,8 @@ private function isXmlResponse(Response $response){ */ public function handle( Request $request, - $type = self::MASTER_REQUEST, - $catch = TRUE + $type = self::MASTER_REQUEST, + $catch = TRUE ) : Response { $response = $this->httpKernel->handle($request, $type, $catch);