| Total Complexity | 8 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | |||
| 9 | class MultiUser |
||
| 10 | { |
||
| 11 | private $helper; |
||
| 12 | |||
| 13 | public function __construct() |
||
| 16 | } |
||
| 17 | |||
| 18 | public function handle($request, Closure $next) |
||
| 32 | } |
||
| 33 | |||
| 34 | private function validDir($previous_dir) |
||
| 35 | { |
||
| 36 | if (Str::startsWith($previous_dir, $this->helper->getRootFolder('share'))) { |
||
| 37 | return true; |
||
| 38 | } |
||
| 39 | |||
| 40 | if (Str::startsWith($previous_dir, $this->helper->getRootFolder('user'))) { |
||
| 41 | return true; |
||
| 42 | } |
||
| 43 | |||
| 44 | return false; |
||
| 47 |