diff --git a/src/State/TranslationProcessor.php b/src/State/TranslationProcessor.php index fce3faf2f..528cd1824 100644 --- a/src/State/TranslationProcessor.php +++ b/src/State/TranslationProcessor.php @@ -32,7 +32,12 @@ public function __construct( ) { } - public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): Translation + public function process( + mixed $data, + Operation $operation, + array $uriVariables = [], + array $context = [] + ): Translation { if ( !$operation instanceof Post || diff --git a/src/Util/Constants/PublicTranslations.php b/src/Util/Constants/PublicTranslations.php index 15947fae4..70724de7b 100644 --- a/src/Util/Constants/PublicTranslations.php +++ b/src/Util/Constants/PublicTranslations.php @@ -11,8 +11,10 @@ * @license http://www.pimcore.org/license PCL */ +namespace Pimcore\Bundle\StudioApiBundle\Util\Constants; + final readonly class PublicTranslations { - public const KEYS = [ + public const PUBLIC_KEYS = [ 'username', 'password', 'login',