| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 45 |     public function __call($method, $args) { | 
            ||
| 46 | $camelMethod = 'get'.ucwords($method);  | 
            ||
| 47 | // local method  | 
            ||
| 48 |         if (method_exists($this, $camelMethod)) { | 
            ||
| 49 | return $this->$camelMethod($args);  | 
            ||
| 50 | }  | 
            ||
| 51 | // Config method  | 
            ||
| 52 |         if (method_exists($this->config, $camelMethod)) { | 
            ||
| 53 | return $this->config->$camelMethod($args);  | 
            ||
| 54 | }  | 
            ||
| 55 | // Config Data  | 
            ||
| 56 | return $this->config->get($method);  | 
            ||
| 57 | }  | 
            ||
| 58 | |||
| 77 | 
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.