@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * constructor |
33 | - * @param string $filepath ファイルパス |
|
33 | + * @param string $filePath ファイルパス |
|
34 | 34 | */ |
35 | 35 | public function __construct(string $filePath) |
36 | 36 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace WebStream\IO; |
3 | 3 | |
4 | 4 | use WebStream\Exception\Extend\InvalidArgumentException; |
5 | -use WebStream\Exception\Extend\IOException; |
|
6 | 5 | |
7 | 6 | /** |
8 | 7 | * StringInputStream |
@@ -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 | } |