Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
39 | 2 | private function getConfig(): array |
|
40 | { |
||
41 | 2 | if($this->config === null){ |
|
42 | 2 | if(!is_file($this->configFilePath)){ |
|
43 | 1 | throw new \InvalidArgumentException("Path to shopware config was not found or is invalid"); |
|
44 | } |
||
45 | |||
46 | 1 | $this->config = require($this->configFilePath); |
|
47 | } |
||
48 | |||
49 | 1 | return $this->config; |
|
50 | } |
||
51 | } |