Passed
Pull Request — master (#209)
by Christoffer
02:17
created
src/Schema/DefinitionPrinter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
     {
24 24
         return $this->printFilteredSchema(
25 25
             $schema,
26
-            function (Directive $directive): bool {
26
+            function(Directive $directive): bool {
27 27
                 return !isSpecifiedDirective($directive);
28 28
             },
29
-            function (TypeInterface $type): bool {
29
+            function(TypeInterface $type): bool {
30 30
                 return !isSpecifiedScalarType($type) && !isIntrospectionType($type);
31 31
             },
32 32
             $options
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
     {
42 42
         return $this->printFilteredSchema(
43 43
             $schema,
44
-            function (Directive $directive): bool {
44
+            function(Directive $directive): bool {
45 45
                 return isSpecifiedDirective($directive);
46 46
             },
47
-            function (TypeInterface $type): bool {
47
+            function(TypeInterface $type): bool {
48 48
                 return isIntrospectionType($type);
49 49
             },
50 50
             $options
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $types = \array_filter(\array_values($schema->getTypeMap()), $filter);
111 111
 
112
-        usort($types, function (TypeInterface $typeA, TypeInterface $typeB) {
112
+        usort($types, function(TypeInterface $typeA, TypeInterface $typeB) {
113 113
             return \strcasecmp($typeA->getName(), $typeB->getName());
114 114
         });
115 115
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      */
275 275
     protected function printMany(array $definitions, array $options): array
276 276
     {
277
-        return \array_map(function ($definition) use ($options) {
277
+        return \array_map(function($definition) use ($options) {
278 278
             return $this->print($definition, $options);
279 279
         }, $definitions);
280 280
     }
Please login to merge, or discard this patch.
src/Language/NodePrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -370,7 +370,7 @@
 block discarded – undo
370 370
      */
371 371
     protected function printMany(array $nodes): array
372 372
     {
373
-        return \array_map(function ($node) {
373
+        return \array_map(function($node) {
374 374
             return $this->print($node);
375 375
         }, $nodes);
376 376
     }
Please login to merge, or discard this patch.