Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
28 | public static function get(YamlConfig $config, IOInterface $io, EventDispatcherInterface $dispatcher, TaskFactory $taskFactory) |
||
|
|||
29 | { |
||
30 | $_config = $config->getConfig(); |
||
31 | |||
32 | $buildDir = $_config['build']['dir']; |
||
33 | |||
34 | $builderTasks = array( |
||
35 | $taskFactory->get('export'), |
||
36 | ); |
||
37 | |||
38 | foreach ($_config['build']['tasks'] as $taskConfig) { |
||
39 | $task = $taskFactory->get($taskConfig['type'], $taskConfig); |
||
40 | $builderTasks[] = $task; |
||
41 | } |
||
42 | |||
43 | $builder = new Builder($buildDir, $builderTasks, $io, $dispatcher); |
||
44 | |||
45 | return $builder; |
||
46 | } |
||
47 | } |
||
48 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.