You are here

function coder_dot in Coder 5.2

Same name and namespace in other branches
  1. 5 tests/coder_style.inc \coder_dot()

File

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

Code

function coder_dot() {
  if ($file = file_check_upload($fieldname . '_upload')) {

    // Not ok.
  }
  $v .= 'bugger';

  // Ok.
  $a = $v . 'bugger';

  // Ok.
  $a = $v . "bugger";

  // Ok, but will throw performance warning.
  $a = $v . 'bugger';

  // Not ok.
  $a = $some_func() . 'bugger';

  // Not ok.
  $a = 1.0 * 0.1 * 1.0 * 0.1 * 1.0 * 0.1 * 1.0;

  // Ok.
}