Completed
Pull Request — master (#155)
by
unknown
02:42
created
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         /** @var AbstractObjectType $objectType */
29 29
         if (!(TypeService::isObjectType($objectType) || TypeService::isInputObjectType($objectType)) || !$objectType->hasField($ast->getName())) {
30
-            $availableFieldNames = implode(', ', array_map(function (FieldInterface $field) {
30
+            $availableFieldNames = implode(', ', array_map(function(FieldInterface $field) {
31 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());
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function assertValidArguments(FieldInterface $field, AstFieldInterface $query, Request $request)
38 38
     {
39
-        $requiredArguments = array_filter($field->getArguments(), function (InputField $argument) {
39
+        $requiredArguments = array_filter($field->getArguments(), function(InputField $argument) {
40 40
             return $argument->getType()->getKind() === TypeMap::KIND_NON_NULL;
41 41
         });
42 42
 
Please login to merge, or discard this patch.
src/Type/Enum/AbstractEnumType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             }
57 57
         }
58 58
 
59
-        $allowedValues = array_map(function (array $value) {
59
+        $allowedValues = array_map(function(array $value) {
60 60
             return sprintf('%s (%s)', $value['name'], $value['value']);
61 61
         }, $this->getConfig()->get('values'));
62 62
         $this->lastError = sprintf('Value must be one of the allowed ones: %s', implode(', ', $allowedValues));
Please login to merge, or discard this patch.