From 1b47b4ab653ec14c30acfeae95adb681e5d71cba Mon Sep 17 00:00:00 2001 From: BJ Hansen Date: Mon, 8 Jul 2024 17:37:49 -0500 Subject: [PATCH] Namespace updates --- composer.json | 2 +- readme.md | 2 +- src/Api.php | 12 +++++----- src/Enums/AlertCategory.php | 4 ++-- src/Enums/AlertCertainty.php | 4 ++-- src/Enums/AlertMessageType.php | 4 ++-- src/Enums/AlertResponse.php | 4 ++-- src/Enums/AlertSeverity.php | 4 ++-- src/Enums/AlertStatus.php | 4 ++-- src/Enums/AlertUrgency.php | 4 ++-- src/Exceptions/ApiNotOkException.php | 2 +- src/Exceptions/CacheException.php | 2 +- src/Exceptions/InvalidRequestException.php | 2 +- src/Features/Alert.php | 26 +++++++++++----------- src/Features/Alerts.php | 6 ++--- src/Features/County.php | 6 ++--- src/Features/FireZone.php | 4 ++-- src/Features/Forecast.php | 8 +++---- src/Features/ForecastGridData.php | 8 +++---- src/Features/ForecastHourly.php | 8 +++---- src/Features/ForecastOffice.php | 4 ++-- src/Features/ForecastPeriod.php | 8 +++---- src/Features/ForecastPeriods.php | 4 ++-- src/Features/ForecastZone.php | 4 ++-- src/Features/LatestObservations.php | 8 +++---- src/Features/ObservationStation.php | 4 ++-- src/Features/ObservationStations.php | 4 ++-- src/Features/Point.php | 6 ++--- src/Features/RadarStation.php | 4 ++-- src/Support/Carbon.php | 2 +- src/Support/Coordinate.php | 4 ++-- src/Support/Helpers.php | 2 +- src/Support/UsState.php | 4 ++-- src/Traits/CanGetDescription.php | 16 ++++++------- src/Traits/IsCallable.php | 2 +- 35 files changed, 96 insertions(+), 96 deletions(-) diff --git a/composer.json b/composer.json index 159a104..b2f08a3 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ ], "autoload": { "psr-4": { - "NWS\\": "src/" + "BenjaminHansen\\NWS\\": "src/" }, "files": [ "src/functions.php" diff --git a/readme.md b/readme.md index 89ac7b7..ef6a841 100644 --- a/readme.md +++ b/readme.md @@ -22,7 +22,7 @@ Notes require 'vendor/autoload.php'; // if your app it not already including this -use NWS\Api; +use BenjaminHansen\NWS\Api; /* ** We must provide valid contact information so the National Weather Service diff --git a/src/Api.php b/src/Api.php index 73686cc..cef468b 100644 --- a/src/Api.php +++ b/src/Api.php @@ -4,12 +4,12 @@ use Phpfastcache\Helper\Psr16Adapter; use GuzzleHttp\Client as HttpClient; -use NWS\Features\Point; -use NWS\Features\ForecastOffice; -use NWS\Features\ObservationStation; -use NWS\Exceptions\InvalidRequestException; -use NWS\Exceptions\ApiNotOkException; -use NWS\Exceptions\CacheException; +use BenjaminHansen\NWS\Features\Point; +use BenjaminHansen\NWS\Features\ForecastOffice; +use BenjaminHansen\NWS\Features\ObservationStation; +use BenjaminHansen\NWS\Exceptions\InvalidRequestException; +use BenjaminHansen\NWS\Exceptions\ApiNotOkException; +use BenjaminHansen\NWS\Exceptions\CacheException; use DateTimeZone; class Api diff --git a/src/Enums/AlertCategory.php b/src/Enums/AlertCategory.php index ed83c58..14b975e 100644 --- a/src/Enums/AlertCategory.php +++ b/src/Enums/AlertCategory.php @@ -1,8 +1,8 @@