@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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 | } |