protected function getSettingsConfig(): array
    {
        if (!$this->cache instanceof Cache) {
            $this->items = $this->model->getSettings();
        } else {
            $cacheItems = $this->cache->get($this->cacheKey);
            if (!empty($cacheItems)) {
                $this->items = $cacheItems;
            } else {
                $this->items = $this->model->getSettings();
                $this->cache->set($this->cacheKey, $this->items);
            }
        }

        return $this->items;
    }
protected function getSettingsConfig(): array
    {
        if (!$this->cache instanceof Cache) {
            $this->items = $this->model->getSettings();
        } else {
            $cacheItems = $this->cache->get($this->cacheKey);
            if (!empty($cacheItems)) {
                $this->items = $cacheItems;
            } else {
                $this->items = $this->model->getSettings();
                $this->cache->set($this->cacheKey, $this->items);
            }
        }

        return $this->items;
    }
protected function getSettingsConfig ( ) : array { if ( ! $ this -> cache instanceof Cache ) { $ this -> items = $ this -> model -> getSettings ( ) ; } else { $ cacheItems = $ this -> cache -> get ( $ this -> cacheKey ) ; if ( ! empty ( $ cacheItems ) ) { $ this -> items = $ cacheItems ; } else { $ this -> items = $ this -> model -> getSettings ( ) ; $ this -> cache -> set ( $ this -> cacheKey , $ this -> items ) ; } } return $ this -> items ; }
Returns the settings config

@return array
Returns the settings config