Completed
Pull Request — master (#532)
by
unknown
01:33
created
src/Tools/ResponseResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Tools/ResponseStrategies/ResponsePdfFileStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.