src/Standards/BestIt/Sniffs/Formatting/SpaceAfterDeclareSniff.php
private function handleNoWhitespaceFound(File $phpcsFile, int $semicolonPtr): void
    {
        $fixNoWhitespace = $phpcsFile->addFixableError(
            self::MESSAGE_NO_WHITESPACE_FOUND,
            $semicolonPtr,
            static::CODE_NO_WHITESPACE_FOUND
        );

        if ($fixNoWhitespace) {
            $phpcsFile->fixer->beginChangeset();
            $phpcsFile->fixer->addNewline($semicolonPtr);
            $phpcsFile->fixer->endChangeset();
        }
    }
private function handleNoWhitespaceFound(File $phpcsFile, int $semicolonPtr): void
    {
        $fixNoWhitespace = $phpcsFile->addFixableError(
            self::MESSAGE_NO_WHITESPACE_FOUND,
            $semicolonPtr,
            static::CODE_NO_WHITESPACE_FOUND
        );

        if ($fixNoWhitespace) {
            $phpcsFile->fixer->beginChangeset();
            $phpcsFile->fixer->addNewline($semicolonPtr);
            $phpcsFile->fixer->endChangeset();
        }
    }
private function handleNoWhitespaceFound ( File $ phpcsFile , int $ semicolonPtr ) : void { $ fixNoWhitespace = $ phpcsFile -> addFixableError ( self :: MESSAGE_NO_WHITESPACE_FOUND , $ semicolonPtr , static :: CODE_NO_WHITESPACE_FOUND ) ; if ( $ fixNoWhitespace ) { $ phpcsFile -> fixer -> beginChangeset ( ) ; $ phpcsFile -> fixer -> addNewline ( $ semicolonPtr ) ; $ phpcsFile -> fixer -> endChangeset ( ) ; } }
Handles when no whitespace is found.

@param File $phpcsFile The php cs file
@param int $semicolonPtr Pointer to the semicolon token

@return void
Handles when no whitespace is found .