Passed
Push — master ( 7b78e2...3d1f24 )
by Enjoys
12:26 queued 09:59
created
src/Storage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     private array $paths = [];
19 19
 
20 20
     #[\Override]
21
-    public function getPath(): string|false
21
+    public function getPath(): string | false
22 22
     {
23 23
         $key = key($this->paths);
24 24
         if ($key === null) {
Please login to merge, or discard this patch.
src/Variables.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     {
15 15
     }
16 16
 
17
-    public static function scalarValueToString(string|bool|int|float|null $value): string
17
+    public static function scalarValueToString(string | bool | int | float | null $value): string
18 18
     {
19 19
         if (gettype($value) === 'boolean') {
20 20
             return $value ? 'true' : 'false';
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $result = preg_replace_callback(
32 32
             '/(\${(?<variable>.+?)(?<default_value>:[-=?][^}]*)?})/',
33
-            function (array $matches): string {
33
+            function(array $matches): string {
34 34
                 $env = getenv($matches['variable']) !== false ? getenv($matches['variable']) : null;
35 35
 
36 36
                 /** @var string|bool|int|float|null $val */
Please login to merge, or discard this patch.
src/Types/FalseType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     #[\Override]
17 17
     public function isPossible(): bool
18 18
     {
19
-        if (str_starts_with($this->value, '*false')){
19
+        if (str_starts_with($this->value, '*false')) {
20 20
             return true;
21 21
         }
22 22
         return strtolower($this->value) === 'false';
Please login to merge, or discard this patch.
src/Types/StringType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     #[\Override]
16 16
     public function isPossible(): bool
17 17
     {
18
-        if (str_starts_with($this->value, '*string')){
18
+        if (str_starts_with($this->value, '*string')) {
19 19
             $this->value = preg_replace('/^(\*string\s*)/', '', $this->value) ?? '';
20 20
             return true;
21 21
         }
Please login to merge, or discard this patch.
src/Types/IntType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
     #[\Override]
27 27
     public function getCastedValue(): int
28 28
     {
29
-        return (int) $this->value;
29
+        return (int)$this->value;
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Types/BoolType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     #[\Override]
16 16
     public function isPossible(): bool
17 17
     {
18
-        if (str_starts_with($this->value, '*bool')){
18
+        if (str_starts_with($this->value, '*bool')) {
19 19
             $this->value = preg_replace('/^(\*bool\s*)/', '', $this->value) ?? '';
20 20
             return true;
21 21
         }
Please login to merge, or discard this patch.
src/Types/Int8Type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     #[\Override]
16 16
     public function isPossible(): bool
17 17
     {
18
-        if (str_starts_with($this->value, '*int8')){
18
+        if (str_starts_with($this->value, '*int8')) {
19 19
             $this->value = preg_replace('/^(\*int8\s*)/', '', $this->value) ?? '';
20 20
             return true;
21 21
         }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     }
24 24
 
25 25
     #[\Override]
26
-    public function getCastedValue(): int|float
26
+    public function getCastedValue(): int | float
27 27
     {
28 28
         return octdec($this->value);
29 29
     }
Please login to merge, or discard this patch.
src/Types/Int16Type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     #[\Override]
16 16
     public function isPossible(): bool
17 17
     {
18
-        if (str_starts_with($this->value, '*int16')){
18
+        if (str_starts_with($this->value, '*int16')) {
19 19
             $this->value = preg_replace('/^(\*int16\s*)/', '', $this->value) ?? '';
20 20
             return true;
21 21
         }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     }
24 24
 
25 25
     #[\Override]
26
-    public function getCastedValue(): int|float
26
+    public function getCastedValue(): int | float
27 27
     {
28 28
         return hexdec($this->value);
29 29
     }
Please login to merge, or discard this patch.
src/Types/TrueType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     #[\Override]
17 17
     public function isPossible(): bool
18 18
     {
19
-        if (str_starts_with($this->value, '*true')){
19
+        if (str_starts_with($this->value, '*true')) {
20 20
             return true;
21 21
         }
22 22
         return strtolower($this->value) === 'true';
Please login to merge, or discard this patch.