Completed
Push — master ( 5231d5...f954c7 )
by Alexandr
04:05 queued 01:38
created
src/Parser/Ast/Fragment.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-     * @param mixed $name
63
+     * @param string $name
64 64
      */
65 65
     public function setName($name)
66 66
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-     * @param mixed $model
79
+     * @param string $model
80 80
      */
81 81
     public function setModel($model)
82 82
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     }
85 85
 
86 86
     /**
87
-     * @return Field[]|Query[]
87
+     * @return Query[]
88 88
      */
89 89
     public function getFields()
90 90
     {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-     * @param Field[]|Query[] $fields
95
+     * @param Field[] $fields
96 96
      */
97 97
     public function setFields($fields)
98 98
     {
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
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     }
75 75
 
76 76
     /**
77
-     * @return Field[]|Query[]|FragmentInterface[]
77
+     * @return Query[]
78 78
      */
79 79
     public function getFields()
80 80
     {
Please login to merge, or discard this patch.
src/Parser/Ast/TypedFragmentReference.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     }
29 29
 
30 30
     /**
31
-     * @return Field[]|Query[]
31
+     * @return Field[]
32 32
      */
33 33
     public function getFields()
34 34
     {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param Field[]|Query[] $fields
39
+     * @param Field[] $fields
40 40
      */
41 41
     public function setFields($fields)
42 42
     {
Please login to merge, or discard this patch.
src/Type/InterfaceType/InterfaceType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
     {
26 26
     }
27 27
 
28
+    /**
29
+     * @param \Youshido\GraphQL\Type\Object\ObjectType $object
30
+     */
28 31
     public function resolveType($object)
29 32
     {
30 33
         return $this->getConfig()->resolveType($object);
Please login to merge, or discard this patch.
src/Validator/SchemaValidator/SchemaValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @param Field                 $objField
58 58
      * @param AbstractInterfaceType $interface
59 59
      *
60
-     * @return bool
60
+     * @return boolean|null
61 61
      *
62 62
      * @throws ConfigurationException
63 63
      */
Please login to merge, or discard this patch.
src/Type/Object/AbstractObjectType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -87,6 +87,9 @@
 block discarded – undo
87 87
         return $this->getConfigValue('interfaces', []);
88 88
     }
89 89
 
90
+    /**
91
+     * @param ObjectType|null $value
92
+     */
90 93
     public function isValidValue($value)
91 94
     {
92 95
         return is_array($value) || is_null($value) || is_object($value);
Please login to merge, or discard this patch.
src/Field/AbstractInputField.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,6 @@
 block discarded – undo
9 9
 
10 10
 
11 11
 use Youshido\GraphQL\Config\Field\InputFieldConfig;
12
-use Youshido\GraphQL\Config\Traits\ResolvableObjectTrait;
13
-use Youshido\GraphQL\Type\InputObject\AbstractInputObjectType;
14 12
 use Youshido\GraphQL\Type\InputTypeInterface;
15 13
 use Youshido\GraphQL\Type\Traits\AutoNameTrait;
16 14
 use Youshido\GraphQL\Type\Traits\FieldsArgumentsAwareObjectTrait;
Please login to merge, or discard this patch.
src/Config/Traits/ResolvableObjectTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 trait ResolvableObjectTrait
15 15
 {
16 16
 
17
+    /**
18
+     * @param string|boolean $value
19
+     */
17 20
     public function resolve($value, array $args, ResolveInfo $info)
18 21
     {
19 22
         if ($resolveFunction = $this->getConfig()->getResolveFunction()) {
Please login to merge, or discard this patch.
src/Validator/ConfigValidator/Rules/TypeValidationRule.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace Youshido\GraphQL\Validator\ConfigValidator\Rules;
10 10
 
11 11
 
12
-use Youshido\GraphQL\Field\AbstractInputField;
13 12
 use Youshido\GraphQL\Field\FieldInterface;
14 13
 use Youshido\GraphQL\Field\InputFieldInterface;
15 14
 use Youshido\GraphQL\Type\AbstractType;
Please login to merge, or discard this patch.