Completed
Pull Request — master (#61)
by
unknown
10:52
created
src/Validation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $this->errors = [];
100 100
         $params = $request->getParams();
101
-        $params = array_merge((array)$request->getAttribute('routeInfo')[2], $params);
101
+        $params = array_merge((array) $request->getAttribute('routeInfo')[2], $params);
102 102
         $this->validate($params, $this->validators);
103 103
 
104 104
         $request = $request->withAttribute($this->errors_name, $this->getErrors());
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             return $params;
156 156
         } else {
157 157
             $firstKey = array_shift($keys);
158
-            if ($this->isArrayLike($params) && array_key_exists($firstKey, (array)$params)) {
158
+            if ($this->isArrayLike($params) && array_key_exists($firstKey, (array) $params)) {
159 159
                 $params = (array) $params;
160 160
                 $paramValue = $params[$firstKey];
161 161
 
Please login to merge, or discard this patch.