@@ -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 | } |
@@ -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 | ], |