camelCase; // But camel case objects elements are. new camcelCase(); // Is ok. } function coder_test_two_errors_on_same_line() { if('test=' . $test == 'test='){ // There are 3 errors on this line. } } function coder_test_embedded_php() { ?>This is embedded php and should Not trigger a camelCase error.This second embedded php and should Not trigger a camelCase error.Blocks are boxes of content that may be rendered into certain regions of your web pages, for example, into sidebars. They are usually generated automatically by modules, but administrators can create blocks manually.

Only enabled blocks are shown. You can position blocks by specifying which area of the page they should appear in (e.g., a sidebar). Highlighted labels on this page show the regions into which blocks can be rendered. You can specify where within a region a block will appear by adjusting its weight.

If you want certain blocks to disable themselves temporarily during high server loads, check the "Throttle" box. You can configure the auto-throttle on the throttle configuration page after having enabled the throttle module.

You can configure the behaviour of each block (for example, specifying on which pages and for what users it will appear) by clicking the "configure" link for each block.

', array('@throttle' => url('admin/settings/throttle'))); } function coder_break() { print '
'; // Should generate an error, and will throw performance warning. ?>
__EOD__; $var = <<<__EOD__
__EOD__; } 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 * .1 * 1. * (0.1) * (1.) * (.1) * (1.0); // Ok. } function coder_array_indexes() { $a[hello] = 'this is bad'; $a['hello'] = 'this is no'; } function coder_trailing_spaces() { $left = 'this is bad'; $left = 'this is ok'; } function coder_control_structures() { if($a == 1){ } if ($a == 1) { }else { } if ($a == 1) { $b = 2; } if ($a == 1) {$b = 2; } } 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. } } // Should generate an error about the trailing php close. ?>