@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | } else if (is_string($file)) { |
31 | 31 | $this->file = new File($file); |
32 | 32 | } else { |
33 | - throw new InvalidArgumentException("Unable to open file: " . $file); |
|
33 | + throw new InvalidArgumentException("Unable to open file: ".$file); |
|
34 | 34 | } |
35 | 35 | $stream = @fopen($this->file->getAbsoluteFilePath(), 'r'); |
36 | 36 | if (!is_resource($stream) || $stream === false) { |
37 | - throw new IOException("Unable open " . $this->file->getAbsoluteFilePath()); |
|
37 | + throw new IOException("Unable open ".$this->file->getAbsoluteFilePath()); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | parent::__construct($stream); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | public function reset() |
134 | 134 | { |
135 | 135 | if (!$this->isMarkSupported()) { |
136 | - throw new IOException(get_class($this) . " does not support mark and reset."); |
|
136 | + throw new IOException(get_class($this)." does not support mark and reset."); |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | // ポインタ位置をmark位置に移動 |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | public function mark() |
84 | 84 | { |
85 | 85 | if (!$this->isMarkSupported()) { |
86 | - throw new IOException(get_class($this) . " does not support mark."); |
|
86 | + throw new IOException(get_class($this)." does not support mark."); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | $this->markedPosition = $this->cursorPosition; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | public function reset() |
97 | 97 | { |
98 | 98 | if (!$this->isMarkSupported()) { |
99 | - throw new IOException(get_class($this) . " does not support mark and reset."); |
|
99 | + throw new IOException(get_class($this)." does not support mark and reset."); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | // mark位置を初期値に戻す |