Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26067

CodeSniffer doesn't recognize $OUTPUT as a valid variable name.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.0.1
    • Other
    • None
    • MOODLE_20_STABLE

      In the file lib/pear/PHP/CodeSniffer/Standards/Moodle/Sniffs/NamingConventions there's a list of variables that are "ok" to not follow the standard naming practices. $OUTPUT is not on this list causing CodeSniffer to complain every time it seems the $OUTPUT variable.

      I've attached a patch to resolve the problem.

            Unassigned Unassigned
            tbannister Tyler Bannister
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.