public static function compareFiles($file1, $file2, $compareCharacters = false)
    {
        return self::compare(
            file_get_contents($file1),
            file_get_contents($file2),
            $compareCharacters
        );
    }
public static function compareFiles($file1, $file2, $compareCharacters = false)
    {
        return self::compare(
            file_get_contents($file1),
            file_get_contents($file2),
            $compareCharacters
        );
    }
public static function compareFiles ( $ file1 , $ file2 , $ compareCharacters = false ) { return self :: compare ( file_get_contents ( $ file1 ) , file_get_contents ( $ file2 ) , $ compareCharacters ) ; }
Returns the diff for two files.

@param string $file1 the path to the first file
@param string $file2 the path to the second file
@param bool $compareCharacters true to compare characters, and false to compare lines; this optional parameter
defaults to false.

@return array
Returns the diff for two files .