Skip to content

Commit

Permalink
Corrected some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
frostybee committed Mar 22, 2023
1 parent 05e5ff1 commit b185f20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Calculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ class Calculator
* The latitudes and longitudes parameters must be specified in decimal degrees.
* The valid range:
* - Latitude -90 and +90
* - Latitude -180 and +180
* - Longitude -180 and +180
*
* @param float $from_latitude Latitude of the start point in decimal degrees.
* @param float $from_longitude Longitude of the starting point in decimal degrees.
* @param float $to_latitude Latitude of the target point in decimal degrees.
* @param float $to_longitude Longitude of the target point in decimal degrees.
* @return Calculator|int
* @return Calculator
*/
public function calculate(
float $from_latitude,
Expand Down Expand Up @@ -115,7 +115,7 @@ public function to(string $unit, ?int $decimals = null, bool $round = true)
return 0;
}
if (!$this->unitExists($unit)) {
throw new Exception("The requested conversion to unit u=$unit wasn't possible: the supplied either invalid or unsupported.");
throw new Exception("The requested conversion to unit u=$unit wasn't possible: the supplied unit either invalid or unsupported.");
}
$conversion = $this->getConversion($unit);
if (is_numeric($conversion)) {
Expand Down

0 comments on commit b185f20

Please sign in to comment.