@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | $candidatePaths = $this->buildTransformationPathsToCRS($source, $target); |
| 67 | 67 | |
| 68 | - usort($candidatePaths, static function (array $a, array $b) { |
|
| 68 | + usort($candidatePaths, static function(array $a, array $b) { |
|
| 69 | 69 | return count($a['path']) <=> count($b['path']) ?: $a['accuracy'] <=> $b['accuracy']; |
| 70 | 70 | }); |
| 71 | 71 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | protected function buildTransformationPathsToCRS(CoordinateReferenceSystem $source, CoordinateReferenceSystem $target): array |
| 126 | 126 | { |
| 127 | - $cacheKey = $source->getSRID() . '|' . $target->getSRID(); |
|
| 127 | + $cacheKey = $source->getSRID().'|'.$target->getSRID(); |
|
| 128 | 128 | if (!isset(self::$pathCache[$cacheKey])) { |
| 129 | 129 | $simplePaths = []; |
| 130 | 130 | |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | } |
| 218 | 218 | } |
| 219 | 219 | |
| 220 | - return '(' . implode(', ', $values) . ')'; |
|
| 220 | + return '('.implode(', ', $values).')'; |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
@@ -2132,7 +2132,7 @@ discard block |
||
| 2132 | 2132 | $longitudeOrigin = $initialLongitude->add(new Degree($Z * 6 - 3)); |
| 2133 | 2133 | |
| 2134 | 2134 | $projectedCRS = new Projected( |
| 2135 | - 'UTM/' . $this->crs->getSRID(), |
|
| 2135 | + 'UTM/'.$this->crs->getSRID(), |
|
| 2136 | 2136 | Cartesian::fromSRID(Cartesian::EPSG_2D_AXES_EASTING_NORTHING_E_N_ORIENTATIONS_EAST_NORTH_UOM_M), |
| 2137 | 2137 | $this->crs->getDatum(), |
| 2138 | 2138 | GeographicPolygon::createWorld() // this is a dummy CRS for the transform only, details don't matter |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | $projectedCRS = new Projected( |
| 57 | - 'UTM/' . $crs->getSRID(), |
|
| 57 | + 'UTM/'.$crs->getSRID(), |
|
| 58 | 58 | Cartesian::fromSRID(Cartesian::EPSG_2D_AXES_EASTING_NORTHING_E_N_ORIENTATIONS_EAST_NORTH_UOM_M), |
| 59 | 59 | $crs->getDatum(), |
| 60 | 60 | $boundingBox |
@@ -106,6 +106,6 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | public function __toString(): string |
| 108 | 108 | { |
| 109 | - return $this->getZone() . $this->getHemisphere() . ' ' . (int) $this->easting->getValue() . ' ' . (int) $this->northing->getValue(); |
|
| 109 | + return $this->getZone().$this->getHemisphere().' '.(int) $this->easting->getValue().' '.(int) $this->northing->getValue(); |
|
| 110 | 110 | } |
| 111 | 111 | } |