Completed
Pull Request — 1.x (#1)
by Dorian
02:37
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/Reflection/Getter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
      */
103 103
     protected function findGetterMethod(ReflectionClass $reflectionClass, string $field)
104 104
     {
105
-        foreach ($reflectionClass->getMethods($this->ignoreProtected ? ReflectionMethod::IS_PUBLIC|ReflectionMethod::IS_PROTECTED|ReflectionMethod::IS_PRIVATE : ReflectionMethod::IS_PUBLIC) as $reflectionMethod) {
105
+        foreach ($reflectionClass->getMethods($this->ignoreProtected ? ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED | ReflectionMethod::IS_PRIVATE : ReflectionMethod::IS_PUBLIC) as $reflectionMethod) {
106 106
             if (!$reflectionMethod->isStatic()
107 107
                 && $reflectionMethod->getNumberOfRequiredParameters() == 0
108 108
                 && strcasecmp($reflectionMethod->getName(), "get$field") == 0) {
Please login to merge, or discard this patch.
src/Reflection/Setter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      */
86 86
     protected function findSetterMethod(ReflectionClass $reflectionClass, string $field)
87 87
     {
88
-        foreach ($reflectionClass->getMethods($this->ignoreProtected ? ReflectionMethod::IS_PUBLIC|ReflectionMethod::IS_PROTECTED|ReflectionMethod::IS_PRIVATE : ReflectionMethod::IS_PUBLIC) as $reflectionMethod) {
88
+        foreach ($reflectionClass->getMethods($this->ignoreProtected ? ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED | ReflectionMethod::IS_PRIVATE : ReflectionMethod::IS_PUBLIC) as $reflectionMethod) {
89 89
             if (!$reflectionMethod->isStatic()
90 90
                 && $reflectionMethod->getNumberOfRequiredParameters() == 1
91 91
                 && strcasecmp($reflectionMethod->getName(), "set$field") == 0) {
Please login to merge, or discard this patch.
src/Handler/SubHydratingHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
                 $validator->validate($parsedValue, $contextObject);
105 105
             }
106 106
         } catch (ValidationException $exception) {
107
-            throw new HydratingException([ $this->key => $exception->getInnerError() ]);
107
+            throw new HydratingException([$this->key => $exception->getInnerError()]);
108 108
         }
109 109
     }
110 110
 
Please login to merge, or discard this patch.