Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Map/src/Distance/HaversineDistanceCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
final class HaversineDistanceCalculator implements DistanceCalculatorInterface
{
/**
* @const float The Earth's radius in meters.
* @var float the Earth's radius in meters
*/
private const EARTH_RADIUS = 6371000.0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
final class SphericalCosineDistanceCalculator implements DistanceCalculatorInterface
{
/**
* @const float The Earth's radius in meters.
* @var float the Earth's radius in meters
*/
private const EARTH_RADIUS = 6371000.0;

Expand Down
10 changes: 5 additions & 5 deletions src/Map/tests/Cluster/ClusteringPerformanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class ClusteringPerformanceTest extends TestCase
{
/**
* @const array<float>
* @var array<float>
*/
private const ZOOMS = [
2.0,
Expand All @@ -29,7 +29,7 @@ class ClusteringPerformanceTest extends TestCase
];

/**
* @const array<string>
* @var array<string>
*/
private const ALGORITHMS = [
GridClusteringAlgorithm::class,
Expand All @@ -53,7 +53,7 @@ public static function algorithmProvider(): iterable
*
* @dataProvider algorithmProvider
*/
public function testScenarioRegion50000(ClusteringAlgorithmInterface $algorithm, float $zoom): void
public function testScenarioRegion50000(ClusteringAlgorithmInterface $algorithm, float $zoom)
{
$points = $this->generatePoints(50000, 48.8, 49, 2.2, 2.5);

Expand All @@ -65,7 +65,7 @@ public function testScenarioRegion50000(ClusteringAlgorithmInterface $algorithm,
*
* @dataProvider algorithmProvider
*/
public function testScenarioCountry5000(ClusteringAlgorithmInterface $algorithm, float $zoom): void
public function testScenarioCountry5000(ClusteringAlgorithmInterface $algorithm, float $zoom)
{
$points = $this->generatePoints(5000, 30, 60, -10, 35);

Expand All @@ -77,7 +77,7 @@ public function testScenarioCountry5000(ClusteringAlgorithmInterface $algorithm,
*
* @dataProvider algorithmProvider
*/
public function testScenarioWorld100000(ClusteringAlgorithmInterface $algorithm, float $zoom): void
public function testScenarioWorld100000(ClusteringAlgorithmInterface $algorithm, float $zoom)
{
$points = $this->generatePoints(100000, -90, 90, -180, 180);

Expand Down
Loading