Classes/Settings/Settings.php
public function get(string $key = null)
    {
        if (empty($key)) {
            return $this->settings;
        }

        if (\strpos($key, '.') != false) {
            return $this->getNested($key);
        }

        if ($this->has($key)) {
            return $this->settings[$key];
        }

        return null;
    }
public function get(string $key = null)
    {
        if (empty($key)) {
            return $this->settings;
        }

        if (\strpos($key, '.') != false) {
            return $this->getNested($key);
        }

        if ($this->has($key)) {
            return $this->settings[$key];
        }

        return null;
    }
public function get ( string $ key = null ) { if ( empty ( $ key ) ) { return $ this -> settings ; } if ( \ strpos ( $ key , '.' ) != false ) { return $ this -> getNested ( $ key ) ; } if ( $ this -> has ( $ key ) ) { return $ this -> settings [ $ key ] ; } return null ; }
Retrieves data from the settings.

@param string|null $key The key to retrieve or null if you want all keys

@return mixed
Retrieves data from the settings .