From 7b2a2f65c98fcecd8706e24672f9152172ed4c56 Mon Sep 17 00:00:00 2001 From: Bobby Allen Date: Thu, 17 Nov 2016 00:19:01 +0000 Subject: [PATCH] Fixes issue #3 caused by deprecated NOAA service endpoint. Syntax fixes (PSR formatting) and some namespace use cases cleaned up. --- examples/Examples.php | 2 +- lib/Helpers/MetarHTTPClient.php | 1 - lib/Metar.php | 1 - lib/Providers/Ivao.php | 2 -- lib/Providers/MetarProviderInterface.php | 1 - lib/Providers/Noaa.php | 4 +--- lib/Providers/Vatsim.php | 2 -- 7 files changed, 2 insertions(+), 11 deletions(-) diff --git a/examples/Examples.php b/examples/Examples.php index 051d61e..bf2ffa7 100644 --- a/examples/Examples.php +++ b/examples/Examples.php @@ -14,6 +14,6 @@ * this can be achieved by */ $leib = new Metar('LEIB'); -$leib->setProvider('VATSIM'); +$leib->setProvider(Ballen\Metar\Providers\Vatsim::class); echo sprintf('The VATSIM METAR report for Ibiza airport (LEIB) is: %s', $leib); diff --git a/lib/Helpers/MetarHTTPClient.php b/lib/Helpers/MetarHTTPClient.php index d6cb3da..b229738 100644 --- a/lib/Helpers/MetarHTTPClient.php +++ b/lib/Helpers/MetarHTTPClient.php @@ -1,5 +1,4 @@