Completed
Push — master ( 987705...d3b96a )
by Portey
10:40
created
src/Type/ListType/AbstractListType.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Date: 03.12.15
4
- *
5
- * @author Portey Vasil <[email protected]>
6
- */
3
+     * Date: 03.12.15
4
+     *
5
+     * @author Portey Vasil <[email protected]>
6
+     */
7 7
 
8 8
 namespace Youshido\GraphQL\Definition;
9 9
 
Please login to merge, or discard this patch.
src/Parser/Value/Literal.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Date: 23.11.15
4
- *
5
- * @author Portey Vasil <[email protected]>
6
- */
3
+     * Date: 23.11.15
4
+     *
5
+     * @author Portey Vasil <[email protected]>
6
+     */
7 7
 
8 8
 namespace Youshido\GraphQL;
9 9
 
Please login to merge, or discard this patch.
Tests/Type/TypeMapTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@
 block discarded – undo
21 21
 
22 22
     public function testScalarTypeCheck()
23 23
     {
24
-        foreach($this->getScalarTypes() as $type) {
24
+        foreach ($this->getScalarTypes() as $type) {
25 25
             $this->assertTrue(TypeMap::isInputType($type));
26 26
         }
27 27
     }
28 28
 
29 29
     public function testScalarTypeObjectCreation()
30 30
     {
31
-        foreach($this->getScalarTypes() as $type) {
31
+        foreach ($this->getScalarTypes() as $type) {
32 32
             $object = TypeMap::getScalarTypeObject($type);
33 33
             $this->assertEquals($object->getKind(), TypeMap::KIND_SCALAR);
34 34
             $this->assertEquals($object->getName(), $type);
Please login to merge, or discard this patch.
src/Type/Scalar/IdType.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
     public function getDescription()
25 25
     {
26 26
         return 'The `ID` scalar type represents a unique identifier, often used to ' .
27
-               'refetch an object or as key for a cache. The ID type appears in a JSON ' .
28
-               'response as a String; however, it is not intended to be human-readable. ' .
29
-               'When expected as an input type, any string (such as `"4"`) or integer ' .
30
-               '(such as `4`) input value will be accepted as an ID.';
27
+                'refetch an object or as key for a cache. The ID type appears in a JSON ' .
28
+                'response as a String; however, it is not intended to be human-readable. ' .
29
+                'When expected as an input type, any string (such as `"4"`) or integer ' .
30
+                '(such as `4`) input value will be accepted as an ID.';
31 31
     }
32 32
 }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
src/Parser/Ast/Fragment.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Date: 23.11.15
4
- *
5
- * @author Portey Vasil <[email protected]>
6
- */
3
+     * Date: 23.11.15
4
+     *
5
+     * @author Portey Vasil <[email protected]>
6
+     */
7 7
 
8 8
 namespace Youshido\GraphQL;
9 9
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @return Field[]|Query[]
64
+     * @return Query[]
65 65
      */
66 66
     public function getFields()
67 67
     {
Please login to merge, or discard this patch.
src/Processor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     /**
190 190
      * @param $objectType InputObjectType|ObjectType
191 191
      * @param $query      Mutation|Query
192
-     * @return null
192
+     * @return boolean
193 193
      */
194 194
     private function checkFieldExist($objectType, $query)
195 195
     {
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     }
227 227
 
228 228
     /**
229
-     * @param $field        Field
229
+     * @param Field $field        Field
230 230
      * @param $contextValue mixed
231 231
      * @param $query        Query
232 232
      *
Please login to merge, or discard this patch.
src/Type/Config/Object/InterfaceTypeConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $callable = $this->get('resolveType');
40 40
 
41
-        if($callable && is_callable($callable)) {
41
+        if ($callable && is_callable($callable)) {
42 42
             return call_user_func_array($callable, [$object]);
43 43
         }
44 44
 
Please login to merge, or discard this patch.
Tests/ProcessorTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                         'id'   => ['type' => TypeMap::TYPE_INT],
44 44
                         'name' => ['type' => TypeMap::TYPE_STRING]
45 45
                     ],
46
-                    'resolve' => function () {
46
+                    'resolve' => function() {
47 47
                         return [
48 48
                             'id'   => 1,
49 49
                             'name' => 'Alex'
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
                                 ['name' => 'String', 'fields' => []],
110 110
                                 ['name' => '__Schema', 'fields' => [['name' => 'queryType'], ['name' => 'mutationType'], ['name' => 'types']]],
111 111
                                 ['name' => '__Type', 'fields' => [['name' => 'name'], ['name' => 'kind'], ['name' => 'description'], ['name' => 'ofType'], ['name' => 'inputFields'], ['name' => 'enumValues'], ['name' => 'fields'], ['name' => 'interfaces'], ['name' => 'possibleTypes']]],
112
-                                ['name' => '__InputValue', 'fields' => [['name' => 'name'],['name' => 'description'],['name' => 'type'],['name' => 'defaultValue'],]],
113
-                                ['name' => '__EnumValue', 'fields' => [['name' => 'name'],['name' => 'description'],['name' => 'deprecationReason'],['name' => 'isDeprecated'],]],
112
+                                ['name' => '__InputValue', 'fields' => [['name' => 'name'], ['name' => 'description'], ['name' => 'type'], ['name' => 'defaultValue'], ]],
113
+                                ['name' => '__EnumValue', 'fields' => [['name' => 'name'], ['name' => 'description'], ['name' => 'deprecationReason'], ['name' => 'isDeprecated'], ]],
114 114
                                 ['name' => 'Boolean', 'fields' => []],
115 115
                                 ['name' => '__Field', 'fields' => [['name' => 'name'], ['name' => 'description'], ['name' => 'isDeprecated'], ['name' => 'deprecationReason'], ['name' => 'type'], ['name' => 'args']]],
116 116
                                 ['name' => '__Argument', 'fields' => [['name' => 'name'], ['name' => 'description']]],
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                         'id'   => ['type' => TypeMap::TYPE_INT],
208 208
                         'name' => ['type' => TypeMap::TYPE_STRING]
209 209
                     ],
210
-                    'resolve' => function () {
210
+                    'resolve' => function() {
211 211
                         return [
212 212
                             'id'   => 1,
213 213
                             'name' => 'Alex'
Please login to merge, or discard this patch.
src/Type/Object/EnumType.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Date: 07.12.15
4
- *
5
- * @author Portey Vasil <[email protected]>
6
- */
3
+     * Date: 07.12.15
4
+     *
5
+     * @author Portey Vasil <[email protected]>
6
+     */
7 7
 
8 8
 namespace Youshido\Tests\Type\Config;
9 9
 
Please login to merge, or discard this patch.