vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php 1 location
|
@@ 73-83 (lines=11) @@
|
| 70 |
|
*/ |
| 71 |
|
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
| 72 |
|
{ |
| 73 |
|
if ($this->_tabWidth === null) { |
| 74 |
|
$cliValues = $phpcsFile->phpcs->cli->getCommandLineValues(); |
| 75 |
|
if (isset($cliValues['tabWidth']) === false || $cliValues['tabWidth'] === 0) { |
| 76 |
|
// We have no idea how wide tabs are, so assume 4 spaces for fixing. |
| 77 |
|
// It shouldn't really matter because indent checks elsewhere in the |
| 78 |
|
// standard should fix things up. |
| 79 |
|
$this->_tabWidth = 4; |
| 80 |
|
} else { |
| 81 |
|
$this->_tabWidth = $cliValues['tabWidth']; |
| 82 |
|
} |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
$checkTokens = array( |
| 86 |
|
T_WHITESPACE => true, |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php 1 location
|
@@ 149-159 (lines=11) @@
|
| 146 |
|
$this->_debug = (bool) $debug; |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
if ($this->_tabWidth === null) { |
| 150 |
|
$cliValues = $phpcsFile->phpcs->cli->getCommandLineValues(); |
| 151 |
|
if (isset($cliValues['tabWidth']) === false || $cliValues['tabWidth'] === 0) { |
| 152 |
|
// We have no idea how wide tabs are, so assume 4 spaces for fixing. |
| 153 |
|
// It shouldn't really matter because indent checks elsewhere in the |
| 154 |
|
// standard should fix things up. |
| 155 |
|
$this->_tabWidth = 4; |
| 156 |
|
} else { |
| 157 |
|
$this->_tabWidth = $cliValues['tabWidth']; |
| 158 |
|
} |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
$currentIndent = 0; |
| 162 |
|
$lastOpenTag = $stackPtr; |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php 1 location
|
@@ 67-75 (lines=9) @@
|
| 64 |
|
*/ |
| 65 |
|
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
| 66 |
|
{ |
| 67 |
|
if ($this->_tabWidth === null) { |
| 68 |
|
$cliValues = $phpcsFile->phpcs->cli->getCommandLineValues(); |
| 69 |
|
if (isset($cliValues['tabWidth']) === false || $cliValues['tabWidth'] === 0) { |
| 70 |
|
// We have no idea how wide tabs are, so assume 4 spaces for fixing. |
| 71 |
|
$this->_tabWidth = 4; |
| 72 |
|
} else { |
| 73 |
|
$this->_tabWidth = $cliValues['tabWidth']; |
| 74 |
|
} |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
$tokens = $phpcsFile->getTokens(); |
| 78 |
|
|