src/Standards/BestIt/Sniffs/DocTags/TagSortingSniff.php
private function insertNewLine(array $token): void
    {
        $fixer = $this->file->getFixer();
        $lineStartPadding = str_pad('', $token['column'] - 3, ' ');

        $fixer->beginChangeset();

        // Remove the whitespace between the tag and the comments star.
        $fixer->replaceToken($token['pointer'] - 1, '');

        $fixer->addContentBefore(
            $token['pointer'],
            $this->file->getEolChar() . $lineStartPadding . '* '
        );

        $fixer->endChangeset();
    }
private function insertNewLine(array $token): void
    {
        $fixer = $this->file->getFixer();
        $lineStartPadding = str_pad('', $token['column'] - 3, ' ');

        $fixer->beginChangeset();

        // Remove the whitespace between the tag and the comments star.
        $fixer->replaceToken($token['pointer'] - 1, '');

        $fixer->addContentBefore(
            $token['pointer'],
            $this->file->getEolChar() . $lineStartPadding . '* '
        );

        $fixer->endChangeset();
    }
private function insertNewLine ( array $ token ) : void { $ fixer = $ this -> file -> getFixer ( ) ; $ lineStartPadding = str_pad ( '' , $ token [ 'column' ] - 3 , ' ' ) ; $ fixer -> beginChangeset ( ) ; // Remove the whitespace between the tag and the comments star. $ fixer -> replaceToken ( $ token [ 'pointer' ] - 1 , '' ) ; $ fixer -> addContentBefore ( $ token [ 'pointer' ] , $ this -> file -> getEolChar ( ) . $ lineStartPadding . '* ' ) ; $ fixer -> endChangeset ( ) ; }
Insert the new line before the given token.

@param array $token The token where a newline should be.

@return void
Insert the new line before the given token .