@@ -50,8 +50,8 @@ |
||
50 | 50 | /** @var Response[]|null $response */ |
51 | 51 | $responses = $strategy($this->route, $tags, $routeProps); |
52 | 52 | |
53 | - if (! is_null($responses)) { |
|
54 | - return array_map(function (Response $response) { |
|
53 | + if (!is_null($responses)) { |
|
54 | + return array_map(function(Response $response) { |
|
55 | 55 | return ['status' => $response->getStatusCode(), 'content' => $this->getResponseContent($response), 'content-type' => $this->getResponseContentType($response)]; |
56 | 56 | }, $responses); |
57 | 57 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | { |
35 | 35 | // avoid "holes" in the keys of the filtered array, by using array_values on the filtered array |
36 | 36 | $responsePdfFileTags = array_values( |
37 | - array_filter($tags, function ($tag) { |
|
37 | + array_filter($tags, function($tag) { |
|
38 | 38 | return $tag instanceof Tag && strtolower($tag->getName()) === 'responsepdffile'; |
39 | 39 | }) |
40 | 40 | ); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | return; |
44 | 44 | } |
45 | 45 | |
46 | - return array_map(function (Tag $responsePdfFileTag) { |
|
46 | + return array_map(function(Tag $responsePdfFileTag) { |
|
47 | 47 | return new JsonResponse(null, 200, ['Content-Type' => 'application/pdf']); |
48 | 48 | }, $responsePdfFileTags); |
49 | 49 | } |