From 261a643788aa70b687c533afb693cfb27b30f2aa Mon Sep 17 00:00:00 2001 From: Jordan Hall Date: Fri, 7 Dec 2018 23:11:34 +0000 Subject: [PATCH] Update example and documentation --- README.md | 2 +- example.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26a0a54..76a2026 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ and call its `status` method. You can optionally pass a `Carbon` date object to the `status` method to retrieve a historical status. ```php +use Carbon\Carbon; use DivineOmega\GitHubStatusApi\Client; use DivineOmega\GitHubStatusApi\Enums\GitHubStatus; @@ -49,5 +50,4 @@ switch ($status) { } echo PHP_EOL; - ``` \ No newline at end of file diff --git a/example.php b/example.php index 9de089a..df875fd 100644 --- a/example.php +++ b/example.php @@ -1,11 +1,13 @@ status(); +$status = (new Client())->status(); +// $status = (new Client())->status(Carbon::parse('2018-12-06 17:00')); switch ($status) { case GitHubStatus::GOOD: