@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | 'Unknown value %s for enumeration %s', |
| 199 | 199 | \is_scalar($value) |
| 200 | 200 | ? \var_export($value, true) |
| 201 | - : 'of type ' . (\is_object($value) ? \get_class($value) : \gettype($value)), |
|
| 201 | + : 'of type '.(\is_object($value) ? \get_class($value) : \gettype($value)), |
|
| 202 | 202 | static::class |
| 203 | 203 | )); |
| 204 | 204 | } |
@@ -221,14 +221,14 @@ discard block |
||
| 221 | 221 | return self::$instances[static::class][$name]; |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - $const = static::class . "::{$name}"; |
|
| 224 | + $const = static::class."::{$name}"; |
|
| 225 | 225 | if (!\defined($const)) { |
| 226 | 226 | throw new InvalidArgumentException("{$const} not defined"); |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | assert( |
| 230 | 230 | self::noAmbiguousValues(static::getConstants()), |
| 231 | - 'Ambiguous enumerator values detected for ' . static::class |
|
| 231 | + 'Ambiguous enumerator values detected for '.static::class |
|
| 232 | 232 | ); |
| 233 | 233 | |
| 234 | 234 | return self::$instances[static::class][$name] = new static(\constant($const)); |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | // Enumerators must be defined as public class constants |
| 327 | 327 | foreach ($reflection->getReflectionConstants() as $reflConstant) { |
| 328 | 328 | if ($reflConstant->isPublic()) { |
| 329 | - $scopeConstants[ $reflConstant->getName() ] = $reflConstant->getValue(); |
|
| 329 | + $scopeConstants[$reflConstant->getName()] = $reflConstant->getValue(); |
|
| 330 | 330 | } |
| 331 | 331 | } |
| 332 | 332 | |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | |
| 336 | 336 | assert( |
| 337 | 337 | self::noAmbiguousValues($constants), |
| 338 | - 'Ambiguous enumerator values detected for ' . static::class |
|
| 338 | + 'Ambiguous enumerator values detected for '.static::class |
|
| 339 | 339 | ); |
| 340 | 340 | |
| 341 | 341 | self::$names[static::class] = \array_keys($constants); |