@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | use Youshido\GraphQL\Type\Scalar\StringType; |
8 | 8 | use Youshido\GraphQL\Validator\SchemaValidator\SchemaValidator; |
9 | 9 | |
10 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
10 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
11 | 11 | |
12 | 12 | $schema = new Schema([ |
13 | 13 | 'query' => new ObjectType([ |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | 'fields' => [ |
16 | 16 | 'currentTime' => [ |
17 | 17 | 'type' => new StringType(), |
18 | - 'resolve' => function () { |
|
18 | + 'resolve' => function() { |
|
19 | 19 | return date('Y-m-d H:ia'); |
20 | 20 | } |
21 | 21 | ] |
@@ -28,4 +28,4 @@ discard block |
||
28 | 28 | $processor = new Processor($schema); |
29 | 29 | |
30 | 30 | $processor->processPayload('{ currentTime }'); |
31 | -echo json_encode($processor->getResponseData()) . "\n"; |
|
31 | +echo json_encode($processor->getResponseData())."\n"; |