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