backend/src/HistoricalMeteorological/Provider/Controller/EntryControllerProvider.php
Showing 11 of 11 total issues
Avoid excessively long variable names like $locationAndYearRangeRoute. Keep variable name length under 20. Open
Open
$locationAndYearRangeRoute = function (Application $application, $locationId, $yearFrom, $yearTo = null) {
- Read upRead up
- Exclude checks
Avoid excessively long variable names like $locationPairAndYearRoute. Keep variable name length under 20. Open
Open
$locationPairAndYearRoute = function (Application $application, $location1Id, $location2Id, $year) {
- Read upRead up
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
});
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
};
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
};
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
});
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
return $responseService->createEntryAggregateSummaryCollectionResponse(new EntryAggregateSummaryCollection($entries));
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
protected function registerControllerRoutes(Application $application, ControllerCollection $collection):ControllerCollection
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
return $responseService->createEntryAggregateSummaryCollectionResponse(new EntryAggregateSummaryCollection($entries));
- Exclude checks
Line exceeds 120 characters; contains 153 characters Open
Open
$entries = $entryService->getEntryListByLocationAndYearRange($location, (int)$yearFrom, (!is_null($yearTo) ? (int)$yearTo : (int)$yearFrom));
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
return $responseService->createEntryAggregateSummaryCollectionResponse(new EntryAggregateSummaryCollection($entries));
- Exclude checks