Passed
Pull Request — master (#97)
by Maximilian
03:52
created
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.
src/Response/Directives/APL/Document/Style.php 1 patch
Switch Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,47 +1,47 @@
 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
-class Style implements \JsonSerializable
8
-{
9
-    /**
7
+    class Style implements \JsonSerializable
8
+    {
9
+        /**
10 10
      * @param string|null $description Optional description of this style
11 11
      * @param string[]|null $extend List of styles that this style inherits from (array)
12 12
      * @param string|null $extends Single style that this style inherits from (string)
13 13
      * @param StyleValue|null $value Single style value object
14 14
      * @param StyleValue[]|null $values Array of style value objects
15 15
      */
16
-    public function __construct(
17
-        public ?string $description = null,
18
-        public ?array $extend = null,
19
-        public ?string $extends = null,
20
-        public ?StyleValue $value = null,
21
-        public ?array $values = null,
22
-    ) {
23
-    }
16
+        public function __construct(
17
+            public ?string $description = null,
18
+            public ?array $extend = null,
19
+            public ?string $extends = null,
20
+            public ?StyleValue $value = null,
21
+            public ?array $values = null,
22
+        ) {
23
+        }
24 24
 
25
-    public function jsonSerialize(): array
26
-    {
27
-        $data = [];
25
+        public function jsonSerialize(): array
26
+        {
27
+            $data = [];
28 28
 
29
-        if ($this->description !== null && $this->description !== '') {
30
-            $data['description'] = $this->description;
31
-        }
32
-        if ($this->extend !== null && $this->extend !== []) {
33
-            $data['extend'] = $this->extend;
34
-        }
35
-        if ($this->extends !== null && $this->extends !== '') {
36
-            $data['extends'] = $this->extends;
37
-        }
38
-        if ($this->value instanceof StyleValue) {
39
-            $data['value'] = $this->value;
40
-        }
41
-        if ($this->values !== null && $this->values !== []) {
42
-            $data['values'] = $this->values;
43
-        }
29
+            if ($this->description !== null && $this->description !== '') {
30
+                $data['description'] = $this->description;
31
+            }
32
+            if ($this->extend !== null && $this->extend !== []) {
33
+                $data['extend'] = $this->extend;
34
+            }
35
+            if ($this->extends !== null && $this->extends !== '') {
36
+                $data['extends'] = $this->extends;
37
+            }
38
+            if ($this->value instanceof StyleValue) {
39
+                $data['value'] = $this->value;
40
+            }
41
+            if ($this->values !== null && $this->values !== []) {
42
+                $data['values'] = $this->values;
43
+            }
44 44
 
45
-        return $data;
46
-    }
45
+            return $data;
46
+        }
47 47
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/AVGFilterType.php 1 patch
Switch Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 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 AVGFilterType: string
8
-{
9
-    case DROP_SHADOW = 'DropShadow';
7
+    enum AVGFilterType: string
8
+    {
9
+        case DROP_SHADOW = 'DropShadow';
10 10
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/ImportType.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 ImportType: string
8
-{
9
-    case ALL_OF = 'allOf';
10
-    case ONE_OF = 'oneOf';
7
+    enum ImportType: string
8
+    {
9
+        case ALL_OF = 'allOf';
10
+        case ONE_OF = 'oneOf';
11 11
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/TextAlign.php 1 patch
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 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 TextAlign: string
8
-{
9
-    case AUTO = 'auto';
10
-    case LEFT = 'left';
11
-    case RIGHT = 'right';
12
-    case CENTER = 'center';
13
-    case START = 'start';
14
-    case END = 'end';
7
+    enum TextAlign: string
8
+    {
9
+        case AUTO = 'auto';
10
+        case LEFT = 'left';
11
+        case RIGHT = 'right';
12
+        case CENTER = 'center';
13
+        case START = 'start';
14
+        case END = 'end';
15 15
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/AVGItemType.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 AVGItemType: string
8
-{
9
-    case GROUP = 'group';
10
-    case PATH = 'path';
11
-    case TEXT = 'text';
7
+    enum AVGItemType: string
8
+    {
9
+        case GROUP = 'group';
10
+        case PATH = 'path';
11
+        case TEXT = 'text';
12 12
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/Wrap.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 Wrap: string
8
-{
9
-    case NO_WRAP = 'noWrap';
10
-    case WRAP = 'wrap';
11
-    case WRAP_REVERSE = 'wrapReverse';
7
+    enum Wrap: string
8
+    {
9
+        case NO_WRAP = 'noWrap';
10
+        case WRAP = 'wrap';
11
+        case WRAP_REVERSE = 'wrapReverse';
12 12
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/Layout.php 1 patch
Switch Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,37 +1,37 @@
 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\Component\APLBaseComponent;
7
+    use MaxBeckers\AmazonAlexa\Response\Directives\APL\Component\APLBaseComponent;
8 8
 
9
-class Layout implements \JsonSerializable
10
-{
11
-    /**
9
+    class Layout implements \JsonSerializable
10
+    {
11
+        /**
12 12
      * @param Bind[]|null $bind Array of binding objects
13 13
      * @param string|null $description Optional description of this layout
14 14
      * @param APLBaseComponent|null $item Single component to display
15 15
      * @param APLBaseComponent[]|null $items Array of components to display
16 16
      * @param LayoutParameter[]|null $parameters Array of layout parameters
17 17
      */
18
-    public function __construct(
19
-        public ?array $bind = null,
20
-        public ?string $description = null,
21
-        public ?APLBaseComponent $item = null,
22
-        public ?array $items = null,
23
-        public ?array $parameters = null,
24
-    ) {
25
-    }
18
+        public function __construct(
19
+            public ?array $bind = null,
20
+            public ?string $description = null,
21
+            public ?APLBaseComponent $item = null,
22
+            public ?array $items = null,
23
+            public ?array $parameters = null,
24
+        ) {
25
+        }
26 26
 
27
-    public function jsonSerialize(): array
28
-    {
29
-        return array_filter([
30
-            'bind' => $this->bind,
31
-            'description' => $this->description,
32
-            'item' => $this->item,
33
-            'items' => $this->items,
34
-            'parameters' => $this->parameters,
35
-        ], fn ($value) => $value !== null);
36
-    }
27
+        public function jsonSerialize(): array
28
+        {
29
+            return array_filter([
30
+                'bind' => $this->bind,
31
+                'description' => $this->description,
32
+                'item' => $this->item,
33
+                'items' => $this->items,
34
+                'parameters' => $this->parameters,
35
+            ], fn ($value) => $value !== null);
36
+        }
37 37
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/TextAlignVertical.php 1 patch
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 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 TextAlignVertical: string
8
-{
9
-    case AUTO = 'auto';
10
-    case TOP = 'top';
11
-    case BOTTOM = 'bottom';
12
-    case CENTER = 'center';
7
+    enum TextAlignVertical: string
8
+    {
9
+        case AUTO = 'auto';
10
+        case TOP = 'top';
11
+        case BOTTOM = 'bottom';
12
+        case CENTER = 'center';
13 13
 }
Please login to merge, or discard this patch.