| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 13 | public function __construct(string $path = '') { |
||
| 14 | |||
| 15 | $scheme = array_diff(preg_split('/[\/\\\\]+/', $path, -1, PREG_SPLIT_NO_EMPTY), ['.', '..']); |
||
| 16 | |||
| 17 | $path = implode('/', $scheme); $path_full = (DIR_UPLOADS . (('' !== $path) ? ($path . '/') : '')); |
||
| 18 | |||
| 19 | if (!Explorer::isDir($path_full)) return; |
||
| 20 | |||
| 21 | $this->scheme = $scheme; $this->path = $path; $this->path_full = $path_full; |
||
| 22 | } |
||
| 23 | |||
| 55 |