X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FAPI.php;h=8e51489872e106c0ce83e6eb290bcca82a93c72f;hb=c05a8f703d5a097355b5813154c264c87e3f71fe;hp=9f37c4f2d56410af18e8a83ecd4769840625c64d;hpb=1097a4f83de3562c3518f31b168448c2c2ac0451;p=pharext%2Fpharext.org diff --git a/app/Github/API.php b/app/Github/API.php index 9f37c4f..8e51489 100644 --- a/app/Github/API.php +++ b/app/Github/API.php @@ -134,7 +134,7 @@ class API ], 0); } - function fetchToken($code, $state, callable $callback) { + function fetchToken($code, $state) { if (!$this->tokens->get("state", $orig_state, true)) { if (isset($orig_state)) { $this->logger->notice("State expired", $orig_state); @@ -152,12 +152,12 @@ class API "client_id" => $this->config->client->id, "client_secret" => $this->config->client->secret, ]); - return $call($callback); + return $call(); } - function readAuthUser(callable $callback) { + function readAuthUser() { $call = new API\Users\ReadAuthUser($this); - return $call($callback); + return $call(); } function listRepos($page, callable $callback) {