Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
11 | class BulkUnpublishAction extends AbstractBulkAction |
||
12 | { |
||
13 | protected string $name = 'unpublish'; |
||
14 | protected string $label = 'Unpublish'; |
||
15 | protected bool $xhr = true; |
||
16 | |||
17 | public function getI18nLabel(): string |
||
18 | { |
||
19 | return _t(__CLASS__ . '.UNPUBLISH_SELECT_LABEL', $this->getLabel()); |
||
20 | } |
||
21 | |||
22 | public function process(HTTPRequest $request): string |
||
32 | } |
||
33 | } |
||
34 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.