Completed
Push — master ( df6c68...31072e )
by Kirill
84:29 queued 38:54
created
src/SDL/Standard/Directives/Deprecation/Reason.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
 
26 26
     private const ARGUMENT_DEFAULT_VALUE = 'No longer supported';
27 27
 
28
-    private const ARGUMENT_DESCRIPTION = 'You can either supply a reason argument ' .
29
-        'with a string value or not supply one and receive a "No longer supported" ' .
28
+    private const ARGUMENT_DESCRIPTION = 'You can either supply a reason argument '.
29
+        'with a string value or not supply one and receive a "No longer supported" '.
30 30
         'message when introspected';
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/SDL/Standard/Scalars/FloatType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * Short Float scalar public description.
28 28
      */
29
-    protected const TYPE_DESCRIPTION = 'The `Float` scalar type represents signed double-precision fractional ' .
29
+    protected const TYPE_DESCRIPTION = 'The `Float` scalar type represents signed double-precision fractional '.
30 30
         'values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).';
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/SDL/Standard/Scalars/IntType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * Short Int scalar public description.
28 28
      */
29
-    protected const TYPE_DESCRIPTION = 'The `Int` scalar type represents non-fractional signed whole numeric ' .
29
+    protected const TYPE_DESCRIPTION = 'The `Int` scalar type represents non-fractional signed whole numeric '.
30 30
         'values. Int can represent values between -(2^31) and 2^31 - 1.';
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/SDL/Standard/Scalars/IDType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
     /**
29 29
      * Short ID scalar public description.
30 30
      */
31
-    protected const TYPE_DESCRIPTION = 'The `ID` scalar type represents a unique identifier, often used to ' .
32
-        'refetch an object or as key for a cache. The ID type appears in a JSON ' .
33
-        'response as a String; however, it is not intended to be human-readable. ' .
34
-        'When expected as an input type, any string (such as `"4"`) or integer ' .
31
+    protected const TYPE_DESCRIPTION = 'The `ID` scalar type represents a unique identifier, often used to '.
32
+        'refetch an object or as key for a cache. The ID type appears in a JSON '.
33
+        'response as a String; however, it is not intended to be human-readable. '.
34
+        'When expected as an input type, any string (such as `"4"`) or integer '.
35 35
         '(such as `4`) input value will be accepted as an ID.';
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
src/SDL/Standard/Scalars/StringType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     /**
27 27
      * Short String scalar public description.
28 28
      */
29
-    protected const TYPE_DESCRIPTION = 'The `String` scalar type represents textual data, represented as UTF-8 ' .
30
-        'character sequences. The String type is most often used by GraphQL to ' .
29
+    protected const TYPE_DESCRIPTION = 'The `String` scalar type represents textual data, represented as UTF-8 '.
30
+        'character sequences. The String type is most often used by GraphQL to '.
31 31
         'represent free-form human-readable text.';
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/SDL/Contracts/Type.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,15 +26,15 @@
 block discarded – undo
26 26
     public const SCHEMA = 'Schema';
27 27
 
28 28
     public const OBJECT = 'Object';
29
-    public const OBJECT_FIELD = 'Field';      // TODO Rename
30
-    public const OBJECT_ARGUMENT = 'Argument';   // TODO Rename
29
+    public const OBJECT_FIELD = 'Field'; // TODO Rename
30
+    public const OBJECT_ARGUMENT = 'Argument'; // TODO Rename
31 31
 
32 32
     public const INTERFACE = 'Interface';
33
-    public const INTERFACE_FIELD = 'Field';      // TODO Rename
34
-    public const INTERFACE_ARGUMENT = 'Argument';   // TODO Rename
33
+    public const INTERFACE_FIELD = 'Field'; // TODO Rename
34
+    public const INTERFACE_ARGUMENT = 'Argument'; // TODO Rename
35 35
 
36 36
     public const DIRECTIVE = 'Directive';
37
-    public const DIRECTIVE_ARGUMENT = 'Argument';   // TODO Rename
37
+    public const DIRECTIVE_ARGUMENT = 'Argument'; // TODO Rename
38 38
 
39 39
     public const INPUT = 'Input';
40 40
     public const INPUT_FIELD = 'InputField';
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public const OBJECT_FIELD = 'Field';      // TODO Rename
30 30
     public const OBJECT_ARGUMENT = 'Argument';   // TODO Rename
31 31
 
32
-    public const INTERFACE = 'Interface';
32
+    public const interface = 'Interface';
33 33
     public const INTERFACE_FIELD = 'Field';      // TODO Rename
34 34
     public const INTERFACE_ARGUMENT = 'Argument';   // TODO Rename
35 35
 
Please login to merge, or discard this patch.
src/SDL/Reflection/Builder/Invocations/InputInvocationBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function onCompile(NodeInterface $ast): bool
67 67
     {
68
-        $key = (string)$ast->getChild(0)->getChild(0)->getValue();
68
+        $key = (string) $ast->getChild(0)->getChild(0)->getValue();
69 69
         $value = $ast->getChild(1)->getChild(0);
70 70
 
71 71
         $this->arguments[$key] = $this->parseValue($value, $this->parentType, \array_merge($this->path, [$key]));
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function getTypeDefinition(): ?TypeDefinition
99 99
     {
100
-        $reduce = function (?InputDefinition $carry, $item): ?TypeDefinition {
100
+        $reduce = function(?InputDefinition $carry, $item): ?TypeDefinition {
101 101
             /** @var ArgumentDefinition|null $argument */
102 102
             $argument = $carry->getArgument($item);
103 103
             // TODO $argument can be null. Add validation?
Please login to merge, or discard this patch.
src/SDL/Reflection/Coercion/ArgumentCoercion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             return;
38 38
         }
39 39
 
40
-        if (! $type->hasDefaultValue()) {
40
+        if (!$type->hasDefaultValue()) {
41 41
             $this->inferenceValue($type);
42 42
             return;
43 43
         }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
          *      field(arg: [Float]  = null)    → field(arg: [Float]  = null)
67 67
          * </code>
68 68
          */
69
-        $isListDefinedByNonList = ($value !== null && ! \is_array($value));
69
+        $isListDefinedByNonList = ($value !== null && !\is_array($value));
70 70
 
71 71
         /**
72 72
          * The allowable conversion method for NULL:
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
          *      field(argument: Type = NULL): Type
122 122
          * </code>
123 123
          */
124
-        if (! $argument->isNonNull()) {
124
+        if (!$argument->isNonNull()) {
125 125
             $this->set($argument, null);
126 126
             return;
127 127
         }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     private function set(BaseArgument $argument, $value): void
135 135
     {
136
-        $invocation = function ($value): void {
136
+        $invocation = function($value): void {
137 137
             /** @var BaseArgument $this */
138 138
             $this->defaultValue = $value;
139 139
             $this->hasDefaultValue = true;
Please login to merge, or discard this patch.