Completed
Push — master ( 35ad38...5d4aad )
by Alexandr
03:22
created
Tests/Schema/SchemaTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             'fields' => [
27 27
                 'currentTime' => [
28 28
                     'type'    => new StringType(),
29
-                    'resolve' => function ($value, $args, $type) {
29
+                    'resolve' => function($value, $args, $type) {
30 30
                         return 'May 5, 9:00am';
31 31
                     },
32 32
                     'args'    => [
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
         $this->assertEquals(1, count($schema->getMutationType()->getFields()));
57 57
 
58
-        $schema->addMutationField('changeUser', ['type' => new TestObjectType(), 'resolve' => function () { }]);
58
+        $schema->addMutationField('changeUser', ['type' => new TestObjectType(), 'resolve' => function() { }]);
59 59
         $this->assertEquals(2, count($schema->getMutationType()->getFields()));
60 60
 
61 61
     }
Please login to merge, or discard this patch.
Tests/Library/Type/ScalarTypeTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         foreach (TypeFactory::getScalarTypesNames() as $typeName) {
24 24
             $scalarType     = TypeFactory::getScalarType($typeName);
25
-            $testDataMethod = 'get' . $typeName . 'TestData';
25
+            $testDataMethod = 'get'.$typeName.'TestData';
26 26
 
27 27
             $this->assertNotEmpty($scalarType->getDescription());
28 28
             $this->assertEquals($scalarType->getKind(), TypeMap::KIND_SCALAR);
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
                 $this->assertParse($scalarType, $data, $serialized);
39 39
 
40 40
                 if ($isValid) {
41
-                    $this->assertTrue($scalarType->isValidValue($data), $typeName . ' validation for :' . serialize($data));
41
+                    $this->assertTrue($scalarType->isValidValue($data), $typeName.' validation for :'.serialize($data));
42 42
                 } else {
43
-                    $this->assertFalse($scalarType->isValidValue($data), $typeName . ' validation for :' . serialize($data));
43
+                    $this->assertFalse($scalarType->isValidValue($data), $typeName.' validation for :'.serialize($data));
44 44
                 }
45 45
             }
46 46
         }
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
     private function assertSerialization(AbstractScalarType $object, $input, $expected)
54 54
     {
55
-        $this->assertEquals($expected, $object->serialize($input), $object->getName() . ' serialize for: ' . serialize($input));
55
+        $this->assertEquals($expected, $object->serialize($input), $object->getName().' serialize for: '.serialize($input));
56 56
     }
57 57
 
58 58
     private function assertParse(AbstractScalarType $object, $input, $expected)
59 59
     {
60
-        $this->assertEquals($expected, $object->parseValue($input), $object->getName() . ' serialize for: ' . serialize($input));
60
+        $this->assertEquals($expected, $object->parseValue($input), $object->getName().' serialize for: '.serialize($input));
61 61
     }
62 62
 
63 63
 }
Please login to merge, or discard this patch.
Tests/Library/Type/InterfaceTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             'fields'      => [
44 44
                 'name' => new StringType()
45 45
             ],
46
-            'resolveType' => function ($object) {
46
+            'resolveType' => function($object) {
47 47
                 return $object;
48 48
             }
49 49
         ]);
Please login to merge, or discard this patch.
Tests/Library/Type/UnionTypeTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 new TestObjectType(),
33 33
                 $object
34 34
             ],
35
-            'resolveType' => function ($type) {
35
+            'resolveType' => function($type) {
36 36
                 return $type;
37 37
             }
38 38
         ]);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             'types'       => [
68 68
                 'test', new IntType()
69 69
             ],
70
-            'resolveType' => function ($type) {
70
+            'resolveType' => function($type) {
71 71
                 return $type;
72 72
             }
73 73
         ]);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             'types'       => [
85 85
                 new IntType()
86 86
             ],
87
-            'resolveType' => function ($type) {
87
+            'resolveType' => function($type) {
88 88
                 return $type;
89 89
             }
90 90
         ]);
Please login to merge, or discard this patch.
Tests/Library/Type/EnumTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
                 'value' => 'disable'
103 103
             ]
104 104
         ];
105
-        $enumType   = new EnumType([
105
+        $enumType = new EnumType([
106 106
             'name'   => 'BoolEnum',
107 107
             'values' => $valuesData
108 108
         ]);
Please login to merge, or discard this patch.
Tests/Library/Field/FieldAwareConfigTraitTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
                 'type' => new IntType()
25 25
             ]
26 26
         ];
27
-        $config     = new ObjectTypeConfig([
27
+        $config = new ObjectTypeConfig([
28 28
             'name'   => 'UserType',
29 29
             'fields' => $fieldsData
30 30
         ]);
Please login to merge, or discard this patch.
Tests/Library/Field/FieldTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $fieldWithResolve = new Field([
37 37
             'name'    => 'title',
38 38
             'type'    => new StringType(),
39
-            'resolve' => function ($value, array $args, ResolveInfo $info) {
39
+            'resolve' => function($value, array $args, ResolveInfo $info) {
40 40
                 return $info->getReturnType()->serialize($value);
41 41
             }
42 42
         ]);
Please login to merge, or discard this patch.
Tests/Library/Config/ConfigTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             ]
78 78
         ]);
79 79
 
80
-        $finalConfig = new TestConfig(['name' => $name . 'final', 'resolve' => function () { return []; }], $object, true);
80
+        $finalConfig = new TestConfig(['name' => $name.'final', 'resolve' => function() { return []; }], $object, true);
81 81
         $this->assertEquals($finalConfig->getType(), null);
82 82
 
83 83
         $rules['resolve']['required'] = true;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function testFinalRule()
99 99
     {
100
-        new TestConfig(['name' => 'Test' . 'final'], null, true);
100
+        new TestConfig(['name' => 'Test'.'final'], null, true);
101 101
     }
102 102
 
103 103
     /**
Please login to merge, or discard this patch.
Tests/Library/Config/FieldConfigTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $fieldConfig = new FieldConfig([
21 21
             'name'    => 'FirstName',
22 22
             'type'    => new StringType(),
23
-            'resolve' => function ($value, $args = [], $type = null) {
23
+            'resolve' => function($value, $args = [], $type = null) {
24 24
                 return 'John';
25 25
             }
26 26
         ]);
Please login to merge, or discard this patch.