-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Mark S edited this page Feb 14, 2016
·
9 revisions
Welcome to the psr2r-sniffer wiki!
-
empty($var) === true
=>empty($var)
-
isset($var) === false
=>!isset($var)
-
Add trailing comma in array list
-
list(, , , , $x) - 1 space for empty list element
-
Always operator at beginning of line:
$a = 'b' .
$c;
// to
$a = 'b'
. $c;
- Make all sniffers except for "toTabs" ones indentation agnostic, they should work with both indentation chars (single tab vs 4 spaces) They detect the indentation to be used by the existing ones around the line that needs fixing.