mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
formatting
This commit is contained in:
parent
a0abe86651
commit
fdc0e3f113
21 changed files with 118 additions and 111 deletions
|
|
@ -22,17 +22,17 @@
|
|||
namespace Icewind\Streams\Tests;
|
||||
|
||||
class PartialWrapper extends \Icewind\Streams\NullWrapper {
|
||||
public static function wrap($source) {
|
||||
return self::wrapSource($source);
|
||||
}
|
||||
public static function wrap($source) {
|
||||
return self::wrapSource($source);
|
||||
}
|
||||
|
||||
public function stream_read($count) {
|
||||
$count = min($count, 2); // return as most 2 bytes
|
||||
return parent::stream_read($count);
|
||||
}
|
||||
public function stream_read($count) {
|
||||
$count = min($count, 2); // return as most 2 bytes
|
||||
return parent::stream_read($count);
|
||||
}
|
||||
|
||||
public function stream_write($data) {
|
||||
$data = substr($data, 0, 2); //write as most 2 bytes
|
||||
return parent::stream_write($data);
|
||||
}
|
||||
public function stream_write($data) {
|
||||
$data = substr($data, 0, 2); //write as most 2 bytes
|
||||
return parent::stream_write($data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue