Skip to content

Commit 5666d88

Browse files
rakibdevsgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 6709399 commit 5666d88

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.php-cs-fixer.cache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"php":"8.0.5","version":"3.0.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_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\/config\/openweather.php":4030960505,"src\/WeatherServiceProvider.php":1976251433,"src\/Weather.php":3101166183,"src\/Exceptions\/WeatherException.php":1149541561,"src\/WeatherFormat.php":2320223748,"src\/Exceptions\/InvalidConfiguration.php":2682133250,"src\/WeatherClient.php":330072577}}
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":3393164032,"src\/WeatherClient.php":2559958320,"src\/WeatherServiceProvider.php":1976251433,"src\/Exceptions\/WeatherException.php":1149541561,"src\/Exceptions\/InvalidConfiguration.php":798640689,"src\/config\/openweather.php":75228949}}

src/Exceptions/InvalidConfiguration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function report()
2525
public function render($request)
2626
{
2727
return response([
28-
'message' => 'Invalid API Key. Get a free Open Weather Map API key : https://openweathermap.org/price.'
28+
'message' => 'Invalid API Key. Get a free Open Weather Map API key : https://openweathermap.org/price.',
2929
]);
3030
}
3131
}

src/Weather.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private function getGeo(string $type, array $query)
160160

161161
public function getCurrentByCity(string $city)
162162
{
163-
if (!is_numeric($city)) {
163+
if (! is_numeric($city)) {
164164
$params['q'] = $city;
165165
} else {
166166
$params['id'] = $city;
@@ -187,7 +187,7 @@ public function getCurrentByZip(string $zip, string $country = 'us')
187187

188188
public function getCurrentTempByCity(string $city)
189189
{
190-
if (!is_numeric($city)) {
190+
if (! is_numeric($city)) {
191191
$params['q'] = $city;
192192
} else {
193193
$params['id'] = $city;
@@ -206,7 +206,7 @@ public function getOneCallByCord(string $lat, string $lon)
206206

207207
public function get3HourlyByCity(string $city)
208208
{
209-
if (!is_numeric($city)) {
209+
if (! is_numeric($city)) {
210210
$params['q'] = $city;
211211
} else {
212212
$params['id'] = $city;

src/config/openweather.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Units: available units are c, f, k. (k is default)
2525
*
2626
* For temperature in Fahrenheit (f) and wind speed in miles/hour, use units=imperial
27-
* For temperature in Celsius (c) and wind speed in meter/sec, use units=metric
27+
* For temperature in Celsius (c) and wind speed in meter/sec, use units=metric
2828
*/
2929

3030
'temp_format' => 'c',

0 commit comments

Comments
 (0)