diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-03-10 00:53:54 +0100 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-03-10 00:53:54 +0100 |
| commit | 344c90117651f0d8df46d5c10a28040b230348bf (patch) | |
| tree | 5919e62b9bb90e1fce75e93150b356e1f52b9a77 /2024/PHP/day_04/part_01.php | |
| parent | 89c6ad2d91e18bcdd93d3f7ac85b3c0dbfd9d1b4 (diff) | |
fix: Formatting
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, }, |
