Skip to content

Commit 461ec6c

Browse files
rakibdevsgithub-actions[bot]
authored andcommitted
Fix styling
1 parent a4a8fb8 commit 461ec6c

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.php-cs-fixer.cache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"php":"8.1.6","version":"3.8.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"alpha"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"single_trait_insert_per_statement":true},"hashes":{"src\/Weather.php":3396563655,"src\/WeatherFormat.php":1780416015,"src\/WeatherClient.php":2559958320,"src\/WeatherServiceProvider.php":1976251433,"src\/Exceptions\/WeatherException.php":1149541561,"src\/Exceptions\/InvalidConfiguration.php":798640689,"src\/config\/openweather.php":75228949}}
1+
{"php":"8.1.10","version":"3.11.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"alpha"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"single_trait_insert_per_statement":true},"hashes":{"src\/WeatherClient.php":3990504894,"src\/config\/openweather.php":2159394859,"src\/Weather.php":575039304,"src\/WeatherFormat.php":1780416015,"src\/Exceptions\/InvalidConfiguration.php":798640689,"src\/Exceptions\/WeatherException.php":1149541561,"src\/WeatherServiceProvider.php":1976251433}}

src/Weather.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Weather
1414
{
1515
public function getCurrentByCity(string $city)
1616
{
17-
if (!is_numeric($city)) {
17+
if (! is_numeric($city)) {
1818
$params['q'] = $city;
1919
} else {
2020
$params['id'] = $city;
@@ -41,7 +41,7 @@ public function getCurrentByZip(string $zip, string $country = 'us')
4141

4242
public function getCurrentTempByCity(string $city)
4343
{
44-
if (!is_numeric($city)) {
44+
if (! is_numeric($city)) {
4545
$params['q'] = $city;
4646
} else {
4747
$params['id'] = $city;
@@ -60,7 +60,7 @@ public function getOneCallByCord(string $lat, string $lon)
6060

6161
public function get3HourlyByCity(string $city)
6262
{
63-
if (!is_numeric($city)) {
63+
if (! is_numeric($city)) {
6464
$params['q'] = $city;
6565
} else {
6666
$params['id'] = $city;
@@ -128,10 +128,10 @@ public function getGeoByCord(string $lat, string $lon, string $limit = null)
128128
}
129129

130130
/**
131-
* Access current weather data for any location on Earth including over 200,000 cities!
132-
* Open Weathe Map API collect and process weather data from different sources such as global
131+
* Access current weather data for any location on Earth including over 200,000 cities!
132+
* Open Weathe Map API collect and process weather data from different sources such as global
133133
* and local weather models, satellites, radars and vast network of weather stations.
134-
*
134+
*
135135
* Documentation : https://openweathermap.org/current.
136136
*
137137
* @param array $query
@@ -197,7 +197,7 @@ private function getHistorical(array $query)
197197
* Besides basic Air Quality Index, the API returns data about polluting gases, such as Carbon monoxide (CO), Nitrogen monoxide (NO),
198198
* Nitrogen dioxide (NO2), Ozone (O3),Sulphur dioxide (SO2), Ammonia (NH3), and particulates (PM2.5 and PM10).
199199
* Air pollution forecast is available for 5 days with hourly granularity.
200-
*
200+
*
201201
* Documentation : https://openweathermap.org/api/air-pollution.
202202
*
203203
* @param array $query
@@ -213,9 +213,9 @@ private function getAirPollution(array $query)
213213

214214

215215
/**
216-
* Geocoding API is a simple tool that we have developed to ease the search for locations
216+
* Geocoding API is a simple tool that we have developed to ease the search for locations
217217
* while working with geographic names and coordinates.
218-
*
218+
*
219219
* Documentation : https://openweathermap.org/api/geocoding-api.
220220
*
221221
* @param string $type

src/config/openweather.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
return [
44

55
/**
6-
* Get a free Open Weather Map API key
6+
* Get a free Open Weather Map API key
77
* https://openweathermap.org/price.
88
*
99
*/
@@ -47,7 +47,7 @@
4747

4848
/**
4949
* Library Configuration
50-
*
50+
*
5151
* https://openweathermap.org/current#multi
5252
*
5353
*/
@@ -58,7 +58,7 @@
5858
'day_format' => 'l',
5959

6060
/**
61-
* Unit Configuration
61+
* Unit Configuration
6262
* --------------------------------------
6363
* Available units are c, f, k. (k is default)
6464
*

0 commit comments

Comments
 (0)