magickatt/MultiContextBDDTalk

View on GitHub
backend/src/HistoricalMeteorological/Entity/Location.php

Summary

Maintainability
A
35 mins
Test Coverage

Showing 8 of 8 total issues

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

    Avoid excessively long variable names like $distanceAboveMeanSeaLevel. Keep variable name length under 20.
    Open

    private $distanceAboveMeanSeaLevel;

    Avoid excessively long variable names like $distanceAboveMeanSeaLevel. Keep variable name length under 20.
    Open

    public function setDistanceAboveMeanSeaLevel(int $distanceAboveMeanSeaLevel):Location

    Avoid excessively long variable names like $distanceAboveMeanSeaLevel. Keep variable name length under 20.
    Open

    int $distanceAboveMeanSeaLevel

    Avoid variables with short names like $id. Configured minimum length is 3.
    Open

    string $id,

    Avoid variables with short names like $id. Configured minimum length is 3.
    Open

    public function setId(string $id):Location

    Avoid variables with short names like $id. Configured minimum length is 3.
    Open

    private $id;

    The closing brace for the class must go on the next line after the body
    Open

    }

    There are no issues that match your filters.

    Category
    Status