Passed
Push — master ( 4b2c1a...a53d55 )
by Maximilian
02:53
created
test/Test/Response/Directives/Display/TemplateTest.php 1 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\Directives\Display\TextContent;
12 12
 use PHPUnit\Framework\TestCase;
13 13
 
14
-class TemplateTest extends TestCase
15
-{
14
+class TemplateTest extends TestCase {
16 15
     public function testSerializeTypeAndToken(): void
17 16
     {
18 17
         $type = 'BodyTemplate1';
Please login to merge, or discard this patch.
test/Test/Response/Directives/Display/TextContentTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
 use MaxBeckers\AmazonAlexa\Response\Directives\Display\TextContent;
10 10
 use PHPUnit\Framework\TestCase;
11 11
 
12
-class TextContentTest extends TestCase
13
-{
12
+class TextContentTest extends TestCase {
14 13
     public function testSerializePrimaryOnly(): void
15 14
     {
16 15
         $primaryText = Text::create('primaryText');
Please login to merge, or discard this patch.
test/Test/Response/Directives/VideoAppTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
 use MaxBeckers\AmazonAlexa\Response\Directives\VideoApp\VideoLaunchDirective;
10 10
 use PHPUnit\Framework\TestCase;
11 11
 
12
-class VideoAppTest extends TestCase
13
-{
12
+class VideoAppTest extends TestCase {
14 13
     public function testMetadata(): void
15 14
     {
16 15
         $meta = Metadata::create();
Please login to merge, or discard this patch.
test/Test/Response/CardTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
 use MaxBeckers\AmazonAlexa\Response\CardImage;
11 11
 use PHPUnit\Framework\TestCase;
12 12
 
13
-class CardTest extends TestCase
14
-{
13
+class CardTest extends TestCase {
15 14
     public function testSimpleCard(): void
16 15
     {
17 16
         $title = 'title';
Please login to merge, or discard this patch.
test/Test/Response/ResponseHelperTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
 use MaxBeckers\AmazonAlexa\Response\OutputSpeech;
11 11
 use PHPUnit\Framework\TestCase;
12 12
 
13
-class ResponseHelperTest extends TestCase
14
-{
13
+class ResponseHelperTest extends TestCase {
15 14
     private const RESPOND = 'Respond';
16 15
     private const REPROMPT = 'Reprompt';
17 16
 
Please login to merge, or discard this patch.
test/Test/Response/CanFulfillResponseBodyTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
 use MaxBeckers\AmazonAlexa\Response\CanFulfill\CanFulfillSlot;
10 10
 use PHPUnit\Framework\TestCase;
11 11
 
12
-class CanFulfillResponseBodyTest extends TestCase
13
-{
12
+class CanFulfillResponseBodyTest extends TestCase {
14 13
     public function testJsonSerialize(): void
15 14
     {
16 15
         $slot1 = CanFulfillSlot::create(CanFulfillSlot::CAN_UNDERSTAND_YES, CanFulfillSlot::CAN_FULFILL_YES);
Please login to merge, or discard this patch.
test/Test/Validation/RequestValidatorTest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
 use Psr\Http\Message\ResponseInterface;
15 15
 use Psr\Http\Message\StreamInterface;
16 16
 
17
-class RequestValidatorTest extends TestCase
18
-{
17
+class RequestValidatorTest extends TestCase {
19 18
     public function testInvalidRequestTime(): void
20 19
     {
21 20
         $requestValidator = new RequestValidator();
Please login to merge, or discard this patch.
test/Test/Request/ExceptionEncounteredRequestTest.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\Request\Request\System\ExceptionEncounteredRequest;
9 9
 use PHPUnit\Framework\TestCase;
10 10
 
11
-class ExceptionEncounteredRequestTest extends TestCase
12
-{
11
+class ExceptionEncounteredRequestTest extends TestCase {
13 12
     public function testExceptionEncounteredRequest(): void
14 13
     {
15 14
         $requestBody = file_get_contents(__DIR__ . '/RequestData/systemError.json');
Please login to merge, or discard this patch.
test/Test/Request/AudioPlayerRequestsTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
 use MaxBeckers\AmazonAlexa\Request\Request\AudioPlayer\PlaybackStoppedRequest;
13 13
 use PHPUnit\Framework\TestCase;
14 14
 
15
-class AudioPlayerRequestsTest extends TestCase
16
-{
15
+class AudioPlayerRequestsTest extends TestCase {
17 16
     public function testPlaybackStartedRequest(): void
18 17
     {
19 18
         $requestBody = file_get_contents(__DIR__ . '/RequestData/audioplayerPlaybackStarted.json');
Please login to merge, or discard this patch.