public function configDefault($key, $default = null)
    {
        $value = $this->config($key);
        if ($value === null) {
            $this->config($key, $default);
        }
    }
public function configDefault($key, $default = null)
    {
        $value = $this->config($key);
        if ($value === null) {
            $this->config($key, $default);
        }
    }
public function configDefault ( $ key , $ default = null ) { $ value = $ this -> config ( $ key ) ; if ( $ value === null ) { $ this -> config ( $ key , $ default ) ; } }
Sets a default value for a given key

@param string|array|null $key The key to set
@param mixed|null $value The value to set.
@return void
Sets a default value for a given key