| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Comodojo\Extender\Components; |
||
| 24 | public static function load($file, array $attributes = []) { |
||
|
|
|||
| 25 | |||
| 26 | $config = static::importData($file); |
||
| 27 | |||
| 28 | $classes = []; |
||
| 29 | |||
| 30 | foreach ($config as $package) { |
||
| 31 | foreach ($package as $command) { |
||
| 32 | if ( $command['scope'] === 'extender') { |
||
| 33 | $classes[] = $command['class']; |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | return $classes; |
||
| 39 | |||
| 43 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.