src/Standards/BestIt/Sniffs/Formatting/OpenTagSniff.php
private function handleNoSpaceAfterOpenTag(File $phpcsFile, int $stackPtr, int $whitespacePtr): void
    {
        $fixNoSpaceAfterTag = $phpcsFile->addFixableError(
            self::ERROR_NO_SPACE_AFTER_OPEN_TAG,
            $whitespacePtr,
            static::CODE_NO_SPACE_AFTER_OPEN_TAG
        );

        if ($fixNoSpaceAfterTag) {
            $phpcsFile->fixer->beginChangeset();
            $phpcsFile->fixer->addNewline($stackPtr);
            $phpcsFile->fixer->endChangeset();
        }
    }
private function handleNoSpaceAfterOpenTag(File $phpcsFile, int $stackPtr, int $whitespacePtr): void
    {
        $fixNoSpaceAfterTag = $phpcsFile->addFixableError(
            self::ERROR_NO_SPACE_AFTER_OPEN_TAG,
            $whitespacePtr,
            static::CODE_NO_SPACE_AFTER_OPEN_TAG
        );

        if ($fixNoSpaceAfterTag) {
            $phpcsFile->fixer->beginChangeset();
            $phpcsFile->fixer->addNewline($stackPtr);
            $phpcsFile->fixer->endChangeset();
        }
    }
private function handleNoSpaceAfterOpenTag ( File $ phpcsFile , int $ stackPtr , int $ whitespacePtr ) : void { $ fixNoSpaceAfterTag = $ phpcsFile -> addFixableError ( self :: ERROR_NO_SPACE_AFTER_OPEN_TAG , $ whitespacePtr , static :: CODE_NO_SPACE_AFTER_OPEN_TAG ) ; if ( $ fixNoSpaceAfterTag ) { $ phpcsFile -> fixer -> beginChangeset ( ) ; $ phpcsFile -> fixer -> addNewline ( $ stackPtr ) ; $ phpcsFile -> fixer -> endChangeset ( ) ; } }
Handles no space after open tag error.

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

@return void
Handles no space after open tag error .