@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | throw new \RuntimeException('You need the symfony/finder component to register enums.'); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - $enumDir = $this->bundleDir . '/Enum'; |
|
| 63 | + $enumDir = $this->bundleDir.'/Enum'; |
|
| 64 | 64 | |
| 65 | 65 | if (!is_dir($enumDir)) { |
| 66 | 66 | return; |
@@ -71,12 +71,12 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | foreach ($finder as $file) { |
| 73 | 73 | /** @var SplFileInfo $file */ |
| 74 | - $enumNamespace = $this->bundleNamespace . '\\Enum'; |
|
| 74 | + $enumNamespace = $this->bundleNamespace.'\\Enum'; |
|
| 75 | 75 | if ($relativePath = $file->getRelativePath()) { |
| 76 | - $enumNamespace .= '\\' . strtr($relativePath, '/', '\\'); |
|
| 76 | + $enumNamespace .= '\\'.strtr($relativePath, '/', '\\'); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - $enumClass = $enumNamespace . '\\' . $file->getBasename('.php'); |
|
| 79 | + $enumClass = $enumNamespace.'\\'.$file->getBasename('.php'); |
|
| 80 | 80 | $enumReflection = new \ReflectionClass($enumClass); |
| 81 | 81 | |
| 82 | 82 | if (!$enumReflection->isSubclassOf(EnumInterface::class) || $enumReflection->isAbstract()) { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | explode( |
| 158 | 158 | '\\', |
| 159 | 159 | str_replace( |
| 160 | - $this->bundleNamespace . '\\', |
|
| 160 | + $this->bundleNamespace.'\\', |
|
| 161 | 161 | '', |
| 162 | 162 | $enumClass |
| 163 | 163 | ) |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | $enum = array_pop($parts); |
| 169 | 169 | |
| 170 | - return implode('_', $parts) . '.' . $enum . '.label_%s'; |
|
| 170 | + return implode('_', $parts).'.'.$enum.'.label_%s'; |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |