protected function getIndentation($tagName, $tagElement) {
        if ($tagElement instanceof PHP_CodeSniffer_CommentParser_SingleElement) {
            if ($tagElement->getContent() !== '') {
                return (strlen($tagName) + substr_count($tagElement->getWhitespaceBeforeContent(), ' '));
            }
        } else if ($tagElement instanceof PHP_CodeSniffer_CommentParser_PairElement) {
            if ($tagElement->getValue() !== '') {
                return (strlen($tagName) + substr_count($tagElement->getWhitespaceBeforeValue(), ' '));
            }
        }

        return 0;

    }
protected function getIndentation($tagName, $tagElement) {
        if ($tagElement instanceof PHP_CodeSniffer_CommentParser_SingleElement) {
            if ($tagElement->getContent() !== '') {
                return (strlen($tagName) + substr_count($tagElement->getWhitespaceBeforeContent(), ' '));
            }
        } else if ($tagElement instanceof PHP_CodeSniffer_CommentParser_PairElement) {
            if ($tagElement->getValue() !== '') {
                return (strlen($tagName) + substr_count($tagElement->getWhitespaceBeforeValue(), ' '));
            }
        }

        return 0;

    }
protected function getIndentation ( $ tagName , $ tagElement ) { if ( $ tagElement instanceof PHP_CodeSniffer_CommentParser_SingleElement ) { if ( $ tagElement -> getContent ( ) !== '' ) { return ( strlen ( $ tagName ) + substr_count ( $ tagElement -> getWhitespaceBeforeContent ( ) , ' ' ) ) ; } } else if ( $ tagElement instanceof PHP_CodeSniffer_CommentParser_PairElement ) { if ( $ tagElement -> getValue ( ) !== '' ) { return ( strlen ( $ tagName ) + substr_count ( $ tagElement -> getWhitespaceBeforeValue ( ) , ' ' ) ) ; } } return 0 ; }
Get the indentation information of each tag.

@param string                                   $tagName    The name of the
doc comment
element.
@param PHP_CodeSniffer_CommentParser_DocElement $tagElement The doc comment
element.

@return void
Get the indentation information of each tag .