From 7927138d50af87840b94f3731c02389c144e72af Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Tue, 29 Aug 2017 10:09:19 +0800 Subject: [PATCH] MDL-59855 oauth2: More PHPDocs fixes * Fix PHPDoc return type for api::get_system_account() * Fix PHPDoc for the $contenttype parameter in \core\oauth2\rest::call() --- lib/classes/oauth2/api.php | 2 +- lib/classes/oauth2/rest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/classes/oauth2/api.php b/lib/classes/oauth2/api.php index 48745527a19..bba05f6e68e 100644 --- a/lib/classes/oauth2/api.php +++ b/lib/classes/oauth2/api.php @@ -241,7 +241,7 @@ class api { * Never ever ever expose this to a webservice because it contains the refresh token which grants API access. * * @param \core\oauth2\issuer $issuer - * @return \core\oauth2\client + * @return system_account|false */ public static function get_system_account(issuer $issuer) { return system_account::get_record(['issuerid' => $issuer->get('id')]); diff --git a/lib/classes/oauth2/rest.php b/lib/classes/oauth2/rest.php index bb1cd100d5d..b6d1af3d9af 100644 --- a/lib/classes/oauth2/rest.php +++ b/lib/classes/oauth2/rest.php @@ -65,6 +65,7 @@ abstract class rest { * @param string $functionname * @param array $functionargs * @param string $rawpost Optional param to include in the body of a post. + * @param string $contenttype The MIME type for the request's Content-Type header. * @return string|stdClass */ public function call($functionname, $functionargs, $rawpost = false, $contenttype = false) { -- 2.43.0