From 492061302113fd3ba05ccaa9389c2e0d815f63fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Beli=C3=ABn?= Date: Sun, 3 Sep 2023 18:42:14 +0200 Subject: [PATCH] Apply fixes from StyleCI (#1190) --- src/Command/UpdateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/UpdateCommand.php b/src/Command/UpdateCommand.php index 201ac4714..3ddbcf012 100644 --- a/src/Command/UpdateCommand.php +++ b/src/Command/UpdateCommand.php @@ -43,7 +43,7 @@ protected function initialize(InputInterface $input, OutputInterface $output) $validate = $this->validator->validate($input->getArgument('continent'), new Callback(function (string $value, ExecutionContextInterface $context) { $regions = $this->provider->getRegions(); - if (!isset($regions[$value]) || 0 === count($regions[$value])) { + if (!isset($regions[$value]) || 0 === \count($regions[$value])) { $context ->buildViolation(sprintf('Continent "%s" does not exist.', $value)) ->addViolation();