public function getIndentation()
    {
        $indentation = $this->getLineIndentation();

        if($this->isFirstTokenOnLine() && $this->matches(T_WHITESPACE)) {
            $indentation = '';
        }

        return $indentation . str_repeat(' ', $this->getStartColumn() - strlen($indentation));
    }
public function getIndentation()
    {
        $indentation = $this->getLineIndentation();

        if($this->isFirstTokenOnLine() && $this->matches(T_WHITESPACE)) {
            $indentation = '';
        }

        return $indentation . str_repeat(' ', $this->getStartColumn() - strlen($indentation));
    }
public function getIndentation ( ) { $ indentation = $ this -> getLineIndentation ( ) ; if ( $ this -> isFirstTokenOnLine ( ) && $ this -> matches ( T_WHITESPACE ) ) { $ indentation = '' ; } return $ indentation . str_repeat ( ' ' , $ this -> getStartColumn ( ) - strlen ( $ indentation ) ) ; }
Returns the indentation necessary to reach the start of this token on a
new line.

It is important to note that this also supports smart tabs as it uses whatever
is used for indenting the current lines, and only then pads this with spaces.

@return string
Returns the indentation necessary to reach the start of this token on a new line .