@@ -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 |
@@ -30,14 +30,14 @@ |
||
| 30 | 30 | } elseif (is_string($file)) { |
| 31 | 31 | $this->file = new File($file); |
| 32 | 32 | } else { |
| 33 | - throw new InvalidArgumentException("Invalid argument type: " . $file); |
|
| 33 | + throw new InvalidArgumentException("Invalid argument type: ".$file); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $mode = $isAppend ? 'ab' : 'wb'; |
| 37 | 37 | $stream = @fopen($this->file->getAbsoluteFilePath(), $mode); |
| 38 | 38 | |
| 39 | 39 | if (!is_resource($stream) || $stream === false) { |
| 40 | - throw new IOException("Unable open " . $this->file->getAbsoluteFilePath()); |
|
| 40 | + throw new IOException("Unable open ".$this->file->getAbsoluteFilePath()); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | parent::__construct($stream); |