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