You are here

function coder_lowercase_true in Coder 5.2

File

tests/coder_style.inc, line 105
This include file implements tests for the Drupal Standards as defined at http://drupal.org/coding-standards

Code

function coder_lowercase_true() {
  $a = TRUE;

  // Ok.
  $atrue = "true";

  // Ok.
  $a = true;

  // Not ok.
  $a = true;

  // Not ok.
  if ($a == true) {

    // Not ok.
    return false;

    // Not ok.
  }
}