Skip to content

Namespace collisions - Functions not Frankenstyle prefixed #1

@volodymyrdovhan

Description

@volodymyrdovhan

Hello,
Plugin functions are not frankenstyle prefixed with plugin type and name, creating risk of function name conflicts.

Documentation:

Code excerpts:

  • File: coursereport.php
67:  * @param context_course $context The course context.
68:  */
69: function display_flagged_students(int $courseid, context_course $context): void {
70:     global $DB;
  • File: coursereport.php
172:  * @param context_course $context The course context.
173:  */
174: function display_student_signals(int $courseid, int $userid, context_course $context): void {
175:     global $DB, $OUTPUT;
  • File: coursereport.php
407:  * @return array Array of context IDs.
408:  */
409: function get_course_context_ids(context_course $context): array {
410:     global $DB;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions