@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * @return mixed |
|
| 48 | + * @return string |
|
| 49 | 49 | */ |
| 50 | 50 | public function getLatZone() |
| 51 | 51 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * @return mixed |
|
| 64 | + * @return string |
|
| 65 | 65 | */ |
| 66 | 66 | public function getLngZone() |
| 67 | 67 | { |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | trigger_error('Current co-ordinates are in a non-WGS84 datum', E_USER_WARNING); |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | - $longitudeZone = (int)(($this->lng + 180) / 6) + 1; |
|
| 386 | + $longitudeZone = (int) (($this->lng + 180) / 6) + 1; |
|
| 387 | 387 | |
| 388 | 388 | // Special zone for Norway |
| 389 | 389 | if ($this->lat >= 56 && $this->lat < 64 && $this->lng >= 3 && $this->lng < 12) { |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | } |
| 441 | 441 | |
| 442 | 442 | $zones = "CDEFGHJKLMNPQRSTUVWXX"; |
| 443 | - $zoneIndex = (int)(($latitude + 80) / 8); |
|
| 443 | + $zoneIndex = (int) (($latitude + 80) / 8); |
|
| 444 | 444 | return $zones[$zoneIndex]; |
| 445 | 445 | } |
| 446 | 446 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCoord |
|
| 4 | - * @package PHPCoord |
|
| 5 | - * @author Doug Wright |
|
| 6 | - */ |
|
| 3 | + * PHPCoord |
|
| 4 | + * @package PHPCoord |
|
| 5 | + * @author Doug Wright |
|
| 6 | + */ |
|
| 7 | 7 | namespace PHPCoord; |
| 8 | 8 | |
| 9 | 9 | /** |