diff --git a/src/Security/Trait/PublicTranslationTrait.php b/src/Security/Trait/PublicTranslationTrait.php index d7dd78791..e35620455 100644 --- a/src/Security/Trait/PublicTranslationTrait.php +++ b/src/Security/Trait/PublicTranslationTrait.php @@ -31,10 +31,18 @@ private function voteOnTranslation(InputBag $payload): bool return false; } - $nonPublicTranslations = array_diff($parameters[self::ARRAY_KEYS_INDEX], PublicTranslations::PUBLIC_KEYS); + $nonPublicTranslations = array_diff( + $parameters[self::ARRAY_KEYS_INDEX], + PublicTranslations::PUBLIC_KEYS + ); if (!empty($nonPublicTranslations)) { - throw new NonPublicTranslationException(sprintf('You have requested non public keys: %s', implode(',', $nonPublicTranslations))); + throw new NonPublicTranslationException( + sprintf( + 'You have requested non public keys: %s', + implode(',', $nonPublicTranslations) + ) + ); } return true;