mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 08:34:09 +02:00
formatting
This commit is contained in:
parent
a0abe86651
commit
fdc0e3f113
21 changed files with 118 additions and 111 deletions
|
|
@ -72,12 +72,12 @@ class HashWrapperTest extends TestCase {
|
|||
*/
|
||||
public function testReadHash($algorithm, $expectedHash) {
|
||||
$obtainedHash = null;
|
||||
$callback = function($hash) use (&$obtainedHash) {
|
||||
$callback = function ($hash) use (&$obtainedHash) {
|
||||
$obtainedHash = $hash;
|
||||
};
|
||||
|
||||
$stream = $this->wrapSourceRead($this->getSource(), $algorithm, $callback);
|
||||
while(feof($stream) === false) {
|
||||
while (feof($stream) === false) {
|
||||
fread($stream, 20);
|
||||
}
|
||||
fclose($stream);
|
||||
|
|
@ -93,7 +93,7 @@ class HashWrapperTest extends TestCase {
|
|||
*/
|
||||
public function testWriteHash($algorithm, $expectedHash) {
|
||||
$obtainedHash = null;
|
||||
$callback = function($hash) use (&$obtainedHash) {
|
||||
$callback = function ($hash) use (&$obtainedHash) {
|
||||
$obtainedHash = $hash;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue