|
@@ -65,7 +65,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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
|
|
Please login to merge, or discard this patch.