@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $hitsBefore = 0; |
41 | 41 | $hitsAfter = 0; |
42 | 42 | |
43 | - foreach($longitudeHits as $hit) { |
|
43 | + foreach ($longitudeHits as $hit) { |
|
44 | 44 | if ($hit <= $targetPoint->getLongitude()) { |
45 | 45 | $hitsBefore++; |
46 | 46 | } elseif ($hit >= $targetPoint->getLongitude()) { |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | $slope = ($point2->getLatitude() - $point1->getLatitude()) / ($point2->getLongitude() - $point1->getLongitude()); |
77 | - $b = $point1->getLatitude() - ($slope*$point1->getLongitude()); |
|
77 | + $b = $point1->getLatitude() - ($slope * $point1->getLongitude()); |
|
78 | 78 | |
79 | 79 | return ($latitude + $b) / $slope; |
80 | 80 | } |