@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | $names = (array) $this->argument('name') ?: CRUD::query()->where('active', true)->pluck('name')->toArray(); |
19 | 19 | |
20 | - if($names == null) { |
|
20 | + if ($names == null) { |
|
21 | 21 | throw new CommandNotFoundException("There is no action in database"); |
22 | 22 | } |
23 | 23 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | if ($this->askResult($name)) { |
31 | 31 | File::deleteDirectory(resource_path("/views/livewire/admin/$name")); |
32 | - File::deleteDirectory(app_path("/Http/Livewire/Admin/" . ucfirst($name))); |
|
32 | + File::deleteDirectory(app_path("/Http/Livewire/Admin/".ucfirst($name))); |
|
33 | 33 | File::delete(app_path("/CRUD/".ucfirst($name)."Component.php")); |
34 | 34 | $this->info("{$name} files were deleted, make sure you will delete {$name} value from actions in config"); |
35 | 35 | CRUD::query()->where('name', $name)->delete(); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | public function askResult($name) |
44 | 44 | { |
45 | - if($this->option('force')) { |
|
45 | + if ($this->option('force')) { |
|
46 | 46 | return true; |
47 | 47 | } |
48 | 48 | $result = $this->confirm("Do you really want to delete {$name} files ?", true); |