CodeSniffer padding question

From: Date: Wed, 14 Nov 2007 19:01:13 +0000
Subject: CodeSniffer padding question
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28177@lists.php.net to get a copy of this message
Hi list, I'm trying out the PHP_CodeSniffer package and ran into a slight quirk. I was hoping someone could point me in the right direction. I'm using the MultipleStatementAlignmentSniff.php sniff, and have code that looks like this. $log = steLog::getInstance(); $string = removeWhitespace($message); $log->log($string); The space after the $log line is a tab. The space after the $string line is also a tab. phpcs flags this as -------------------------------------------------------------------------------- 142 | WARNING | Equals sign not aligned with surrounding assignments; expected | | 4 spaces but found 1 space -------------------------------------------------------------------------------- I can make the error go away if I turn the first tab into 4 spaces, but this is not what I want to do. I want to keep the tab and have phpcs notice that they are properly aligned. Any suggestions? Or is this a bug that should be reported? Thanks, Tim

« previous php.pear.general (#28177) next »