src/Fixer/DoctrineAnnotation/DoctrineAnnotationIndentationFixer.php
private function indentationCanBeFixed(Tokens $tokens, $newLineTokenIndex, array $annotationPositions)
    {
        foreach ($annotationPositions as $position) {
            if ($newLineTokenIndex >= $position[0] && $newLineTokenIndex <= $position[1]) {
                return true;
            }
        }

        for ($index = $newLineTokenIndex + 1, $max = \count($tokens); $index < $max; ++$index) {
            $token = $tokens[$index];

            if (false !== strpos($token->getContent(), "\n")) {
                return false;
            }

            return $tokens[$index]->isType(DocLexer::T_AT);
        }

        return false;
    }
private function indentationCanBeFixed(Tokens $tokens, $newLineTokenIndex, array $annotationPositions)
    {
        foreach ($annotationPositions as $position) {
            if ($newLineTokenIndex >= $position[0] && $newLineTokenIndex <= $position[1]) {
                return true;
            }
        }

        for ($index = $newLineTokenIndex + 1, $max = \count($tokens); $index < $max; ++$index) {
            $token = $tokens[$index];

            if (false !== strpos($token->getContent(), "\n")) {
                return false;
            }

            return $tokens[$index]->isType(DocLexer::T_AT);
        }

        return false;
    }
private function indentationCanBeFixed ( Tokens $ tokens , $ newLineTokenIndex , array $ annotationPositions ) { foreach ( $ annotationPositions as $ position ) { if ( $ newLineTokenIndex >= $ position [ 0 ] && $ newLineTokenIndex <= $ position [ 1 ] ) { return true ; } } for ( $ index = $ newLineTokenIndex + 1 , $ max = \ count ( $ tokens ) ; $ index < $ max ; ++ $ index ) { $ token = $ tokens [ $ index ] ; if ( false !== strpos ( $ token -> getContent ( ) , "\n" ) ) { return false ; } return $ tokens [ $ index ] -> isType ( DocLexer :: T_AT ) ; } return false ; }
@param Tokens            $tokens
@param int               $newLineTokenIndex
@param array<array<int>> $annotationPositions Pairs of begin and end indexes of main annotations

@return bool
@param Tokens $tokens @param int $newLineTokenIndex @param array<array<int >> $annotationPositions Pairs of begin and end indexes of main annotations