Skip to content

Commit b0a9c70

Browse files
committed
Fixed styling issue and unparenthesized ternary issue
1 parent a8cf24e commit b0a9c70

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Config/EnvFile.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ public function write(string $filePath = null): void
129129
public function render(): string
130130
{
131131
$out = '';
132-
133132
foreach ($this->env as $env) {
134-
135133
if ($env['type'] === 'nl') {
136134
$out .= PHP_EOL;
137135
continue;
@@ -199,7 +197,7 @@ protected function parse(string $file): array
199197
$commentCounter = 0;
200198

201199
foreach ($contents as $line) {
202-
switch (!($line = trim($line)) ? 'nl' : (strpos($line, '#') === 0) ? 'comment' : 'var') {
200+
switch (!($line = trim($line)) ? 'nl' : ((strpos($line, '#') === 0) ? 'comment' : 'var')) {
203201
case 'nl':
204202
$env[] = [
205203
'type' => 'nl'

0 commit comments

Comments
 (0)