Completed
Pull Request — master (#37)
by Sebastian
03:52
created
examples/01_sandbox/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.