Test Failed
Push — master ( d820d2...d59132 )
by Kirill
02:27
created
src/Definition/Behaviour/HasDeprecation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,6 @@
 block discarded – undo
43 43
      */
44 44
     public function getDeprecationReason(): string
45 45
     {
46
-        return (string)$this->deprecation;
46
+        return (string) $this->deprecation;
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/AbstractTypeDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function getDescription(): string
50 50
     {
51
-        return (string)$this->description;
51
+        return (string) $this->description;
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
src/Common/Renderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         $name = \ucwords(\mb_strtolower(\preg_replace('/\W+/u', ' ', $name)));
24 24
 
25
-        return (string)\str_replace(' ', '', $name);
25
+        return (string) \str_replace(' ', '', $name);
26 26
     }
27 27
 
28 28
     /**
Please login to merge, or discard this patch.
src/Contracts/Definition/Dependent/DirectiveLocation.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      * @version SDL June 2018
111 111
      * @var string
112 112
      */
113
-    public const INTERFACE           = 'INTERFACE';
113
+    public const INTERFACE = 'INTERFACE';
114 114
 
115 115
     /**
116 116
      * @version SDL June 2018
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @version SDL June 2018
111 111
      * @var string
112 112
      */
113
-    public const INTERFACE           = 'INTERFACE';
113
+    public const interface           = 'INTERFACE';
114 114
 
115 115
     /**
116 116
      * @version SDL June 2018
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     public const SDL_LOCATIONS = [
162 162
         self::SCALAR,
163 163
         self::OBJECT,
164
-        self::INTERFACE,
164
+        self::interface,
165 165
         self::UNION,
166 166
         self::ENUM,
167 167
         self::INPUT_OBJECT,
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     public const LOCATION_TO_TYPES = [
181 181
         self::SCALAR                 => TypeInterface::SCALAR,
182 182
         self::OBJECT                 => TypeInterface::OBJECT,
183
-        self::INTERFACE              => TypeInterface::INTERFACE,
183
+        self::interface              => TypeInterface::interface,
184 184
         self::UNION                  => TypeInterface::UNION,
185 185
         self::ENUM                   => TypeInterface::ENUM,
186 186
         self::INPUT_OBJECT           => TypeInterface::INPUT_OBJECT,
Please login to merge, or discard this patch.
src/Type.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
      * @param TypeInterface $type
115 115
      * @return bool
116 116
      */
117
-    public function instanceOf(TypeInterface $type): bool
117
+    public function instanceof(TypeInterface $type): bool
118 118
     {
119 119
         $needle = $type->getName();
120 120
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     private function bootInheritance(\SplStack $stack, array $children = []): void
69 69
     {
70
-        $push = function (string $type) use ($stack): void {
70
+        $push = function(string $type) use ($stack): void {
71 71
             self::$inheritance[$type]   = \array_values(\iterator_to_array($stack));
72 72
             self::$inheritance[$type][] = static::ROOT_TYPE;
73 73
 
Please login to merge, or discard this patch.
src/Stdlib/Scalar/IdScalar.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 an object or as the key for a cache. The ID type is serialized in the 
31 31
 same way as a String; however, defining it as an ID signifies that it 
32 32
 is not intended to be human‐readable.
33
-Description;
33
+description;
34 34
 
35 35
     /**
36 36
      * BooleanScalar constructor.
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function parse($value): string
53 53
     {
54
-        if (! \is_scalar($value)) {
54
+        if (!\is_scalar($value)) {
55 55
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
56 56
         }
57 57
 
58
-        return (string)parent::parse($value);
58
+        return (string) parent::parse($value);
59 59
     }
60 60
 
61 61
     /**
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function serialize($value): string
67 67
     {
68
-        if (! \is_scalar($value)) {
68
+        if (!\is_scalar($value)) {
69 69
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
70 70
         }
71 71
 
72
-        return (string)parent::serialize($value);
72
+        return (string) parent::serialize($value);
73 73
     }
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
src/Stdlib/Directive/SkipDirective.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public const TYPE_DESCRIPTION = <<<Description
40 40
 The @skip directive may be provided for fields, fragment spreads, and inline fragments,
41 41
 and allows for conditional exclusion during execution as described by the if argument.
42
-Description;
42
+description;
43 43
 
44 44
     /**
45 45
      * BooleanScalar constructor.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             ->withArgument((new ArgumentDefinition($this, 'if', 'Boolean'))
55 55
                 ->withLine(56)
56 56
                 ->withModifiers(ArgumentDefinition::IS_NOT_NULL))
57
-            ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation {
57
+            ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation {
58 58
                 return new DirectiveLocation($this, $location);
59 59
             }, self::LOCATIONS));
60 60
     }
Please login to merge, or discard this patch.
src/Stdlib/Directive/DeprecatedDirective.php 2 patches
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     private const LOCATIONS = [
26 26
         DirectiveLocation::OBJECT,
27
-        DirectiveLocation::INTERFACE,
27
+        DirectiveLocation::interface,
28 28
         DirectiveLocation::FIELD_DEFINITION,
29 29
         DirectiveLocation::SCALAR,
30 30
         DirectiveLocation::UNION,
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 The @deprecated directive is used within the type system definition language to
48 48
 indicate deprecated portions of a GraphQL service’s schema, such as deprecated
49 49
 fields on a type or deprecated enum values.
50
-Description;
50
+description;
51 51
 
52 52
     /**
53 53
      * BooleanScalar constructor.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             ->withArgument((new ArgumentDefinition($this, 'reason', 'String'))
63 63
                 ->withLine(39)
64 64
                 ->withDefaultValue('No longer supported'))
65
-            ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation {
65
+            ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation {
66 66
                 return new DirectiveLocation($this, $location);
67 67
             }, self::LOCATIONS));
68 68
     }
Please login to merge, or discard this patch.
src/Stdlib/Directive/IncludeDirective.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 The @include directive may be provided for fields, fragment spreads, and inline
41 41
 fragments, and allows for conditional inclusion during execution as described
42 42
 by the if argument.
43
-Description;
43
+description;
44 44
 
45 45
     /**
46 46
      * BooleanScalar constructor.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             ->withArgument((new ArgumentDefinition($this, 'if', 'Boolean'))
56 56
                 ->withLine(67)
57 57
                 ->withModifiers(ArgumentDefinition::IS_NOT_NULL))
58
-            ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation {
58
+            ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation {
59 59
                 return new DirectiveLocation($this, $location);
60 60
             }, self::LOCATIONS));
61 61
     }
Please login to merge, or discard this patch.