Appending the key added in the config to the array
so we can use it very easliy in the component.
17749
protected function mergeCollectionWithView($view, $collection, $postTypeModel)
    {
    	$post = $collection['post'];
		$postmeta = $collection['postmeta'];

    	// Foreaching all templates in the custom field configuration file
    	foreach($view as $templateKey => $template){

    		// If the array custom fields is not empty
        	if(!empty($template['customFields'])){

        		// We foreach all custom fields in this template section
	            foreach($template['customFields'] as $customFieldKey => $customField){

	            	// Setting post data to the custom fields
	            	switch($customFieldKey){

	            		// If we find the customFieldKey created_at, we know it is in the config file
	            		case 'created_at':

							// Because of that we will add the post created_at value to the custom field
							if(!empty($post['created_at'])){
	            				$view[$templateKey]['customFields'][$customFieldKey]['id'] = $customFieldKey;
								$view[$templateKey]['customFields'][$customFieldKey]['value'] = $post['created_at'];
							}

	            		break;

	            		// If we find the customFieldKey updated_at, we know it is in the config file
	            		case 'updated_at':

							// Because of that we will add the post updated_at value to the custom field
							if(!empty($post['updated_at'])){
	            				$view[$templateKey]['customFields'][$customFieldKey]['id'] = $customFieldKey;
								$view[$templateKey]['customFields'][$customFieldKey]['value'] = $post['updated_at'];
							}

						break;

						// If we find the customFieldKey updated_at, we know it is in the config file
	            		case 'status':

							// Because of that we will add the post status value to the custom field
							if(!empty($post['status'])){
	            				$view[$templateKey]['customFields'][$customFieldKey]['id'] = $customFieldKey;
								$view[$templateKey]['customFields'][$customFieldKey]['value'] = $post['status'];
							}

	            		break;
	            	}

	            	// Lets set the key to the array
	                $view[$templateKey]['customFields'][$customFieldKey]['id'] = $customFieldKey;

					if(array_key_exists($customFieldKey, $postmeta)){
						$view[$templateKey]['customFields'][$customFieldKey]['value'] = $postmeta[$customFieldKey]['meta_value'];
					}

	                // When output is disabled, we need to remove the fields from the arrays
	                if(array_key_exists('output', $customField) && !$customField['output']){
	                	unset($view[$templateKey]['customFields'][$customFieldKey]);
					}

					// If the array custom fields is not empty
					if(!empty($customField['customFields'])){

						// We foreach all custom fields in this template section
						foreach($customField['customFields'] as $innerCustomFieldKey => $innerCustomField){

							// Lets set the key to the array
							$view[$templateKey]['customFields'][$customFieldKey]['customFields'][$innerCustomFieldKey]['id'] = $innerCustomFieldKey;

							if(array_key_exists($innerCustomFieldKey, $postmeta)){
								$view[$templateKey]['customFields'][$customFieldKey]['customFields'][$innerCustomFieldKey]['value'] = $postmeta[$innerCustomFieldKey]['meta_value'];
							}

							// When output is disabled, we need to remove the fields from the arrays
							if(array_key_exists('output', $innerCustomField) && !$innerCustomField['output']){
								unset($view[$templateKey]['customFields'][$customFieldKey]['customFields'][$innerCustomFieldKey]);
							}

						}

						// If the array custom fields is not empty
						if(!empty($innerCustomField['customFields'])){

							// We foreach all custom fields in this template section
							foreach($innerCustomField['customFields'] as $innerInnerCustomFieldKey => $innerInnerCustomField){

								// Lets set the key to the array
								$view[$templateKey]['customFields'][$customFieldKey]['customFields'][$innerCustomFieldKey]['customFields'][$innerInnerCustomFieldKey]['id'] = $innerInnerCustomFieldKey;

								if(array_key_exists($innerInnerCustomFieldKey, $postmeta)){
									$view[$templateKey]['customFields'][$customFieldKey]['customFields'][$innerCustomFieldKey]['customFields'][$innerInnerCustomFieldKey]['value'] = $postmeta[$innerInnerCustomFieldKey]['meta_value'];
								}

								// When output is disabled, we need to remove the fields from the arrays
								if(array_key_exists('output', $innerInnerCustomField) && !$innerInnerCustomField['output']){
									unset($view[$templateKey]['customFields'][$customFieldKey]['customFields'][$innerCustomFieldKey]['customFields'][$innerInnerCustomFieldKey]);
								}

							}
						}
					}
	            }
	        }
		}

        return $view;
    }
415902
def []=(key, value)
      if config = configs[key]
        config.set(receiver, value)
      else
        store[key] = value
      end
    end
1337950
def add(self, key, val):
        
        key_lower = key.lower()
        new_vals = [key, val]
        # Keep the common case aka no item present as fast as possible
        vals = self._container.setdefault(key_lower, new_vals)
        if new_vals is not vals:
            vals.append(val)
1242935
def set_config(self, key, value):
        ''''''
        self.config = self.read_file()
        self.config[key] = value
        self.write_file()
82285
def []=(key, value)
      new_entry = entry_to_modify(key, value)
      new_entry[:key] = key
      new_entry[:value] = value
    end
187615
def append(self, key, value=None, dir=False, ttl=None, timeout=None):
        
        return self.adapter.append(key, value, dir=dir, ttl=ttl,
                                   timeout=timeout)
782039
void addNewKey(Object key)
    {
        ensureRoom(buildKeyPosition + 1);
        buildKeys[buildKeyPosition++] = updateFunction.apply(key);
    }
405912
private void addInternal(String key, String value) {

        Object currentObj = m_configurationObjects.get(key);
        String currentStr = get(key);

        if (currentObj instanceof String) {
            // one object already in map - convert it to a list
            ArrayList<String> values = new ArrayList<String>(2);
            values.add(currentStr);
            values.add(value);
            m_configurationObjects.put(key, values);
            m_configurationStrings.put(key, currentStr + ParameterTokenizer.COMMA + value);
        } else if (currentObj instanceof List) {
            // already a list - just add the new token
            @SuppressWarnings("unchecked")
            List<String> list = (List<String>)currentObj;
            list.add(value);
            m_configurationStrings.put(key, currentStr + ParameterTokenizer.COMMA + value);
        } else {
            m_configurationObjects.put(key, value);
            m_configurationStrings.put(key, value);
        }
    }
885557
def append(self, key, item):
        
        with self._lock:
            if key in self._dict:
                self._dict[key].append(item)
            else:
                self._dict[key] = [item]
496265
private static Object[] _addToArray(Object[] array, Object key,
            Object value, int increment)
    {
        Object[] newArray = null;
        if (array != null)
        {
            int length = array.length;
            newArray = new Object[length + (2 * increment)];
            System.arraycopy(array, 0, newArray, 2, length);
        }
        else
        {
            newArray = new Object[2 * increment];
        }

        newArray[0] = key;
        newArray[1] = value;
        return newArray;
    }
232035
protected void append(RoaringArray sa, int startingIndex, int end) {
    extendArray(end - startingIndex);
    for (int i = startingIndex; i < end; ++i) {
      this.keys[this.size] = sa.keys[i];
      this.values[this.size] = sa.values[i];
      this.size++;
    }
  }
991091
function addArray($key) {
		$this->parents[] =& $this->cur;
		$ar = array();

		if ($key)
			$this->cur[$key] =& $ar;
		else
			$this->cur[] =& $ar;

		$this->cur =& $ar;
	}
286660
private function addConfigArrays()
    {
        $this->info("Adding the 'locales' and 'skip_locales' arrays to config/app.php");
        $this->helper->replaceAndSave($this->config->paths->config->app, $this->oldLocalesString, $this->newLocalesString);
        $this->bar->advance();
    }
427414
public Groundy addStringArrayList(String key, ArrayList<String> value) {
    mArgs.putStringArrayList(key, value);
    return this;
  }
1088015
function applyKey(config, keyPath, value) {
    var currentKey;

    if (Array.isArray(keyPath)) {
        if (config[keyPath[0]] === undefined) { // eslint-disable-line no-undefined
            return;
        }

        currentKey = keyPath.shift();

        if (keyPath.length === 0) {
            config[currentKey] = value;
            return;
        }

        applyKey(config[currentKey], keyPath, value);
    }
}
466456
def add_data(self, id, key, value):
        
        self[str(id)]['data'].setdefault(key, [])
        self[str(id)]['data'][key].append(value)
36863
def add(self, key, value):
        """"""
        if key not in self.headers:
            self.headers[key] = []
        self.headers[key].append(value)

        if self.sent_time:
            self.modified_since_sent = True