Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 1 | protected function processFile($filename, $data) |
|
32 | { |
||
33 | 1 | $filepath = $this->getFolderToLoad() . DIRECTORY_SEPARATOR . $filename . '.' . $this->fileExtension; |
|
34 | 1 | if (!is_dir(dirname($filepath))) { |
|
35 | 1 | mkdir(dirname($filepath), 0700, true); |
|
36 | } |
||
37 | |||
38 | 1 | file_put_contents($filepath, Yaml::dump($data, 3)); |
|
39 | 1 | } |
|
41 |