protected function checkFacade(File $phpCsFile, int $stackPointer): void
    {
        $name = $this->findClassOrInterfaceName($phpCsFile, $stackPointer);
        $facadeInterfaceFile = str_replace('Facade.php', 'FacadeInterface.php', $phpCsFile->getFilename());

        if (!file_exists($facadeInterfaceFile)) {
            $phpCsFile->addError('FacadeInterface missing for ' . $name, $stackPointer, 'InterfaceMissing');
        }
    }
protected function checkFacade(File $phpCsFile, int $stackPointer): void
    {
        $name = $this->findClassOrInterfaceName($phpCsFile, $stackPointer);
        $facadeInterfaceFile = str_replace('Facade.php', 'FacadeInterface.php', $phpCsFile->getFilename());

        if (!file_exists($facadeInterfaceFile)) {
            $phpCsFile->addError('FacadeInterface missing for ' . $name, $stackPointer, 'InterfaceMissing');
        }
    }
protected function checkFacade ( File $ phpCsFile , int $ stackPointer ) : void { $ name = $ this -> findClassOrInterfaceName ( $ phpCsFile , $ stackPointer ) ; $ facadeInterfaceFile = str_replace ( 'Facade.php' , 'FacadeInterface.php' , $ phpCsFile -> getFilename ( ) ) ; if ( ! file_exists ( $ facadeInterfaceFile ) ) { $ phpCsFile -> addError ( 'FacadeInterface missing for ' . $ name , $ stackPointer , 'InterfaceMissing' ) ; } }
Facades must have a matching interface.

@param \PHP_CodeSniffer\Files\File $phpCsFile
@param int $stackPointer

@return void
Facades must have a matching interface .