@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Balloon\Filesystem\Exception; |
| 18 | 18 | use Balloon\Filesystem\Storage\Adapter\AdapterInterface as StorageAdapterInterface; |
| 19 | 19 | use Balloon\Hook; |
| 20 | -use Balloon\Server\User; |
|
| 21 | 20 | use Generator; |
| 22 | 21 | use MimeType\MimeType; |
| 23 | 22 | use function MongoDB\BSON\fromJSON; |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | $this->storage = $this->_parent->getStorage()->deleteCollection($this); |
| 363 | 363 | |
| 364 | 364 | if (!$this->isReference() && !$this->isMounted() && !$this->isFiltered()) { |
| 365 | - $this->doRecursiveAction(function ($node) use ($recursion) { |
|
| 365 | + $this->doRecursiveAction(function($node) use ($recursion) { |
|
| 366 | 366 | $node->delete(false, $recursion, false); |
| 367 | 367 | }, NodeInterface::DELETED_EXCLUDE); |
| 368 | 368 | } |
@@ -917,7 +917,7 @@ discard block |
||
| 917 | 917 | protected function _forceDelete(?string $recursion = null, bool $recursion_first = true): bool |
| 918 | 918 | { |
| 919 | 919 | if (!$this->isReference() && !$this->isMounted() && !$this->isFiltered()) { |
| 920 | - $this->doRecursiveAction(function ($node) use ($recursion) { |
|
| 920 | + $this->doRecursiveAction(function($node) use ($recursion) { |
|
| 921 | 921 | $node->delete(true, $recursion, false); |
| 922 | 922 | }, NodeInterface::DELETED_INCLUDE); |
| 923 | 923 | } |