Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 9 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | View Code Duplication | public function all($page = 1, DealStage $stage = null) |
|
25 | { |
||
26 | $stage = $stage ? : DealStage::INCOMING(); |
||
27 | $query = [ |
||
28 | 'stage' => $stage->getValue(), |
||
29 | ]; |
||
30 | |||
31 | return parent::getPage($page, $query); |
||
32 | } |
||
33 | |||
51 |
This check looks for
@param
annotations 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.