Test Setup Failed
Push — master ( 9fbc25...c24493 )
by Kirill
03:23
created
Registry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx;
11 11
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $name = $definition->getName();
66 66
 
67
-        if (! \array_key_exists($name, $this->types)) {
67
+        if (!\array_key_exists($name, $this->types)) {
68 68
             $this->types[$name] = $this->build($definition);
69 69
         }
70 70
 
Please login to merge, or discard this patch.
Adapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx;
11 11
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $schema->assertValid();
89 89
         }
90 90
 
91
-        return function ($rootValue = null, $context = null) use ($reflection, $schema, $request): ExecutionResult {
91
+        return function($rootValue = null, $context = null) use ($reflection, $schema, $request): ExecutionResult {
92 92
             return GraphQL::executeQuery(
93 93
                 $schema,
94 94
                 $request->getQuery(),
Please login to merge, or discard this patch.
Input.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx;
11 11
 
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
             $name = $default->getName();
87 87
 
88 88
             if (
89
-                ! \array_key_exists($name, $input) && // Empty argument
90
-                ! $default->hasDefaultValue() &&      // And has no default value
89
+                !\array_key_exists($name, $input) && // Empty argument
90
+                !$default->hasDefaultValue() && // And has no default value
91 91
                 $default->isNonNull()                 // And required
92 92
             ) {
93 93
                 $message = \sprintf('Argument %s required for field %s',
Please login to merge, or discard this patch.
FieldResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx;
11 11
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $this->loadRouteDirective($object, $field);
64 64
 
65 65
 
66
-        if (! $this->router->has($object)) {
66
+        if (!$this->router->has($object)) {
67 67
             return null;
68 68
         }
69 69
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         // TODO Match method
77 77
         // $request->getMethod()
78 78
 
79
-        return function ($parent, array $arguments = [], $ctx, ResolveInfo $info) use ($route, $field) {
79
+        return function($parent, array $arguments = [], $ctx, ResolveInfo $info) use ($route, $field) {
80 80
             return $route->call([
81 81
                 InputInterface::class => new Input($field, $info, $arguments, $parent),
82 82
                 TypeDefinition::class => $field,
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     private function loadRouteDirective(ObjectDefinition $object, FieldDefinition $field): void
94 94
     {
95
-        if (! $field->hasDirective(self::DIRECTIVE)) {
95
+        if (!$field->hasDirective(self::DIRECTIVE)) {
96 96
             return;
97 97
         }
98 98
 
Please login to merge, or discard this patch.
Builders/DependentDefinitionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx\Builders;
11 11
 
Please login to merge, or discard this patch.
Builders/InterfaceBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx\Builders;
11 11
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         return new InterfaceType([
27 27
             'name'        => $this->reflection->getName(),
28 28
             'description' => $this->reflection->getDescription(),
29
-            'fields'      => function (): array {
29
+            'fields'      => function(): array {
30 30
                 return [];
31 31
             },
32 32
         ]);
Please login to merge, or discard this patch.
Builders/ObjectBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx\Builders;
11 11
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         return new ObjectType([
28 28
             'name'        => $this->reflection->getName(),
29 29
             'description' => $this->reflection->getDescription(),
30
-            'fields'      => function (): array {
30
+            'fields'      => function(): array {
31 31
                 return FieldBuilder::buildFields($this->reflection, $this->getRegistry());
32 32
             },
33 33
             'interfaces'  => $this->buildInterfaces(),
Please login to merge, or discard this patch.
Builders/ArgumentBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx\Builders;
11 11
 
Please login to merge, or discard this patch.
Builders/TypeBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Adapters\Webonyx\Builders;
11 11
 
Please login to merge, or discard this patch.