| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 2 | public function create() : ConfigurationInterface |
|
| 31 | { |
||
| 32 | 2 | $configuration = new Configuration(); |
|
| 33 | |||
| 34 | 2 | if (file_exists($file = $this->rootDir.'/config/sculpin_site.yml')) { |
|
| 35 | 1 | $configuration->importRaw( |
|
| 36 | 1 | Yaml::parse(file_get_contents($file)) |
|
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | 2 | return $configuration; |
|
| 41 | } |
||
| 42 | } |
||
| 43 |