Skip to content

Commit 261a643

Browse files
committed
Update example and documentation
1 parent 6ac2dae commit 261a643

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and call its `status` method. You can optionally pass a `Carbon` date object
2222
to the `status` method to retrieve a historical status.
2323

2424
```php
25+
use Carbon\Carbon;
2526
use DivineOmega\GitHubStatusApi\Client;
2627
use DivineOmega\GitHubStatusApi\Enums\GitHubStatus;
2728

@@ -49,5 +50,4 @@ switch ($status) {
4950
}
5051

5152
echo PHP_EOL;
52-
5353
```

example.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<?php
22

3+
use Carbon\Carbon;
34
use DivineOmega\GitHubStatusApi\Client;
45
use DivineOmega\GitHubStatusApi\Enums\GitHubStatus;
56

67
require_once 'vendor/autoload.php';
78

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

1012
switch ($status) {
1113
case GitHubStatus::GOOD:

0 commit comments

Comments
 (0)