Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
7 | class Headers extends Zend_Controller_Action_Helper_Abstract |
||
8 | { |
||
9 | /** |
||
10 | * Set appropriate headers according to content type |
||
11 | * |
||
12 | * @param mixed $contentType |
||
13 | */ |
||
14 | public function headers($contentType): void |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Strategy pattern: call helper as broker method |
||
31 | * |
||
32 | * @param mixed $data |
||
33 | */ |
||
34 | public function direct($data) |
||
39 |
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.