@@ -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,7 +221,7 @@ 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 | } |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | // Enumerators must be defined as public class constants |
| 322 | 322 | foreach ($reflection->getReflectionConstants() as $reflConstant) { |
| 323 | 323 | if ($reflConstant->isPublic()) { |
| 324 | - $scopeConstants[ $reflConstant->getName() ] = $reflConstant->getValue(); |
|
| 324 | + $scopeConstants[$reflConstant->getName()] = $reflConstant->getValue(); |
|
| 325 | 325 | } |
| 326 | 326 | } |
| 327 | 327 | |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | |
| 331 | 331 | assert( |
| 332 | 332 | self::noAmbiguousValues($constants), |
| 333 | - 'Ambiguous enumerator values detected for ' . static::class |
|
| 333 | + 'Ambiguous enumerator values detected for '.static::class |
|
| 334 | 334 | ); |
| 335 | 335 | |
| 336 | 336 | self::$names[static::class] = \array_keys($constants); |