/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
vendor
/
league
/
flysystem
/
src
/
Util
/
/var/www/vhosts/ihelp.ro/httpdocs/vendor/league/flysystem/src/Util
mkdir
upload
Name
Size
Mode
Actions
ContentListingFormatter.php
2588
0644
edit
dl
rm
MimeType.php
1879
0644
edit
dl
rm
StreamHasher.php
593
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/vendor/league/flysystem/src/Util/StreamHasher.php
(593B)
<?php namespace League\Flysystem\Util; class StreamHasher { /** * @var string */ private $algo; /** * StreamHasher constructor. * * @param string $algo */ public function __construct($algo) { $this->algo = $algo; } /** * @param resource $resource * * @return string */ public function hash($resource) { rewind($resource); $context = hash_init($this->algo); hash_update_stream($context, $resource); fclose($resource); return hash_final($context); } }
Save
algo = $algo; } /** * @param resource $resource * * @return string */ public function hash($resource) { rewind($resource); $context = hash_init($this->algo); hash_update_stream($context, $resource); fclose($resource); return hash_final($context); } }