@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | public function __construct() |
12 | 12 | { |
13 | - if (! $this->exists()) { |
|
13 | + if (!$this->exists()) { |
|
14 | 14 | $this->initEnv(); |
15 | 15 | } |
16 | 16 | } |
@@ -88,12 +88,12 @@ discard block |
||
88 | 88 | { |
89 | 89 | $search = null; |
90 | 90 | $lines = $this->lines(); |
91 | - $pattern = strtoupper('/'. $key . '=/'); |
|
91 | + $pattern = strtoupper('/'.$key.'=/'); |
|
92 | 92 | |
93 | 93 | if (empty($lines)) { return null; |
94 | 94 | } |
95 | 95 | |
96 | - foreach($lines as $no => $line) { |
|
96 | + foreach ($lines as $no => $line) { |
|
97 | 97 | if (preg_match($pattern, $line)) { |
98 | 98 | $search = $no; |
99 | 99 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | public function content() : string |
135 | 135 | { |
136 | - if (! $this->exists()) { |
|
136 | + if (!$this->exists()) { |
|
137 | 137 | throw new EnvNotFoundException(); |
138 | 138 | } |
139 | 139 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | private function append(string $key, string $value) |
151 | 151 | { |
152 | 152 | $lines = $this->lines(); |
153 | - $content = strtoupper($key) . '=' . $value; |
|
153 | + $content = strtoupper($key).'='.$value; |
|
154 | 154 | $lines[] = $content; |
155 | 155 | |
156 | 156 | return $this->store($lines); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | private function change(int $line, string $key, string $value) |
168 | 168 | { |
169 | 169 | $lines = $this->lines(); |
170 | - $content = strtoupper($key) . '=' . $value; |
|
170 | + $content = strtoupper($key).'='.$value; |
|
171 | 171 | |
172 | 172 | $lines[$line] = $content; |
173 | 173 |