Completed
Push — master ( cdfb6c...355d55 )
by
unknown
18s
created
src/Tools/ResponseStrategies/ResponseFileStrategy.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
         $responseFileTags = array_values(
37
-            array_filter($tags, function ($tag) {
37
+            array_filter($tags, function($tag) {
38 38
                 return $tag instanceof Tag && strtolower($tag->getName()) === 'responsefile';
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 $responseFileTag) {
46
+        return array_map(function(Tag $responseFileTag) {
47 47
             preg_match('/^(\d{3})?\s?([\s\S]*)$/', $responseFileTag->getContent(), $result);
48 48
 
49 49
             $status = $result[1] ?: 200;
Please login to merge, or discard this patch.
src/Tools/ResponseStrategies/TransformerTagsStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getClassToBeTransformed(array $tags, ReflectionMethod $transformerMethod)
76 76
     {
77
-        $modelTag = array_first(array_filter($tags, function ($tag) {
77
+        $modelTag = array_first(array_filter($tags, function($tag) {
78 78
             return ($tag instanceof Tag) && strtolower($tag->getName()) == 'transformermodel';
79 79
         }));
80 80
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $type = $modelTag->getContent();
84 84
         } else {
85 85
             $parameter = array_first($transformerMethod->getParameters());
86
-            if ($parameter->hasType() && ! $parameter->getType()->isBuiltin() && class_exists((string) $parameter->getType())) {
86
+            if ($parameter->hasType() && !$parameter->getType()->isBuiltin() && class_exists((string) $parameter->getType())) {
87 87
                 // ladies and gentlemen, we have a type!
88 88
                 $type = (string) $parameter->getType();
89 89
             }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     private function getTransformerTag(array $tags)
129 129
     {
130 130
         $transFormerTags = array_values(
131
-            array_filter($tags, function ($tag) {
131
+            array_filter($tags, function($tag) {
132 132
                 return ($tag instanceof Tag) && in_array(strtolower($tag->getName()), ['transformer', 'transformercollection']);
133 133
             })
134 134
         );
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
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     protected function getDocBlockResponses(array $tags)
34 34
     {
35 35
         $responseTags = array_values(
36
-            array_filter($tags, function ($tag) {
36
+            array_filter($tags, function($tag) {
37 37
                 return $tag instanceof Tag && strtolower($tag->getName()) === 'response';
38 38
             })
39 39
         );
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             return;
43 43
         }
44 44
 
45
-        return array_map(function (Tag $responseTag) {
45
+        return array_map(function(Tag $responseTag) {
46 46
             preg_match('/^(\d{3})?\s?([\s\S]*)$/', $responseTag->getContent(), $result);
47 47
 
48 48
             $status = $result[1] ?: 200;
Please login to merge, or discard this patch.