Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 2 | public function normalize(MethodDoc $method) : array |
|
29 | { |
||
30 | 2 | if (null !== $method->getResultDoc()) { |
|
31 | 1 | return [ |
|
32 | 1 | '$ref' => $this->definitionRefResolver->getDefinitionRef( |
|
33 | 1 | $this->definitionRefResolver->getMethodDefinitionId( |
|
34 | 1 | $method, |
|
35 | 1 | DefinitionRefResolver::METHOD_RESULT_DEFINITION_TYPE |
|
36 | 1 | ) |
|
37 | 1 | ) |
|
38 | 1 | ]; |
|
39 | } |
||
40 | |||
41 | 1 | return ['description' => 'Method result']; |
|
42 | } |
||
44 |