@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | try { |
| 128 | 128 | return static::getEnumByValue($constant, static::$constants); |
| 129 | - } catch(\InvalidArgumentException $exception) { |
|
| 129 | + } catch (\InvalidArgumentException $exception) { |
|
| 130 | 130 | throw $exception; |
| 131 | 131 | } |
| 132 | 132 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | try { |
| 146 | 146 | return self::getEnumByValue($constant, static::$descriptions); |
| 147 | - } catch(\InvalidArgumentException $exception) { |
|
| 147 | + } catch (\InvalidArgumentException $exception) { |
|
| 148 | 148 | throw $exception; |
| 149 | 149 | } |
| 150 | 150 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | return $enum; |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | - throw new \InvalidArgumentException("Invalid Value! Only enumerative values of the type:". static::class); |
|
| 171 | + throw new \InvalidArgumentException("Invalid Value! Only enumerative values of the type:".static::class); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |