Test Setup Failed
Push — master ( 13ce80...825a47 )
by Nicolas
50s
created
src/Configuration/FilterInputVariable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration;
6 6
 
7 7
 trait FilterInputVariable
8 8
 {
9
-    private function filterValue(string|array|null $value): array|string|float|int|bool|null
9
+    private function filterValue(string | array | null $value): array | string | float | int | bool | null
10 10
     {
11 11
         if(is_array($value))
12 12
         {
13
-            return array_map(function ($item) {
13
+            return array_map(function($item) {
14 14
                 return $this->filterOneValue($item);
15 15
             }, $value);
16 16
         }
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
         return $this->filterOneValue($value);
19 19
     }
20 20
 
21
-    private function filterOneValue(?string $value): string|float|int|bool|null
21
+    private function filterOneValue(?string $value): string | float | int | bool | null
22 22
     {
23
-        if(! is_string($value))
23
+        if( ! is_string($value))
24 24
         {
25 25
             return $value;
26 26
         }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         return $value;
52 52
     }
53 53
 
54
-    public function parseList(string $value): string|array
54
+    public function parseList(string $value): string | array
55 55
     {
56 56
         $value = trim($value);
57 57
 
Please login to merge, or discard this patch.
src/Configuration/InMemoryReader.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration;
6 6
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function allVariables(): array
46 46
     {
47
-        $variables = array_map(function($key){
47
+        $variables = array_map(function($key) {
48 48
             return $this->extractVariableName($key);
49 49
         }, array_keys($this->values));
50 50
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     public function allVariables(): array
46 46
     {
47
-        $variables = array_map(function($key){
47
+        $variables = array_map(function($key) {
48 48
             return $this->extractVariableName($key);
49 49
         }, array_keys($this->values));
50 50
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             return $this->values[$key]['value'];
40 40
         }
41 41
 
42
-        throw new \RuntimeException("Variable $variable does not exist");
42
+        throw new \RuntimeException("variable $variable does not exist");
43 43
     }
44 44
 
45 45
     public function allVariables(): array
Please login to merge, or discard this patch.