Completed
Pull Request — master (#155)
by
unknown
02:42
created
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         /** @var AbstractObjectType $objectType */
29 29
         if (!(TypeService::isObjectType($objectType) || TypeService::isInputObjectType($objectType)) || !$objectType->hasField($ast->getName())) {
30 30
             $availableFieldNames = implode(', ', array_map(function (FieldInterface $field) {
31
-              return sprintf('"%s"', $field->getName());
31
+                return sprintf('"%s"', $field->getName());
32 32
             }, $objectType->getFields()));
33 33
             throw new ResolveException(sprintf('Field "%s" not found in type "%s". Available fields are: %s', $ast->getName(), $objectType->getNamedType()->getName(), $availableFieldNames), $ast->getLocation());
34 34
         }
Please login to merge, or discard this patch.
src/Type/ListType/AbstractListType.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
     public function isValidValue($value)
34 34
     {
35 35
         if (!is_null($value) && !is_array($value) && !($value instanceof \Traversable)) {
36
-          $this->lastError = 'The value is not an iterable.';
37
-          return false;
36
+            $this->lastError = 'The value is not an iterable.';
37
+            return false;
38 38
         }
39 39
         $this->lastError = null;
40 40
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         if ($value && $itemType->isInputType()) {
44 44
             foreach ($value as $item) {
45 45
                 if (!$itemType->isValidValue($item)) {
46
-                  return false;
46
+                    return false;
47 47
                 }
48 48
             }
49 49
         }
Please login to merge, or discard this patch.