Passed
Pull Request — master (#97)
by Maximilian
04:02
created
test/Test/RequestHandler/Basic/FallbackRequestHandlerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     public function testSupportsRequestAndOutput(): void
17 17
     {
18 18
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
19
-                               ->disableOriginalConstructor()
20
-                               ->getMock();
19
+                                ->disableOriginalConstructor()
20
+                                ->getMock();
21 21
 
22 22
         $request = Request::fromAmazonRequest('{"request":{"type":"IntentRequest", "requestId":"requestId", "timestamp":"' . time() . '", "locale":"en-US", "intent":{"name":"AMAZON.FallbackIntent"}}}', 'true', 'true');
23 23
         $output = 'Just a simple Test';
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/NavigateHomeRequestHandlerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     public function testSupportsRequestAndOutput(): void
17 17
     {
18 18
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
19
-                               ->disableOriginalConstructor()
20
-                               ->getMock();
19
+                                ->disableOriginalConstructor()
20
+                                ->getMock();
21 21
 
22 22
         $request = Request::fromAmazonRequest('{"request":{"type":"IntentRequest", "requestId":"requestId", "timestamp":"' . time() . '", "locale":"en-US", "intent":{"name":"AMAZON.NavigateHomeIntent"}}}', 'true', 'true');
23 23
         $output = 'Just a simple Test';
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/HelpRequestHandlerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     public function testSupportsRequestAndOutput(): void
17 17
     {
18 18
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
19
-                               ->disableOriginalConstructor()
20
-                               ->getMock();
19
+                                ->disableOriginalConstructor()
20
+                                ->getMock();
21 21
 
22 22
         $request = Request::fromAmazonRequest('{"request":{"type":"IntentRequest", "requestId":"requestId", "timestamp":"' . time() . '", "locale":"en-US", "intent":{"name":"AMAZON.HelpIntent"}}}', 'true', 'true');
23 23
         $output = 'Just a simple Test';
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/CancelRequestHandlerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     public function testSupportsRequestAndOutput(): void
17 17
     {
18 18
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
19
-                               ->disableOriginalConstructor()
20
-                               ->getMock();
19
+                                ->disableOriginalConstructor()
20
+                                ->getMock();
21 21
 
22 22
         $request = Request::fromAmazonRequest('{"request":{"type":"IntentRequest", "requestId":"requestId", "timestamp":"' . time() . '", "locale":"en-US", "intent":{"name":"AMAZON.CancelIntent"}}}', 'true', 'true');
23 23
         $output = 'Just a simple Test';
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/SessionEndedRequestHandlerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     public function testSupportsRequestAndOutput(): void
17 17
     {
18 18
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
19
-                               ->disableOriginalConstructor()
20
-                               ->getMock();
19
+                                ->disableOriginalConstructor()
20
+                                ->getMock();
21 21
 
22 22
         $request = Request::fromAmazonRequest('{"request":{"type":"SessionEndedRequest", "requestId":"requestId", "timestamp":"' . time() . '", "locale":"en-US"}}', 'true', 'true');
23 23
         $output = 'Just a simple Test';
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/StopRequestHandlerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     public function testSupportsRequestAndOutput(): void
17 17
     {
18 18
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
19
-                               ->disableOriginalConstructor()
20
-                               ->getMock();
19
+                                ->disableOriginalConstructor()
20
+                                ->getMock();
21 21
 
22 22
         $request = Request::fromAmazonRequest('{"request":{"type":"IntentRequest", "requestId":"requestId", "timestamp":"' . time() . '", "locale":"en-US", "intent":{"name":"AMAZON.StopIntent"}}}', 'true', 'true');
23 23
         $output = 'Just a simple Test';
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/ExceptionEncounteredRequestHandlerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     public function testSupportsRequestAndOutput(): void
17 17
     {
18 18
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
19
-                               ->disableOriginalConstructor()
20
-                               ->getMock();
19
+                                ->disableOriginalConstructor()
20
+                                ->getMock();
21 21
 
22 22
         $request = Request::fromAmazonRequest('{"request":{"type":"System.ExceptionEncountered", "requestId":"requestId", "timestamp":"' . time() . '", "locale":"en-US"}}', 'true', 'true');
23 23
         $output = 'Just a simple Test';
Please login to merge, or discard this patch.
test/Test/Validation/RequestValidatorTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $requestValidator = new RequestValidator(RequestValidator::TIMESTAMP_VALID_TOLERANCE_SECONDS, $client);
55 55
 
56 56
         $client->method('request')
57
-               ->willReturn($apiResponse);
57
+                ->willReturn($apiResponse);
58 58
         $apiResponse->method('getStatusCode')
59 59
                     ->willReturn(200);
60 60
         $apiResponse->method('getBody')
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $requestValidator = new RequestValidator(RequestValidator::TIMESTAMP_VALID_TOLERANCE_SECONDS, $client);
83 83
 
84 84
         $client->method('request')
85
-               ->willReturn($apiResponse);
85
+                ->willReturn($apiResponse);
86 86
         $apiResponse->method('getStatusCode')
87 87
                     ->willReturn(400);
88 88
 
Please login to merge, or discard this patch.
test/Test/Helper/SsmlGeneratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public static function getVoices(): array
14 14
     {
15
-        return array_map(function (string $item): array {
15
+        return array_map(function(string $item): array {
16 16
             return [$item];
17 17
         }, SsmlGenerator::VOICES);
18 18
     }
Please login to merge, or discard this patch.