| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 1 | public function normalize($object, $format = null, array $context = []) |
|
| 31 | { |
||
| 32 | /** @var array $docs */ |
||
| 33 | 1 | $docs = $this->decorated->normalize($object, $format, $context); |
|
| 34 | 1 | if (\is_array($docs)) { |
|
| 35 | 1 | $docs['info']['title'] = 'Shared Resources API'; |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | return $docs; |
|
| 39 | } |
||
| 40 | |||
| 49 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.