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