This commit is contained in:
Dennis Eichhorn 2018-04-11 20:57:36 +02:00
parent 3ca7538977
commit 5ab51d66b7

View File

@ -114,7 +114,7 @@ class PhpCode
/**
* Validate file integrety
*
* @param string $source Source code
* @param string $source Source code path
* @param string $hash Source hash
*
* @return bool
@ -123,6 +123,6 @@ class PhpCode
*/
public static function validateFileIntegrity(string $source, string $hash) : bool
{
return true;
return md5_file($source) === $hash;
}
}