Completed
Push — master ( c7f3c1...18a515 )
by Alexandr
17:08
created
examples/02_blog_inline/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 use Youshido\GraphQL\Type\Scalar\StringType;
10 10
 
11 11
 
12
-require_once __DIR__ . '/../../vendor/autoload.php';
13
-require_once __DIR__ . '/inline-schema.php';
12
+require_once __DIR__.'/../../vendor/autoload.php';
13
+require_once __DIR__.'/inline-schema.php';
14 14
 /** @var ObjectType $rootQueryType */
15 15
 
16 16
 $processor = new Processor();
17 17
 $processor->setSchema(new Schema([
18 18
     'query' => $rootQueryType
19 19
 ]));
20
-$payload  = '{ latestPost { title(truncated: true), summary } }';
20
+$payload = '{ latestPost { title(truncated: true), summary } }';
21 21
 
22 22
 $processor->processRequest($payload);
23
-echo json_encode($processor->getResponseData()) . "\n";
24 23
\ No newline at end of file
24
+echo json_encode($processor->getResponseData())."\n";
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
examples/02_blog/Schema/LikePost.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use Youshido\GraphQL\Type\AbstractType;
13 13
 use Youshido\GraphQL\Type\Config\Object\UnionTypeConfig;
14 14
 use Youshido\GraphQL\Type\Config\Traits\ConfigCallTrait;
15
-use Youshido\GraphQL\Type\Config\TypeConfigInterface;
16 15
 use Youshido\GraphQL\Type\Traits\AutoNameTrait;
17 16
 use Youshido\GraphQL\Type\TypeMap;
18 17
 
Please login to merge, or discard this patch.
examples/02_blog/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.
src/Type/TypeMap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 $name = $name == 'Datetime' ? 'DateTime' : $name;
98 98
                 $name = $name == 'Datetimetz' ? 'DateTimeTz' : $name;
99 99
 
100
-                $className                       = 'Youshido\GraphQL\Type\Scalar\\' . $name . 'Type';
100
+                $className                       = 'Youshido\GraphQL\Type\Scalar\\'.$name.'Type';
101 101
                 self::$scalarObjectsCache[$type] = new $className();
102 102
             }
103 103
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
     public static function isScalarType($typeName)
117 117
     {
118
-        if(is_object($typeName)) {
118
+        if (is_object($typeName)) {
119 119
             return false;
120 120
         }
121 121
 
Please login to merge, or discard this patch.