@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | public function resolve($rootValue, $args, $context) |
18 | 18 | { |
19 | - return $rootValue['prefix'].$args['message']; |
|
19 | + return $rootValue['prefix'] . $args['message']; |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | 'args' => [ |
20 | 20 | 'message' => ['type' => Type::string()], |
21 | 21 | ], |
22 | - 'resolve' => function ($rootValue, $args) { |
|
22 | + 'resolve' => function($rootValue, $args) { |
|
23 | 23 | return $rootValue['prefix'] . $args['message']; |
24 | 24 | } |
25 | 25 | ], |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | 'x' => ['type' => Type::int()], |
36 | 36 | 'y' => ['type' => Type::int()], |
37 | 37 | ], |
38 | - 'resolve' => function ($calc, $args) { |
|
38 | + 'resolve' => function($calc, $args) { |
|
39 | 39 | return $args['x'] + $args['y']; |
40 | 40 | }, |
41 | 41 | ], |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | 'args' => [ |
20 | 20 | 'message' => ['type' => Type::string()], |
21 | 21 | ], |
22 | - 'resolve' => function ($rootValue, $args) { |
|
22 | + 'resolve' => function($rootValue, $args) { |
|
23 | 23 | return $rootValue['prefix'] . $args['message']; |
24 | 24 | } |
25 | 25 | ], |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | 'x' => ['type' => Type::int()], |
36 | 36 | 'y' => ['type' => Type::int()], |
37 | 37 | ], |
38 | - 'resolve' => function ($calc, $args) { |
|
38 | + 'resolve' => function($calc, $args) { |
|
39 | 39 | return $args['x'] + $args['y']; |
40 | 40 | }, |
41 | 41 | ], |
@@ -121,15 +121,15 @@ |
||
121 | 121 | return DataSource::findComments($story->id, $args['limit'], $args['after']); |
122 | 122 | } |
123 | 123 | |
124 | - public function resolveMentions(Story $story, $args, AppContext $context){ |
|
124 | + public function resolveMentions(Story $story, $args, AppContext $context) { |
|
125 | 125 | return DataSource::findStoryMentions($story->id); |
126 | 126 | } |
127 | 127 | |
128 | - public function resolveLikedBy(Story $story, $args, AppContext $context){ |
|
129 | - return DataSource::findLikes($story->id,10); |
|
128 | + public function resolveLikedBy(Story $story, $args, AppContext $context) { |
|
129 | + return DataSource::findLikes($story->id, 10); |
|
130 | 130 | } |
131 | 131 | |
132 | - public function resolveLikes(Story $story, $args, AppContext $context){ |
|
133 | - return DataSource::findLikes($story->id,10); |
|
132 | + public function resolveLikes(Story $story, $args, AppContext $context) { |
|
133 | + return DataSource::findLikes($story->id, 10); |
|
134 | 134 | } |
135 | 135 | } |