Skip to content

Commit

Permalink
Update example and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega committed Dec 7, 2018
1 parent 6ac2dae commit 261a643
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -49,5 +50,4 @@ switch ($status) {
}

echo PHP_EOL;

```
4 changes: 3 additions & 1 deletion example.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

use Carbon\Carbon;
use DivineOmega\GitHubStatusApi\Client;
use DivineOmega\GitHubStatusApi\Enums\GitHubStatus;

require_once 'vendor/autoload.php';

$status = (new Client())->status();
$status = (new Client())->status();
// $status = (new Client())->status(Carbon::parse('2018-12-06 17:00'));

switch ($status) {
case GitHubStatus::GOOD:
Expand Down

0 comments on commit 261a643

Please sign in to comment.