Passed
Pull Request — master (#97)
by Maximilian
04:02
created
src/RequestHandler/Basic/FallbackRequestHandler.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\RequestHandler\AbstractRequestHandler;
11 11
 use MaxBeckers\AmazonAlexa\Response\Response;
12 12
 
13
-class FallbackRequestHandler extends AbstractRequestHandler
14
-{
13
+class FallbackRequestHandler extends AbstractRequestHandler {
15 14
     public function __construct(
16 15
         private readonly ResponseHelper $responseHelper,
17 16
         private readonly string $output,
Please login to merge, or discard this patch.
src/RequestHandler/Basic/CancelRequestHandler.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\RequestHandler\AbstractRequestHandler;
11 11
 use MaxBeckers\AmazonAlexa\Response\Response;
12 12
 
13
-class CancelRequestHandler extends AbstractRequestHandler
14
-{
13
+class CancelRequestHandler extends AbstractRequestHandler {
15 14
     public function __construct(
16 15
         private readonly ResponseHelper $responseHelper,
17 16
         private readonly string $output,
Please login to merge, or discard this patch.
src/Response/Directives/System/Error.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response\Directives\System;
6 6
 
7
-class Error
8
-{
7
+class Error {
9 8
     public const MEDIA_ERROR_UNKNOWN = 'MEDIA_ERROR_UNKNOWN';
10 9
     public const MEDIA_ERROR_INVALID_REQUEST = 'MEDIA_ERROR_INVALID_REQUEST';
11 10
     public const MEDIA_ERROR_SERVICE_UNAVAILABLE = 'MEDIA_ERROR_SERVICE_UNAVAILABLE';
Please login to merge, or discard this patch.
src/Response/Directives/AudioPlayer/ClearDirective.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 
7 7
 use MaxBeckers\AmazonAlexa\Response\Directives\Directive;
8 8
 
9
-class ClearDirective extends Directive
10
-{
9
+class ClearDirective extends Directive {
11 10
     public const TYPE = 'AudioPlayer.ClearQueue';
12 11
 
13 12
     public const CLEAR_BEHAVIOR_CLEAR_ENQUEUED = 'CLEAR_ENQUEUED';
Please login to merge, or discard this patch.
src/Response/Directives/AudioPlayer/CurrentPlaybackState.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response\Directives\AudioPlayer;
6 6
 
7
-class CurrentPlaybackState
8
-{
7
+class CurrentPlaybackState {
9 8
     public const PLAYER_ACTIVITY_PLAYING = 'PLAYING';
10 9
     public const PLAYER_ACTIVITY_PAUSED = 'PAUSED';
11 10
     public const PLAYER_ACTIVITY_FINISHED = 'FINISHED';
Please login to merge, or discard this patch.
src/Response/Directives/AudioPlayer/PlayDirective.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 
7 7
 use MaxBeckers\AmazonAlexa\Response\Directives\Directive;
8 8
 
9
-class PlayDirective extends Directive
10
-{
9
+class PlayDirective extends Directive {
11 10
     public const TYPE = 'AudioPlayer.Play';
12 11
 
13 12
     public const PLAY_BEHAVIOR_REPLACE_ALL = 'REPLACE_ALL';
Please login to merge, or discard this patch.
src/Response/Directives/GameEngine/Event.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response\Directives\GameEngine;
6 6
 
7
-class Event
8
-{
7
+class Event {
9 8
     public const REPORTS_HISTORY = 'history';
10 9
     public const REPORTS_MATCHES = 'matches';
11 10
     public const REPORTS_NOTHING = 'nothing';
Please login to merge, or discard this patch.
Switch Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@
 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\Response\Directives\GameEngine;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\GameEngine;
6 6
 
7
-class Event
8
-{
9
-    public const REPORTS_HISTORY = 'history';
10
-    public const REPORTS_MATCHES = 'matches';
11
-    public const REPORTS_NOTHING = 'nothing';
7
+    class Event
8
+    {
9
+        public const REPORTS_HISTORY = 'history';
10
+        public const REPORTS_MATCHES = 'matches';
11
+        public const REPORTS_NOTHING = 'nothing';
12 12
 
13
-    public function __construct(
14
-        public array $meets = [],
15
-        public ?array $fails = null,
16
-        public ?string $reports = null,
17
-        public ?bool $shouldEndInputHandler = null,
18
-        public ?int $maximumInvocations = null,
19
-        public ?int $triggerTimeMilliseconds = null
20
-    ) {
21
-    }
13
+        public function __construct(
14
+            public array $meets = [],
15
+            public ?array $fails = null,
16
+            public ?string $reports = null,
17
+            public ?bool $shouldEndInputHandler = null,
18
+            public ?int $maximumInvocations = null,
19
+            public ?int $triggerTimeMilliseconds = null
20
+        ) {
21
+        }
22 22
 
23
-    public static function create(array $meets, bool $shouldEndInputHandler, ?array $fails = null, ?string $reports = null, ?int $maximumInvocations = null, ?int $triggerTimeMilliseconds = null): self
24
-    {
25
-        return new self($meets, $fails, $reports, $shouldEndInputHandler, $maximumInvocations, $triggerTimeMilliseconds);
26
-    }
23
+        public static function create(array $meets, bool $shouldEndInputHandler, ?array $fails = null, ?string $reports = null, ?int $maximumInvocations = null, ?int $triggerTimeMilliseconds = null): self
24
+        {
25
+            return new self($meets, $fails, $reports, $shouldEndInputHandler, $maximumInvocations, $triggerTimeMilliseconds);
26
+        }
27 27
 }
Please login to merge, or discard this patch.
src/Response/Directives/GameEngine/Pattern.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response\Directives\GameEngine;
6 6
 
7
-class Pattern
8
-{
7
+class Pattern {
9 8
     public const ACTION_DOWN = 'down';
10 9
     public const ACTION_UP = 'up';
11 10
     public const ACTION_SILENCE = 'silence';
Please login to merge, or discard this patch.
Switch Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,25 +1,25 @@
 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\Response\Directives\GameEngine;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\GameEngine;
6 6
 
7
-class Pattern
8
-{
9
-    public const ACTION_DOWN = 'down';
10
-    public const ACTION_UP = 'up';
11
-    public const ACTION_SILENCE = 'silence';
7
+    class Pattern
8
+    {
9
+        public const ACTION_DOWN = 'down';
10
+        public const ACTION_UP = 'up';
11
+        public const ACTION_SILENCE = 'silence';
12 12
 
13
-    public function __construct(
14
-        public ?array $gadgetIds = null,
15
-        public ?array $colors = null,
16
-        public ?string $action = null,
17
-        public ?int $repeat = null
18
-    ) {
19
-    }
13
+        public function __construct(
14
+            public ?array $gadgetIds = null,
15
+            public ?array $colors = null,
16
+            public ?string $action = null,
17
+            public ?int $repeat = null
18
+        ) {
19
+        }
20 20
 
21
-    public static function create(?string $action = null, ?array $gadgetIds = null, ?array $colors = null, ?int $repeat = null): self
22
-    {
23
-        return new self($gadgetIds, $colors, $action, $repeat);
24
-    }
21
+        public static function create(?string $action = null, ?array $gadgetIds = null, ?array $colors = null, ?int $repeat = null): self
22
+        {
23
+            return new self($gadgetIds, $colors, $action, $repeat);
24
+        }
25 25
 }
Please login to merge, or discard this patch.
src/Response/Directives/GameEngine/RecognizerMatch.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response\Directives\GameEngine;
6 6
 
7
-class RecognizerMatch extends Recognizer
8
-{
7
+class RecognizerMatch extends Recognizer {
9 8
     public const TYPE = 'match';
10 9
     public const ANCHOR_START = 'start';
11 10
     public const ANCHOR_END = 'end';
Please login to merge, or discard this patch.
Switch Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@  discard block
 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\Response\Directives\GameEngine;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\GameEngine;
6 6
 
7
-class RecognizerMatch extends Recognizer
8
-{
9
-    public const TYPE = 'match';
10
-    public const ANCHOR_START = 'start';
11
-    public const ANCHOR_END = 'end';
12
-    public const ANCHOR_ANYWHERE = 'anywhere';
7
+    class RecognizerMatch extends Recognizer
8
+    {
9
+        public const TYPE = 'match';
10
+        public const ANCHOR_START = 'start';
11
+        public const ANCHOR_END = 'end';
12
+        public const ANCHOR_ANYWHERE = 'anywhere';
13 13
 
14
-    /** @param Pattern[] $pattern */
15
-    public function __construct(
16
-        public ?string $anchor = null,
17
-        public ?bool $fuzzy = null,
18
-        public ?array $gadgetIds = null,
19
-        public ?array $actions = null,
20
-        public array $pattern = []
21
-    ) {
22
-        parent::__construct(self::TYPE);
23
-    }
14
+        /** @param Pattern[] $pattern */
15
+        public function __construct(
16
+            public ?string $anchor = null,
17
+            public ?bool $fuzzy = null,
18
+            public ?array $gadgetIds = null,
19
+            public ?array $actions = null,
20
+            public array $pattern = []
21
+        ) {
22
+            parent::__construct(self::TYPE);
23
+        }
24 24
 
25
-    /**
25
+        /**
26 26
      * @param Pattern[] $pattern
27 27
      * @param string $anchor
28 28
      * @param bool $fuzzy
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return RecognizerMatch
33 33
      */
34
-    public static function create(array $pattern, string $anchor = self::ANCHOR_START, bool $fuzzy = false, ?array $gadgetIds = null, ?array $actions = null): self
35
-    {
36
-        return new self($anchor, $fuzzy, $gadgetIds, $actions, $pattern);
37
-    }
34
+        public static function create(array $pattern, string $anchor = self::ANCHOR_START, bool $fuzzy = false, ?array $gadgetIds = null, ?array $actions = null): self
35
+        {
36
+            return new self($anchor, $fuzzy, $gadgetIds, $actions, $pattern);
37
+        }
38 38
 }
Please login to merge, or discard this patch.