| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 21 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 14 | public function __invoke($params = array(), $reuseMatchedParams = true, $resetCurrentParams = false) | ||
| 15 |     {
 | ||
| 16 | $currentParams = array(); | ||
| 17 | |||
| 18 |         if (!$resetCurrentParams) {
 | ||
| 19 | $queryString = $_SERVER['QUERY_STRING']; | ||
| 20 | |||
| 21 |             $currentParamPairs = explode('&', $queryString);
 | ||
| 22 | |||
| 23 |             if (!empty($currentParamPairs[0])) {
 | ||
| 24 |                 foreach ($currentParamPairs as $pair) {
 | ||
| 25 |                     $data = explode('=', $pair);
 | ||
| 26 | $currentParams[$data[0]] = urldecode($data[1]); | ||
| 27 | } | ||
| 28 | } | ||
| 29 | } | ||
| 30 | |||
| 31 | $queryString = http_build_query(array_merge($currentParams, $params)); | ||
| 32 | |||
| 33 | return $this->getView()->url(null, array(), array(), $reuseMatchedParams) . '?' . $queryString; | ||
| 34 | } | ||
| 35 | } | ||
| 36 | 
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.