1 | <?php |
||
19 | class InsertTwice implements Insert { |
||
20 | /** |
||
21 | * @var Insert |
||
22 | */ |
||
23 | public $insert1; |
||
24 | |||
25 | /** |
||
26 | * @var Insert |
||
27 | */ |
||
28 | public $insert2; |
||
29 | |||
30 | 3 | public function __construct(Insert $insert1, Insert $insert2) { |
|
34 | |||
35 | /** |
||
36 | * @return Insert |
||
37 | */ |
||
38 | 2 | public function first() { |
|
41 | |||
42 | /** |
||
43 | * @return Insert |
||
44 | */ |
||
45 | 2 | public function second() { |
|
48 | |||
49 | /** |
||
50 | |||
51 | /** |
||
52 | * @inheritdocs |
||
53 | */ |
||
54 | 1 | public function _file($path, $source) { |
|
59 | |||
60 | /** |
||
61 | * @inheritdocs |
||
62 | */ |
||
63 | 1 | public function _namespace($name) { |
|
68 | |||
69 | /** |
||
70 | * @inheritdocs |
||
71 | */ |
||
72 | 1 | public function _class($name, $file, $start_line, $end_line, $namespace = null) { |
|
77 | |||
78 | /** |
||
79 | * @inheritdocs |
||
80 | */ |
||
81 | public function _interface($name, $file, $start_line, $end_line, $namespace = null) { |
||
86 | |||
87 | /** |
||
88 | * @inheritdocs |
||
89 | */ |
||
90 | public function _trait($name, $file, $start_line, $end_line, $namespace = null) { |
||
95 | |||
96 | /** |
||
97 | * @inheritdocs |
||
98 | */ |
||
99 | 1 | public function _method($name, $class, $file, $start_line, $end_line) { |
|
104 | |||
105 | /** |
||
106 | * @inheritdocs |
||
107 | */ |
||
108 | 1 | public function _function($name, $file, $start_line, $end_line, $namespace = null) { |
|
113 | |||
114 | /** |
||
115 | * @inheritdocs |
||
116 | */ |
||
117 | 1 | public function _global($name) { |
|
122 | |||
123 | /** |
||
124 | * @inheritdocs |
||
125 | */ |
||
126 | 1 | public function _language_construct($name) { |
|
131 | |||
132 | /** |
||
133 | * @inheritdocs |
||
134 | */ |
||
135 | 1 | public function _method_reference($name, $file, $line, $column) { |
|
140 | |||
141 | /** |
||
142 | * @inheritdocs |
||
143 | */ |
||
144 | 1 | public function _function_reference($name, $file, $line, $column) { |
|
149 | |||
150 | /** |
||
151 | * @inheritdocs |
||
152 | */ |
||
153 | 1 | public function _relation($left_entity, $relation, $right_entity, $file, $line) { |
|
158 | } |
||
159 |
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.