magickatt/MultiContextBDDTalk

View on GitHub
backend/src/HistoricalMeteorological/Service/EntryService.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 3 of 3 total issues

The method getEntries uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
$queryBuilder->andWhere('e.year = :yearFrom');
}

Blank line found at end of control structure
Open

 
 

Line exceeds 120 characters; contains 125 characters
Open

public function getEntryListByLocationAndYearRange(Location $location, int $yearFrom, int $yearTo = null):EntryCollection
Category
Status