@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require_once __DIR__ . '/../../../../../vendor/autoload.php'; |
|
| 4 | -require_once __DIR__ . '/Schema/FactionType.php'; |
|
| 5 | -require_once __DIR__ . '/Schema/ShipType.php'; |
|
| 6 | -require_once __DIR__ . '/Schema/TestDataProvider.php'; |
|
| 7 | -require_once __DIR__ . '/Schema/StarWarsRelaySchema.php'; |
|
| 3 | +require_once __DIR__.'/../../../../../vendor/autoload.php'; |
|
| 4 | +require_once __DIR__.'/Schema/FactionType.php'; |
|
| 5 | +require_once __DIR__.'/Schema/ShipType.php'; |
|
| 6 | +require_once __DIR__.'/Schema/TestDataProvider.php'; |
|
| 7 | +require_once __DIR__.'/Schema/StarWarsRelaySchema.php'; |
|
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace BlogTest; |
| 4 | 4 | |
| 5 | -require_once __DIR__ . '/../../../../../vendor/autoload.php'; |
|
| 6 | -require_once __DIR__ . '/Schema/DataProvider.php'; |
|
| 7 | -require_once __DIR__ . '/Schema/PostType.php'; |
|
| 8 | -require_once __DIR__ . '/Schema/PostStatus.php'; |
|
| 9 | -require_once __DIR__ . '/Schema/ContentBlockInterface.php'; |
|
| 10 | -require_once __DIR__ . '/Schema/LikePostField.php'; |
|
| 11 | -require_once __DIR__ . '/Schema/BannerType.php'; |
|
| 12 | -require_once __DIR__ . '/Schema/ContentBlockUnion.php'; |
|
| 13 | -require_once __DIR__ . '/Schema/PostInputType.php'; |
|
| 14 | -require_once __DIR__ . '/Schema/BlogSchema.php'; |
|
| 5 | +require_once __DIR__.'/../../../../../vendor/autoload.php'; |
|
| 6 | +require_once __DIR__.'/Schema/DataProvider.php'; |
|
| 7 | +require_once __DIR__.'/Schema/PostType.php'; |
|
| 8 | +require_once __DIR__.'/Schema/PostStatus.php'; |
|
| 9 | +require_once __DIR__.'/Schema/ContentBlockInterface.php'; |
|
| 10 | +require_once __DIR__.'/Schema/LikePostField.php'; |
|
| 11 | +require_once __DIR__.'/Schema/BannerType.php'; |
|
| 12 | +require_once __DIR__.'/Schema/ContentBlockUnion.php'; |
|
| 13 | +require_once __DIR__.'/Schema/PostInputType.php'; |
|
| 14 | +require_once __DIR__.'/Schema/BlogSchema.php'; |
|
@@ -7,8 +7,8 @@ discard block |
||
| 7 | 7 | use Youshido\GraphQL\Type\Object\ObjectType; |
| 8 | 8 | |
| 9 | 9 | |
| 10 | -require_once __DIR__ . '/../../../../../vendor/autoload.php'; |
|
| 11 | -require_once __DIR__ . '/inline-schema.php'; |
|
| 10 | +require_once __DIR__.'/../../../../../vendor/autoload.php'; |
|
| 11 | +require_once __DIR__.'/inline-schema.php'; |
|
| 12 | 12 | /** @var ObjectType $rootQueryType */ |
| 13 | 13 | |
| 14 | 14 | $processor = new Processor(new Schema([ |
@@ -17,4 +17,4 @@ discard block |
||
| 17 | 17 | $payload = '{ latestPost { title(truncated: true), summary } }'; |
| 18 | 18 | |
| 19 | 19 | $processor->processPayload($payload); |
| 20 | -echo json_encode($processor->getResponseData()) . "\n"; |
|
| 20 | +echo json_encode($processor->getResponseData())."\n"; |
|
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | use Youshido\GraphQL\Type\Object\ObjectType; |
| 7 | 7 | use Youshido\GraphQL\Type\Scalar\StringType; |
| 8 | 8 | |
| 9 | -require_once __DIR__ . '/../../../../../vendor/autoload.php'; |
|
| 9 | +require_once __DIR__.'/../../../../../vendor/autoload.php'; |
|
| 10 | 10 | |
| 11 | 11 | $processor = new Processor(new Schema([ |
| 12 | 12 | 'query' => new ObjectType([ |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | 'fields' => [ |
| 15 | 15 | 'currentTime' => [ |
| 16 | 16 | 'type' => new StringType(), |
| 17 | - 'resolve' => function () { |
|
| 17 | + 'resolve' => function() { |
|
| 18 | 18 | return date('Y-m-d H:ia'); |
| 19 | 19 | } |
| 20 | 20 | ] |
@@ -23,4 +23,4 @@ discard block |
||
| 23 | 23 | ])); |
| 24 | 24 | |
| 25 | 25 | $processor->processPayload('{ currentTime }'); |
| 26 | -echo json_encode($processor->getResponseData()) . "\n"; |
|
| 26 | +echo json_encode($processor->getResponseData())."\n"; |
|