1 | <?php |
||
20 | class ParameterCollection extends \PEIP\Data\ParameterHolder implements \ArrayAccess |
||
21 | { |
||
22 | /** |
||
23 | * @param $offset |
||
24 | * |
||
25 | * @return |
||
26 | */ |
||
27 | public function offsetExists($offset) |
||
31 | |||
32 | /** |
||
33 | * @param $offset |
||
34 | * |
||
35 | * @return |
||
36 | */ |
||
37 | public function offsetGet($offset) |
||
41 | |||
42 | /** |
||
43 | * @param $name |
||
44 | * |
||
45 | * @return |
||
46 | */ |
||
47 | public function offsetUnset($name) |
||
51 | |||
52 | /** |
||
53 | * @param $offset |
||
54 | * @param $name |
||
55 | * |
||
56 | * @return |
||
57 | */ |
||
58 | public function offsetSet($offset, $name) |
||
62 | } |
||
63 |
This check looks for variables that are accessed but have not been defined. It raises an issue if it finds another variable that has a similar name.
The variable may have been renamed without also renaming all references.