src/Standards/BestIt/Sniffs/Formatting/OpenTagSniff.php
private function handleLineNotEmpty(File $phpcsFile, int $whitespacePtr): void
    {
        $fixSpaceNotScndLine = $phpcsFile->addFixableError(
            self::ERROR_LINE_NOT_EMPTY,
            $whitespacePtr,
            static::CODE_LINE_NOT_EMPTY
        );

        if ($fixSpaceNotScndLine) {
            $phpcsFile->fixer->beginChangeset();
            $phpcsFile->fixer->replaceToken(
                $whitespacePtr,
                ''
            );
            $phpcsFile->fixer->endChangeset();
        }
    }
private function handleLineNotEmpty(File $phpcsFile, int $whitespacePtr): void
    {
        $fixSpaceNotScndLine = $phpcsFile->addFixableError(
            self::ERROR_LINE_NOT_EMPTY,
            $whitespacePtr,
            static::CODE_LINE_NOT_EMPTY
        );

        if ($fixSpaceNotScndLine) {
            $phpcsFile->fixer->beginChangeset();
            $phpcsFile->fixer->replaceToken(
                $whitespacePtr,
                ''
            );
            $phpcsFile->fixer->endChangeset();
        }
    }
private function handleLineNotEmpty ( File $ phpcsFile , int $ whitespacePtr ) : void { $ fixSpaceNotScndLine = $ phpcsFile -> addFixableError ( self :: ERROR_LINE_NOT_EMPTY , $ whitespacePtr , static :: CODE_LINE_NOT_EMPTY ) ; if ( $ fixSpaceNotScndLine ) { $ phpcsFile -> fixer -> beginChangeset ( ) ; $ phpcsFile -> fixer -> replaceToken ( $ whitespacePtr , '' ) ; $ phpcsFile -> fixer -> endChangeset ( ) ; } }
Handles line after open tag not empty.

@param File $phpcsFile The php cs file
@param int $whitespacePtr Pointer to the line after the open tag

@return void
Handles line after open tag not empty .