src/Standards/BestIt/Sniffs/Formatting/TraitUseDeclarationSniff.php
private function getIndentationForFix(int $usePos): string
    {
        $file = $this->getFile()->getBaseFile();
        $indentation = '';
        $currentPointer = $usePos - 1;
        $tokens = $file->getTokens();

        while ($tokens[$currentPointer]['code'] === T_WHITESPACE &&
            $tokens[$currentPointer]['content'] !== $file->eolChar) {
            $indentation .= $tokens[$currentPointer]['content'];
            $currentPointer--;
        }

        return $indentation;
    }
private function getIndentationForFix(int $usePos): string
    {
        $file = $this->getFile()->getBaseFile();
        $indentation = '';
        $currentPointer = $usePos - 1;
        $tokens = $file->getTokens();

        while ($tokens[$currentPointer]['code'] === T_WHITESPACE &&
            $tokens[$currentPointer]['content'] !== $file->eolChar) {
            $indentation .= $tokens[$currentPointer]['content'];
            $currentPointer--;
        }

        return $indentation;
    }
private function getIndentationForFix ( int $ usePos ) : string { $ file = $ this -> getFile ( ) -> getBaseFile ( ) ; $ indentation = '' ; $ currentPointer = $ usePos - 1 ; $ tokens = $ file -> getTokens ( ) ; while ( $ tokens [ $ currentPointer ] [ 'code' ] === T_WHITESPACE && $ tokens [ $ currentPointer ] [ 'content' ] !== $ file -> eolChar ) { $ indentation .= $ tokens [ $ currentPointer ] [ 'content' ] ; $ currentPointer -- ; } return $ indentation ; }
Returns the needed indentation whitespace for fhe fixing of the uses.

@param int $usePos

@return string
Returns the needed indentation whitespace for fhe fixing of the uses .