Skip to content

Commit 44b24f9

Browse files
[4.x]
1 parent 881e62f commit 44b24f9

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/Console/Commands/AlertCreateCommand.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,18 @@ class AlertCreateCommand extends GeneratorCommand implements PromptsForMissingIn
4545

4646
/**
4747
* Execute the console command.
48-
*
49-
* @return void
5048
*/
51-
public function handle(): void
49+
public function handle(): bool
5250
{
5351
if (parent::handle() === false && ! $this->option('force')) {
54-
return;
52+
return false;
5553
}
5654

57-
if ($this->withoutView()) {
58-
return;
55+
if (!$this->withoutView()) {
56+
$this->writeBladeView();
5957
}
6058

61-
$this->writeBladeView();
59+
return true;
6260
}
6361

6462
/**

0 commit comments

Comments
 (0)