| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Anomaly\Streams\Platform\Asset\Console; |
||
| 38 | public function fire(Filesystem $files, Application $application) |
||
| 39 | { |
||
| 40 | $directory = 'assets'; |
||
| 41 | |||
| 42 | if ($path = $this->argument('path')) { |
||
| 43 | $directory .= DIRECTORY_SEPARATOR . str_replace('../', '', $path); |
||
| 44 | } |
||
| 45 | |||
| 46 | $files->deleteDirectory($directory = $application->getAssetsPath($directory), true); |
||
| 47 | |||
| 48 | $this->info($directory . ' has been emptied!'); |
||
| 49 | } |
||
| 50 | |||
| 63 |