Passed
Pull Request — master (#9)
by Quang
03:00
created
tests/MiddlewareTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
             $request = new Request();
23 23
         }
24 24
 
25
-        $this->assertInstanceOf(Response::class, $middleware->handle($request, function () {
25
+        $this->assertInstanceOf(Response::class, $middleware->handle($request, function() {
26 26
             return new Response();
27 27
         }));
28 28
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             $request = new Request();
38 38
         }
39 39
 
40
-        $middleware->handle($request, function () {
40
+        $middleware->handle($request, function() {
41 41
             return new Response();
42 42
         });
43 43
 
Please login to merge, or discard this patch.
tests/Http/GraphQLControllerTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,17 +93,17 @@
 block discarded – undo
93 93
     {
94 94
         // Mock the processor
95 95
         $processor = $this->getMockBuilder(Processor::class)
96
-                          ->disableOriginalConstructor()
97
-                          ->setMethods(['getResponseData', 'processPayload'])
98
-                          ->getMock();
96
+                            ->disableOriginalConstructor()
97
+                            ->setMethods(['getResponseData', 'processPayload'])
98
+                            ->getMock();
99 99
 
100 100
         $processor->expects($this->once())
101
-                  ->method('processPayload')
102
-                  ->willReturn($processor);
101
+                    ->method('processPayload')
102
+                    ->willReturn($processor);
103 103
 
104 104
         $processor->expects($this->once())
105
-                  ->method('getResponseData')
106
-                  ->willReturn($responseData);
105
+                    ->method('getResponseData')
106
+                    ->willReturn($responseData);
107 107
 
108 108
         /** @var \PHPUnit_Framework_MockObject_MockObject|GraphQLService $service */
109 109
         $service = $this->getMockBuilder(GraphQLService::class)
Please login to merge, or discard this patch.
tests/GraphQLServiceTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     {
32 32
         /** @var \PHPUnit_Framework_MockObject_MockObject|CacheRepository $cacheRepository */
33 33
         $this->cache = $this->getMockBuilder(CacheRepository::class)
34
-                             ->setMethods(['get', 'forever'])
35
-                             ->getMockForAbstractClass();
34
+                                ->setMethods(['get', 'forever'])
35
+                                ->getMockForAbstractClass();
36 36
 
37 37
         $this->processor = new Processor(new Schema());
38 38
         $this->service = new GraphQLService($this->processor, $this->cache);
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
     public function testGetProcessor()
43 43
     {
44 44
         $this->cache->expects($this->any())
45
-                     ->method('get')
46
-                     ->with(GraphQLService::PROCESSOR_CACHE_KEY)
47
-                     ->willReturn($this->processor);
45
+                        ->method('get')
46
+                        ->with(GraphQLService::PROCESSOR_CACHE_KEY)
47
+                        ->willReturn($this->processor);
48 48
 
49 49
         $this->assertEquals($this->processor, $this->service->getProcessor());
50 50
     }
Please login to merge, or discard this patch.