src/Robo/Common/TextMunge.php
public static function munge($file1, $file2) {
    $file1_contents = file($file1);
    $file2_contents = file($file2);

    $munged_contents = self::arrayMergeNoDuplicates($file1_contents, $file2_contents);

    return (string) $munged_contents;
  }
public static function munge($file1, $file2) {
    $file1_contents = file($file1);
    $file2_contents = file($file2);

    $munged_contents = self::arrayMergeNoDuplicates($file1_contents, $file2_contents);

    return (string) $munged_contents;
  }
public static function munge ( $ file1 , $ file2 ) { $ file1_contents = file ( $ file1 ) ; $ file2_contents = file ( $ file2 ) ; $ munged_contents = self :: arrayMergeNoDuplicates ( $ file1_contents , $ file2_contents ) ; return ( string ) $ munged_contents ; }
Merges the arrays in two text files.

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

@return string
The merged arrays, in yaml format.
Merges the arrays in two text files .