Conditions | 4 |
Paths | 4 |
Total Lines | 21 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
36 | public function enterNode(Node $node) |
||
37 | { |
||
38 | if ($node instanceof Declare_) { |
||
39 | $this->declare[] = $node; |
||
40 | |||
41 | return null; |
||
42 | } |
||
43 | |||
44 | if ($node instanceof Use_) { |
||
45 | $this->use[] = $node; |
||
46 | |||
47 | return null; |
||
48 | } |
||
49 | |||
50 | if ($node instanceof Namespace_) { |
||
51 | $this->namespace = $node; |
||
52 | |||
53 | return null; |
||
54 | } |
||
55 | |||
56 | return $this->enterNodeClass($node); |
||
|
|||
57 | } |
||
88 |
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.