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) {
|
||||
$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 {
|
||||
$longestDistance = (float) min($longestDistance, 2.0 * $queryNode->radius() + $shortestDistance);
|
||||
}
|
||||
|
@ -492,7 +492,6 @@
|
||||
<code><![CDATA[$this->coreNeighborDistances]]></code>
|
||||
</PropertyTypeCoercion>
|
||||
<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>
|
||||
</RedundantCastGivenDocblockType>
|
||||
<RedundantFunctionCallGivenDocblockType>
|
||||
|
Reference in New Issue
Block a user