src/Controller/Game/ConstructionController.php
Method constructGameUnits
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function constructGameUnits(Request $request, int $regionId, int $gameUnitTypeId): Response
{
/**
* XXX TODO: Fix unit info page
* XXX TODO: Fix buildtime to human readable format
Method removeGameUnits
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function removeGameUnits(Request $request, int $regionId, int $gameUnitTypeId): Response
{
try {
$worldRegion = $this->regionActionService->getWorldRegionByIdAndPlayer($regionId, $this->getPlayer());
} catch (WorldRegionNotFoundException $e) {
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ConstructionRepository $constructionRepository,
GameUnitTypeRepository $gameUnitTypeRepository,
WorldRegionRepository $worldRegionRepository,
ConstructionActionService $constructionActionService,
RegionActionService $regionActionService