src/phpDocumentor/Configuration/Merger.php
private function mergeArray($destinationArray, $sourceArray)
    {
        $result = array();
        foreach ($destinationArray as $key => $destinationArrayItem) {
            if (is_int($key)) {
                $result[] = $destinationArrayItem;
            } else {
                $result[$key] = $destinationArrayItem;
            }
        }

        foreach ($sourceArray as $key => $sourceArrayItem) {
            if (is_int($key)) {
                $result[] = $sourceArrayItem;
            } else {
                $result[$key] = $this->run($result[$key], $sourceArrayItem);
            }
        }

        return $result;
    }
private function mergeArray($destinationArray, $sourceArray)
    {
        $result = array();
        foreach ($destinationArray as $key => $destinationArrayItem) {
            if (is_int($key)) {
                $result[] = $destinationArrayItem;
            } else {
                $result[$key] = $destinationArrayItem;
            }
        }

        foreach ($sourceArray as $key => $sourceArrayItem) {
            if (is_int($key)) {
                $result[] = $sourceArrayItem;
            } else {
                $result[$key] = $this->run($result[$key], $sourceArrayItem);
            }
        }

        return $result;
    }
private function mergeArray ( $ destinationArray , $ sourceArray ) { $ result = array ( ) ; foreach ( $ destinationArray as $ key => $ destinationArrayItem ) { if ( is_int ( $ key ) ) { $ result [ ] = $ destinationArrayItem ; } else { $ result [ $ key ] = $ destinationArrayItem ; } } foreach ( $ sourceArray as $ key => $ sourceArrayItem ) { if ( is_int ( $ key ) ) { $ result [ ] = $ sourceArrayItem ; } else { $ result [ $ key ] = $ this -> run ( $ result [ $ key ] , $ sourceArrayItem ) ; } } return $ result ; }
Deep-merges the source array over the destination array.

@param array $destinationArray
@param array $sourceArray

@return array
Deep - merges the source array over the destination array .