src/Settings.php
public function set($key, $value)
    {
        if (array_key_exists($key, $this->data)) {
            $this->update($key, $value);
        } else {
            $this->add($key, $value);
        }

        $this->data[$key] = $value;
        $this->updateData($this->data);
    }
public function set($key, $value)
    {
        if (array_key_exists($key, $this->data)) {
            $this->update($key, $value);
        } else {
            $this->add($key, $value);
        }

        $this->data[$key] = $value;
        $this->updateData($this->data);
    }
Set value

@param string $key
@param string $value
@SuppressWarnings(PHPMD.ElseExpression)