Passed
Pull Request — master (#97)
by Maximilian
04:02
created
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.
src/Response/Directives/APL/Document/Graphic.php 1 patch
Switch Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  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\APL\Document;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document;
6 6
 
7
-use MaxBeckers\AmazonAlexa\Response\Directives\APL\AVGItem\AVGItem;
7
+    use MaxBeckers\AmazonAlexa\Response\Directives\APL\AVGItem\AVGItem;
8 8
 
9
-class Graphic implements \JsonSerializable
10
-{
11
-    /**
9
+    class Graphic implements \JsonSerializable
10
+    {
11
+        /**
12 12
      * @param int $height Height of the graphic
13 13
      * @param int $width Width of the graphic
14 14
      * @param array|null $data Array of arbitrary data for inflation
@@ -27,47 +27,47 @@  discard block
 block discarded – undo
27 27
      * @param int|null $viewportHeight Viewport height
28 28
      * @param int|null $viewportWidth Viewport width
29 29
      */
30
-    public function __construct(
31
-        public int $height,
32
-        public int $width,
33
-        public ?array $data = null,
34
-        public string $description = '',
35
-        public ?AVGItem $item = null,
36
-        public ?array $items = null,
37
-        public ?string $lang = null,
38
-        public LayoutDirection $layoutDirection = LayoutDirection::LTR,
39
-        public array $parameters = [],
40
-        public array $resources = [],
41
-        public ScaleType $scaleTypeHeight = ScaleType::NONE,
42
-        public ScaleType $scaleTypeWidth = ScaleType::NONE,
43
-        public array $styles = [],
44
-        public string $type = 'AVG',
45
-        public string $version = '1.2',
46
-        public ?int $viewportHeight = null,
47
-        public ?int $viewportWidth = null,
48
-    ) {
49
-    }
30
+        public function __construct(
31
+            public int $height,
32
+            public int $width,
33
+            public ?array $data = null,
34
+            public string $description = '',
35
+            public ?AVGItem $item = null,
36
+            public ?array $items = null,
37
+            public ?string $lang = null,
38
+            public LayoutDirection $layoutDirection = LayoutDirection::LTR,
39
+            public array $parameters = [],
40
+            public array $resources = [],
41
+            public ScaleType $scaleTypeHeight = ScaleType::NONE,
42
+            public ScaleType $scaleTypeWidth = ScaleType::NONE,
43
+            public array $styles = [],
44
+            public string $type = 'AVG',
45
+            public string $version = '1.2',
46
+            public ?int $viewportHeight = null,
47
+            public ?int $viewportWidth = null,
48
+        ) {
49
+        }
50 50
 
51
-    public function jsonSerialize(): array
52
-    {
53
-        return array_filter([
54
-            'data' => $this->data,
55
-            'description' => $this->description,
56
-            'height' => $this->height,
57
-            'item' => $this->item,
58
-            'items' => $this->items,
59
-            'lang' => $this->lang,
60
-            'layoutDirection' => $this->layoutDirection,
61
-            'parameters' => $this->parameters,
62
-            'resources' => $this->resources,
63
-            'scaleTypeHeight' => $this->scaleTypeHeight,
64
-            'scaleTypeWidth' => $this->scaleTypeWidth,
65
-            'styles' => $this->styles,
66
-            'type' => $this->type,
67
-            'version' => $this->version,
68
-            'viewportHeight' => $this->viewportHeight,
69
-            'viewportWidth' => $this->viewportWidth,
70
-            'width' => $this->width,
71
-        ], fn ($value) => $value !== null && $value !== []);
72
-    }
51
+        public function jsonSerialize(): array
52
+        {
53
+            return array_filter([
54
+                'data' => $this->data,
55
+                'description' => $this->description,
56
+                'height' => $this->height,
57
+                'item' => $this->item,
58
+                'items' => $this->items,
59
+                'lang' => $this->lang,
60
+                'layoutDirection' => $this->layoutDirection,
61
+                'parameters' => $this->parameters,
62
+                'resources' => $this->resources,
63
+                'scaleTypeHeight' => $this->scaleTypeHeight,
64
+                'scaleTypeWidth' => $this->scaleTypeWidth,
65
+                'styles' => $this->styles,
66
+                'type' => $this->type,
67
+                'version' => $this->version,
68
+                'viewportHeight' => $this->viewportHeight,
69
+                'viewportWidth' => $this->viewportWidth,
70
+                'width' => $this->width,
71
+            ], fn ($value) => $value !== null && $value !== []);
72
+        }
73 73
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/RepeatMode.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 RepeatMode: string
8
-{
9
-    case RESTART = 'restart';
10
-    case REVERSE = 'reverse';
7
+    enum RepeatMode: string
8
+    {
9
+        case RESTART = 'restart';
10
+        case REVERSE = 'reverse';
11 11
 }
Please login to merge, or discard this patch.