| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 27 | function admin_process_get_request(string $context, string $uri): ?\stdClass { |
||
| 28 | $resource = \substr($uri, \strlen($context)); |
||
| 29 | $i18n = get_i18n(); |
||
| 30 | $pageTitle = $i18n->getText('admin.title.prefix').$i18n->getText('admin.dashboard.title'); |
||
| 31 | if ($resource === DASHBOARD_INDEX_KEY) { |
||
| 32 | $content = get_admin_content_object('dashboard.html', title: $pageTitle); |
||
| 33 | } |
||
| 34 | |||
| 35 | return $content; |
||
| 36 | } |
||
| 40 | } |
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.