| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function __call( $sMethodName, $aArguments ) { |
||
| 36 | |||
| 37 | if ( in_array( $sMethodName, $this->aMethods ) ) { |
||
| 38 | return isset( $aArguments[ 0 ] ) |
||
| 39 | ? $aArguments[ 0 ] |
||
| 40 | : null; |
||
| 41 | } |
||
| 42 | |||
| 43 | trigger_error( |
||
| 44 | 'Admin Page Framework - Loader: ' . ' : ' . sprintf( |
||
| 45 | __( 'The method is not defined: %1$s', 'admin-page-framework-loader' ), |
||
| 46 | $sMethodName |
||
| 47 | ), |
||
| 48 | E_USER_WARNING |
||
| 49 | ); |
||
| 60 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.