Skip to content

Commit 8332df0

Browse files
committed
refactor: rename variable & delete dev log
1 parent a15a2de commit 8332df0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Builders/ServersBuilder.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ public function build(array $config): array
1818
->map(static function (array $server) {
1919
$variables = collect(Arr::get($server, 'variables'))
2020
->map(function (array $variable, string $key) {
21-
$tmp = ServerVariable::create($key)
21+
$serverVariable = ServerVariable::create($key)
2222
->default(Arr::get($variable, 'default'))
2323
->description(Arr::get($variable, 'description'));
2424
if (is_array(Arr::get($variable, 'enum'))) {
25-
// exist
26-
return $tmp->enum(...Arr::get($variable, 'enum'));
25+
return $serverVariable->enum(...Arr::get($variable, 'enum'));
2726
}
2827

29-
return $tmp;
28+
return $serverVariable;
3029
})
3130
->toArray();
3231

tests/Builders/ServersBuilderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public function testBuild(array $config, array $expected): void
2020
$SUT = new ServersBuilder();
2121
$servers = $SUT->build($config);
2222
$this->assertSameAssociativeArray($expected[0], $servers[0]->toArray());
23-
var_dump($servers[0]->toArray());
2423
}
2524

2625
public function providerBuild(): array

0 commit comments

Comments
 (0)