@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | public function __construct($value) |
31 | 31 | { |
32 | 32 | if (!in_array($value, static::toArray())) { |
33 | - throw new \UnexpectedValueException($value . ' is not a valid enum value.'); |
|
33 | + throw new \UnexpectedValueException($value.' is not a valid enum value.'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | $this->value = $value; |
@@ -99,10 +99,10 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public static function valueOf($name) |
101 | 101 | { |
102 | - if (!defined('static::' . $name)) { |
|
103 | - throw new \UnexpectedValueException($name . ' is not a valid enum name.'); |
|
102 | + if (!defined('static::'.$name)) { |
|
103 | + throw new \UnexpectedValueException($name.' is not a valid enum name.'); |
|
104 | 104 | } |
105 | 105 | |
106 | - return new static(constant('static::' . $name)); |
|
106 | + return new static(constant('static::'.$name)); |
|
107 | 107 | } |
108 | 108 | } |