Skip to content

Commit ee6785c

Browse files
committed
Clean up of switch statement.
1 parent 2570a7c commit ee6785c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Config/BaseAuthToken.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@ public function __construct()
3939
*/
4040
protected function initEnvValue(&$property, string $name, string $prefix, string $shortPrefix): void
4141
{
42-
switch ($name) {
43-
case 'hmacEncryptionKeys':
44-
// if attempting to set property from ENV, first set to empty string
45-
if ($this->getEnvValue($name, $prefix, $shortPrefix) !== null) {
46-
$property = '';
47-
}
42+
if ($name === 'hmacEncryptionKeys') {
43+
// if attempting to set property from ENV, first set to empty string
44+
if ($this->getEnvValue($name, $prefix, $shortPrefix) !== null) {
45+
$property = '';
46+
}
4847
}
4948

5049
parent::initEnvValue($property, $name, $prefix, $shortPrefix);

0 commit comments

Comments
 (0)