Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
8 | class CurlDriverException extends RuntimeException implements ApiClientDriverException |
||
9 | { |
||
10 | |||
11 | /** @var mixed */ |
||
12 | private $info; |
||
13 | |||
14 | /** |
||
15 | * @param resource $handle |
||
16 | */ |
||
17 | 1 | public function __construct($handle) |
|
23 | 1 | } |
|
24 | /** |
||
25 | * @see curl_getinfo() |
||
26 | * |
||
27 | * @return mixed |
||
28 | */ |
||
29 | 1 | public function getInfo() |
|
35 |
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.