@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * Returns a UNIX timestamp. |
| 90 | 90 | * |
| 91 | - * @return int|null |
|
| 91 | + * @return integer |
|
| 92 | 92 | */ |
| 93 | 93 | public function getTimestamp() |
| 94 | 94 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Returns the UTC offset for this TimeZone. |
| 100 | 100 | * |
| 101 | - * @return int|null |
|
| 101 | + * @return integer |
|
| 102 | 102 | */ |
| 103 | 103 | public function getUtcOffset() |
| 104 | 104 | { |
@@ -58,10 +58,10 @@ |
||
| 58 | 58 | $this->dst = $dst ? (bool) $dst : null; |
| 59 | 59 | $this->utcOffset = $utcOffset ? (int) $utcOffset : null; |
| 60 | 60 | $this->timestamp = $timestamp ? (int) $timestamp : null; |
| 61 | - $this->country = $country ?: $this->getLocation()['country_code']; |
|
| 61 | + $this->country = $country ?: $this->getLocation()[ 'country_code' ]; |
|
| 62 | 62 | |
| 63 | 63 | if ($this->timestamp) { |
| 64 | - $this->dateTime = (new \DateTimeImmutable('@'.$this->timestamp))->setTimezone($this); |
|
| 64 | + $this->dateTime = (new \DateTimeImmutable('@' . $this->timestamp))->setTimezone($this); |
|
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
@@ -99,6 +99,6 @@ |
||
| 99 | 99 | // Remove null values. |
| 100 | 100 | $params = array_filter($params); |
| 101 | 101 | |
| 102 | - return static::ENDPOINT.'?'.http_build_query($params); |
|
| 102 | + return static::ENDPOINT . '?' . http_build_query($params); |
|
| 103 | 103 | } |
| 104 | 104 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | private function getValue(array $data, $key) |
| 44 | 44 | { |
| 45 | - return $this->valueOrNull(\igorw\get_in($data, [$key])); |
|
| 45 | + return $this->valueOrNull(\igorw\get_in($data, [ $key ])); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |