From 344c90117651f0d8df46d5c10a28040b230348bf Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Mon, 10 Mar 2025 00:53:54 +0100 Subject: fix: Formatting --- 2024/PHP/day_04/part_01.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '2024/PHP/day_04/part_01.php') 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, }, -- cgit v1.2.3