Completed
Pull Request — master (#57)
by Christoffer
02:10
created
src/Validation/messages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
 function conflictReasonMessage($reason): string
212 212
 {
213 213
     if (\is_array($reason)) {
214
-        return implode(' and ', array_map(function ($subreason) {
214
+        return implode(' and ', array_map(function($subreason) {
215 215
             [$fieldName, $message] = $subreason;
216 216
             return sprintf('subfields "%s" conflict because %s', $fieldName, conflictReasonMessage($message));
217 217
         }, $reason));
Please login to merge, or discard this patch.
src/Validation/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         $context = $this->contextBuilder->build($schema, $document, $typeInfo);
40 40
 
41
-        $visitors = array_map(function (RuleInterface $rule) use ($context) {
41
+        $visitors = array_map(function(RuleInterface $rule) use ($context) {
42 42
             return $rule->setValidationContext($context);
43 43
         }, $rules ?? specifiedRules());
44 44
 
Please login to merge, or discard this patch.
src/Language/Writer/AbstractWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     protected function printNodes(array $nodes): array
38 38
     {
39
-        return array_map(function ($node) {
39
+        return array_map(function($node) {
40 40
             return $this->printer->print($node);
41 41
         }, $nodes);
42 42
     }
Please login to merge, or discard this patch.