| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 24 | View Code Duplication | public function all($page = 1, LeadsSortBy $sortBy = null) |
|
| 25 | { |
||
| 26 | $query = []; |
||
| 27 | if (null !== $sortBy) |
||
| 28 | { |
||
| 29 | $query['sort_by'] = $sortBy->getValue(); |
||
| 30 | } |
||
| 31 | |||
| 32 | return parent::getPage($page, $query); |
||
| 33 | } |
||
| 34 | |||
| 62 |
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.