Skip to content

Commit 17ab7f9

Browse files
authored
Fix Symfony code styling on EnumConstantTwigExtension
1 parent a0570dc commit 17ab7f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Twig/Extension/EnumConstantTwigExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ public function getEnumConstant(string $enumConstant, ?string $enumType = null):
5252
if (null !== $enumType) {
5353
$this->throwExceptionIfEnumTypeIsNotRegistered($enumType);
5454

55-
return (string)\constant($this->registeredEnumTypes[$enumType].'::'.$enumConstant);
55+
return (string) \constant($this->registeredEnumTypes[$enumType].'::'.$enumConstant);
5656
}
5757

5858
// If ENUM type wasn't set, e.g. {{ 'CENTER'|enum_constant }}
5959
$this->findOccurrences($enumConstant);
6060

6161
if ($this->onlyOneOccurrenceFound()) {
62-
return (string)\constant(\array_pop($this->occurrences).'::'.$enumConstant);
62+
return (string) \constant(\array_pop($this->occurrences).'::'.$enumConstant);
6363
}
6464

6565
if ($this->moreThanOneOccurrenceFound()) {

0 commit comments

Comments
 (0)