@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'id' => ['type' => 'int'], |
40 | 40 | 'name' => ['type' => 'string'] |
41 | 41 | ], |
42 | - 'resolve' => function () { |
|
42 | + 'resolve' => function() { |
|
43 | 43 | return [ |
44 | 44 | 'id' => 1, |
45 | 45 | 'name' => 'Alex' |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | 'id' => ['type' => 'int'], |
116 | 116 | 'name' => ['type' => 'string'] |
117 | 117 | ], |
118 | - 'resolve' => function () { |
|
118 | + 'resolve' => function() { |
|
119 | 119 | return [ |
120 | 120 | 'id' => 1, |
121 | 121 | 'name' => 'Alex' |
@@ -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: 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 |
@@ -226,10 +226,10 @@ |
||
226 | 226 | |
227 | 227 | $value = substr($this->source, $start, $this->pos - $start); |
228 | 228 | |
229 | - if(strpos($value, '.') === false){ |
|
230 | - $value = (int) $value; |
|
229 | + if (strpos($value, '.') === false) { |
|
230 | + $value = (int)$value; |
|
231 | 231 | } else { |
232 | - $value = (float) $value; |
|
232 | + $value = (float)$value; |
|
233 | 233 | } |
234 | 234 | |
235 | 235 | return new Token(Token::TYPE_NUMBER, $value); |
@@ -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 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 23.11.15 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 23.11.15 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\GraphQL; |
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 | { |
@@ -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 |
@@ -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 | ]) |