Skip to content

Commit

Permalink
Improve readability by breaking long line in __call() of MainStadium
Browse files Browse the repository at this point in the history
  • Loading branch information
shimomo committed Jan 14, 2025
1 parent c5d9b68 commit 0b44e6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MainStadium.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public function __call(string $name, array $arguments): ?Collection
return null;
}

$this->stadiums ??= collect(require __DIR__ . '/../config/stadiums.php')->recursive();
$this->stadiums ??= collect(
require __DIR__ . '/../config/stadiums.php'
)->recursive();

$stadiums = $this->stadiums->keyBy(Str::snake($matches[1]));
if ($stadiums->has($arguments[0])) {
Expand Down

0 comments on commit 0b44e6e

Please sign in to comment.