Skip to content

Commit

Permalink
Fixed code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Jun 1, 2024
1 parent 980874d commit 5c37bee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/HasKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

trait HasKey
{
protected function resolveKey(BackedEnum | int | string $key): int | string
protected function resolveKey(BackedEnum|int|string $key): int|string
{
if ($key instanceof BackedEnum) {
return $key->value ?? $key->name;
Expand Down
4 changes: 2 additions & 2 deletions src/Concerns/HasValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ trait HasValues
{
use HasKey;

public function get(BackedEnum | int | string $key): mixed
public function get(BackedEnum|int|string $key): mixed
{
$key = $this->resolveKey($key);

$main = $this->key . '.' . $key;
$main = $this->key . '.' . $key;
$default = $this->default ? $this->default . '.' . $key : null;

if ($this->default) {
Expand Down

0 comments on commit 5c37bee

Please sign in to comment.