Skip to content
pussbb edited this page Apr 12, 2012 · 5 revisions

General:

No tabs at all. Switch your editor to place 4 spaces instead of tabs.
Indentation is 4 spaces.
Line end: CR (Linux style). CR/LF is not allowed.

Delimit:

PHP code must be delimited by the full-form “<?php … ?>”. Short tags are not allowed. Don’t use closing tag at the end of file.

PHP

  1. max line length 90-100 not strict but prefer to keep that.

  2. Curly brackets ‘{’ not necessary to type if in condition only one line e.g if ( $var)

      $do_somthing
    else
     $else_do_somthing

    but not

    if ( $var) // also must wrap in curly brackets
       $do_somthing
    else {
       $else_do_somthing
       $else_do_somthing ....
    }

JS

1. Camel style http://ru.wikipedia.org/wiki/CamelCase

CSS use only css3 futures for gradient background. if i see it(pussbb) deleting it emidiatly css3gen.com/box-shadow/

css3gen.com/

gradients.glrzad.com/

css3generator.com/

Clone this wiki locally