X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=examples%2Fpromise.php;h=b39890d8d51158bc21af4f350dd57724dd9c0973;hb=HEAD;hp=e1f5b9d4fbd4a3311e322fe2706d6ffa11423928;hpb=d38b3ae03472ba2f9af5009778574b23472bb3f7;p=m6w6%2Fseekat diff --git a/examples/promise.php b/examples/promise.php index e1f5b9d..b39890d 100755 --- a/examples/promise.php +++ b/examples/promise.php @@ -1,11 +1,7 @@ #!/usr/bin/env php users->m6w6->gists()->onResolve(function($error, $gists) { $error and die($error); @@ -17,7 +13,7 @@ $api->users->m6w6->gists()->onResolve(function($error, $gists) { printf("\nGist %s, %s:\n", $gist->id, $gist->description ?: ""); } $cs = $commit->change_status; - printf("\t%s: ", substr($commit->version,0,8)); + printf("\t%s: ", substr($commit->version, 0, 8)); printf("-%s+%s=%s\n", $cs->deletions, $cs->additions, $cs->total); } });