Completed
Pull Request — 1.x (#5)
by Dorian
01:32
created
src/Handler/SimpleHydratingHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Parser/FloatParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.