Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Baspa/buienradar-php-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Mar 14, 2024
2 parents 0ce69bc + fb5e00a commit e7f458e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Certainly! Here's an updated README based on the non-static class:

# Buienradar PHP API

[![Latest Version on Packagist](https://img.shields.io/packagist/v/baspa/buienradar-php-api.svg?style=flat-square)](https://packagist.org/packages/baspa/buienradar-php-api)
Expand Down
6 changes: 2 additions & 4 deletions src/Buienradar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace Baspa\Buienradar;

use Baspa\Buienradar\Enum\MeasuringStation;
use GuzzleHttp\Client;

namespace Baspa\Buienradar;

use Baspa\Buienradar\Enum\MeasuringStation;
Expand All @@ -28,6 +25,7 @@ private function fetchData(): array
{
try {
$response = $this->client->get(self::URL);

return json_decode($response->getBody()->getContents(), true);
} catch (RequestException $e) {
// Handle the exception (log, throw a custom exception, etc.)
Expand Down Expand Up @@ -86,4 +84,4 @@ public function forDay(int $day): array
{
return $this->forecast['fivedayforecast'][$day] ?? [];
}
}
}

0 comments on commit e7f458e

Please sign in to comment.