Moodle

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

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 2.0.1
  • Fix Version/s: None
  • Component/s: Other
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE

Description

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.

Issue Links

Activity

Hide
Tyler Bannister added a comment -

Oops. Fixed the missing comma.

Show
Tyler Bannister added a comment - Oops. Fixed the missing comma.
Hide
Tyler Bannister added a comment -

$ADMIN is also missing from the list.

Show
Tyler Bannister added a comment - $ADMIN is also missing from the list.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: