private function detectIndent(Tokens $tokens, $index)
    {
        if (!$tokens[$index - 1]->isWhitespace()) {
            return ''; // cannot detect indent
        }

        $explodedContent = explode($this->whitespacesConfig->getLineEnding(), $tokens[$index - 1]->getContent());

        return end($explodedContent);
    }
private function detectIndent(Tokens $tokens, $index)
    {
        if (!$tokens[$index - 1]->isWhitespace()) {
            return ''; 
        }

        $explodedContent = explode($this->whitespacesConfig->getLineEnding(), $tokens[$index - 1]->getContent());

        return end($explodedContent);
    }
private function detectIndent ( Tokens $ tokens , $ index ) { if ( ! $ tokens [ $ index - 1 ] -> isWhitespace ( ) ) { return '' ; // cannot detect indent } $ explodedContent = explode ( $ this -> whitespacesConfig -> getLineEnding ( ) , $ tokens [ $ index - 1 ] -> getContent ( ) ) ; return end ( $ explodedContent ) ; }
@param Tokens $tokens
@param int    $index

@return string
@param Tokens $tokens @param int $index