Passed
Pull Request — master (#97)
by Maximilian
04:02
created
src/Response/Directives/APL/Document/Parameter.php 1 patch
Switch Indentation   +28 added lines, -28 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
-class Parameter implements \JsonSerializable
8
-{
9
-    public function __construct(
10
-        public string $name,
11
-        public mixed $default = null,
12
-        public ?string $description = null,
13
-        public ?ParameterType $type = null,
14
-    ) {
15
-    }
16
-
17
-    public function jsonSerialize(): array
7
+    class Parameter implements \JsonSerializable
18 8
     {
19
-        $data = [
20
-            'name' => $this->name,
21
-        ];
22
-
23
-        if ($this->type !== null) {
24
-            $data['type'] = $this->type;
9
+        public function __construct(
10
+            public string $name,
11
+            public mixed $default = null,
12
+            public ?string $description = null,
13
+            public ?ParameterType $type = null,
14
+        ) {
25 15
         }
26 16
 
27
-        if ($this->default !== null) {
28
-            $data['default'] = $this->default;
29
-        }
17
+        public function jsonSerialize(): array
18
+        {
19
+            $data = [
20
+                'name' => $this->name,
21
+            ];
30 22
 
31
-        if ($this->description !== null) {
32
-            $data['description'] = $this->description;
33
-        }
23
+            if ($this->type !== null) {
24
+                $data['type'] = $this->type;
25
+            }
34 26
 
35
-        return $data;
36
-    }
27
+            if ($this->default !== null) {
28
+                $data['default'] = $this->default;
29
+            }
30
+
31
+            if ($this->description !== null) {
32
+                $data['description'] = $this->description;
33
+            }
34
+
35
+            return $data;
36
+        }
37 37
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/StrokeLineCap.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 StrokeLineCap: string
8
-{
9
-    case BUTT = 'butt';
10
-    case ROUND = 'round';
11
-    case SQUARE = 'square';
7
+    enum StrokeLineCap: string
8
+    {
9
+        case BUTT = 'butt';
10
+        case ROUND = 'round';
11
+        case SQUARE = 'square';
12 12
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/StrokeLineJoin.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 StrokeLineJoin: string
8
-{
9
-    case BEVEL = 'bevel';
10
-    case MITER = 'miter';
11
-    case ROUND = 'round';
7
+    enum StrokeLineJoin: string
8
+    {
9
+        case BEVEL = 'bevel';
10
+        case MITER = 'miter';
11
+        case ROUND = 'round';
12 12
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/LayoutDirection.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 LayoutDirection: string
8
-{
9
-    case LTR = 'LTR';
10
-    case RTL = 'RTL';
11
-    case INHERIT = 'inherit';
7
+    enum LayoutDirection: string
8
+    {
9
+        case LTR = 'LTR';
10
+        case RTL = 'RTL';
11
+        case INHERIT = 'inherit';
12 12
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/BindType.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 BindType: string
8
-{
9
-    case ANY = 'any';
10
-    case BOOLEAN = 'boolean';
11
-    case STRING = 'string';
12
-    case NUMBER = 'number';
13
-    case DIMENSION = 'dimension';
14
-    case COLOR = 'color';
7
+    enum BindType: string
8
+    {
9
+        case ANY = 'any';
10
+        case BOOLEAN = 'boolean';
11
+        case STRING = 'string';
12
+        case NUMBER = 'number';
13
+        case DIMENSION = 'dimension';
14
+        case COLOR = 'color';
15 15
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/Resource.php 1 patch
Switch Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  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
-class Resource implements \JsonSerializable
8
-{
9
-    /**
7
+    class Resource implements \JsonSerializable
8
+    {
9
+        /**
10 10
      * @param bool|null $boolean Single boolean value
11 11
      * @param array<string,bool>|null $booleans Map of boolean name to boolean value
12 12
      * @param string|null $color Single color value
@@ -24,79 +24,79 @@  discard block
 block discarded – undo
24 24
      * @param array<string,string>|null $strings Map of name to string
25 25
      * @param string|null $when APL boolean expression controlling whether this resource is considered
26 26
      */
27
-    public function __construct(
28
-        public ?bool $boolean = null,
29
-        public ?array $booleans = null,
30
-        public ?string $color = null,
31
-        public ?array $colors = null,
32
-        public ?string $description = null,
33
-        public ?string $dimension = null,
34
-        public ?array $dimensions = null,
35
-        public ?string $easing = null,
36
-        public ?array $easings = null,
37
-        public ?Gradient $gradient = null,
38
-        public ?array $gradients = null,
39
-        public ?string $number = null,
40
-        public ?array $numbers = null,
41
-        public ?string $string = null,
42
-        public ?array $strings = null,
43
-        public ?string $when = null,
44
-    ) {
45
-    }
27
+        public function __construct(
28
+            public ?bool $boolean = null,
29
+            public ?array $booleans = null,
30
+            public ?string $color = null,
31
+            public ?array $colors = null,
32
+            public ?string $description = null,
33
+            public ?string $dimension = null,
34
+            public ?array $dimensions = null,
35
+            public ?string $easing = null,
36
+            public ?array $easings = null,
37
+            public ?Gradient $gradient = null,
38
+            public ?array $gradients = null,
39
+            public ?string $number = null,
40
+            public ?array $numbers = null,
41
+            public ?string $string = null,
42
+            public ?array $strings = null,
43
+            public ?string $when = null,
44
+        ) {
45
+        }
46 46
 
47
-    public function jsonSerialize(): array
48
-    {
49
-        $data = [];
47
+        public function jsonSerialize(): array
48
+        {
49
+            $data = [];
50 50
 
51
-        if ($this->boolean !== null) {
52
-            $data['boolean'] = $this->boolean;
53
-        }
54
-        if ($this->booleans !== null && $this->booleans !== []) {
55
-            $data['booleans'] = $this->booleans;
56
-        }
57
-        if ($this->color !== null) {
58
-            $data['color'] = $this->color;
59
-        }
60
-        if ($this->colors !== null && $this->colors !== []) {
61
-            $data['colors'] = $this->colors;
62
-        }
63
-        if ($this->description !== null && $this->description !== '') {
64
-            $data['description'] = $this->description;
65
-        }
66
-        if ($this->dimension !== null) {
67
-            $data['dimension'] = $this->dimension;
68
-        }
69
-        if ($this->dimensions !== null && $this->dimensions !== []) {
70
-            $data['dimensions'] = $this->dimensions;
71
-        }
72
-        if ($this->easing !== null) {
73
-            $data['easing'] = $this->easing;
74
-        }
75
-        if ($this->easings !== null && $this->easings !== []) {
76
-            $data['easings'] = $this->easings;
77
-        }
78
-        if ($this->gradient !== null) {
79
-            $data['gradient'] = $this->gradient;
80
-        }
81
-        if ($this->gradients !== null && $this->gradients !== []) {
82
-            $data['gradients'] = $this->gradients;
83
-        }
84
-        if ($this->number !== null) {
85
-            $data['number'] = $this->number;
86
-        }
87
-        if ($this->numbers !== null && $this->numbers !== []) {
88
-            $data['numbers'] = $this->numbers;
89
-        }
90
-        if ($this->string !== null) {
91
-            $data['string'] = $this->string;
92
-        }
93
-        if ($this->strings !== null && $this->strings !== []) {
94
-            $data['strings'] = $this->strings;
95
-        }
96
-        if ($this->when !== null) {
97
-            $data['when'] = $this->when;
98
-        }
51
+            if ($this->boolean !== null) {
52
+                $data['boolean'] = $this->boolean;
53
+            }
54
+            if ($this->booleans !== null && $this->booleans !== []) {
55
+                $data['booleans'] = $this->booleans;
56
+            }
57
+            if ($this->color !== null) {
58
+                $data['color'] = $this->color;
59
+            }
60
+            if ($this->colors !== null && $this->colors !== []) {
61
+                $data['colors'] = $this->colors;
62
+            }
63
+            if ($this->description !== null && $this->description !== '') {
64
+                $data['description'] = $this->description;
65
+            }
66
+            if ($this->dimension !== null) {
67
+                $data['dimension'] = $this->dimension;
68
+            }
69
+            if ($this->dimensions !== null && $this->dimensions !== []) {
70
+                $data['dimensions'] = $this->dimensions;
71
+            }
72
+            if ($this->easing !== null) {
73
+                $data['easing'] = $this->easing;
74
+            }
75
+            if ($this->easings !== null && $this->easings !== []) {
76
+                $data['easings'] = $this->easings;
77
+            }
78
+            if ($this->gradient !== null) {
79
+                $data['gradient'] = $this->gradient;
80
+            }
81
+            if ($this->gradients !== null && $this->gradients !== []) {
82
+                $data['gradients'] = $this->gradients;
83
+            }
84
+            if ($this->number !== null) {
85
+                $data['number'] = $this->number;
86
+            }
87
+            if ($this->numbers !== null && $this->numbers !== []) {
88
+                $data['numbers'] = $this->numbers;
89
+            }
90
+            if ($this->string !== null) {
91
+                $data['string'] = $this->string;
92
+            }
93
+            if ($this->strings !== null && $this->strings !== []) {
94
+                $data['strings'] = $this->strings;
95
+            }
96
+            if ($this->when !== null) {
97
+                $data['when'] = $this->when;
98
+            }
99 99
 
100
-        return $data;
101
-    }
100
+            return $data;
101
+        }
102 102
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/PointerEvents.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 PointerEvents: string
8
-{
9
-    case AUTO = 'auto';
10
-    case NONE = 'none';
7
+    enum PointerEvents: string
8
+    {
9
+        case AUTO = 'auto';
10
+        case NONE = 'none';
11 11
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/GestureType.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 GestureType: string
8
-{
9
-    case DOUBLE_PRESS = 'DoublePress';
10
-    case LONG_PRESS = 'LongPress';
11
-    case SWIPE_AWAY = 'SwipeAway';
12
-    case TAP = 'Tap';
7
+    enum GestureType: string
8
+    {
9
+        case DOUBLE_PRESS = 'DoublePress';
10
+        case LONG_PRESS = 'LongPress';
11
+        case SWIPE_AWAY = 'SwipeAway';
12
+        case TAP = 'Tap';
13 13
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/ExportItem.php 1 patch
Switch Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 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 ExportItem implements \JsonSerializable
8
-{
9
-    public function __construct(
10
-        public string $name,
11
-        public string $description = '',
12
-    ) {
13
-    }
14
-
15
-    public function jsonSerialize(): array
7
+    class ExportItem implements \JsonSerializable
16 8
     {
17
-        return array_filter([
18
-            'name' => $this->name,
19
-            'description' => $this->description ?: null,
20
-        ]);
21
-    }
9
+        public function __construct(
10
+            public string $name,
11
+            public string $description = '',
12
+        ) {
13
+        }
14
+
15
+        public function jsonSerialize(): array
16
+        {
17
+            return array_filter([
18
+                'name' => $this->name,
19
+                'description' => $this->description ?: null,
20
+            ]);
21
+        }
22 22
 }
Please login to merge, or discard this patch.