Passed
Pull Request — master (#97)
by Maximilian
03:52
created
src/Response/Directives/APL/Document/Bind.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\AbstractStandardCommand;
7
+    use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\AbstractStandardCommand;
8 8
 
9
-class Bind implements \JsonSerializable
10
-{
11
-    /**
9
+    class Bind implements \JsonSerializable
10
+    {
11
+        /**
12 12
      * @param string $name Name of the binding
13 13
      * @param mixed $value Value to bind
14 14
      * @param BindType $type Type of the binding
15 15
      * @param AbstractStandardCommand[] $onChange Commands to run when value changes
16 16
      */
17
-    public function __construct(
18
-        public string $name,
19
-        public mixed $value,
20
-        public BindType $type = BindType::ANY,
21
-        public array $onChange = [],
22
-    ) {
23
-    }
17
+        public function __construct(
18
+            public string $name,
19
+            public mixed $value,
20
+            public BindType $type = BindType::ANY,
21
+            public array $onChange = [],
22
+        ) {
23
+        }
24 24
 
25
-    public function jsonSerialize(): array
26
-    {
27
-        $data = [
28
-            'name'  => $this->name,
29
-            'value' => $this->value,
30
-            'type'  => $this->type->value,
31
-        ];
25
+        public function jsonSerialize(): array
26
+        {
27
+            $data = [
28
+                'name'  => $this->name,
29
+                'value' => $this->value,
30
+                'type'  => $this->type->value,
31
+            ];
32 32
 
33
-        if (!empty($this->onChange)) {
34
-            $data['onChange'] = $this->onChange;
35
-        }
33
+            if (!empty($this->onChange)) {
34
+                $data['onChange'] = $this->onChange;
35
+            }
36 36
 
37
-        return $data;
38
-    }
37
+            return $data;
38
+        }
39 39
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/KeyHandler.php 1 patch
Switch Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\AbstractStandardCommand;
7
+    use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\AbstractStandardCommand;
8 8
 
9
-class KeyHandler implements \JsonSerializable
10
-{
11
-    /**
9
+    class KeyHandler implements \JsonSerializable
10
+    {
11
+        /**
12 12
      * @param AbstractStandardCommand[] $commands Commands to run when handler applies
13 13
      * @param bool $propagate Whether to propagate the event after handling
14 14
      * @param string|null $when APL boolean expression controlling whether this handler is considered
15 15
      */
16
-    public function __construct(
17
-        public array $commands = [],
18
-        public bool $propagate = false,
19
-        public ?string $when = null,
20
-    ) {
21
-    }
16
+        public function __construct(
17
+            public array $commands = [],
18
+            public bool $propagate = false,
19
+            public ?string $when = null,
20
+        ) {
21
+        }
22 22
 
23
-    public function jsonSerialize(): array
24
-    {
25
-        return array_filter([
26
-            'commands' => $this->commands,
27
-            'propagate' => $this->propagate,
28
-            'when' => $this->when,
29
-        ], fn ($value) => $value !== null);
30
-    }
23
+        public function jsonSerialize(): array
24
+        {
25
+            return array_filter([
26
+                'commands' => $this->commands,
27
+                'propagate' => $this->propagate,
28
+                'when' => $this->when,
29
+            ], fn ($value) => $value !== null);
30
+        }
31 31
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/ControlMediaCommand.php 1 patch
Switch Indentation   +13 added lines, -13 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\Response\Directives\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-enum ControlMediaCommand: string
8
-{
9
-    case PLAY = 'play';
10
-    case PAUSE = 'pause';
11
-    case NEXT = 'next';
12
-    case PREVIOUS = 'previous';
13
-    case REWIND = 'rewind';
14
-    case SEEK = 'seek';
15
-    case SEEK_TO = 'seekTo';
16
-    case SET_TRACK = 'setTrack';
7
+    enum ControlMediaCommand: string
8
+    {
9
+        case PLAY = 'play';
10
+        case PAUSE = 'pause';
11
+        case NEXT = 'next';
12
+        case PREVIOUS = 'previous';
13
+        case REWIND = 'rewind';
14
+        case SEEK = 'seek';
15
+        case SEEK_TO = 'seekTo';
16
+        case SET_TRACK = 'setTrack';
17 17
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/PageDirection.php 1 patch
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-enum PageDirection: string
8
-{
9
-    case HORIZONTAL = 'horizontal';
10
-    case VERTICAL = 'vertical';
7
+    enum PageDirection: string
8
+    {
9
+        case HORIZONTAL = 'horizontal';
10
+        case VERTICAL = 'vertical';
11 11
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/FlexAlignItems.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-enum FlexAlignItems: string
8
-{
9
-    case CENTER = 'center';
10
-    case START = 'start';
11
-    case END = 'end';
7
+    enum FlexAlignItems: string
8
+    {
9
+        case CENTER = 'center';
10
+        case START = 'start';
11
+        case END = 'end';
12 12
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/LogLevel.php 1 patch
Switch Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-enum LogLevel: string
8
-{
9
-    case DEBUG = 'debug';
10
-    case INFO = 'info';
11
-    case WARN = 'warn';
12
-    case ERROR = 'error';
13
-    case CRITICAL = 'critical';
7
+    enum LogLevel: string
8
+    {
9
+        case DEBUG = 'debug';
10
+        case INFO = 'info';
11
+        case WARN = 'warn';
12
+        case ERROR = 'error';
13
+        case CRITICAL = 'critical';
14 14
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/AudioTrack.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-enum AudioTrack: string
8
-{
9
-    case FOREGROUND = 'foreground';
10
-    case BACKGROUND = 'background';
11
-    case NONE = 'none';
7
+    enum AudioTrack: string
8
+    {
9
+        case FOREGROUND = 'foreground';
10
+        case BACKGROUND = 'background';
11
+        case NONE = 'none';
12 12
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/JustifyContent.php 1 patch
Switch Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-enum JustifyContent: string
8
-{
9
-    case START = 'start';
10
-    case END = 'end';
11
-    case CENTER = 'center';
12
-    case SPACE_BETWEEN = 'spaceBetween';
13
-    case SPACE_AROUND = 'spaceAround';
7
+    enum JustifyContent: string
8
+    {
9
+        case START = 'start';
10
+        case END = 'end';
11
+        case CENTER = 'center';
12
+        case SPACE_BETWEEN = 'spaceBetween';
13
+        case SPACE_AROUND = 'spaceAround';
14 14
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/InteractionMode.php 1 patch
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-enum InteractionMode: string
8
-{
9
-    case INLINE = 'INLINE';
10
-    case STANDARD = 'STANDARD';
7
+    enum InteractionMode: string
8
+    {
9
+        case INLINE = 'INLINE';
10
+        case STANDARD = 'STANDARD';
11 11
 }
Please login to merge, or discard this patch.