| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 1 | protected function processFile($filename, $data) |
|
| 27 | { |
||
| 28 | 1 | $filepath = $this->getFolderToLoad() . DIRECTORY_SEPARATOR . $filename . '.' . $this->fileExtension; |
|
| 29 | 1 | if (!is_dir(dirname($filepath))) { |
|
| 30 | 1 | mkdir(dirname($filepath), 0700, true); |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | file_put_contents($filepath, Yaml::dump($data)); |
|
| 34 | 1 | } |
|
| 35 | } |
||
| 36 |