diff options
Diffstat (limited to '2024/PHP/day_04/part_01.php')
| -rw-r--r-- | 2024/PHP/day_04/part_01.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/2024/PHP/day_04/part_01.php b/2024/PHP/day_04/part_01.php index ae67a4f..0faa5b0 100644 --- a/2024/PHP/day_04/part_01.php +++ b/2024/PHP/day_04/part_01.php @@ -2,7 +2,7 @@ declare(strict_types=1); -spl_autoload_register(fn(string $className) => require "{$className}.php"); +spl_autoload_register(fn (string $className) => require "{$className}.php"); // Assumes executed from workspace root $input = new Input('../_input/day_04.txt'); @@ -81,7 +81,7 @@ foreach ($grid->data as $y => $row) { $matchCount += array_reduce( array: $possibleMatches, - callback: fn(int $acc, string $possibleMatch): int => match ($possibleMatch) { + callback: fn (int $acc, string $possibleMatch): int => match ($possibleMatch) { "XMAS" => $acc + 1, default => $acc, }, |
