Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
33 | public function __construct($query, $latitude = null, $longitude = null, $radius = null) |
||
34 | { |
||
35 | $this->query = new Query($query); |
||
36 | |||
37 | if (null !== $latitude) { |
||
38 | $this->location = new Location($latitude, $longitude); |
||
39 | } |
||
40 | |||
41 | if (null !== $radius) { |
||
42 | $this->radius = new Radius($radius); |
||
43 | } |
||
44 | } |
||
45 | |||
70 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.