Skip to content
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.
Clone this wiki locally