Completed
Push — master ( 58aff8...142e16 )
by Alexandr
03:14
created
Tests/Library/Config/InterfaceTypeConfigTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function testConfigNoFields()
32 32
     {
33 33
         ConfigValidator::getInstance()->assertValidateConfig(
34
-            new InterfaceTypeConfig(['name' => 'Test', 'resolveType' => function () { }], null, true)
34
+            new InterfaceTypeConfig(['name' => 'Test', 'resolveType' => function() { }], null, true)
35 35
         );
36 36
     }
37 37
 
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
         $interfaceConfig = new InterfaceTypeConfig([
60 60
             'name'        => 'Test',
61 61
             'fields'      => ['id' => new IntType()],
62
-            'resolveType' => function ($object) {
62
+            'resolveType' => function($object) {
63 63
                 return $object->getType();
64 64
             }
65 65
         ], null, true);
66
-        $object          = new ObjectType(['name' => 'User', 'fields' => ['name' => new StringType()]]);
66
+        $object = new ObjectType(['name' => 'User', 'fields' => ['name' => new StringType()]]);
67 67
 
68 68
         $this->assertEquals($interfaceConfig->getName(), 'Test');
69 69
         $this->assertEquals($interfaceConfig->resolveType($object), $object->getType());
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
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             ]
79 79
         ]);
80 80
 
81
-        $finalConfig = new TestConfig(['name' => $name . 'final', 'resolve' => function () { return []; }], $object, true);
81
+        $finalConfig = new TestConfig(['name' => $name.'final', 'resolve' => function() { return []; }], $object, true);
82 82
         $this->assertEquals($finalConfig->getType(), null);
83 83
 
84 84
         $rules['resolve']['required'] = true;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function testFinalRule()
100 100
     {
101
-        ConfigValidator::getInstance()->assertValidateConfig(new TestConfig(['name' => 'Test' . 'final'], null, true));
101
+        ConfigValidator::getInstance()->assertValidateConfig(new TestConfig(['name' => 'Test'.'final'], null, true));
102 102
     }
103 103
 
104 104
     /**
Please login to merge, or discard this patch.