@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $pattern = '/^[a-zA-Z_][a-zA-Z_0-9]*$/i'; |
20 | 20 | |
21 | 21 | if (preg_match($pattern, $name)) { |
22 | - return ; |
|
22 | + return; |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | throw new LogicException(sprintf('Element name "%s" does not match pattern %s', $name, $pattern)); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | function assertEnumClassIsAbstract(string $fqn): void |
34 | 34 | { |
35 | 35 | if ((new ReflectionClass($fqn))->isAbstract()) { |
36 | - return ; |
|
36 | + return; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | throw new LogicException(sprintf('Enum %s must be declared as abstract', $fqn)); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | private function assertValidConstructionContext(): void |
59 | 59 | { |
60 | 60 | if (isset(self::$enumConstructionContext[get_parent_class($this)])) { |
61 | - return ; |
|
61 | + return; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | throw new LogicException( |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | private function assertCorrectlyInitialized(): void |
73 | 73 | { |
74 | 74 | if ($this->correctlyInitialized) { |
75 | - return ; |
|
75 | + return; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | throw new LogicException( |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | private static function ensureEnumsAreDiscoveredForClass(string $class) |
268 | 268 | { |
269 | 269 | if (isset(self::$existingEnums[$class])) { |
270 | - return ; |
|
270 | + return; |
|
271 | 271 | } |
272 | 272 | |
273 | 273 | try { |