src/Fixer/Comment/CommentToPhpdocFixer.php
private function isCommentCandidate(Tokens $tokens, array $indices)
    {
        return array_reduce(
            $indices,
            function ($carry, $index) use ($tokens) {
                return $carry || 1 === Preg::match('~(#|//|/\*+|\R(\s*\*)?)\s*\@[a-zA-Z0-9_\\\\-]+(?=\s|\(|$)~', $tokens[$index]->getContent());
            },
            false
        );
    }
private function isCommentCandidate(Tokens $tokens, array $indices)
    {
        return array_reduce(
            $indices,
            function ($carry, $index) use ($tokens) {
                return $carry || 1 === Preg::match('~(#|//|/\*+|\R(\s*\*)?)\s*\@[a-zA-Z0-9_\\\\-]+(?=\s|\(|$)~', $tokens[$index]->getContent());
            },
            false
        );
    }
private function isCommentCandidate ( Tokens $ tokens , array $ indices ) { return array_reduce ( $ indices , function ( $ carry , $ index ) use ( $ tokens ) { return $ carry || 1 === Preg :: match ( '~(#|//|/\*+|\R(\s*\*)?)\s*\@[a-zA-Z0-9_\\\\-]+(?=\s|\(|$)~' , $ tokens [ $ index ] -> getContent ( ) ) ; } , false ) ; }
@param Tokens $tokens
@param int[]  $indices

@return bool
@param Tokens $tokens @param int [] $indices