@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 04.12.15 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 04.12.15 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\GraphQL\Definition\Traits; |
9 | 9 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $resolveFunction = $this->get('resolve', null); |
35 | 35 | |
36 | 36 | if($resolveFunction && is_callable($resolveFunction)) { |
37 | - return $resolveFunction($value, $args); |
|
37 | + return $resolveFunction($value, $args); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | return $this->getType()->resolve($value, $args); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | { |
34 | 34 | $resolveFunction = $this->get('resolve', null); |
35 | 35 | |
36 | - if($resolveFunction && is_callable($resolveFunction)) { |
|
36 | + if ($resolveFunction && is_callable($resolveFunction)) { |
|
37 | 37 | return $resolveFunction($value, $args); |
38 | 38 | } |
39 | 39 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 03.12.15 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 03.12.15 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\GraphQL\Definition; |
9 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 03.12.15 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 03.12.15 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\GraphQL\Definition; |
9 | 9 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | ->addField('kind', 'string') |
23 | 23 | ->addField('description', 'string') |
24 | 24 | ->addField('ofType', new QueryListType(), [ |
25 | - 'resolve' => function () { |
|
25 | + 'resolve' => function() { |
|
26 | 26 | return []; |
27 | 27 | } |
28 | 28 | ]) |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function resolve($value = null, $args = []) |
37 | 37 | { |
38 | 38 | /** @var Schema|Field $value */ |
39 | - if($value instanceof Schema){ |
|
39 | + if ($value instanceof Schema) { |
|
40 | 40 | return $value->getQueryType(); |
41 | 41 | } |
42 | 42 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 04.12.15 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 04.12.15 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\GraphQL\Definition\Traits; |
9 | 9 |
@@ -61,7 +61,7 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @return Field[]|Query[] |
|
64 | + * @return Query[] |
|
65 | 65 | */ |
66 | 66 | public function getFields() |
67 | 67 | { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 03.12.15 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 03.12.15 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\GraphQL\Definition; |
9 | 9 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | public function resolve($value = null, $args = []) |
19 | 19 | { |
20 | 20 | /** @var Schema|Field $value */ |
21 | - if($value instanceof Schema){ |
|
21 | + if ($value instanceof Schema) { |
|
22 | 22 | return $value->getMutationType(); |
23 | 23 | } |
24 | 24 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | ->addField('kind', 'string') |
22 | 22 | ->addField('description', 'string') |
23 | 23 | ->addField('ofType', new QueryListType(), [ |
24 | - 'resolve' => function () { |
|
24 | + 'resolve' => function() { |
|
25 | 25 | return []; |
26 | 26 | } |
27 | 27 | ]) |