magickatt/MultiContextBDDTalk

View on GitHub

Showing 4 of 63 total issues

Method hydrate has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

int $id,
Location $location,
int $year,
int $month,
float $temperatureMaximum,
Severity: Major
Found in backend/src/HistoricalMeteorological/Entity/Entry.php - About 1 hr to fix

    Method hydrate has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    string $id,
    string $name,
    float $latitude,
    float $longitude,
    int $distanceAboveMeanSeaLevel
    Severity: Minor
    Found in backend/src/HistoricalMeteorological/Entity/Location.php - About 35 mins to fix

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

      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
      Severity
      Category
      Status
      Source
      Language