Layout issues

From: Date: Mon, 07 Oct 2002 11:23:36 +0000
Subject: Layout issues
Groups: php.dev 
Request: Send a blank email to php-dev+get-89141@lists.php.net to get a copy of this message
Guys, Please make sure you're all well familiar with CODING_STANDARDS, most notably [2] and [3] in the syntax and indentation section. Thanks, Zeev ---- [2] Use K&R-style. Of course, we can't and don't want to
    force anybody to use a style he or she is not used to, but,
    at the very least, when you write code that goes into the core
    of PHP or one of its standard modules, please maintain the K&R
    style.  This applies to just about everything, starting with
    indentation and comment styles and up to function declaration
    syntax.
    (see also http://www.tuxedo.org/~esr/jargon/html/entry/indent-style.html)
[3] Be generous with whitespace and braces. Always prefer:
    if (foo) {
        bar;
    }
    to:
    if(foo)bar;
    Keep one empty line between the variable declaration section and
    the statements in a block, as well as between logical statement
    groups in a block.  Maintain at least one empty line between
    two functions, preferably two.


« previous php.dev (#89141) next »