Skip to content

Commit fa2683a

Browse files
author
Mario Blazek
committed
Fixed CS
1 parent fdc0e7d commit fa2683a

41 files changed

Lines changed: 256 additions & 280 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.php_cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
return Symfony\CS\Config\Config::create()
4+
->setUsingLinter(false)
5+
->setUsingCache(true)
6+
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
7+
->fixers([
8+
'concat_with_spaces',
9+
'phpdoc_order',
10+
'-concat_without_spaces',
11+
'-phpdoc_params',
12+
'-phpdoc_to_comment',
13+
'-spaces_cast',
14+
])
15+
->finder(
16+
Symfony\CS\Finder\DefaultFinder::create()
17+
->in(__DIR__)
18+
->exclude([
19+
'vendor',
20+
])
21+
->files()->name('*.php')
22+
)
23+
;

API/OpenWeatherMap/Weather/AirPollutionInterface.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,40 @@
33
namespace Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather;
44

55
/**
6-
* Interface AirPollutionInterface
7-
* @package Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather
6+
* Interface AirPollutionInterface.
87
*/
98
interface AirPollutionInterface
109
{
1110
/**
12-
* Base URL for air pollution
11+
* Base URL for air pollution.
1312
*/
1413
const BASE_URL = 'http://api.openweathermap.org/pollution/v1';
1514

1615
/**
17-
* Fetch Ozone Data by geographic coordinates
16+
* Fetch Ozone Data by geographic coordinates.
1817
*
1918
* @param float $latitude
2019
* @param float $longitude
2120
* @param \DateTime|string $datetime
2221
*
23-
* @return string
24-
*
2522
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
2623
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
24+
*
25+
* @return string
2726
*/
2827
public function fetchOzoneData($latitude, $longitude, $datetime = 'current');
2928

3029
/**
31-
* Fetch Carbon Monoxide Data by geographic coordinates
30+
* Fetch Carbon Monoxide Data by geographic coordinates.
3231
*
3332
* @param float $latitude
3433
* @param float $longitude
3534
* @param \DateTime|string $datetime
3635
*
37-
* @return string
38-
*
3936
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
4037
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
38+
*
39+
* @return string
4140
*/
4241
public function fetchCarbonMonoxideData($latitude, $longitude, $datetime = 'current');
4342
}

API/OpenWeatherMap/Weather/DailyForecastInterface.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,53 @@
33
namespace Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather;
44

55
/**
6-
* Interface DailyForecastInterface
7-
* @package Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather
6+
* Interface DailyForecastInterface.
87
*/
98
interface DailyForecastInterface
109
{
1110
/**
12-
* Base URL for daily forecast
11+
* Base URL for daily forecast.
1312
*/
1413
const BASE_URL = 'http://api.openweathermap.org/data/2.5';
1514

1615
/**
17-
* Call 16 day / daily forecast data by city name
16+
* Call 16 day / daily forecast data by city name.
1817
*
1918
* @param string $cityName
2019
* @param string $countryCode
2120
* @param int $numberOfDays
2221
*
23-
* @return string
24-
*
2522
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
2623
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
24+
*
25+
* @return string
2726
*/
2827
public function fetchForecastByCityName($cityName, $countryCode = '', $numberOfDays = 16);
2928

3029
/**
31-
* Call 16 day / daily forecast data by city id
30+
* Call 16 day / daily forecast data by city id.
3231
*
3332
* @param int $cityId
3433
* @param int $numberOfDays
3534
*
36-
* @return string
37-
*
3835
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
3936
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
37+
*
38+
* @return string
4039
*/
4140
public function fetchForecastByCityId($cityId, $numberOfDays = 16);
4241

4342
/**
44-
* Call 16 day / daily forecast data by geographic coordinates
43+
* Call 16 day / daily forecast data by geographic coordinates.
4544
*
4645
* @param float $latitude
4746
* @param float $longitude
4847
* @param int $numberOfDays
4948
*
50-
* @return string
51-
*
5249
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
5350
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
51+
*
52+
* @return string
5453
*/
5554
public function fetchForecastByCityGeographicCoordinates($latitude, $longitude, $numberOfDays = 16);
5655
}

API/OpenWeatherMap/Weather/HourForecastInterface.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,50 @@
33
namespace Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather;
44

55
/**
6-
* Interface HourForecastInterface
7-
* @package Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather
6+
* Interface HourForecastInterface.
87
*/
98
interface HourForecastInterface
109
{
1110
/**
12-
* Base URL for hour forecast
11+
* Base URL for hour forecast.
1312
*/
1413
const BASE_URL = 'http://api.openweathermap.org/data/2.5';
1514

1615
/**
17-
* Call 5 day / 3 hour forecast data by city name
16+
* Call 5 day / 3 hour forecast data by city name.
1817
*
1918
* @param string $cityName
2019
* @param string $countryCode
2120
*
22-
* @return string
23-
*
2421
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
2522
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
23+
*
24+
* @return string
2625
*/
2726
public function fetchForecastByCityName($cityName, $countryCode = '');
2827

2928
/**
30-
* Call 5 day / 3 hour forecast data by city id
29+
* Call 5 day / 3 hour forecast data by city id.
3130
*
3231
* @param int $cityId
3332
*
34-
* @return string
35-
*
3633
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
3734
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
35+
*
36+
* @return string
3837
*/
3938
public function fetchForecastByCityId($cityId);
4039

4140
/**
42-
* Call 5 day / 3 hour forecast data by geographic coordinates
41+
* Call 5 day / 3 hour forecast data by geographic coordinates.
4342
*
4443
* @param float $latitude
4544
* @param float $longitude
4645
*
47-
* @return string
48-
*
4946
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
5047
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
48+
*
49+
* @return string
5150
*/
5251
public function fetchForecastByCityGeographicCoordinates($latitude, $longitude);
5352
}

API/OpenWeatherMap/Weather/UltravioletIndexInterface.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,26 @@
33
namespace Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather;
44

55
/**
6-
* Interface UltravioletIndexInterface
7-
* @package Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather
6+
* Interface UltravioletIndexInterface.
87
*/
98
interface UltravioletIndexInterface
109
{
1110
/**
12-
* Base URL for ultraviolet index
11+
* Base URL for ultraviolet index.
1312
*/
1413
const BASE_URL = 'http://api.openweathermap.org/v3/uvi';
1514

1615
/**
17-
* Fetch Ultraviolet index by geographic coordinates
16+
* Fetch Ultraviolet index by geographic coordinates.
1817
*
1918
* @param float $latitude
2019
* @param float $longitude
2120
* @param \Datetime|string $datetime
2221
*
23-
* @return string
24-
*
2522
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
2623
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
24+
*
25+
* @return string
2726
*/
2827
public function fetchUltraviletIndex($latitude, $longitude, $datetime = 'current');
2928
}

API/OpenWeatherMap/Weather/WeatherInterface.php

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,105 +3,103 @@
33
namespace Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather;
44

55
/**
6-
* Interface WeatherInterface
7-
* @package Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeather\Weather
6+
* Interface WeatherInterface.
87
*/
98
interface WeatherInterface
109
{
1110
/**
12-
* Base URL for weather
11+
* Base URL for weather.
1312
*/
1413
const BASE_URL = 'http://api.openweathermap.org/data/2.5';
1514

1615
/**
17-
* Call current weather data for one location by city name
16+
* Call current weather data for one location by city name.
1817
*
1918
* @param string $cityName
2019
* @param string $countryCode
2120
*
22-
* @return string
23-
*
2421
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
2522
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
23+
*
24+
* @return string
2625
*/
2726
public function fetchWeatherDataByCityName($cityName, $countryCode = '');
2827

2928
/**
30-
* Call current weather data for one location by city id
29+
* Call current weather data for one location by city id.
3130
*
3231
* @param int $cityId
3332
*
34-
* @return string
35-
*
3633
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
3734
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
35+
*
36+
* @return string
3837
*/
3938
public function fetchWeatherDataByCityId($cityId);
4039

4140
/**
42-
* Call current weather data for one location by geographic coordinates
41+
* Call current weather data for one location by geographic coordinates.
4342
*
4443
* @param float $latitude
4544
* @param float $longitude
4645
*
47-
* @return string
48-
*
4946
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
5047
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
48+
*
49+
* @return string
5150
*/
5251
public function fetchWeatherDataByGeographicCoordinates($latitude, $longitude);
5352

54-
5553
/**
56-
* Call current weather data for one location by zip code
54+
* Call current weather data for one location by zip code.
5755
*
5856
* @param int $zipCode
5957
* @param string $countryCode
6058
*
61-
* @return string
62-
*
6359
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
6460
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
61+
*
62+
* @return string
6563
*/
6664
public function fetchWeatherDataByZipCode($zipCode, $countryCode = '');
6765

6866
/**
69-
* Call current weather data for several cities within a rectangle zone
67+
* Call current weather data for several cities within a rectangle zone.
7068
*
7169
* @param array $boundingBox Longitude-left,latitude-bottom,longitude-right,latitude-top, map zoom
7270
* @param string $cluster
7371
*
74-
* @return string
75-
*
7672
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
7773
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
74+
*
75+
* @return string
7876
*/
7977
public function fetchWeatherDataForCitiesWithinRectangleZone(array $boundingBox, $cluster = 'yes');
8078

8179
/**
82-
* Call current weather data for several cities in cycle
80+
* Call current weather data for several cities in cycle.
8381
*
8482
* @param string $latitude
8583
* @param string $longitude
8684
* @param string $cluster
8785
* @param int $numberOfCities
8886
*
89-
* @return string
90-
*
9187
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
9288
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
89+
*
90+
* @return string
9391
*/
9492
public function fetchWeatherDataForCitiesInCycle($latitude, $longitude, $cluster = 'yes', $numberOfCities = 10);
9593

9694
/**
97-
* Call current weather data for several cities by city IDs
95+
* Call current weather data for several cities by city IDs.
9896
*
9997
* @param array $cities
10098
*
101-
* @return string
102-
*
10399
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
104100
* @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
101+
*
102+
* @return string
105103
*/
106104
public function fetchWeatherDataForSeveralCityIds(array $cities);
107105
}

0 commit comments

Comments
 (0)