src/Config/Config.php
protected function removeValuesNotToBeStored(array $values)
    {
        $result = array();
        $keys = $this->getKeys();
        $defaults = $this->getDefaults();
        foreach ($keys as $key) {
            if (isset($values[$key]) && (!isset($defaults[$key]) || $values[$key] !== $defaults[$key])) {
                $result[$key] = $values[$key];
            }
        }
        return $result;
    }
protected function removeValuesNotToBeStored(array $values)
    {
        $result = array();
        $keys = $this->getKeys();
        $defaults = $this->getDefaults();
        foreach ($keys as $key) {
            if (isset($values[$key]) && (!isset($defaults[$key]) || $values[$key] !== $defaults[$key])) {
                $result[$key] = $values[$key];
            }
        }
        return $result;
    }
protected function removeValuesNotToBeStored ( array $ values ) { $ result = array ( ) ; $ keys = $ this -> getKeys ( ) ; $ defaults = $ this -> getDefaults ( ) ; foreach ( $ keys as $ key ) { if ( isset ( $ values [ $ key ] ) && ( ! isset ( $ defaults [ $ key ] ) || $ values [ $ key ] !== $ defaults [ $ key ] ) ) { $ result [ $ key ] = $ values [ $ key ] ; } } return $ result ; }
Removes configuration values that do not have to be stored.

Values that do not have to be stored:
- Values that are not set.
- Values that equal their default value.
- Keys that are unknown.

@param array $values
The array to remove values from.

@return array
The passed in set of values reduced to values that should be stored.
Removes configuration values that do not have to be stored .