File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ and call its `status` method. You can optionally pass a `Carbon` date object
2222to the ` status ` method to retrieve a historical status.
2323
2424``` php
25+ use Carbon\Carbon;
2526use DivineOmega\GitHubStatusApi\Client;
2627use DivineOmega\GitHubStatusApi\Enums\GitHubStatus;
2728
@@ -49,5 +50,4 @@ switch ($status) {
4950}
5051
5152echo PHP_EOL;
52-
5353```
Original file line number Diff line number Diff line change 11<?php
22
3+ use Carbon \Carbon ;
34use DivineOmega \GitHubStatusApi \Client ;
45use DivineOmega \GitHubStatusApi \Enums \GitHubStatus ;
56
67require_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
1012switch ($ status ) {
1113 case GitHubStatus::GOOD :
You can’t perform that action at this time.
0 commit comments