| @@ -125,9 +125,9 @@ discard block | ||
| 125 | 125 | } | 
| 126 | 126 | |
| 127 | 127 | $this->vin = $value; | 
| 128 | - $this->wmi = $match['wmi']; | |
| 129 | - $this->vds = $match['vds']; | |
| 130 | - $this->vis = $match['vis']; | |
| 128 | + $this->wmi = $match[ 'wmi' ]; | |
| 129 | + $this->vds = $match[ 'vds' ]; | |
| 130 | + $this->vis = $match[ 'vis' ]; | |
| 131 | 131 | |
| 132 | 132 | $this->region = $this->determineVehicleRegion(); | 
| 133 | 133 | $this->country = $this->determineVehicleCountry(); | 
| @@ -244,7 +244,7 @@ discard block | ||
| 244 | 244 | */ | 
| 245 | 245 | private function determineVehicleRegion() : ?string | 
| 246 | 246 |      { | 
| 247 | - return REGIONS[$this->wmi[0]]['region'] ?? null; | |
| 247 | + return REGIONS[ $this->wmi[ 0 ] ][ 'region' ] ?? null; | |
| 248 | 248 | } | 
| 249 | 249 | |
| 250 | 250 | /** | 
| @@ -254,7 +254,7 @@ discard block | ||
| 254 | 254 | */ | 
| 255 | 255 | private function determineVehicleCountry() : ?string | 
| 256 | 256 |      { | 
| 257 | - $countries = REGIONS[$this->wmi[0]]['countries'] ?? null; | |
| 257 | + $countries = REGIONS[ $this->wmi[ 0 ] ][ 'countries' ] ?? null; | |
| 258 | 258 |          if ($countries === null) { | 
| 259 | 259 | return null; | 
| 260 | 260 | } | 
| @@ -263,7 +263,7 @@ discard block | ||
| 263 | 263 | // there are keys that consist only of numbers... | 
| 264 | 264 | $chars = (string) $chars; | 
| 265 | 265 | |
| 266 | -            if (strpbrk($this->wmi[1], $chars) !== false) { | |
| 266 | +            if (strpbrk($this->wmi[ 1 ], $chars) !== false) { | |
| 267 | 267 | return $name; | 
| 268 | 268 | } | 
| 269 | 269 | } | 
| @@ -278,7 +278,7 @@ discard block | ||
| 278 | 278 | */ | 
| 279 | 279 | private function determineVehicleManufacturer() : ?string | 
| 280 | 280 |      { | 
| 281 | - return MANUFACTURERS[$this->wmi] ?? MANUFACTURERS[$this->wmi[0] . $this->wmi[1]] ?? null; | |
| 281 | + return MANUFACTURERS[ $this->wmi ] ?? MANUFACTURERS[ $this->wmi[ 0 ].$this->wmi[ 1 ] ] ?? null; | |
| 282 | 282 | } | 
| 283 | 283 | |
| 284 | 284 | /** | 
| @@ -289,11 +289,11 @@ discard block | ||
| 289 | 289 | private function determineVehicleModelYear() : array | 
| 290 | 290 |      { | 
| 291 | 291 |          $comingYear = date('Y') + 1; | 
| 292 | - $estimatedYears = []; | |
| 292 | + $estimatedYears = [ ]; | |
| 293 | 293 | |
| 294 | 294 |          foreach (YEARS as $year => $char) { | 
| 295 | -            if ($this->vis[0] === $char) { | |
| 296 | - $estimatedYears[] = $year; | |
| 295 | +            if ($this->vis[ 0 ] === $char) { | |
| 296 | + $estimatedYears[ ] = $year; | |
| 297 | 297 | } | 
| 298 | 298 | |
| 299 | 299 |              if ($comingYear === $year) { |