| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 42 | protected function injectComponents( |
||
| 43 | array $pages, |
||
| 44 | RouteMatch $routeMatch = null, |
||
| 45 | Router $router = null, |
||
| 46 | $request = null |
||
| 47 | ) { |
||
| 48 | $routeName = $routeMatch->getMatchedRouteName(); |
||
| 49 | |||
| 50 | foreach ($pages as &$page) { |
||
| 51 | if (isset($page['active_on']) && in_array($routeName, (array) $page['active_on'])) { |
||
| 52 | $page['active'] = true; |
||
| 53 | } |
||
| 54 | } |
||
| 55 | |||
| 56 | return parent::injectComponents($pages, $routeMatch, $router, $request); |
||
| 57 | } |
||
| 58 | |||
| 60 | } |
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.