Completed
Pull Request — master (#204)
by Ryan
11:34
created
src/Config/TypeConfigInterface.php 2 patches
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -23,14 +23,27 @@
 block discarded – undo
23 23
     /**
24 24
      * @param Field|string $field
25 25
      * @param array        $fieldInfo
26
+     * @return Traits\FieldsAwareConfigTrait
26 27
      */
27 28
     public function addField($field, $fieldInfo = null);
28 29
 
30
+    /**
31
+     * @return Field
32
+     */
29 33
     public function getField($name);
30 34
 
35
+    /**
36
+     * @return Traits\FieldsAwareConfigTrait
37
+     */
31 38
     public function removeField($name);
32 39
 
40
+    /**
41
+     * @return boolean
42
+     */
33 43
     public function hasField($name);
34 44
 
45
+    /**
46
+     * @return Field[]
47
+     */
35 48
     public function getFields();
36 49
 }
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: 17.12.15.
15 15
  */
Please login to merge, or discard this patch.
src/Execution/Reducer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      * Fragments (anonymous and named), and Fields.  The core of the function is simple: recurse until we hit the base
100 100
      * case of a Field and yield that back up to the visitor up in `doVisit`.
101 101
      *
102
-     * @param Field|Query|\Youshido\GraphQL\Parser\Ast\Interfaces\FragmentInterface $queryNode
102
+     * @param Query $queryNode
103 103
      * @param FieldInterface                                                        $currentLevelAST
104 104
      *
105 105
      * @return \Generator
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: 07.11.16.
15 15
  */
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
                     while ($next) {
125 125
                         $received = (yield $next);
126
-                        $childrenScore += (int) $received;
126
+                        $childrenScore += (int)$received;
127 127
                         $next = $gen->send($received);
128 128
                     }
129 129
                 } else {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
                                 while ($next) {
139 139
                                     $received = (yield $next);
140
-                                    $childrenScore += (int) $received;
140
+                                    $childrenScore += (int)$received;
141 141
                                     $next = $gen->send($received);
142 142
                                 }
143 143
                             }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
                         while ($next) {
150 150
                             $received = (yield $next);
151
-                            $childrenScore += (int) $received;
151
+                            $childrenScore += (int)$received;
152 152
                             $next = $gen->send($received);
153 153
                         }
154 154
                     }
Please login to merge, or discard this patch.
src/Execution/ResolveInfo.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     /**
72 72
      * @param string $fieldName
73 73
      *
74
-     * @return Field|Query|null
74
+     * @return Field|null
75 75
      */
76 76
     public function getFieldAST($fieldName)
77 77
     {
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
  * This file is a part of GraphQL project.
15 15
  *
Please login to merge, or discard this patch.
src/Introspection/Traits/TypeCollectorTrait.php 2 patches
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.
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: 04.12.15.
15 15
  */
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     private function checkAndInsertInterfaces($type): void
76 76
     {
77
-        foreach ((array) $type->getConfig()->getInterfaces() as $interface) {
77
+        foreach ((array)$type->getConfig()->getInterfaces() as $interface) {
78 78
             /* @var AbstractInterfaceType $interface */
79 79
             $this->insertType($interface->getName(), $interface);
80 80
         }
Please login to merge, or discard this patch.
src/Parser/Ast/Argument.php 2 patches
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.
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/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.