Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.351 |
Changes | 0 |
1 | <?php |
||
30 | 1 | public function run(CreateConfigurationRequest $request) |
|
31 | { |
||
32 | 1 | $configuration = $request->getConfiguration(); |
|
33 | 1 | if ($request->getTemplateConfiguration() instanceof Configuration) { |
|
34 | $configuration = $this->configurationUpdater->update( |
||
35 | $request->getTemplateConfiguration(), |
||
36 | $configuration |
||
37 | ); |
||
38 | } |
||
39 | 1 | $this->configurationWriter->write($configuration, $request->getDestinationFolder()); |
|
40 | 1 | } |
|
41 | } |
||
42 |