@@ -55,6 +55,7 @@ |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Steps back, restoring the previous character or statement read() to the input buffer. |
58 | + * @param string $chars |
|
58 | 59 | */ |
59 | 60 | protected function unread($chars) |
60 | 61 | { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | protected function peek() |
23 | 23 | { |
24 | - if(!$this->dataLength) { $this->dataLength = strlen($this->data); } |
|
24 | + if (!$this->dataLength) { $this->dataLength = strlen($this->data); } |
|
25 | 25 | if ($this->dataLength > $this->bytePos) { |
26 | 26 | $slice = substr($this->data, $this->bytePos, 4); |
27 | 27 | return mb_substr($slice, 0, 1, "UTF-8"); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | if ($this->bytePos - 4 > 0) { |
80 | 80 | $slice = substr($this->data, $this->bytePos - 4, 4); |
81 | - while($slice != '') { |
|
81 | + while ($slice != '') { |
|
82 | 82 | if (!self::isWhitespace(mb_substr($slice, -1, 1, "UTF-8"))) { |
83 | 83 | return; |
84 | 84 | } |