@@ -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(stirng $filePath) |
36 | 36 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | while (@is_link($filePath)) { |
86 | 86 | $linkPath = readlink($filePath); |
87 | 87 | if ($linkPath === false) { |
88 | - throw new IOException("Symbolic link read error: " . $filePath); |
|
88 | + throw new IOException("Symbolic link read error: ".$filePath); |
|
89 | 89 | } |
90 | 90 | $filePath = $linkPath; |
91 | 91 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | // 読み込み不可のシンボリックリンクの場合、例外を発生させる |
179 | 179 | if (!$this->isReadable()) { |
180 | - throw new IOException("No read access to " . $this->filePath); |
|
180 | + throw new IOException("No read access to ".$this->filePath); |
|
181 | 181 | } |
182 | 182 | |
183 | 183 | return @is_link($this->filePath); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $length = filesize($filePath); |
198 | 198 | |
199 | 199 | if ($length === false) { |
200 | - throw new IOException("Cannot get filesize of " . $filePath); |
|
200 | + throw new IOException("Cannot get filesize of ".$filePath); |
|
201 | 201 | } |
202 | 202 | } |
203 | 203 |
@@ -30,12 +30,12 @@ |
||
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 | |
36 | 36 | $stream = @fopen($this->file->getAbsoluteFilePath()); |
37 | 37 | if ($stream === false) { |
38 | - throw new IOException("Unable open " . $this->file->getAbsoluteFilePath() . " cause by " . $php_errormsg); |
|
38 | + throw new IOException("Unable open ".$this->file->getAbsoluteFilePath()." cause by ".$php_errormsg); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | parent::__construct($stream); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | if (@flose($this->stream) === false) { |
63 | - throw new IOException("Cannot close " . $this->file->getAbsoluteFilePath() . " cause by " . $php_errormsg); |
|
63 | + throw new IOException("Cannot close ".$this->file->getAbsoluteFilePath()." cause by ".$php_errormsg); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | $this->stream = null; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | public function mark() |
135 | 135 | { |
136 | 136 | if (!$this->isMarkSupported()) { |
137 | - throw new IOException(get_class($this) . " does not support mark."); |
|
137 | + throw new IOException(get_class($this)." does not support mark."); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | $this->markedPosition = $this->cursorPosition; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | public function reset() |
148 | 148 | { |
149 | 149 | if (!$this->isMarkSupported()) { |
150 | - throw new IOException(get_class($this) . " does not support mark and reset."); |
|
150 | + throw new IOException(get_class($this)." does not support mark and reset."); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | // ポインタ位置をmark位置に移動 |