protected function getIndentationLevel(File $phpcsFile, $index) {
		$tokens = $phpcsFile->getTokens();

		$whitespace = $this->getIndentationWhitespace($phpcsFile, $index);
		$char = $this->getIndentationCharacter($whitespace);

		$level = $tokens[$index]['column'] - 1;

		if ($char === "\t") {
			return $level;
		}

		return (int)($level / 4);
	}
protected function getIndentationLevel(File $phpcsFile, $index) {
		$tokens = $phpcsFile->getTokens();

		$whitespace = $this->getIndentationWhitespace($phpcsFile, $index);
		$char = $this->getIndentationCharacter($whitespace);

		$level = $tokens[$index]['column'] - 1;

		if ($char === "\t") {
			return $level;
		}

		return (int)($level / 4);
	}
protected function getIndentationLevel ( File $ phpcsFile , $ index ) { $ tokens = $ phpcsFile -> getTokens ( ) ; $ whitespace = $ this -> getIndentationWhitespace ( $ phpcsFile , $ index ) ; $ char = $ this -> getIndentationCharacter ( $ whitespace ) ; $ level = $ tokens [ $ index ] [ 'column' ] - 1 ; if ( $ char === "\t" ) { return $ level ; } return ( int ) ( $ level / 4 ) ; }
Get level of indentation, 0 based.

@param \PHP_CodeSniffer\Files\File $phpcsFile
@param int $index
@return int
Get level of indentation 0 based .