original_string: public static function write($key, $value, $force = true)
      {
          // Check key existence
          if (self::check($key) && $force === false) {
              throw new \Exception('Configuration key "' . $key . '" already exist (use force argument to modify an already defined key).');
              return false;
          }
          // Prepare value (transform 'true' to true, etc...)
          $preparedValue = self::prepare($key, $value);
          // Write value content
          self::$configList[$key] = $preparedValue;
          return true;
      }
code: public static function write($key, $value, $force = true)
      {
          // Check key existence
          if (self::check($key) && $force === false) {
              throw new \Exception('Configuration key "' . $key . '" already exist (use force argument to modify an already defined key).');
              return false;
          }
          // Prepare value (transform 'true' to true, etc...)
          $preparedValue = self::prepare($key, $value);
          // Write value content
          self::$configList[$key] = $preparedValue;
          return true;
      }
code_tokens: public static function write ( $ key , $ value , $ force = true ) { // Check key existence if ( self :: check ( $ key ) && $ force === false ) { throw new \ Exception ( 'Configuration key "' . $ key . '" already exist (use force argument to modify an already defined key).' ) ; return false ; } // Prepare value (transform 'true' to true, etc...) $ preparedValue = self :: prepare ( $ key , $ value ) ; // Write value content self :: $ configList [ $ key ] = $ preparedValue ; return true ; }
docstring: Write a configuration key
  
  This method is used to write a key and a value
  First value is prepare by prepare method
  
  @since   1.0
  @param   string $key Key to read.
  @param   string $value Value of key.
  @param   bool $force Force writing of key even is already defined.
  @return  bool Return true if success else return false;.
docstring_tokens: Write a configuration key