backend/src/HistoricalMeteorological/Data/Loader/FileLoader.php
Showing 1 of 1 total issue
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