Test Setup Failed
Push — master ( c65f95...c9ee00 )
by Kirill
01:53
created
src/Builder/EnumTypeBuilder.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\Builder;
11 11
 
Please login to merge, or discard this patch.
src/Builder/InputTypeBuilder.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\Builder;
11 11
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         return new InputObjectType([
30 30
             'name'         => $this->type->getName(),
31 31
             'description'  => $this->type->getDescription(),
32
-            'fields'       => function (): array {
32
+            'fields'       => function(): array {
33 33
                 return iterator_to_array($this->getInputFields());
34 34
             }
35 35
         ]);
Please login to merge, or discard this patch.
src/Adapter.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
 
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
         $value = $this->executeSchema($request, $schema);
104 104
 
105 105
         [$data, $errors] = [
106
-            (array)($value['data'] ?? []),
107
-            (array)($value['errors'] ?? []),
106
+            (array) ($value['data'] ?? []),
107
+            (array) ($value['errors'] ?? []),
108 108
         ];
109 109
 
110 110
         $response = new Response($data, $errors);
Please login to merge, or discard this patch.
src/Builder/ObjectTypeBuilder.php 1 patch
Spacing   +6 added lines, -6 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\Builder;
11 11
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         return new ObjectType([
60 60
             'name'         => $this->type->getName(),
61 61
             'description'  => $this->type->getDescription(),
62
-            'fields'       => function (): array {
62
+            'fields'       => function(): array {
63 63
                 return iterator_to_array($this->getObjectFields());
64 64
             },
65 65
             'resolveField' => $this->getFieldResolver(),
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     private function getObjectFields(): \Traversable
74 74
     {
75 75
         foreach ($this->type->getFields() as $field) {
76
-            if ((bool)$this->dispatchFieldEvent($field)) {
76
+            if ((bool) $this->dispatchFieldEvent($field)) {
77 77
                 yield $field->getName() => $this->make($field, FieldBuilder::class);
78 78
             }
79 79
         }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     private function getFieldResolver(): \Closure
97 97
     {
98
-        return function ($value, array $args = [], $context, ResolveInfo $info) {
98
+        return function($value, array $args = [], $context, ResolveInfo $info) {
99 99
             $input = $this->createInput($info, $args);
100 100
 
101 101
             $input = $this->dispatchRequestEvent($input);
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     private function dispatchRequestEvent(InputInterface $input): InputInterface
126 126
     {
127
-        $name = 'request:' . $input->getPath();
127
+        $name = 'request:'.$input->getPath();
128 128
 
129 129
         return $this->events->dispatch($name, $input);
130 130
     }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     private function dispatchResponseEvent(InputInterface $input, $output)
138 138
     {
139
-        $name = 'request:' . $input->getPath();
139
+        $name = 'request:'.$input->getPath();
140 140
 
141 141
         return $this->events->dispatch($name, $output);
142 142
     }
Please login to merge, or discard this patch.
src/Repository.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
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $output = new Output($parent, $parent);
84 84
 
85
-        return (object)$route->call($this->router->getContainer(), [
85
+        return (object) $route->call($this->router->getContainer(), [
86 86
             'route'  => $route,
87 87
             'input'  => $input,
88 88
             'output' => $output,
Please login to merge, or discard this patch.
src/Input.php 1 patch
Spacing   +5 added lines, -5 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
 
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
             $name = $default->getName();
63 63
 
64 64
             if (
65
-                ! array_key_exists($name, $input) && // Empty argument
66
-                ! $default->hasDefaultValue() &&     // And has no default value
65
+                !array_key_exists($name, $input) && // Empty argument
66
+                !$default->hasDefaultValue() && // And has no default value
67 67
                 $default->getType()->nonNull()      // And required
68 68
             ) {
69 69
                 $message = 'Argument %s required for field %s';
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public function getRelations(): iterable
132 132
     {
133
-        throw new \LogicException(__METHOD__ . ' not implemented yet');
133
+        throw new \LogicException(__METHOD__.' not implemented yet');
134 134
     }
135 135
 
136 136
     public function hasRelation(string $name): bool
137 137
     {
138
-        throw new \LogicException(__METHOD__ . ' not implemented yet');
138
+        throw new \LogicException(__METHOD__.' not implemented yet');
139 139
     }
140 140
 
141 141
     /**
Please login to merge, or discard this patch.