magickatt/MultiContextBDDTalk

View on GitHub
backend/src/HistoricalMeteorological/Data/Loader/FileLoader.php

Summary

Maintainability
A
25 mins
Test Coverage

Showing 1 of 1 total issue

Function getFilesFromDirectory has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
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');
}
Severity: Minor
Found in backend/src/HistoricalMeteorological/Data/Loader/FileLoader.php - About 25 mins to fix

There are no issues that match your filters.

Category
Status