Completed
Push — master ( d50a41...4ec3b5 )
by Alexandr
10s
created
src/Type/ListType/AbstractListType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $isValid = is_null($value) || is_array($value) || $this->isIterableObject($value);
36 36
         $itemType = $this->config->get('itemType');
37 37
         if ($isValid && $itemType->isInputType()) {
38
-            foreach($value as $item) {
38
+            foreach ($value as $item) {
39 39
                 $isValid = $itemType->isValidValue($item);
40 40
                 if (!$isValid) return false;
41 41
             }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     private function isIterableObject($value)
47 47
     {
48
-        if(is_object($value)) {
48
+        if (is_object($value)) {
49 49
             $implements = class_implements($value);
50 50
             return isset($implements['Iterator']) || isset($implements['IteratorAggregate']);
51 51
         }
Please login to merge, or discard this patch.