Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1.0202 |
Changes | 0 |
1 | <?php |
||
21 | 4 | private function setDefaultLoaders() : void |
|
22 | { |
||
23 | 4 | $this->loaders = [ |
|
24 | 'json' => static function ($file) : ConfigurationLoader { |
||
25 | return new JsonFile($file); |
||
26 | 4 | }, |
|
27 | 'php' => static function ($file) : ConfigurationLoader { |
||
28 | 2 | return new PhpFile($file); |
|
29 | 4 | }, |
|
30 | 'xml' => static function ($file) : ConfigurationLoader { |
||
31 | return new XmlFile($file); |
||
32 | 4 | }, |
|
33 | 'yaml' => static function ($file) : ConfigurationLoader { |
||
34 | return new YamlFile($file); |
||
35 | 4 | }, |
|
36 | 'yml' => static function ($file) : ConfigurationLoader { |
||
37 | 1 | return new YamlFile($file); |
|
38 | 4 | }, |
|
56 |