| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public static function prepareFolder($folder) |
||
| 20 | { |
||
| 21 | // $filteredFolder = XoopsFilterInput::clean($folder, 'PATH'); |
||
| 22 | if (!is_dir($folder)) { |
||
| 23 | mkdir($folder); |
||
| 24 | file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>'); |
||
| 25 | } |
||
| 26 | // chmod($filteredFolder, 0777); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.