| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 42 | 3 | 	public function execute() { | |
| 43 | 3 | $arguments = func_get_args(); | |
| 44 | 3 | $response = call_user_func_array( [$this->handler, 'execute'], $arguments ); | |
| 45 | |||
| 46 | 3 | 		if ( is_string( $response ) ) { | |
| 47 | 1 | return wpm_output( $response ); | |
| 48 | } | ||
| 49 | |||
| 50 | 2 | 		if ( is_array( $response ) ) { | |
| 51 | 1 | return wpm_json( $response ); | |
| 52 | } | ||
| 53 | |||
| 54 | 1 | return $response; | |
| 55 | } | ||
| 56 | } | ||
| 57 | 
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.