Passed
Pull Request — master (#97)
by Maximilian
04:17
created
src/Response/Directives/APL/Document/Gradient.php 1 patch
Switch Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1,40 +1,40 @@
 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 Gradient implements \JsonSerializable
8
-{
9
-    /**
7
+    class Gradient implements \JsonSerializable
8
+    {
9
+        /**
10 10
      * @param string[] $colorRange Array of colors for the gradient
11 11
      * @param string $description Description of the gradient
12 12
      * @param BackgroundType $type Type of gradient (linear or radial)
13 13
      * @param float[]|null $inputRange Array of input range values
14 14
      * @param int $angle Angle for linear gradients
15 15
      */
16
-    public function __construct(
17
-        public array $colorRange,
18
-        public string $description = '',
19
-        public BackgroundType $type = BackgroundType::LINEAR,
20
-        public ?array $inputRange = [],
21
-        public int $angle = 0,
22
-    ) {
23
-    }
16
+        public function __construct(
17
+            public array $colorRange,
18
+            public string $description = '',
19
+            public BackgroundType $type = BackgroundType::LINEAR,
20
+            public ?array $inputRange = [],
21
+            public int $angle = 0,
22
+        ) {
23
+        }
24 24
 
25
-    public function jsonSerialize(): array
26
-    {
27
-        $data = [
28
-            'description' => $this->description,
29
-            'colorRange' => $this->colorRange,
30
-            'angle' => $this->angle,
31
-            'type' => $this->type,
32
-        ];
25
+        public function jsonSerialize(): array
26
+        {
27
+            $data = [
28
+                'description' => $this->description,
29
+                'colorRange' => $this->colorRange,
30
+                'angle' => $this->angle,
31
+                'type' => $this->type,
32
+            ];
33 33
 
34
-        if ($this->inputRange !== null && count($this->inputRange) > 0) {
35
-            $data['inputRange'] = $this->inputRange;
36
-        }
34
+            if ($this->inputRange !== null && count($this->inputRange) > 0) {
35
+                $data['inputRange'] = $this->inputRange;
36
+            }
37 37
 
38
-        return $data;
39
-    }
38
+            return $data;
39
+        }
40 40
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/LayoutParameterType.php 1 patch
Switch Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 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 LayoutParameterType: string
8
-{
9
-    case ANY = 'any';
10
-    case ARRAY = 'array';
11
-    case BOOLEAN = 'boolean';
12
-    case COLOR = 'color';
13
-    case COMPONENT = 'component';
14
-    case DIMENSION = 'dimension';
15
-    case INTEGER = 'integer';
16
-    case MAP = 'map';
17
-    case NUMBER = 'number';
18
-    case OBJECT = 'object';
19
-    case STRING = 'string';
7
+    enum LayoutParameterType: string
8
+    {
9
+        case ANY = 'any';
10
+        case ARRAY = 'array';
11
+        case BOOLEAN = 'boolean';
12
+        case COLOR = 'color';
13
+        case COMPONENT = 'component';
14
+        case DIMENSION = 'dimension';
15
+        case INTEGER = 'integer';
16
+        case MAP = 'map';
17
+        case NUMBER = 'number';
18
+        case OBJECT = 'object';
19
+        case STRING = 'string';
20 20
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/BackgroundType.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 BackgroundType: string
8
-{
9
-    case LINEAR = 'linear';
10
-    case RADIAL = 'radial';
7
+    enum BackgroundType: string
8
+    {
9
+        case LINEAR = 'linear';
10
+        case RADIAL = 'radial';
11 11
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/SecureInputType.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 SecureInputType: string
8
-{
9
-    case DECIMAL_PAD = 'decimalPad';
10
-    case NORMAL = 'normal';
11
-    case NUMBER_PAD = 'numberPad';
7
+    enum SecureInputType: string
8
+    {
9
+        case DECIMAL_PAD = 'decimalPad';
10
+        case NORMAL = 'normal';
11
+        case NUMBER_PAD = 'numberPad';
12 12
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/ScaleType.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 ScaleType: string
8
-{
9
-    case NONE = 'none';
10
-    case GROW = 'grow';
11
-    case SHRINK = 'shrink';
12
-    case STRETCH = 'stretch';
7
+    enum ScaleType: string
8
+    {
9
+        case NONE = 'none';
10
+        case GROW = 'grow';
11
+        case SHRINK = 'shrink';
12
+        case STRETCH = 'stretch';
13 13
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/KeyboardType.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 KeyboardType: string
8
-{
9
-    case DECIMAL_PAD = 'decimalPad';
10
-    case NORMAL = 'normal';
11
-    case NUMBER_PAD = 'numberPad';
12
-    case EMAIL_ADDRESS = 'emailAddress';
13
-    case PHONE_PAD = 'phonePad';
14
-    case URL = 'url';
7
+    enum KeyboardType: string
8
+    {
9
+        case DECIMAL_PAD = 'decimalPad';
10
+        case NORMAL = 'normal';
11
+        case NUMBER_PAD = 'numberPad';
12
+        case EMAIL_ADDRESS = 'emailAddress';
13
+        case PHONE_PAD = 'phonePad';
14
+        case URL = 'url';
15 15
 }
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/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.