@@ -80,17 +80,17 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function __construct($driverResponse) |
| 82 | 82 | { |
| 83 | - $this->ip = $driverResponse['ip']; |
|
| 84 | - $this->countryCode = $driverResponse['country_code']; |
|
| 85 | - $this->countryName = $driverResponse['country_name']; |
|
| 86 | - $this->regionCode = $driverResponse['region_code']; |
|
| 87 | - $this->regionName = $driverResponse['region_name']; |
|
| 88 | - $this->cityName = $driverResponse['city']; |
|
| 89 | - $this->zipCode = $driverResponse['zip_code']; |
|
| 90 | - $this->timeZone = $driverResponse['time_zone']; |
|
| 91 | - $this->latitude = $driverResponse['latitude']; |
|
| 92 | - $this->longitude = $driverResponse['longitude']; |
|
| 93 | - $this->metroCode = $driverResponse['metro_code']; |
|
| 83 | + $this->ip = $driverResponse[ 'ip' ]; |
|
| 84 | + $this->countryCode = $driverResponse[ 'country_code' ]; |
|
| 85 | + $this->countryName = $driverResponse[ 'country_name' ]; |
|
| 86 | + $this->regionCode = $driverResponse[ 'region_code' ]; |
|
| 87 | + $this->regionName = $driverResponse[ 'region_name' ]; |
|
| 88 | + $this->cityName = $driverResponse[ 'city' ]; |
|
| 89 | + $this->zipCode = $driverResponse[ 'zip_code' ]; |
|
| 90 | + $this->timeZone = $driverResponse[ 'time_zone' ]; |
|
| 91 | + $this->latitude = $driverResponse[ 'latitude' ]; |
|
| 92 | + $this->longitude = $driverResponse[ 'longitude' ]; |
|
| 93 | + $this->metroCode = $driverResponse[ 'metro_code' ]; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | { |
| 103 | 103 | $data = $this->toArray(); |
| 104 | 104 | |
| 105 | - unset($data['ip']); |
|
| 105 | + unset($data[ 'ip' ]); |
|
| 106 | 106 | |
| 107 | 107 | return empty(array_filter($data)); |
| 108 | 108 | } |