File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 9
9
use Illuminate \Support \Facades \File ;
10
10
use Illuminate \Support \Sleep ;
11
11
use Illuminate \Support \Str ;
12
- use Laravel \Prompts \Prompt ;
13
12
use ReflectionClass ;
14
13
use ReflectionProperty ;
15
14
use function Laravel \Prompts \confirm ;
@@ -24,7 +23,7 @@ class InstallCommand extends Command
24
23
25
24
protected $ description = 'Install Cachet ' ;
26
25
27
- public function handle (AppSettings $ settings )
26
+ public function handle (AppSettings $ settings ): int
28
27
{
29
28
intro ('Welcome to the Cachet installer! ' );
30
29
@@ -123,8 +122,8 @@ protected function configureDatabaseSettings(AppSettings $settings): AppSettings
123
122
}
124
123
125
124
$ descriptionAttributeClass = $ descriptionAttribute [0 ]->newInstance ();
126
- $ default = $ descriptionAttributeClass ->getDefault ();
127
- $ required = $ descriptionAttributeClass ->getRequired ();
125
+ $ default = $ descriptionAttributeClass ->default ();
126
+ $ required = $ descriptionAttributeClass ->required ();
128
127
129
128
if ($ required === false ) {
130
129
return ;
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ final class Description
9
9
{
10
10
public function __construct (private readonly string $ default , private readonly bool $ required = true ) {}
11
11
12
- public function getDefault (): string
12
+ public function default (): string
13
13
{
14
14
return $ this ->default ;
15
15
}
16
16
17
- public function getRequired (): bool
17
+ public function required (): bool
18
18
{
19
19
return $ this ->required ;
20
20
}
You can’t perform that action at this time.
0 commit comments