Skip to content

Commit a0336de

Browse files
Update Settings.php
1 parent 49bc396 commit a0336de

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/Settings.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,7 @@ public function getOptions(string $config)
3535
return isset($this->configs[strtolower($config)]['options']) ? $this->configs[strtolower($config)]['options'] : null;
3636
}
3737

38-
public function set($config, $value = null, array $options = [])
39-
{
40-
if (is_array($config)) {
41-
foreach ($config as $config => $value) {
42-
if (is_numeric($config)) {
43-
continue;
44-
}
45-
if (is_array($value)) {
46-
$this->setConfig($config, ...$value);
47-
} else {
48-
$this->setConfig($config, $value);
49-
}
50-
}
51-
} else {
52-
$this->setConfig($config, $value, $options);
53-
}
54-
}
55-
56-
private function setConfig(string $config, $value = null, array $options = [])
38+
public function set(string $config, $value = null, array $options = [])
5739
{
5840
// Remove whitespace and special characters
5941
$config = strtolower($config);

0 commit comments

Comments
 (0)