Passed
Push — master ( 62de9e...627cbd )
by Peter
02:31
created
src/ApiClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
             throw new MissingApiKeyException;
133 133
         }
134 134
 
135
-        return array_merge([ 'apiKey' => $this->apiKey ], $params[0] ?? []);
135
+        return array_merge([ 'apiKey' => $this->apiKey ], $params[ 0 ] ?? [ ]);
136 136
     }
137 137
 
138 138
     /**
Please login to merge, or discard this patch.
src/Converters/JsonConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             if (in_array($name, self::STRINGS)) {
22 22
                 $response->$name = (string) $child;
23 23
             } else {
24
-                $response->$name[] = $this->processChild($name, $child);
24
+                $response->$name[ ] = $this->processChild($name, $child);
25 25
             }
26 26
         }
27 27
 
Please login to merge, or discard this patch.
src/Converters/Json/Match.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function handle($match)
61 61
     {
62
-        $object = [];
62
+        $object = [ ];
63 63
 
64 64
         foreach ($match as $child) {
65 65
             $name = $child->getName();
@@ -76,15 +76,15 @@  discard block
 block discarded – undo
76 76
         }
77 77
 
78 78
         if (in_array($name, self::GOAL_DETAILS)) {
79
-            return array_map([$this, 'goals'], $this->toArray($data));
79
+            return array_map([ $this, 'goals' ], $this->toArray($data));
80 80
         }
81 81
 
82 82
         if (in_array($name, self::CARDS)) {
83
-            return array_map([$this, 'cards'], $this->toArray($data));
83
+            return array_map([ $this, 'cards' ], $this->toArray($data));
84 84
         }
85 85
 
86 86
         if (in_array($name, self::SUBSTITUTIONS)) {
87
-            return array_map([$this, 'substitutions'], $this->toArray($data));        }
87
+            return array_map([ $this, 'substitutions' ], $this->toArray($data)); }
88 88
 
89 89
         if (in_array($name, self::NUMERIC)) {
90 90
             return (int) $data;
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $data = $this->cleanse($data);
142 142
 
143
-        return empty($data) ? [] : explode(';', rtrim($data,";"));
143
+        return empty($data) ? [ ] : explode(';', rtrim($data, ";"));
144 144
     }
145 145
 
146 146
     /**
Please login to merge, or discard this patch.