Completed
Pull Request — master (#416)
by
unknown
01:51
created
src/Tools/ResponseResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 block discarded – undo
48 48
             /** @var Response[]|null $response */
49 49
             $responses = $strategy($this->route, $tags, $routeProps);
50 50
 
51
-            if (! is_null($responses)) {
52
-                return array_map(function (Response $response) {
51
+            if (!is_null($responses)) {
52
+                return array_map(function(Response $response) {
53 53
                     return ['status' => $response->getStatusCode(), 'content' => $this->getResponseContent($response)];
54 54
                 }, $responses);
55 55
             }
Please login to merge, or discard this patch.
src/Tools/ResponseStrategies/ResponseTagStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function getDocBlockResponses(array $tags)
34 34
     {
35
-        $responseTags = array_filter($tags, function ($tag) {
35
+        $responseTags = array_filter($tags, function($tag) {
36 36
             return $tag instanceof Tag && strtolower($tag->getName()) === 'response';
37 37
         });
38 38
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             return;
41 41
         }
42 42
 
43
-        return array_map(function (Tag $responseTag) {
43
+        return array_map(function(Tag $responseTag) {
44 44
             preg_match('/^(\d{3})?\s?([\s\S]*)$/', $responseTag->getContent(), $result);
45 45
 
46 46
             $status = $result[1] ?: 200;
Please login to merge, or discard this patch.
src/Tools/ResponseStrategies/ResponseFileStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function getFileResponses(array $tags)
34 34
     {
35
-        $responseFileTags = array_filter($tags, function ($tag) {
35
+        $responseFileTags = array_filter($tags, function($tag) {
36 36
             return $tag instanceof Tag && strtolower($tag->getName()) === 'responsefile';
37 37
         });
38 38
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             return;
41 41
         }
42 42
 
43
-        return array_map(function (Tag $responseFileTag) {
43
+        return array_map(function(Tag $responseFileTag) {
44 44
             preg_match('/^(\d{3})?\s?([\s\S]*)$/', $responseFileTag->getContent(), $result);
45 45
 
46 46
             $status = $result[1] ?: 200;
Please login to merge, or discard this patch.