You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark S edited this page Feb 13, 2016
·
9 revisions
Welcome to the psr2r-sniffer wiki!
TODOS
empty($var) === true => empty($var)
isset($var) === false => !isset($var)
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.