@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $options = explode(':', $validation); |
| 38 | 38 | $validationName = array_shift($options); |
| 39 | 39 | if (!array_key_exists($validationName, $this->map)) { |
| 40 | - throw new InvalidValidationNameException('unknown validation name ' . $validationName); |
|
| 40 | + throw new InvalidValidationNameException('unknown validation name '.$validationName); |
|
| 41 | 41 | } |
| 42 | 42 | return new $this->map[$validationName]($options); |
| 43 | 43 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | public function setType($type) |
| 34 | 34 | { |
| 35 | - if (!in_array($type, $this->types())) throw new ValueObjectInvalidTypeException('Wrong type: ' . $type); |
|
| 35 | + if (!in_array($type, $this->types())) throw new ValueObjectInvalidTypeException('Wrong type: '.$type); |
|
| 36 | 36 | $this->type = $type; |
| 37 | 37 | } |
| 38 | 38 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | public function validate(ValueObject $data) |
| 14 | 14 | { |
| 15 | - if ( !is_array($data->value()) ) { |
|
| 15 | + if (!is_array($data->value())) { |
|
| 16 | 16 | $this->error = "{$data->name()} must be an array"; |
| 17 | 17 | return false; |
| 18 | 18 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | public function validate(ValueObject $data) |
| 15 | 15 | { |
| 16 | - if ( !is_string($data->value()) ) { |
|
| 16 | + if (!is_string($data->value())) { |
|
| 17 | 17 | $this->error = "{$data->name()} must be a string"; |
| 18 | 18 | return false; |
| 19 | 19 | } |