Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
28 | 3 | public function handle(): void |
|
29 | { |
||
30 | 3 | if ($this->option('show')) { |
|
31 | 1 | $this->info('Home is currently: '.setting('home')); |
|
32 | |||
33 | 1 | return; |
|
34 | } |
||
35 | |||
36 | 2 | $path = realpath((string) $this->argument('path') ?: $this->cli->currentWorkingDirectory()); |
|
37 | |||
38 | 2 | $this->info('Setting home to '.$path); |
|
39 | |||
40 | 2 | Setting::updateOrCreate('home', $path); |
|
41 | 2 | $this->call('make-files'); |
|
42 | 2 | } |
|
44 |