protected getFileHash ( ) : string | ||
return | string | A 128bit hash in hexadecimal format. |
protected function getFileHash()
{
$files = $this->repo->getAllFiles();
$hash = '';
foreach ($files as $file) {
$hash .= $file . '|';
$hash .= (string) filemtime($file) . '|';
}
$hash = md5($hash);
return $hash;
}