Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 60% |
Changes | 0 |
1 | <?php namespace Comodojo\Cache\Components; |
||
23 | class StackManager extends AbstractStackManager { |
||
24 | |||
25 | 45 | public function add(EnhancedCacheItemPoolInterface $provider, $weight) { |
|
26 | |||
27 | 45 | return $this->genericAdd($provider, $weight); |
|
|
|||
28 | |||
29 | } |
||
30 | |||
31 | 1 | public function remove($id) { |
|
40 | |||
41 | } |
||
42 | |||
43 | } |
||
44 | |||
45 | 1 | public function get($id) { |
|
60 |
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.