@@ -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 | $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 |
||
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; |
@@ -74,7 +74,7 @@ discard block |
||
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 |
||
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 |
||
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 | ); |
@@ -33,7 +33,7 @@ discard block |
||
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 |
||
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; |