Completed
Push — feature/0.7.0 ( 83eb72...2f2cdf )
by Ryuichi
06:35
created
WebStream/IO/FileInputStream.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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位置に移動
Please login to merge, or discard this patch.
WebStream/IO/InputStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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位置を初期値に戻す
Please login to merge, or discard this patch.