@@ -48,7 +48,7 @@ |
||
48 | 48 | public function read() |
49 | 49 | { |
50 | 50 | $args = func_get_args(); |
51 | - $length = count($args) === 1 ? $args[0] : null; |
|
51 | + $length = count($args) === 1 ? $args[ 0 ] : null; |
|
52 | 52 | |
53 | 53 | return $this->stream->read($length); |
54 | 54 | } |
@@ -51,8 +51,8 @@ |
||
51 | 51 | public function write($buf) |
52 | 52 | { |
53 | 53 | $args = func_get_args(); |
54 | - $off = array_key_exists(1, $args) ? $args[1] : null; |
|
55 | - $len = array_key_exists(2, $args) ? $args[2] : null; |
|
54 | + $off = array_key_exists(1, $args) ? $args[ 1 ] : null; |
|
55 | + $len = array_key_exists(2, $args) ? $args[ 2 ] : null; |
|
56 | 56 | |
57 | 57 | $this->stream->write($buf, $off, $len); |
58 | 58 | } |