Version 1
[yaffs-website] / web / modules / contrib / hacked / src / hackedFileIncludeEndingsHasher.php
diff --git a/web/modules/contrib/hacked/src/hackedFileIncludeEndingsHasher.php b/web/modules/contrib/hacked/src/hackedFileIncludeEndingsHasher.php
new file mode 100644 (file)
index 0000000..8ed9436
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\hacked\hackedFileIncludeEndingsHasher.
+ */
+
+namespace Drupal\hacked;
+
+/**
+ * This is a much faster, but potentially less useful file hasher.
+ */
+class hackedFileIncludeEndingsHasher extends hackedFileHasher {
+  function perform_hash($filename) {
+    return sha1_file($filename);
+  }
+
+  function fetch_lines($filename) {
+    return file($filename);
+  }
+}