1 | <?php |
||
9 | class Client extends OriginalClient |
||
10 | { |
||
11 | private $logging = true; |
||
12 | private $log = []; |
||
13 | |||
14 | 64 | public function connect() |
|
23 | |||
24 | 64 | public function sendRequest(Request $request) |
|
33 | |||
34 | 64 | private function log($start, $class, $request = [], $response = []) |
|
40 | |||
41 | public function setLogging($logging) |
||
45 | |||
46 | public function getLog() |
||
50 | } |
||
51 |
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.