| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanedev\Assets\Pipes\Make; |
||
| 26 | public function handle(array $passable, Closure $next) |
||
| 27 | { |
||
| 28 | $path = $passable['root-directory'].'/'.$passable['name']; |
||
| 29 | |||
| 30 | if (File::isDirectory($path)) |
||
| 31 | DirectoryExistsException::throw($path); |
||
| 32 | |||
| 33 | File::makeDirectory($path, 0755, true); |
||
| 34 | |||
| 35 | return $next($passable + compact('path')); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |