@@ -35,13 +35,13 @@ |
||
| 35 | 35 | if (empty(self::$objectsHash[$type])) { |
| 36 | 36 | $name = ucfirst($type); |
| 37 | 37 | |
| 38 | - $className = 'Youshido\GraphQL\Type\Scalar\\' . $name . 'Type'; |
|
| 38 | + $className = 'Youshido\GraphQL\Type\Scalar\\'.$name.'Type'; |
|
| 39 | 39 | self::$objectsHash[$type] = new $className(); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | return self::$objectsHash[$type]; |
| 43 | 43 | } else { |
| 44 | - throw new ConfigurationException('Configuration problem with type ' . $type); |
|
| 44 | + throw new ConfigurationException('Configuration problem with type '.$type); |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | 'title' => new StringType(), |
| 28 | 28 | ] |
| 29 | 29 | ]); |
| 30 | - $processor = new Processor(new Schema([ |
|
| 30 | + $processor = new Processor(new Schema([ |
|
| 31 | 31 | 'query' => new ObjectType([ |
| 32 | 32 | 'name' => 'RootQueryType', |
| 33 | 33 | 'fields' => [ |
| 34 | 34 | 'latestReport' => [ |
| 35 | 35 | 'type' => $reportType, |
| 36 | - 'resolve' => function () { |
|
| 36 | + 'resolve' => function() { |
|
| 37 | 37 | return [ |
| 38 | 38 | 'title' => 'Accident #1', |
| 39 | 39 | 'time' => '13:30:12', |