Conditions | 3 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
37 | 2 | public function install(): bool |
|
38 | { |
||
39 | 2 | $this->require('vlucas/phpdotenv'); |
|
40 | |||
41 | 2 | $this->task( |
|
42 | 2 | 'Creating .env and .env.example', |
|
43 | 2 | function () { |
|
44 | 2 | if (! File::exists(base_path('.env'))) { |
|
45 | 2 | File::put(base_path('.env'), 'CONSUMER_KEY='); |
|
46 | } |
||
47 | |||
48 | 2 | if (! File::exists(base_path('.env.example'))) { |
|
49 | 2 | File::put(base_path('.env.example'), 'CONSUMER_KEY='); |
|
50 | } |
||
51 | |||
52 | 2 | return true; |
|
53 | 2 | } |
|
54 | ); |
||
55 | |||
56 | 2 | return true; |
|
57 | } |
||
58 | } |
||
59 |