original_string: protected function setOptional($key, $value) {
          if (!$this->has($key))
              $this->set($key, $value);
      }
code: protected function setOptional($key, $value) {
          if (!$this->has($key))
              $this->set($key, $value);
      }
code_tokens: protected function setOptional ( $ key , $ value ) { if ( ! $ this -> has ( $ key ) ) $ this -> set ( $ key , $ value ) ; }
docstring: Sets a setting if it is not already set.
  @param string $key
  @param mixed $value
docstring_tokens: Sets a setting if it is not already set .