Skip to content

Commit

Permalink
fixes phpdoc linter warnings/errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Dec 5, 2023
1 parent eb35e6b commit f59afd6
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 3 deletions.
12 changes: 9 additions & 3 deletions classes/ilios_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

defined('MOODLE_INTERNAL') || die();

/** @global $CFG */
require_once($CFG->dirroot . '/lib/filelib.php');

/**
Expand All @@ -55,12 +54,19 @@ class ilios_client {
const API_URL = '/api/v3';

/**
* Constructor.
*
* @param string $iliosbaseurl The Ilios base URL
* @param curl $curl the cURL client
*/
public function __construct(protected string $iliosbaseurl, protected curl $curl) {
}

/**
* Returns the Ilios API base URL.
*
* @return string
*/
protected function get_api_base_url(): string {
return $this->iliosbaseurl . self::API_URL;
}
Expand All @@ -70,8 +76,8 @@ protected function get_api_base_url(): string {
*
* @param string $accesstoken the Ilios API access token
* @param string $entitytype the entity type of data to retrieve
* @param array|string $filters e.g. array('id' => 3)
* @param array|string $sortorder e.g. array('title' => "ASC")
* @param mixed $filters e.g. array('id' => 3)
* @param mixed $sortorder e.g. array('title' => "ASC")
* @param int $batchsize the maximum number of entities to retrieve per batch.
* @return array
* @throws moodle_exception
Expand Down
6 changes: 6 additions & 0 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@
use core_privacy\local\metadata\null_provider;

/**
* Privacy Subsystem implementing null_provider.
*
* @package local_iliosapiclient
* @copyright The Regents of the University of California
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements null_provider {

/**
* {@inheritdoc}
*/
public static function get_reason(): string {
return 'privacy:metadata';
}
Expand Down
Loading

0 comments on commit f59afd6

Please sign in to comment.