src/Standards/BestIt/Sniffs/Commenting/EmptyLinesDocSniff.php
private function removeUnnecessaryLines(File $phpcsFile, array $nextToken, array $currentToken): void
    {
        $movement = 2;

        if ($nextToken['code'] === T_DOC_COMMENT_CLOSE_TAG) {
            $movement = 1;
        }

        $phpcsFile->fixer->beginChangeset();

        (new LineHelper($this->file))->removeLines(
            $currentToken['line'] + $movement,
            $nextToken['line'] - 1
        );

        $phpcsFile->fixer->endChangeset();
    }
private function removeUnnecessaryLines(File $phpcsFile, array $nextToken, array $currentToken): void
    {
        $movement = 2;

        if ($nextToken['code'] === T_DOC_COMMENT_CLOSE_TAG) {
            $movement = 1;
        }

        $phpcsFile->fixer->beginChangeset();

        (new LineHelper($this->file))->removeLines(
            $currentToken['line'] + $movement,
            $nextToken['line'] - 1
        );

        $phpcsFile->fixer->endChangeset();
    }
private function removeUnnecessaryLines ( File $ phpcsFile , array $ nextToken , array $ currentToken ) : void { $ movement = 2 ; if ( $ nextToken [ 'code' ] === T_DOC_COMMENT_CLOSE_TAG ) { $ movement = 1 ; } $ phpcsFile -> fixer -> beginChangeset ( ) ; ( new LineHelper ( $ this -> file ) ) -> removeLines ( $ currentToken [ 'line' ] + $ movement , $ nextToken [ 'line' ] - 1 ) ; $ phpcsFile -> fixer -> endChangeset ( ) ; }
Remove unnecessary lines from doc block.

@param File $phpcsFile
@param array $nextToken
@param array $currentToken

@return void
Remove unnecessary lines from doc block .