Skip to content

Commit

Permalink
UHF-4799: phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rpnykanen committed Mar 16, 2022
1 parent 5475bd7 commit af0ffd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/HttpMiddleware/AssetHttpMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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);

Expand Down

0 comments on commit af0ffd9

Please sign in to comment.