From b34d5db1967da326ae811a3c79e69cee391b0377 Mon Sep 17 00:00:00 2001 From: gpb Date: Thu, 11 Jul 2024 17:15:59 +0800 Subject: [PATCH 1/2] fix "$temperature->getFormatteed" in example fix "percipitation" in docs --- docs/docs/usage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/usage.md b/docs/docs/usage.md index 1c08cb3..4c03923 100755 --- a/docs/docs/usage.md +++ b/docs/docs/usage.md @@ -47,7 +47,7 @@ echo $weather->temperature; ## `Unit` objects -Most values like temperature, percipitation, etc., are returned as instances of the +Most values like temperature, precipitation, etc., are returned as instances of the `Cmfcmf\OpenWeatherMap\Util\Unit` class. These objects provide you with the value (e.g., `26.9`), the unit (e.g., `°C`), @@ -62,7 +62,7 @@ $temperature = $weather->temperature->now; $temperature->getValue(); // 26.9 $temperature->getUnit(); // "°C" $temperature->getDescription(); // "" -$temperature->getFormatteed(); // "26.9 °C" +$temperature->getFormatted(); // "26.9 °C" $temperature->__toString(); // "26.9 °C" ``` @@ -116,4 +116,4 @@ try { } catch (\Exception $e) { // TODO: Handle general exception } -``` \ No newline at end of file +``` From 8dfe070329f26bc09300973a95fba6e5ad00a78c Mon Sep 17 00:00:00 2001 From: gpb Date: Thu, 11 Jul 2024 21:09:46 +0800 Subject: [PATCH 2/2] remove vscode end-of-file eol --- docs/docs/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/usage.md b/docs/docs/usage.md index 4c03923..476b2f0 100755 --- a/docs/docs/usage.md +++ b/docs/docs/usage.md @@ -116,4 +116,4 @@ try { } catch (\Exception $e) { // TODO: Handle general exception } -``` +``` \ No newline at end of file