Closed marinaglancy closed 6 months ago
The Sniff is correct -- the variables are not documented.
/**
* Constructor.
*
* @param int $courseid the course id.
* @param int $toolcount the number of tools available in the course.
* @param bool $canadd whether the user can add tools to the course or not.
*/
public function __construct(
/** @var int ID of the course */
protected int $courseid,
/** @var int The number of tools */
protected int $toolcount,
/** @var bool Whether the user can add tools to the course */
protected bool $canadd.
) {
}
Thanks Andrew,
btw this syntax fails in the previous version (using local_moodlecheck) which is quite annoying but we can't really change it
This is the code of the respective file: https://github.com/moodle/moodle/blob/v4.3.3/mod/lti/classes/output/course_tools_page_header.php#L31-L39
This is different from https://github.com/moodlehq/moodle-cs/issues/142 because the arguments have the word "protected" in front of them, which makes them class properties