We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 8 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 28 | 15 | public function __construct($reference, Validatable $validator = null, $mandatory = true, $methodArgs = []) | |
|  | |||
| 29 |     { | ||
| 30 | 15 |         if(!is_string($reference) || empty($reference)) { | |
| 31 | 3 |             throw new ComponentException('Invalid method name'); | |
| 32 | } | ||
| 33 | |||
| 34 | 12 | parent::__construct($reference, $validator, $mandatory); | |
| 35 | 12 | } | |
| 36 | |||
| 50 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.