Add inline comments - Add DEBUG ability via $DEBUG - Make notifications configurable via $NOTIFY - Add new checks:   . Warnings for unintentional copies     Wrong: $object= new Object();     Right: $object= &new Object();   . Warnings for bad performers (ereg*, split)     Make suggestions for better functions   . Errors for when there is a method that has the same name as a class     Constructors are supposed to be called __construct   . Errors for insufficient whitespace after inline comments     Wrong: //bug in PHP, see bugs.php.net/6100     Right: // Bug in PHP, see bugs.php.net/6100   . Errors for insufficient whitespace before and after variables     Wrong: $i=0;     Right: $i= 0;     Wrong: function calculate($i= 0,$b= FALSE);     Right: function calculate($i= 0, $b= FALSE);     Wrong: for($i=0;$i<$max;$i++)     Right: for($i=0; $i < $max; $i++)   . Errors for insufficient whitespace before and after operators     Wrong: if (0==$i)     Right: if (0 == $i) - Check function indentation (vs. class methods)
Add inline comments
- Add DEBUG ability via $DEBUG
- Make notifications configurable via $NOTIFY
- Add new checks:
  . Warnings for unintentional copies
    Wrong: $object= new Object();
    Right: $object= &new Object();
  . Warnings for bad performers (ereg*, split)
    Make suggestions for better functions
  . Errors for when there is a method that has the same name as a class
    Constructors are supposed to be called __construct
  . Errors for insufficient whitespace after inline comments
    Wrong: //bug in PHP, see bugs.php.net/6100
    Right: // Bug in PHP, see bugs.php.net/6100
  . Errors for insufficient whitespace before and after variables
    Wrong: $i=0;
    Right: $i= 0;
    Wrong: function calculate($i= 0,$b= FALSE);
    Right: function calculate($i= 0, $b= FALSE);
    Wrong: for($i=0;$i<$max;$i++)
    Right: for($i=0; $i < $max; $i++)
  . Errors for insufficient whitespace before and after operators
    Wrong: if (0==$i)
    Right: if (0 == $i)
- Check function indentation (vs. class methods)


git-svn-id: 526f3b90ad6d9b1dfe840af828070ca3d99521ac@2663 d2cacbed-c0f6-0310-851a-9dad52fc623a

johannes85/core