@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | } |
11 | 11 | if ($_SERVER['REQUEST_URI'] == '/graphiql.css') { |
12 | 12 | header('Content-Type: text/css'); |
13 | - readfile(__DIR__ . '/../GraphiQL/graphiql.css'); |
|
13 | + readfile(__DIR__.'/../GraphiQL/graphiql.css'); |
|
14 | 14 | die(); |
15 | 15 | } |
16 | 16 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | use Youshido\GraphQL\Execution\Processor; |
19 | 19 | use Youshido\GraphQL\Schema\Schema; |
20 | 20 | |
21 | -require_once __DIR__ . '/schema-bootstrap.php'; |
|
21 | +require_once __DIR__.'/schema-bootstrap.php'; |
|
22 | 22 | /** @var Schema $schema */ |
23 | 23 | $schema = new BookStoreSchema(); |
24 | 24 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $variables = isset($requestData['variables']) ? $requestData['variables'] : null; |
36 | 36 | |
37 | 37 | if (empty($payload)) { |
38 | - $GraphiQLData = file_get_contents(__DIR__ . '/../GraphiQL/index.html'); |
|
38 | + $GraphiQLData = file_get_contents(__DIR__.'/../GraphiQL/index.html'); |
|
39 | 39 | echo $GraphiQLData; |
40 | 40 | die(); |
41 | 41 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (is_file(__DIR__ . '/../../../../../vendor/autoload.php')) { |
|
4 | - require_once __DIR__ . '/../../../../../vendor/autoload.php'; |
|
3 | +if (is_file(__DIR__.'/../../../../../vendor/autoload.php')) { |
|
4 | + require_once __DIR__.'/../../../../../vendor/autoload.php'; |
|
5 | 5 | } |
6 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
7 | -require_once __DIR__ . '/Schema/Type/BookType.php'; |
|
8 | -require_once __DIR__ . '/Schema/Type/AuthorType.php'; |
|
9 | -require_once __DIR__ . '/Schema/Field/Book/RecentBooksField.php'; |
|
10 | -require_once __DIR__ . '/DataProvider.php'; |
|
11 | -require_once __DIR__ . '/Schema/BookStoreSchema.php'; |
|
6 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
7 | +require_once __DIR__.'/Schema/Type/BookType.php'; |
|
8 | +require_once __DIR__.'/Schema/Type/AuthorType.php'; |
|
9 | +require_once __DIR__.'/Schema/Field/Book/RecentBooksField.php'; |
|
10 | +require_once __DIR__.'/DataProvider.php'; |
|
11 | +require_once __DIR__.'/Schema/BookStoreSchema.php'; |