Completed
Push — master ( 708c0e...18f94d )
by Alexandr
28:28 queued 14:38
created
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         }
47 47
         
48 48
         if (!(TypeService::isObjectType($objectType) || TypeService::isInputObjectType($objectType)) || !$objectType->hasField($ast->getName())) {
49
-            $availableFieldNames = implode(', ', array_map(function (FieldInterface $field) {
49
+            $availableFieldNames = implode(', ', array_map(function(FieldInterface $field) {
50 50
                 return sprintf('"%s"', $field->getName());
51 51
             }, $objectType->getFields()));
52 52
             throw new ResolveException(sprintf('Field "%s" not found in type "%s". Available fields are: %s', $ast->getName(), $objectType->getNamedType()->getName(), $availableFieldNames), $ast->getLocation());
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function assertValidArguments(FieldInterface $field, AstFieldInterface $query, Request $request)
57 57
     {
58
-        $requiredArguments = array_filter($field->getArguments(), function (InputField $argument) {
58
+        $requiredArguments = array_filter($field->getArguments(), function(InputField $argument) {
59 59
             return $argument->getType()->getKind() === TypeMap::KIND_NON_NULL;
60 60
         });
61 61
 
Please login to merge, or discard this patch.