/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Util
NameSizeModeActions
Reflection/-0755rm
ArrayChecker.php4660644editdlrm
ArrayParametersMerger.php16240644editdlrm
FileHasher.php11600644editdlrm
MemoryLimiter.php14330644editdlrm
NewLineSplitter.php4310644editdlrm
NodePrinter.php16670644editdlrm
PhpVersionFactory.php6650644editdlrm
StringUtils.php2940644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/rector/rector/src/Util/FileHasher.php (1160B)
getAlgo(), $string); } /** * cryptographic insecure hasing of files * * @param string[] $files */ public function hashFiles(array $files) : string { $configHash = ''; $algo = $this->getAlgo(); foreach ($files as $file) { $hash = \hash_file($algo, $file); if ($hash === \false) { throw new ShouldNotHappenException(\sprintf('File %s is not readable', $file)); } $configHash .= $hash; } return $configHash; } private function getAlgo() : string { //see https://php.watch/articles/php-hash-benchmark if (\PHP_VERSION_ID >= 80100) { // if xxh128 is available use it, as it is way faster return 'xxh128'; } return 'md4'; } }