Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / hacked / src / hackedFileIncludeEndingsHasher.php
1 <?php
2
3 namespace Drupal\hacked;
4
5 /**
6  * This is a much faster, but potentially less useful file hasher.
7  */
8 class hackedFileIncludeEndingsHasher extends hackedFileHasher {
9   function perform_hash($filename) {
10     return sha1_file($filename);
11   }
12
13   function fetch_lines($filename) {
14     return file($filename);
15   }
16 }