Completed
Push — master ( e75494...e13501 )
by Alexandr
03:05
created
src/Config/Schema/SchemaConfig.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
23 23
      */
24 24
     private $typesList;
25 25
 
26
+    /**
27
+     * @param \Youshido\GraphQL\Schema\AbstractSchema $contextObject
28
+     */
26 29
     public function __construct(array $configData, $contextObject = null, $finalClass = false)
27 30
     {
28 31
         $this->typesList = new SchemaTypesList();
@@ -58,7 +61,7 @@  discard block
 block discarded – undo
58 61
     }
59 62
 
60 63
     /**
61
-     * @param $query AbstractObjectType
64
+     * @param \Youshido\Tests\StarWars\Schema\StarWarsQueryType $query AbstractObjectType
62 65
      *
63 66
      * @return SchemaConfig
64 67
      */
Please login to merge, or discard this patch.
Tests/Schema/SchemaTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             'fields' => [
30 30
                 'currentTime' => [
31 31
                     'type'    => new StringType(),
32
-                    'resolve' => function ($value, $args, $type) {
32
+                    'resolve' => function($value, $args, $type) {
33 33
                         return 'May 5, 9:00am';
34 34
                     },
35 35
                     'args'    => [
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $this->assertEquals(1, count($schema->getMutationType()->getFields()));
60 60
 
61
-        $schema->addMutationField('changeUser', ['type' => new TestObjectType(), 'resolve' => function () { }]);
61
+        $schema->addMutationField('changeUser', ['type' => new TestObjectType(), 'resolve' => function() { }]);
62 62
         $this->assertEquals(2, count($schema->getMutationType()->getFields()));
63 63
 
64 64
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             'fields'      => [
90 90
                 'name' => new StringType(),
91 91
             ],
92
-            'resolveType' => function () use ($authorType) {
92
+            'resolveType' => function() use ($authorType) {
93 93
                 return $authorType;
94 94
             }
95 95
         ]);
@@ -102,13 +102,13 @@  discard block
 block discarded – undo
102 102
             'interfaces' => [$userInterface]
103 103
         ]);
104 104
 
105
-        $schema    = new Schema([
105
+        $schema = new Schema([
106 106
             'query' => new ObjectType([
107 107
                 'name'   => 'QueryType',
108 108
                 'fields' => [
109 109
                     'user' => [
110 110
                         'type'    => $userInterface,
111
-                        'resolve' => function () {
111
+                        'resolve' => function() {
112 112
                             return [
113 113
                                 'name' => 'Alex'
114 114
                             ];
Please login to merge, or discard this patch.