Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 7 |
Ratio | 100 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
37 | 1 | View Code Duplication | public function __construct(array $url, $label, $icon = null, $template = null) |
38 | { |
||
39 | 1 | $this->url = $url; |
|
40 | 1 | $this->icon = $icon; |
|
41 | 1 | $this->label = $label; |
|
42 | 1 | $this->template = $template; |
|
43 | 1 | } |
|
44 | |||
77 |
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.