@@ -71,13 +71,13 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function handle() |
| 73 | 73 | { |
| 74 | - $this->key = (string)$this->argument('key'); |
|
| 74 | + $this->key = (string) $this->argument('key'); |
|
| 75 | 75 | |
| 76 | 76 | if (strlen($this->key)) |
| 77 | 77 | $this->isValidKey($this->key); |
| 78 | 78 | |
| 79 | - $this->json = (bool)$this->option('json'); |
|
| 80 | - $this->keyValFormat = (bool)$this->option('key-value'); |
|
| 79 | + $this->json = (bool) $this->option('json'); |
|
| 80 | + $this->keyValFormat = (bool) $this->option('key-value'); |
|
| 81 | 81 | $this->env = new Env(); |
| 82 | 82 | |
| 83 | 83 | return $this->_printOutput(); |
@@ -86,13 +86,13 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | private function _getEntireEnvContent() |
| 88 | 88 | { |
| 89 | - return ($this->json) ? json_encode($this->env->getVariables()) : $this->env->getEnvContent();; |
|
| 89 | + return ($this->json) ? json_encode($this->env->getVariables()) : $this->env->getEnvContent(); ; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | private function _printKeyValue() |
| 93 | 93 | { |
| 94 | 94 | $value = ($this->json) ? json_encode($this->env->getKeyValue($this->key)) : ($this->keyValFormat ? $this->env->getKeyValue($this->key) : $this->env->getValue($this->key)); |
| 95 | - return($this->json) ? (string)$value : ($this->keyValFormat ? "{$this->key}={$value[$this->key]}" : (string)$value); |
|
| 95 | + return($this->json) ? (string) $value : ($this->keyValFormat ? "{$this->key}={$value[$this->key]}" : (string) $value); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | private function _printOutput() |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public function handle() |
| 59 | 59 | { |
| 60 | 60 | |
| 61 | - $this->json = (bool)$this->option('json'); |
|
| 61 | + $this->json = (bool) $this->option('json'); |
|
| 62 | 62 | |
| 63 | 63 | $this->env = new Env(); |
| 64 | 64 | $this->line($this->_getEntireEnvContent()); |