Passed
Push — master ( e07d78...96b2f8 )
by Kirill
06:05
created
src/Support.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     private static $syntaxNonNull = '%s!';
47 47
 
48 48
     /**
49
-     * @param AllowsTypeIndication|Definition $type
49
+     * @param Definition $type
50 50
      * @return string
51 51
      */
52 52
     protected function typeToString(Definition $type): string
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     protected function valueWithType($value): string
107 107
     {
108
-        return \mb_strtolower(\gettype($value)) . ' ' . $this->valueToString($value);
108
+        return \mb_strtolower(\gettype($value)).' '.$this->valueToString($value);
109 109
     }
110 110
 
111 111
     /**
@@ -164,6 +164,6 @@  discard block
 block discarded – undo
164 164
             return $result;
165 165
         }
166 166
 
167
-        return (string)$result;
167
+        return (string) $result;
168 168
     }
169 169
 }
Please login to merge, or discard this patch.
src/Base/Definitions/BaseInterface.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * Base type name
27 27
      */
28
-    protected const TYPE_NAME = Type::INTERFACE;
28
+    protected const TYPE_NAME = Type::interface;
29 29
 
30 30
     /**
31 31
      * @return array
Please login to merge, or discard this patch.
src/Contracts/Type.php 2 patches
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.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**#@+
18 18
      * Virtual types group
19 19
      */
20
-    public const DOCUMENT           = 'Document';
20
+    public const DOCUMENT = 'Document';
21 21
     /**#@-*/
22 22
 
23 23
     /**#@+
@@ -26,15 +26,15 @@  discard block
 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';
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
     public const INPUT_INVOCATION       = self::INPUT;
53 53
     public const DIRECTIVE_INVOCATION   = self::DIRECTIVE;
54 54
     // Extensions
55
-    public const EXTENSION          = 'Extension';
55
+    public const EXTENSION = 'Extension';
56 56
     /**#@-*/
57 57
 }
Please login to merge, or discard this patch.
src/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/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/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/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/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/Base/Behavior/BaseDeprecations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
      */
36 36
     public function getDeprecationReason(): string
37 37
     {
38
-        return (string)$this->deprecationReason;
38
+        return (string) $this->deprecationReason;
39 39
     }
40 40
 }
Please login to merge, or discard this patch.