@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | use Youshido\GraphQL\Processor; |
7 | 7 | use Youshido\GraphQL\Schema; |
8 | 8 | |
9 | -require_once __DIR__ . '/schema-bootstrap.php'; |
|
9 | +require_once __DIR__.'/schema-bootstrap.php'; |
|
10 | 10 | /** @var Schema $schema */ |
11 | 11 | $schema = new BlogSchema(); |
12 | 12 | |
@@ -21,4 +21,4 @@ discard block |
||
21 | 21 | $payload = 'mutation { createPost(author: "Alex", post: {title: "Hey, this is my new post", summary: "my post" }) { title } }'; |
22 | 22 | |
23 | 23 | $processor->processRequest($payload); |
24 | -echo json_encode($processor->getResponseData()) . "\n"; |
|
24 | +echo json_encode($processor->getResponseData())."\n"; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | use Youshido\GraphQL\Processor; |
12 | 12 | use Youshido\GraphQL\Schema; |
13 | 13 | |
14 | -require_once __DIR__ . '/schema-bootstrap.php'; |
|
14 | +require_once __DIR__.'/schema-bootstrap.php'; |
|
15 | 15 | /** @var Schema $schema */ |
16 | 16 | $schema = new BlogSchema(); |
17 | 17 |
@@ -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'; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $validator = ConfigValidator::getInstance(); |
54 | 54 | |
55 | 55 | if (!$validator->validate($this->data, $this->getContextRules(), $this->extraFieldsAllowed)) { |
56 | - throw new ConfigurationException('Config is not valid for ' . ($contextObject ? get_class($contextObject) : null) . "\n" . implode("\n", $validator->getErrorsArray(false))); |
|
56 | + throw new ConfigurationException('Config is not valid for '.($contextObject ? get_class($contextObject) : null)."\n".implode("\n", $validator->getErrorsArray(false))); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | $this->build(); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | } elseif (substr($method, 0, 2) == 'is') { |
127 | 127 | $propertyName = lcfirst(substr($method, 2)); |
128 | 128 | } else { |
129 | - throw new \Exception('Call to undefined method ' . $method); |
|
129 | + throw new \Exception('Call to undefined method '.$method); |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | return $this->get($propertyName); |