Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
1 | <?php |
||
50 | 4 | protected function createDriver($name) |
|
51 | { |
||
52 | 4 | $config = array_merge($this->getConfig($this->getDefaultDriver()), $this->getConfig($name)); |
|
53 | 4 | $items = $this->getMenuItems($name); |
|
54 | |||
55 | 4 | return new Menu( |
|
56 | 4 | $name, |
|
57 | 4 | $items, |
|
58 | 4 | $config, |
|
59 | 4 | $this->app->make('url'), |
|
60 | 4 | $this->app->make('view') |
|
61 | 4 | ); |
|
62 | } |
||
63 | |||
88 |
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.