Code Duplication    Length = 8-9 lines in 2 locations

bundle/Core/DailyForecast.php 1 location

@@ 43-50 (lines=8) @@
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function fetchForecastByCityGeographicCoordinates($latitude, $longitude, $numberOfDays = 16)
44
    {
45
        $queryPart = '/forecast/daily?lat=' . $latitude . '&lon=' . $longitude . '&cnt=' . $numberOfDays;
46
47
        $queryPart = $queryPart . $this->getParams();
48
49
        return $this->getResult(self::BASE_URL, $queryPart);
50
    }
51
}
52

bundle/Core/WeatherStations.php 1 location

@@ 38-46 (lines=9) @@
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function fetchFromSeveralByGeoPoint($latitude, $longitude, $numberOfStations = 10)
39
    {
40
        $queryPart = '/station/find?lat=' . $latitude
41
            . '&lon=' . $longitude
42
            . '&cnt=' . $numberOfStations
43
            . '&appid=' . $this->apiKey;
44
45
        return $this->getResult(self::BASE_URL, $queryPart);
46
    }
47
}
48