| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class MockHttpClient extends HttpClient |
||
| 9 | { |
||
| 10 | private $client; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * MockHttpClient constructor. |
||
| 14 | * @param HttpClientAuthorization $auth |
||
| 15 | */ |
||
| 16 | public function __construct(HttpClientAuthorization $auth) |
||
| 17 | { |
||
| 18 | $this->client = parent::__construct($auth); |
||
|
|
|||
| 19 | } |
||
| 20 | |||
| 21 | public function getResponseContent($request) |
||
| 24 | } |
||
| 25 | |||
| 27 |
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.