Showing 4 of 63 total issues
Method hydrate
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
int $id, Location $location, int $year, int $month, float $temperatureMaximum,
Method hydrate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $id, string $name, float $latitude, float $longitude, int $distanceAboveMeanSeaLevel
Function convert
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public function convert(SeekableIterator $location) { foreach ($this->loader->getResources($location) as $resource) { $rows = $this->loader->getRows($resource); foreach ($this->parser->getEntries($rows) as $entry) {
- Read upRead up
Function getFilesFromDirectory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
private function getFilesFromDirectory(DirectoryIterator $directory):Generator { if (!$directory->isDir() || !$directory->isReadable()) { throw new InvalidArgumentException('Directory is either not actually a directory or not accessible'); }
- Read upRead up