Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 13 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
30 | protected function execute(InputInterface $input, OutputInterface $output) |
||
31 | { |
||
32 | $input = $input; |
||
|
|||
33 | $webhelper = new WebHelper(); |
||
34 | $webhelper->setRepository(__DIR__ . '/../../res'); |
||
35 | |||
36 | if ($webhelper->getRepository()->okGo()) { |
||
37 | $webhelper->setServer('apache', '2.4.18'); |
||
38 | foreach (['alias', 'directory'] as $directive) { |
||
39 | $twigFile = $webhelper->find($directive); |
||
40 | $output->write($webhelper->render($twigFile, [ |
||
41 | 'project' => [ |
||
42 | 'aliasname' => 'webhelper', |
||
43 | 'documentroot' => realpath(__DIR__ . '/../../') |
||
44 | ] |
||
45 | ])); |
||
46 | } |
||
47 | } |
||
48 | } |
||
49 | } |
||
50 |
This checks looks for cases where a variable has been assigned to itself.
This assignement can be removed without consequences.