@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | try { |
58 | 58 | $parsedValue = $this->parser->parse($rawValue); |
59 | 59 | } catch (ParsingException $exception) { |
60 | - throw new HydratingException([ $this->key => $exception->getInnerError() ]); |
|
60 | + throw new HydratingException([$this->key => $exception->getInnerError()]); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | $this->validate($parsedValue, $object); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $validator->validate($parsedValue, $contextObject); |
79 | 79 | } |
80 | 80 | } catch (ValidationException $exception) { |
81 | - throw new HydratingException([ $this->key => $exception->getInnerError() ]); |
|
81 | + throw new HydratingException([$this->key => $exception->getInnerError()]); |
|
82 | 82 | } |
83 | 83 | } |
84 | 84 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | if ($rawValue === null || $rawValue === '') { |
20 | 20 | return null; |
21 | 21 | } |
22 | - if(!is_float($rawValue) && !is_int($rawValue) && !is_numeric($rawValue)) { |
|
22 | + if (!is_float($rawValue) && !is_int($rawValue) && !is_numeric($rawValue)) { |
|
23 | 23 | $this->throw(); |
24 | 24 | } |
25 | 25 | return floatval($rawValue); |