@@ -9,7 +9,6 @@ |
||
| 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; |
@@ -20,6 +20,9 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | private $uid; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $uid |
|
| 25 | + */ |
|
| 23 | 26 | public function __construct($uid) |
| 24 | 27 | { |
| 25 | 28 | $this->uid = $uid; |
@@ -34,6 +37,9 @@ discard block |
||
| 34 | 37 | class uid { |
| 35 | 38 | private $uid; |
| 36 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $uid |
|
| 42 | + */ |
|
| 37 | 43 | public function __construct($uid) |
| 38 | 44 | { |
| 39 | 45 | $this->uid = $uid; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | ] |
| 81 | 81 | ]); |
| 82 | 82 | |
| 83 | - $finalConfig = new TestConfig(['name' => $name . 'final', 'resolve' => function () { return []; }], $object, true); |
|
| 83 | + $finalConfig = new TestConfig(['name' => $name.'final', 'resolve' => function() { return []; }], $object, true); |
|
| 84 | 84 | $this->assertEquals($finalConfig->getType(), null); |
| 85 | 85 | |
| 86 | 86 | $rules['resolve']['required'] = true; |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function testFinalRule() |
| 102 | 102 | { |
| 103 | - ConfigValidator::getInstance()->assertValidConfig(new TestConfig(['name' => 'Test' . 'final'], null, true)); |
|
| 103 | + ConfigValidator::getInstance()->assertValidConfig(new TestConfig(['name' => 'Test'.'final'], null, true)); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | ] |
| 128 | 128 | ] |
| 129 | 129 | ]); |
| 130 | - $object = new ObjectType([ |
|
| 130 | + $object = new ObjectType([ |
|
| 131 | 131 | 'name' => 'Project', |
| 132 | 132 | 'fields' => [ |
| 133 | 133 | 'id' => new IdType(), |