Skip to content

Commit

Permalink
Namespace updates
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhansen committed Jul 8, 2024
1 parent 7fa9002 commit 1b47b4a
Show file tree
Hide file tree
Showing 35 changed files with 96 additions and 96 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"autoload": {
"psr-4": {
"NWS\\": "src/"
"BenjaminHansen\\NWS\\": "src/"
},
"files": [
"src/functions.php"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Enums/AlertCategory.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Enums;
namespace BenjaminHansen\NWS\Enums;

use NWS\Traits\CanGetDescription;
use BenjaminHansen\NWS\Traits\CanGetDescription;

enum AlertCategory: string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Enums/AlertCertainty.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Enums;
namespace BenjaminHansen\NWS\Enums;

use NWS\Traits\CanGetDescription;
use BenjaminHansen\NWS\Traits\CanGetDescription;

enum AlertCertainty: string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Enums/AlertMessageType.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Enums;
namespace BenjaminHansen\NWS\Enums;

use NWS\Traits\CanGetDescription;
use BenjaminHansen\NWS\Traits\CanGetDescription;

enum AlertMessageType: string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Enums/AlertResponse.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Enums;
namespace BenjaminHansen\NWS\Enums;

use NWS\Traits\CanGetDescription;
use BenjaminHansen\NWS\Traits\CanGetDescription;

enum AlertResponse: string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Enums/AlertSeverity.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Enums;
namespace BenjaminHansen\NWS\Enums;

use NWS\Traits\CanGetDescription;
use BenjaminHansen\NWS\Traits\CanGetDescription;

enum AlertSeverity: string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Enums/AlertStatus.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Enums;
namespace BenjaminHansen\NWS\Enums;

use NWS\Traits\CanGetDescription;
use BenjaminHansen\NWS\Traits\CanGetDescription;

enum AlertStatus: string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Enums/AlertUrgency.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Enums;
namespace BenjaminHansen\NWS\Enums;

use NWS\Traits\CanGetDescription;
use BenjaminHansen\NWS\Traits\CanGetDescription;

enum AlertUrgency: string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/ApiNotOkException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NWS\Exceptions;
namespace BenjaminHansen\NWS\Exceptions;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/CacheException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NWS\Exceptions;
namespace BenjaminHansen\NWS\Exceptions;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidRequestException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NWS\Exceptions;
namespace BenjaminHansen\NWS\Exceptions;

use Exception;

Expand Down
26 changes: 13 additions & 13 deletions src/Features/Alert.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace NWS\Features;

use NWS\Enums\AlertResponse;
use NWS\Enums\AlertUrgency;
use NWS\Enums\AlertCertainty;
use NWS\Enums\AlertSeverity;
use NWS\Enums\AlertCategory;
use NWS\Enums\AlertStatus;
use NWS\Enums\AlertMessageType;
use NWS\Traits\IsCallable;
use NWS\Support\Carbon;
<?php

namespace BenjaminHansen\NWS\Features;

use BenjaminHansen\NWS\Enums\AlertResponse;
use BenjaminHansen\NWS\Enums\AlertUrgency;
use BenjaminHansen\NWS\Enums\AlertCertainty;
use BenjaminHansen\NWS\Enums\AlertSeverity;
use BenjaminHansen\NWS\Enums\AlertCategory;
use BenjaminHansen\NWS\Enums\AlertStatus;
use BenjaminHansen\NWS\Enums\AlertMessageType;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\Carbon;
use Illuminate\Support\Collection;

class Alert
Expand Down
6 changes: 3 additions & 3 deletions src/Features/Alerts.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Traits\IsCallable;
use NWS\Support\Carbon;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\Carbon;
use Illuminate\Support\Collection;

class Alerts
Expand Down
6 changes: 3 additions & 3 deletions src/Features/County.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use DateTimeZone;
use NWS\Traits\IsCallable;
use NWS\Support\UsState;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\UsState;

class County
{
Expand Down
4 changes: 2 additions & 2 deletions src/Features/FireZone.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use DateTimeZone;
use NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Traits\IsCallable;
use Illuminate\Support\Collection;

class FireZone
Expand Down
8 changes: 4 additions & 4 deletions src/Features/Forecast.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Support\Helpers;
use NWS\Traits\IsCallable;
use NWS\Support\Carbon;
use BenjaminHansen\NWS\Support\Helpers;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\Carbon;

class Forecast
{
Expand Down
8 changes: 4 additions & 4 deletions src/Features/ForecastGridData.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Traits\IsCallable;
use NWS\Support\Helpers;
use NWS\Support\Carbon;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\Helpers;
use BenjaminHansen\NWS\Support\Carbon;
use Illuminate\Support\Collection;

class ForecastGridData
Expand Down
8 changes: 4 additions & 4 deletions src/Features/ForecastHourly.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Support\Coordinate;
use NWS\Traits\IsCallable;
use NWS\Support\Carbon;
use BenjaminHansen\NWS\Support\Coordinate;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\Carbon;
use Illuminate\Support\Collection;

class ForecastHourly
Expand Down
4 changes: 2 additions & 2 deletions src/Features/ForecastOffice.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Traits\IsCallable;
use Illuminate\Support\Collection;

class ForecastOffice
Expand Down
8 changes: 4 additions & 4 deletions src/Features/ForecastPeriod.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Support\Helpers;
use NWS\Traits\IsCallable;
use NWS\Support\Carbon;
use BenjaminHansen\NWS\Support\Helpers;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\Carbon;

class ForecastPeriod
{
Expand Down
4 changes: 2 additions & 2 deletions src/Features/ForecastPeriods.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Traits\IsCallable;
use Illuminate\Support\Collection;

class ForecastPeriods
Expand Down
4 changes: 2 additions & 2 deletions src/Features/ForecastZone.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use DateTimeZone;
use NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Traits\IsCallable;
use Illuminate\Support\Collection;

class ForecastZone
Expand Down
8 changes: 4 additions & 4 deletions src/Features/LatestObservations.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Traits\IsCallable;
use NWS\Support\Helpers;
use NWS\Support\Carbon;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\Helpers;
use BenjaminHansen\NWS\Support\Carbon;

class LatestObservations
{
Expand Down
4 changes: 2 additions & 2 deletions src/Features/ObservationStation.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use DateTimeZone;
use NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Traits\IsCallable;

class ObservationStation
{
Expand Down
4 changes: 2 additions & 2 deletions src/Features/ObservationStations.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Traits\IsCallable;
use Illuminate\Support\Collection;

class ObservationStations
Expand Down
6 changes: 3 additions & 3 deletions src/Features/Point.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use DateTimeZone;
use NWS\Traits\IsCallable;
use NWS\Support\UsState;
use BenjaminHansen\NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Support\UsState;

class Point
{
Expand Down
4 changes: 2 additions & 2 deletions src/Features/RadarStation.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Features;
namespace BenjaminHansen\NWS\Features;

use NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Traits\IsCallable;

class RadarStation
{
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Carbon.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NWS\Support;
namespace BenjaminHansen\NWS\Support;

use Carbon\Carbon as CarbonDist;

Expand Down
4 changes: 2 additions & 2 deletions src/Support/Coordinate.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NWS\Support;
namespace BenjaminHansen\NWS\Support;

use NWS\Traits\IsCallable;
use BenjaminHansen\NWS\Traits\IsCallable;

class Coordinate
{
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Helpers.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NWS\Support;
namespace BenjaminHansen\NWS\Support;

class Helpers
{
Expand Down
Loading

0 comments on commit 1b47b4a

Please sign in to comment.