Completed
Pull Request — master (#204)
by Ryan
11:34
created
src/Parser/Ast/Directive.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 3/17/17.
15 15
  */
Please login to merge, or discard this patch.
src/Parser/Ast/Interfaces/ValueInterface.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 01.12.15.
15 15
  */
Please login to merge, or discard this patch.
src/Parser/Ast/Query.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 23.11.15.
15 15
  */
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function hasFields()
75 75
     {
76
-        return (bool) \count($this->fields);
76
+        return (bool)\count($this->fields);
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.
src/Parser/Token.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 23.11.15.
15 15
  */
Please login to merge, or discard this patch.
src/Parser/Tokenizer.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 23.11.15.
15 15
  */
@@ -279,9 +279,9 @@  discard block
 block discarded – undo
279 279
         $value = \mb_substr($this->source, $start, $this->pos - $start);
280 280
 
281 281
         if (false === \mb_strpos($value, '.')) {
282
-            $value = (int) $value;
282
+            $value = (int)$value;
283 283
         } else {
284
-            $value = (float) $value;
284
+            $value = (float)$value;
285 285
         }
286 286
 
287 287
         return new Token(Token::TYPE_NUMBER, $this->getLine(), $this->getColumn(), $value);
Please login to merge, or discard this patch.
src/Relay/Connection/ArrayConnection.php 2 patches
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 17.05.16.
15 15
  */
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         $index = \array_search($object, $data, true);
30 30
 
31
-        return false === $index ? null : (string) self::keyToCursor($index);
31
+        return false === $index ? null : (string)self::keyToCursor($index);
32 32
     }
33 33
 
34 34
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     public static function keyToCursor($key)
48 48
     {
49
-        return \base64_encode(self::PREFIX . $key);
49
+        return \base64_encode(self::PREFIX.$key);
50 50
     }
51 51
 
52 52
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $offset = \array_search($key, \array_keys($array), true);
102 102
         }
103 103
 
104
-        return null === $offset ? $default : (int) $offset;
104
+        return null === $offset ? $default : (int)$offset;
105 105
     }
106 106
 
107 107
     public static function connectionFromArray(array $data, array $args = [])
Please login to merge, or discard this patch.
src/Relay/Node.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 10.05.16.
15 15
  */
Please login to merge, or discard this patch.
src/Type/SchemaDirectivesList.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
         return $this->directivesList;
71 71
     }
72 72
 
73
+    /**
74
+     * @param DirectiveInterface $directive
75
+     */
73 76
     private function getDirectiveName($directive)
74 77
     {
75 78
         if (\is_string($directive)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 3/24/17.
15 15
  */
Please login to merge, or discard this patch.
src/Validator/ConfigValidator/ConfigValidatorInterface.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,5 +18,8 @@
 block discarded – undo
18 18
 
19 19
 interface ConfigValidatorInterface
20 20
 {
21
+    /**
22
+     * @return boolean
23
+     */
21 24
     public function validate($data, $rules = [], $allowExtraFields = null);
22 25
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 01.12.15.
15 15
  */
Please login to merge, or discard this patch.