| Total Complexity | 9 | 
| Total Lines | 50 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 5 | class FileHandle  | 
            ||
| 6 | { | 
            ||
| 7 | public function write(string $file, string $content, string $dir)  | 
            ||
| 8 |     { | 
            ||
| 9 |         if (!is_dir($dir)) { | 
            ||
| 10 | mkdir($dir, 0755);  | 
            ||
| 11 | }  | 
            ||
| 12 | |||
| 13 | $fileName = $this->getComponentName($file);  | 
            ||
| 14 | |||
| 15 |         file_put_contents("{$dir}/{$fileName}.html", $content); | 
            ||
| 16 | }  | 
            ||
| 17 | |||
| 18 | public function getMockData(string $file) : array  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | public function getComponentName(string $file) : string  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | protected function getFileInfo(string $file) : array  | 
            ||
| 55 | }  | 
            ||
| 56 | }  | 
            ||
| 57 |