district09/php_package_dg-geopunt-geolocation

View on GitHub

Showing 7 of 9 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
 
declare(strict_types=1);
 
namespace DigipolisGent\Geopunt\Geolocation\Filter;
Severity: Major
Found in src/Filter/Lambert72Filter.php and 1 other location - About 3 hrs to fix
src/Filter/Wgs84Filter.php on lines 1..50

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
 
declare(strict_types=1);
 
namespace DigipolisGent\Geopunt\Geolocation\Filter;
Severity: Major
Found in src/Filter/Wgs84Filter.php and 1 other location - About 3 hrs to fix
src/Filter/Lambert72Filter.php on lines 1..49

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
 
declare(strict_types=1);
 
namespace DigipolisGent\Geopunt\Geolocation\Handler;
Severity: Major
Found in src/Handler/SuggestionHandler.php and 1 other location - About 2 hrs to fix
src/Handler/LocationHandler.php on lines 1..39

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
 
declare(strict_types=1);
 
namespace DigipolisGent\Geopunt\Geolocation\Handler;
Severity: Major
Found in src/Handler/LocationHandler.php and 1 other location - About 2 hrs to fix
src/Handler/SuggestionHandler.php on lines 1..39

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
 
declare(strict_types=1);
 
namespace DigipolisGent\Geopunt\Geolocation\Value;
Severity: Minor
Found in src/Value/Suggestions.php and 1 other location - About 45 mins to fix
src/Value/Locations.php on lines 1..31

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
 
declare(strict_types=1);
 
namespace DigipolisGent\Geopunt\Geolocation\Value;
Severity: Minor
Found in src/Value/Locations.php and 1 other location - About 45 mins to fix
src/Value/Suggestions.php on lines 1..31

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

LocationId $locationId,
string $type,
Address $address,
Position $position,
BoundingBox $boundingBox
Severity: Minor
Found in src/Value/Location.php - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language