Passed
Push — master ( 4c57c1...e85071 )
by Kirill
05:51
created
src/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
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $value = $this->executeSchema($request, $schema);
76 76
 
77
-        return new Response((array)($value['data'] ?? []), (array)($value['errors'] ?? []));
77
+        return new Response((array) ($value['data'] ?? []), (array) ($value['errors'] ?? []));
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
src/Loader.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
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             }
95 95
         }
96 96
 
97
-        throw new \LogicException($definition->getTypeName() . ' not buildable yet');
97
+        throw new \LogicException($definition->getTypeName().' not buildable yet');
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
src/BuilderInterface.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;
11 11
 
Please login to merge, or discard this patch.
src/Request.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
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
             if (
56 56
                 !array_key_exists($name, $input) && // Empty argument
57
-                !$default->hasDefaultValue() &&     // And has no default value
57
+                !$default->hasDefaultValue() && // And has no default value
58 58
                 $default->getType()->nonNull()      // And required
59 59
             ) {
60 60
                 $message = 'Argument %s required for field %s';
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function getRelations(): iterable
125 125
     {
126
-        throw new \LogicException(__METHOD__ . ' not implemented yet');
126
+        throw new \LogicException(__METHOD__.' not implemented yet');
127 127
     }
128 128
 
129 129
     /**
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
     public function hasRelation(string $name): bool
138 138
     {
139
-        throw new \LogicException(__METHOD__ . ' not implemented yet');
139
+        throw new \LogicException(__METHOD__.' not implemented yet');
140 140
     }
141 141
 
142 142
     /**
Please login to merge, or discard this patch.
src/Builder/ScalarTypeBuilder.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
 
@@ -41,6 +41,6 @@  discard block
 block discarded – undo
41 41
                 return Type::boolean();
42 42
         }
43 43
 
44
-        throw new \LogicException('Type ' . $name . ' does not supported yet');
44
+        throw new \LogicException('Type '.$name.' does not supported yet');
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
src/Builder/ObjectTypeBuilder.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\Builder;
11 11
 
@@ -38,17 +38,17 @@  discard block
 block discarded – undo
38 38
         return new ObjectType([
39 39
             'name'         => $this->type->getName(),
40 40
             'description'  => $this->getDescription(),
41
-            'fields'       => function (): array {
41
+            'fields'       => function(): array {
42 42
                 return iterator_to_array($this->getObjectFields());
43 43
             },
44
-            'resolveField' => function ($value, array $args = [], $context, ResolveInfo $info) {
44
+            'resolveField' => function($value, array $args = [], $context, ResolveInfo $info) {
45 45
                 $request = new Request($args, $info);
46 46
 
47
-                $this->events->dispatch('request:' . $request->getPath(), $request);
47
+                $this->events->dispatch('request:'.$request->getPath(), $request);
48 48
 
49 49
                 $value = $this->fetchData($request, $value);
50 50
 
51
-                $this->events->dispatch('response:' . $request->getPath(), $value, $request);
51
+                $this->events->dispatch('response:'.$request->getPath(), $value, $request);
52 52
 
53 53
                 return $value;
54 54
             },
Please login to merge, or discard this patch.
src/Builder/Type/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\Builder\Type;
11 11
 
Please login to merge, or discard this patch.
src/Builder/SchemaTypeBuilder.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/Common/HasDescription.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\Builder\Common;
11 11
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     private function getTypeDescription(TypeInterface $target): string
47 47
     {
48
-        return $target->getRelationName() . ($target->isList() ? 's' : '') . ' ' .
48
+        return $target->getRelationName().($target->isList() ? 's' : '').' '.
49 49
             $this->formatName($target->getRelationDefinition()->getTypeName());
50 50
     }
51 51
 
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
      */
56 56
     private function getNamedDefinitionDescription(NamedDefinitionInterface $definition): string
57 57
     {
58
-        $result = '"' . $definition->getName() . '" ' . $this->formatName($definition->getTypeName());
58
+        $result = '"'.$definition->getName().'" '.$this->formatName($definition->getTypeName());
59 59
 
60 60
         if ($definition instanceof FieldInterface) {
61
-            $result .= ' of ' . $this->getTypeDescription($definition->getType());
61
+            $result .= ' of '.$this->getTypeDescription($definition->getType());
62 62
         }
63 63
 
64 64
         return $result;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     private function getDefinitionDescription(DefinitionInterface $definition): string
72 72
     {
73
-        return $definition->getTypeName() . ' of ' . $definition->getDocument()->getTypeName();
73
+        return $definition->getTypeName().' of '.$definition->getDocument()->getTypeName();
74 74
     }
75 75
 
76 76
     /**
Please login to merge, or discard this patch.