| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | private static function extractZipFile($file_name) |
||
| 38 | { |
||
| 39 | $zip_file_uri = FILES_DIRECTORY_ROOT . '/' . $file_name; |
||
| 40 | |||
| 41 | $zip = new ZipArchive(); |
||
| 42 | $zip->open($zip_file_uri); |
||
| 43 | $zip->extractTo(FILES_DIRECTORY_ROOT); |
||
| 44 | $zip->close(); |
||
| 45 | |||
| 46 | // Remove zip file from the system. |
||
| 47 | $fs = new Filesystem(); |
||
| 48 | $fs->remove($zip_file_uri); |
||
| 49 | |||
| 50 | return self::scanFolder(FILES_DIRECTORY_ROOT); |
||
| 51 | } |
||
| 52 | |||
| 71 |