Gateway/Config/Config.php
public function getStoreName() {
        $storeName = $this->scopeConfig->getValue(
            'general/store_information/name',
            ScopeInterface::SCOPE_STORE
        );

        trim($storeName);

        if (empty($storeName)) {
            $storeName = parse_url($this->storeManager->getStore()->getBaseUrl())['host'] ;
        }

        return (string) $storeName;
    }
public function getStoreName() {
        $storeName = $this->scopeConfig->getValue(
            'general/store_information/name',
            ScopeInterface::SCOPE_STORE
        );

        trim($storeName);

        if (empty($storeName)) {
            $storeName = parse_url($this->storeManager->getStore()->getBaseUrl())['host'] ;
        }

        return (string) $storeName;
    }
public function getStoreName ( ) { $ storeName = $ this -> scopeConfig -> getValue ( 'general/store_information/name' , ScopeInterface :: SCOPE_STORE ) ; trim ( $ storeName ) ; if ( empty ( $ storeName ) ) { $ storeName = parse_url ( $ this -> storeManager -> getStore ( ) -> getBaseUrl ( ) ) [ 'host' ] ; } return ( string ) $ storeName ; }
Returns the store name.

@return string
Returns the store name .