Completed
Pull Request — master (#204)
by Ryan
11:34
created
src/Introspection/Traits/TypeCollectorTrait.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
         }
73 73
     }
74 74
 
75
+    /**
76
+     * @param AbstractObjectType $type
77
+     */
75 78
     private function checkAndInsertInterfaces($type): void
76 79
     {
77 80
         foreach ((array) $type->getConfig()->getInterfaces() as $interface) {
@@ -81,7 +84,7 @@  discard block
 block discarded – undo
81 84
     }
82 85
 
83 86
     /**
84
-     * @param $type AbstractObjectType
87
+     * @param AbstractObjectType $type AbstractObjectType
85 88
      */
86 89
     private function collectFieldsArgsTypes($type): void
87 90
     {
@@ -98,6 +101,9 @@  discard block
 block discarded – undo
98 101
         }
99 102
     }
100 103
 
104
+    /**
105
+     * @param AbstractType $type
106
+     */
101 107
     private function insertType($name, $type)
102 108
     {
103 109
         if (!\array_key_exists($name, $this->types)) {
Please login to merge, or discard this patch.
src/Parser/Ast/Argument.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-     * @return mixed
44
+     * @return string
45 45
      */
46 46
     public function getName()
47 47
     {
Please login to merge, or discard this patch.
src/Parser/Ast/Directive.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-     * @return mixed
42
+     * @return string
43 43
      */
44 44
     public function getName()
45 45
     {
Please login to merge, or discard this patch.
src/Parser/Ast/Interfaces/ValueInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,5 +20,8 @@
 block discarded – undo
20 20
 {
21 21
     public function getValue();
22 22
 
23
+    /**
24
+     * @return void
25
+     */
23 26
     public function setValue($value);
24 27
 }
Please login to merge, or discard this patch.
src/Parser/Ast/Query.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @return Field[]|FragmentInterface[]|Query[]
64
+     * @return Query[]
65 65
      */
66 66
     public function getFields()
67 67
     {
Please login to merge, or discard this patch.
src/Parser/Token.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -82,6 +82,10 @@
 block discarded – undo
82 82
     /** @var int */
83 83
     private $column;
84 84
 
85
+    /**
86
+     * @param integer $line
87
+     * @param integer $column
88
+     */
85 89
     public function __construct($type, $line, $column, $data = null)
86 90
     {
87 91
         $this->type = $type;
Please login to merge, or discard this patch.
src/Parser/Tokenizer.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -219,6 +219,9 @@  discard block
 block discarded – undo
219 219
         return new Token($this->getKeyword($value), $this->getLine(), $this->getColumn(), $value);
220 220
     }
221 221
 
222
+    /**
223
+     * @param string $name
224
+     */
222 225
     protected function getKeyword($name)
223 226
     {
224 227
         switch ($name) {
@@ -302,6 +305,9 @@  discard block
 block discarded – undo
302 305
         }
303 306
     }
304 307
 
308
+    /**
309
+     * @param string $message
310
+     */
305 311
     protected function createException($message)
306 312
     {
307 313
         return new SyntaxErrorException(\sprintf('%s', $message), $this->getLocation());
Please login to merge, or discard this patch.
src/Relay/Connection/ArrayConnection.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @param $cursor string
54 54
      *
55
-     * @return int|null
55
+     * @return string|null
56 56
      *
57 57
      * @deprecated Use cursorToKey instead.
58 58
      */
@@ -109,6 +109,10 @@  discard block
 block discarded – undo
109 109
         return self::connectionFromArraySlice($data, $args, 0, \count($data));
110 110
     }
111 111
 
112
+    /**
113
+     * @param integer $sliceStart
114
+     * @param integer $arrayLength
115
+     */
112 116
     public static function connectionFromArraySlice(array $data, array $args, $sliceStart, $arrayLength)
113 117
     {
114 118
         $after  = $args['after']  ?? null;
Please login to merge, or discard this patch.
src/Relay/Node.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     }
34 34
 
35 35
     /**
36
-     * @param $typeName string name of type
36
+     * @param string $typeName string name of type
37 37
      * @param $id       int local id
38 38
      *
39 39
      * @return string global id
Please login to merge, or discard this patch.