Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function handle() |
||
43 | { |
||
44 | $key = $this->argument('key'); |
||
45 | |||
46 | if (!is_null($key)) { |
||
47 | $this->isValidKey((string)$key); |
||
48 | } |
||
49 | |||
50 | $env = new Env(); |
||
51 | if (!$env->exists((string)$key)) { |
||
52 | $this->info("There is no variable {$key}"); |
||
53 | } else { |
||
54 | $env->deleteVariable((string)$key); |
||
55 | $this->info("Variable '{$key}' has been deleted"); |
||
56 | } |
||
59 |