From 719593cedcdfd355656dcfbafed96d99154dfe6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atakan=20Demircio=C4=9Flu?= <31544037+atakde@users.noreply.github.com> Date: Tue, 19 Jul 2022 09:01:15 +0300 Subject: [PATCH] StaticFactory :: lint --- Creational/StaticFactory/StaticFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Creational/StaticFactory/StaticFactory.php b/Creational/StaticFactory/StaticFactory.php index e63b369..de91a85 100644 --- a/Creational/StaticFactory/StaticFactory.php +++ b/Creational/StaticFactory/StaticFactory.php @@ -14,7 +14,7 @@ final class StaticFactory { public static function factory(string $type): Formatter { - return match($type) { + return match ($type) { 'number' => new FormatNumber(), 'string' => new FormatString(), default => throw new InvalidArgumentException('Unknown format given'),