Completed
Push — master ( 611e0d...3b7232 )
by Kirill
02:21
created
src/Definition/Behaviour/HasInterfaces.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     public function getInterface(string $name): InterfaceDefinition
68 68
     {
69
-        if (! \in_array($name, $this->interfaces, true)) {
69
+        if (!\in_array($name, $this->interfaces, true)) {
70 70
             $error = \sprintf('%s does not contain an interface named "%s"', $this, $name);
71 71
             throw new TypeNotFoundException($error);
72 72
         }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-     * @return iterable|InterfaceDefinition[]
53
+     * @return \Generator
54 54
      */
55 55
     public function getInterfaces(): iterable
56 56
     {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
     /**
87 87
      * @param InterfaceDefinition $definition
88
-     * @return ProvidesInterfaces
88
+     * @return HasInterfaces
89 89
      */
90 90
     public function withInterface(InterfaceDefinition $definition): ProvidesInterfaces
91 91
     {
Please login to merge, or discard this patch.
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/Contracts/Definition/TypeDefinition.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,5 +36,5 @@
 block discarded – undo
36 36
      * @param TypeDefinition $definition
37 37
      * @return bool
38 38
      */
39
-    public function instanceOf(TypeDefinition $definition): bool;
39
+    public function instanceof(TypeDefinition $definition): bool;
40 40
 }
Please login to merge, or discard this patch.
src/Type.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      * @param TypeInterface $type
68 68
      * @return bool
69 69
      */
70
-    public function instanceOf(TypeInterface $type): bool
70
+    public function instanceof(TypeInterface $type): bool
71 71
     {
72 72
         return $this instanceof $type;
73 73
     }
Please login to merge, or discard this patch.
src/AbstractTypeDefinition.php 2 patches
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.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      * @param TypeDefinition $definition
64 64
      * @return bool
65 65
      */
66
-    public function instanceOf(TypeDefinition $definition): bool
66
+    public function instanceof(TypeDefinition $definition): bool
67 67
     {
68 68
         return $this instanceof $definition;
69 69
     }
Please login to merge, or discard this patch.
src/Contracts/Definition/Dependent/DirectiveLocation.php 1 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,
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     public const LOCATION_TO_TYPES = [
182 182
         self::SCALAR => Type::SCALAR,
183 183
         self::OBJECT => Type::OBJECT,
184
-        self::INTERFACE => Type::INTERFACE,
184
+        self::interface => Type::interface,
185 185
         self::UNION => Type::UNION,
186 186
         self::ENUM => Type::ENUM,
187 187
         self::INPUT_OBJECT => Type::INPUT_OBJECT,
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/Definition/Behaviour/HasTypeIndication.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     /**
69 69
      * @param int $value
70
-     * @return ProvidesTypeIndication
70
+     * @return HasTypeIndication
71 71
      */
72 72
     public function withModifiers(int $value): ProvidesTypeIndication
73 73
     {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     /**
80 80
      * @param string $name
81
-     * @return ProvidesTypeIndication
81
+     * @return HasTypeIndication
82 82
      */
83 83
     public function withTypeDefinition(string $name): ProvidesTypeIndication
84 84
     {
Please login to merge, or discard this patch.
src/Document.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      */
138 138
     public function getDefinition(string $name): ?TypeDefinition
139 139
     {
140
-        if (! \in_array($name, $this->types, true)) {
140
+        if (!\in_array($name, $this->types, true)) {
141 141
             return null;
142 142
         }
143 143
 
Please login to merge, or discard this patch.