@@ -132,7 +132,7 @@ |
||
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 | /** |
@@ -21,7 +21,7 @@ |
||
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 |
@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 |
||
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 | /** |