mirror of
https://github.com/nextcloud/recognize.git
synced 2025-07-22 01:10:03 +00:00
fix(psalm): Fix psalm issue
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
@ -179,7 +179,7 @@ final class MrdBallTree extends BallTree {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->kernel instanceof SquaredDistance) {
|
if ($this->kernel instanceof SquaredDistance) {
|
||||||
$longestDistance = (float) min($longestDistance, (2.0 * sqrt($queryNode->radius()) + sqrt($shortestDistance)) ** 2.0);
|
$longestDistance = min($longestDistance, (2.0 * sqrt($queryNode->radius()) + sqrt($shortestDistance)) ** 2.0);
|
||||||
} else {
|
} else {
|
||||||
$longestDistance = (float) min($longestDistance, 2.0 * $queryNode->radius() + $shortestDistance);
|
$longestDistance = (float) min($longestDistance, 2.0 * $queryNode->radius() + $shortestDistance);
|
||||||
}
|
}
|
||||||
|
@ -492,7 +492,6 @@
|
|||||||
<code><![CDATA[$this->coreNeighborDistances]]></code>
|
<code><![CDATA[$this->coreNeighborDistances]]></code>
|
||||||
</PropertyTypeCoercion>
|
</PropertyTypeCoercion>
|
||||||
<RedundantCastGivenDocblockType>
|
<RedundantCastGivenDocblockType>
|
||||||
<code><![CDATA[(float) min($longestDistance, (2.0* sqrt($queryNode->radius()) + sqrt($shortestDistance)) ** 2.0)]]></code>
|
|
||||||
<code><![CDATA[(float) min($longestDistance, 2.0 * $queryNode->radius() + $shortestDistance)]]></code>
|
<code><![CDATA[(float) min($longestDistance, 2.0 * $queryNode->radius() + $shortestDistance)]]></code>
|
||||||
</RedundantCastGivenDocblockType>
|
</RedundantCastGivenDocblockType>
|
||||||
<RedundantFunctionCallGivenDocblockType>
|
<RedundantFunctionCallGivenDocblockType>
|
||||||
|
Reference in New Issue
Block a user