From 9015a68e8429e6fa5020a06160e99778ded7b3b1 Mon Sep 17 00:00:00 2001 From: Jeff Roedel Date: Tue, 19 Jul 2022 17:47:32 -0500 Subject: [PATCH] Code quality --- src/Service/CountriesFactory.php | 48 ++++++++++++++------------------ 1 file changed, 21 insertions(+), 27 deletions(-) diff --git a/src/Service/CountriesFactory.php b/src/Service/CountriesFactory.php index 4364d18..754b71b 100644 --- a/src/Service/CountriesFactory.php +++ b/src/Service/CountriesFactory.php @@ -1,27 +1,21 @@ - - */ -class CountriesFactory implements FactoryInterface -{ - /** - * Create an object - * - * @inheritdoc - */ - public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) - { - $countries = Json::decode(file_get_contents("vendor/mledoze/countries/dist/countries.json")); - $obj = new CountriesInfo($countries); - return $obj; - } -} +