@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | function assertFqnIsEnumClass(string $fqn): void |
23 | 23 | { |
24 | 24 | if (is_subclass_of($fqn, Enum::class)) { |
25 | - return ; |
|
25 | + return; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | throw new LogicException(sprintf('%s does not have %s as it\'s parent', $fqn, Enum::class)); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $pattern = '/^[a-zA-Z_][a-zA-Z_0-9]*$/'; |
91 | 91 | |
92 | 92 | if (preg_match($pattern, $name)) { |
93 | - return ; |
|
93 | + return; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | throw new LogicException(sprintf('Element name "%s" does not match pattern %s', $name, $pattern)); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | function assertEnumClassIsAbstract(string $fqn): void |
109 | 109 | { |
110 | 110 | if ((new ReflectionClass($fqn))->isAbstract()) { |
111 | - return ; |
|
111 | + return; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | throw new LogicException(sprintf('Enum %s must be declared as abstract', $fqn)); |