Passed
Pull Request — master (#1)
by Max
05:13
created
src/Type/Definition/ValidatedFieldDefinition.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
         ]);
78 78
     }
79 79
 
80
-	protected function _isAssoc(array $arr)
81
-	{
82
-		if (array() === $arr) return false;
83
-		return array_keys($arr) !== range(0, count($arr) - 1);
84
-	}
80
+    protected function _isAssoc(array $arr)
81
+    {
82
+        if (array() === $arr) return false;
83
+        return array_keys($arr) !== range(0, count($arr) - 1);
84
+    }
85 85
 
86 86
     protected function _validateItems($value, array $path, callable $validate) {
87 87
         foreach ($value as $idx => $subValue) {
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
 
150 150
                 $fields = $type->getFields();
151 151
                 if(is_array($value)) {
152
-	                foreach ($value as $key => $subValue) {
153
-		                $config = $fields[$key]->config;
154
-		                $res['suberrors'][$key] = $this->_validate($config, $subValue);
155
-	                }
156
-	                $res['suberrors'] = array_filter($res['suberrors'] ?? []);
152
+                    foreach ($value as $key => $subValue) {
153
+                        $config = $fields[$key]->config;
154
+                        $res['suberrors'][$key] = $this->_validate($config, $subValue);
155
+                    }
156
+                    $res['suberrors'] = array_filter($res['suberrors'] ?? []);
157 157
                 }
158 158
                 break;
159 159
 
Please login to merge, or discard this patch.