@@ -16,7 +16,7 @@ |
||
16 | 16 | } |
17 | 17 | |
18 | 18 | /** |
19 | - * @param ReflectionClass $dataType |
|
19 | + * @param \ReflectionClass $dataType |
|
20 | 20 | */ |
21 | 21 | public function canSimplify(\ReflectionClass $dataType) |
22 | 22 | { |
@@ -182,6 +182,9 @@ discard block |
||
182 | 182 | return $this->isValidFormatForReflectionClass($formatter, $dataType); |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param \ReflectionClass $dataType |
|
187 | + */ |
|
185 | 188 | public function isValidFormatForReflectionClass(FormatterInterface $formatter, $dataType) |
186 | 189 | { |
187 | 190 | if ($this->canSimplifyToArray($dataType)) { |
@@ -196,6 +199,10 @@ discard block |
||
196 | 199 | } |
197 | 200 | return array_reduce( |
198 | 201 | $formatter->validDataTypes(), |
202 | + |
|
203 | + /** |
|
204 | + * @param \ReflectionClass $supportedType |
|
205 | + */ |
|
199 | 206 | function ($carry, $supportedType) use ($dataType) { |
200 | 207 | return |
201 | 208 | $carry || |
@@ -266,6 +273,7 @@ discard block |
||
266 | 273 | |
267 | 274 | /** |
268 | 275 | * Test to see if the stipulated format exists |
276 | + * @param string $format |
|
269 | 277 | */ |
270 | 278 | public function hasFormatter($format) |
271 | 279 | { |