Completed
Push — master ( 1049ef...ba8cbe )
by Portey
7s
created
examples/03_relay_star_wars/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
examples/03_relay_star_wars/router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
examples/03_relay_star_wars/schema-bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Config/AbstractConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.