@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $isValid = is_null($value) || is_array($value) || (is_object($value) && in_array('IteratorAggregate', class_implements($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 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | 'fields' => [ |
| 61 | 61 | 'empty' => [ |
| 62 | 62 | 'type' => new StringType(), |
| 63 | - 'resolve' => function () { |
|
| 63 | + 'resolve' => function() { |
|
| 64 | 64 | return null; |
| 65 | 65 | } |
| 66 | 66 | ] |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | ])) |
| 80 | 80 | ], |
| 81 | 81 | 'type' => new BooleanType(), |
| 82 | - 'resolve' => function ($object, $args) { |
|
| 82 | + 'resolve' => function($object, $args) { |
|
| 83 | 83 | return true; |
| 84 | 84 | } |
| 85 | 85 | ] |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | 'fields' => [ |
| 101 | 101 | 'empty' => [ |
| 102 | 102 | 'type' => new StringType(), |
| 103 | - 'resolve' => function () { } |
|
| 103 | + 'resolve' => function() { } |
|
| 104 | 104 | ], |
| 105 | 105 | ] |
| 106 | 106 | ]), |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | ] |
| 123 | 123 | ]) |
| 124 | 124 | ], |
| 125 | - 'resolve' => function () { return 'success message'; } |
|
| 125 | + 'resolve' => function() { return 'success message'; } |
|
| 126 | 126 | ] |
| 127 | 127 | ] |
| 128 | 128 | ]) |