From f1506ecf0966ef3f5a66ef510da5434125c68352 Mon Sep 17 00:00:00 2001 From: Vincent Chalamon <407859+vincentchalamon@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:41:15 +0200 Subject: [PATCH] fix: fix CS --- src/Exception/MissingFieldHttpException.php | 2 +- src/Exception/UnauthorizedFieldException.php | 2 +- src/Provider/ProviderChain.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Exception/MissingFieldHttpException.php b/src/Exception/MissingFieldHttpException.php index fd7d13b..8e37987 100644 --- a/src/Exception/MissingFieldHttpException.php +++ b/src/Exception/MissingFieldHttpException.php @@ -23,6 +23,6 @@ final class MissingFieldHttpException extends HttpException implements JsonHttpE public function __construct($fieldName) { trigger_deprecation('tilleuls/forgot-password-bundle', '1.5', 'Status code will change to "%s" in 2.0.', 422); - parent::__construct(400, sprintf('Parameter "%s" is missing.', $fieldName)); + parent::__construct(400, \sprintf('Parameter "%s" is missing.', $fieldName)); } } diff --git a/src/Exception/UnauthorizedFieldException.php b/src/Exception/UnauthorizedFieldException.php index e4a2895..b582ecf 100644 --- a/src/Exception/UnauthorizedFieldException.php +++ b/src/Exception/UnauthorizedFieldException.php @@ -19,6 +19,6 @@ final class UnauthorizedFieldException extends HttpException implements JsonHttp { public function __construct($propertyName) { - parent::__construct(400, sprintf('The parameter "%s" is not authorized in your configuration.', $propertyName)); + parent::__construct(400, \sprintf('The parameter "%s" is not authorized in your configuration.', $propertyName)); } } diff --git a/src/Provider/ProviderChain.php b/src/Provider/ProviderChain.php index 3a11d61..74d0428 100644 --- a/src/Provider/ProviderChain.php +++ b/src/Provider/ProviderChain.php @@ -37,7 +37,7 @@ public function get(?string $name = null): ProviderInterface } if (!isset($this->providers[$name])) { - throw new UndefinedProviderException(sprintf('The provider "%s" is not defined.', $name)); + throw new UndefinedProviderException(\sprintf('The provider "%s" is not defined.', $name)); } return $this->providers[$name];