@@ -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 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | return new Schema( |
68 | 68 | SchemaConfig::create() |
69 | 69 | ->setQuery($this->schemaBuilder->buildQueryType()) |
70 | - ->setTypeLoader(function ($name) { |
|
70 | + ->setTypeLoader(function($name) { |
|
71 | 71 | return $this->schemaBuilder->loadType($name); |
72 | 72 | }) |
73 | 73 | ); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $totalFields = 0; |
35 | 35 | foreach ($schema->getTypeMap() as $type) { |
36 | - if (! ($type instanceof ObjectType)) { |
|
36 | + if (!($type instanceof ObjectType)) { |
|
37 | 37 | continue; |
38 | 38 | } |
39 | 39 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | if ($this->typeIndex > $this->config['totalTypes']) { |
58 | 58 | throw new \Exception( |
59 | - "Cannot create new type: there are already {$this->typeIndex} ". |
|
59 | + "Cannot create new type: there are already {$this->typeIndex} " . |
|
60 | 60 | "which exceeds allowed number of {$this->config['totalTypes']} types total" |
61 | 61 | ); |
62 | 62 | } |