Passed
Pull Request — master (#97)
by Maximilian
04:02
created
src/Response/Directives/APL/Document/FontWeight.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 FontWeight: string
8
-{
9
-    case NORMAL = 'normal';
10
-    case BOLD = 'bold';
11
-    case W100 = '100';
12
-    case W200 = '200';
13
-    case W300 = '300';
14
-    case W400 = '400';
15
-    case W500 = '500';
16
-    case W600 = '600';
17
-    case W700 = '700';
18
-    case W800 = '800';
19
-    case W900 = '900';
7
+    enum FontWeight: string
8
+    {
9
+        case NORMAL = 'normal';
10
+        case BOLD = 'bold';
11
+        case W100 = '100';
12
+        case W200 = '200';
13
+        case W300 = '300';
14
+        case W400 = '400';
15
+        case W500 = '500';
16
+        case W600 = '600';
17
+        case W700 = '700';
18
+        case W800 = '800';
19
+        case W900 = '900';
20 20
 }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/Display.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 Display: string
8
-{
9
-    case INVISIBLE = 'invisible';
10
-    case NONE = 'none';
11
-    case NORMAL = 'normal';
7
+    enum Display: string
8
+    {
9
+        case INVISIBLE = 'invisible';
10
+        case NONE = 'none';
11
+        case NORMAL = 'normal';
12 12
 }
Please login to merge, or discard this patch.
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.