@@ -27,7 +27,7 @@ |
||
27 | 27 | public function __construct(Type $type) |
28 | 28 | { |
29 | 29 | if (empty($type->getValue())) |
30 | - throw new EmptyRequiredValue('The required type '. get_class($type) . ' cannot have an empty value'); |
|
30 | + throw new EmptyRequiredValue('The required type ' . get_class($type) . ' cannot have an empty value'); |
|
31 | 31 | |
32 | 32 | $this->type = $type; |
33 | 33 | } |
@@ -26,8 +26,9 @@ |
||
26 | 26 | */ |
27 | 27 | public function __construct(Type $type) |
28 | 28 | { |
29 | - if (empty($type->getValue())) |
|
30 | - throw new EmptyRequiredValue('The required type '. get_class($type) . ' cannot have an empty value'); |
|
29 | + if (empty($type->getValue())) { |
|
30 | + throw new EmptyRequiredValue('The required type '. get_class($type) . ' cannot have an empty value'); |
|
31 | + } |
|
31 | 32 | |
32 | 33 | $this->type = $type; |
33 | 34 | } |