| Conditions | 3 |
| Paths | 3 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function alterRoutes(RouteCollection $collection) { |
||
| 18 | foreach (['entity_browser.media_browser', 'entity_browser.image_browser', 'entity_browser.media_browser_in_modal'] as $name) { |
||
| 19 | if ($route = $collection->get($name)) { |
||
|
|
|||
| 20 | $route->setOption('_admin_route', FALSE); |
||
| 21 | } |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 26 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.