|
@@ -60,7 +60,7 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
{ |
|
61
|
61
|
$candidatePaths = $this->buildTransformationPathsToCRS($to); |
|
62
|
62
|
|
|
63
|
|
- usort($candidatePaths, static function (array $a, array $b) { |
|
|
63
|
+ usort($candidatePaths, static function(array $a, array $b) { |
|
64
|
64
|
return count($a['path']) <=> count($b['path']) ?: $a['accuracy'] <=> $b['accuracy']; |
|
65
|
65
|
}); |
|
66
|
66
|
|
|
@@ -119,7 +119,7 @@ discard block |
|
|
block discarded – undo |
|
119
|
119
|
*/ |
|
120
|
120
|
protected function buildTransformationPathsToCRS(CoordinateReferenceSystem $target): array |
|
121
|
121
|
{ |
|
122
|
|
- $cacheKey = $this->getCRS()->getSRID() . '|' . $target->getSRID(); |
|
|
122
|
+ $cacheKey = $this->getCRS()->getSRID().'|'.$target->getSRID(); |
|
123
|
123
|
if (!isset(self::$pathCache[$cacheKey])) { |
|
124
|
124
|
$simplePaths = []; |
|
125
|
125
|
|
Please login to merge, or discard this patch.