private static function havePhpFilesSameContent($file1, $file2) { if (self::hasPHPExtension($file1)) { $sourceMd5 = md5_file($file1); $destMd5 = md5_file($file2); return $sourceMd5 === $destMd5; } return true; }