Passed
Push — master ( 43aca1...5a3864 )
by Maximilian
03:27
created
test/Test/Intent/SlotTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
 use MaxBeckers\AmazonAlexa\Intent\Slot;
9 9
 use PHPUnit\Framework\TestCase;
10 10
 
11
-class SlotTest extends TestCase
12
-{
11
+class SlotTest extends TestCase {
13 12
     public function testSlotMediaType(): void
14 13
     {
15 14
         $json = file_get_contents(__DIR__ . '/Data/slot_media_type.json');
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/FallbackRequestHandlerTest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 use MaxBeckers\AmazonAlexa\Response\ResponseBody;
12 12
 use PHPUnit\Framework\TestCase;
13 13
 
14
-class FallbackRequestHandlerTest extends TestCase
15
-{
14
+class FallbackRequestHandlerTest extends TestCase {
16 15
     public function testSupportsRequestAndOutput(): void
17 16
     {
18 17
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/NavigateHomeRequestHandlerTest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 use MaxBeckers\AmazonAlexa\Response\ResponseBody;
12 12
 use PHPUnit\Framework\TestCase;
13 13
 
14
-class NavigateHomeRequestHandlerTest extends TestCase
15
-{
14
+class NavigateHomeRequestHandlerTest extends TestCase {
16 15
     public function testSupportsRequestAndOutput(): void
17 16
     {
18 17
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/HelpRequestHandlerTest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 use MaxBeckers\AmazonAlexa\Response\ResponseBody;
12 12
 use PHPUnit\Framework\TestCase;
13 13
 
14
-class HelpRequestHandlerTest extends TestCase
15
-{
14
+class HelpRequestHandlerTest extends TestCase {
16 15
     public function testSupportsRequestAndOutput(): void
17 16
     {
18 17
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/CancelRequestHandlerTest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 use MaxBeckers\AmazonAlexa\Response\ResponseBody;
12 12
 use PHPUnit\Framework\TestCase;
13 13
 
14
-class CancelRequestHandlerTest extends TestCase
15
-{
14
+class CancelRequestHandlerTest extends TestCase {
16 15
     public function testSupportsRequestAndOutput(): void
17 16
     {
18 17
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/SessionEndedRequestHandlerTest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 use MaxBeckers\AmazonAlexa\Response\ResponseBody;
12 12
 use PHPUnit\Framework\TestCase;
13 13
 
14
-class SessionEndedRequestHandlerTest extends TestCase
15
-{
14
+class SessionEndedRequestHandlerTest extends TestCase {
16 15
     public function testSupportsRequestAndOutput(): void
17 16
     {
18 17
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/StopRequestHandlerTest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 use MaxBeckers\AmazonAlexa\Response\ResponseBody;
12 12
 use PHPUnit\Framework\TestCase;
13 13
 
14
-class StopRequestHandlerTest extends TestCase
15
-{
14
+class StopRequestHandlerTest extends TestCase {
16 15
     public function testSupportsRequestAndOutput(): void
17 16
     {
18 17
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
Please login to merge, or discard this patch.
test/Test/RequestHandler/Basic/ExceptionEncounteredRequestHandlerTest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 use MaxBeckers\AmazonAlexa\Response\ResponseBody;
12 12
 use PHPUnit\Framework\TestCase;
13 13
 
14
-class ExceptionEncounteredRequestHandlerTest extends TestCase
15
-{
14
+class ExceptionEncounteredRequestHandlerTest extends TestCase {
16 15
     public function testSupportsRequestAndOutput(): void
17 16
     {
18 17
         $responseHelper = $this->getMockBuilder(ResponseHelper::class)
Please login to merge, or discard this patch.
test/Test/Response/ResponseTest.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
 use MaxBeckers\AmazonAlexa\Response\Response;
8 8
 use PHPUnit\Framework\TestCase;
9 9
 
10
-class ResponseTest extends TestCase
11
-{
10
+class ResponseTest extends TestCase {
12 11
     public function testEmptyResponse(): void
13 12
     {
14 13
         $response = new Response();
Please login to merge, or discard this patch.
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Test\Response;
5
+    namespace MaxBeckers\AmazonAlexa\Test\Response;
6 6
 
7
-use MaxBeckers\AmazonAlexa\Response\Response;
8
-use PHPUnit\Framework\TestCase;
7
+    use MaxBeckers\AmazonAlexa\Response\Response;
8
+    use PHPUnit\Framework\TestCase;
9 9
 
10
-class ResponseTest extends TestCase
11
-{
12
-    public function testEmptyResponse(): void
10
+    class ResponseTest extends TestCase
13 11
     {
14
-        $response = new Response();
15
-        $this->assertSame('{"sessionAttributes":[],"version":"1.0","response":{}}', json_encode($response));
16
-    }
12
+        public function testEmptyResponse(): void
13
+        {
14
+            $response = new Response();
15
+            $this->assertSame('{"sessionAttributes":[],"version":"1.0","response":{}}', json_encode($response));
16
+        }
17 17
 }
Please login to merge, or discard this patch.