Passed
Pull Request — master (#1)
by Max
05:09
created
src/Type/Definition/ValidatedFieldDefinition.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,7 +92,9 @@  discard block
 block discarded – undo
92 92
 
93 93
 	protected function _isAssoc(array $arr)
94 94
 	{
95
-		if (array() === $arr) return false;
95
+		if (array() === $arr) {
96
+		    return false;
97
+		}
96 98
 		return array_keys($arr) !== range(0, count($arr) - 1);
97 99
 	}
98 100
 
@@ -103,8 +105,7 @@  discard block
 block discarded – undo
103 105
                 $newPath = $path;
104 106
                 $newPath[] = 0;
105 107
                 $this->_validateItems($subValue, $newPath, $validate);
106
-            }
107
-            else {
108
+            } else {
108 109
                 $path[count($path) - 1] = $idx;
109 110
                 $err = $validate($subValue);
110 111
 
@@ -136,8 +137,7 @@  discard block
 block discarded – undo
136 137
                 if(isset($arg['validateItem'])) {
137 138
                     try {
138 139
                         $this->_validateItems($value, [0], $arg['validateItem']);
139
-                    }
140
-                    catch(ValidateItemsError $e) {
140
+                    } catch(ValidateItemsError $e) {
141 141
                         $res['suberrors'] = [
142 142
                             'error' => $e->error,
143 143
                             'path' => $e->path
Please login to merge, or discard this patch.