@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | public function getDelete() |
| 21 | 21 | { |
| 22 | 22 | $item_names = request('items'); |
| 23 | - $errors = []; |
|
| 23 | + $errors = [ ]; |
|
| 24 | 24 | |
| 25 | 25 | foreach ($item_names as $name_to_delete) { |
| 26 | 26 | $file = $this->lfm->setName($name_to_delete); |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | continue; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if (! $this->lfm->setName($name_to_delete)->exists()) { |
|
| 48 | - array_push($errors, parent::error('folder-not-found', ['folder' => $file_path])); |
|
| 47 | + if (!$this->lfm->setName($name_to_delete)->exists()) { |
|
| 48 | + array_push($errors, parent::error('folder-not-found', [ 'folder' => $file_path ])); |
|
| 49 | 49 | continue; |
| 50 | 50 | } |
| 51 | 51 | |