src/Robo/Common/YamlMunge.php
public static function mungeFiles($file1, $file2) {
    $file1_contents = (array) self::parseFile($file1);
    $file2_contents = (array) self::parseFile($file2);

    return self::arrayMergeRecursiveExceptEmpty($file1_contents, $file2_contents);
  }
public static function mungeFiles($file1, $file2) {
    $file1_contents = (array) self::parseFile($file1);
    $file2_contents = (array) self::parseFile($file2);

    return self::arrayMergeRecursiveExceptEmpty($file1_contents, $file2_contents);
  }
public static function mungeFiles ( $ file1 , $ file2 ) { $ file1_contents = ( array ) self :: parseFile ( $ file1 ) ; $ file2_contents = ( array ) self :: parseFile ( $ file2 ) ; return self :: arrayMergeRecursiveExceptEmpty ( $ file1_contents , $ file2_contents ) ; }
Merges the arrays in two yaml files.

@param string $file1
The file path of the first file.
@param string $file2
The file path of the second file.

@return array
The merged arrays.
Merges the arrays in two yaml files .