@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | |
| 276 | 276 | public function append($str) |
| 277 | 277 | { |
| 278 | - return new self($this->raw . $str); |
|
| 278 | + return new self($this->raw.$str); |
|
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | public function asciify($removeUnsupported = true) |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | |
| 335 | 335 | public function prepend($str) |
| 336 | 336 | { |
| 337 | - return new self($str . $this->raw); |
|
| 337 | + return new self($str.$this->raw); |
|
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | public function remove($str, $mode = self::NORMAL) |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | if ($ordcache === 0xFEFF) { // BOM |
| 155 | 155 | if ($originOffset !== 0) { |
| 156 | 156 | // if not at beginning, store as word joiner U+2060 |
| 157 | - $this->chars[] = [\chr(0xE2) . \chr(0x81) . \chr(0xA0), 0x2060]; |
|
| 157 | + $this->chars[] = [\chr(0xE2).\chr(0x81).\chr(0xA0), 0x2060]; |
|
| 158 | 158 | } |
| 159 | 159 | // otherwise discard |
| 160 | 160 | continue; |
@@ -151,7 +151,8 @@ |
||
| 151 | 151 | continue; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - if ($ordcache === 0xFEFF) { // BOM |
|
| 154 | + if ($ordcache === 0xFEFF) { |
|
| 155 | +// BOM |
|
| 155 | 156 | if ($originOffset !== 0) { |
| 156 | 157 | // if not at beginning, store as word joiner U+2060 |
| 157 | 158 | $this->chars[] = [\chr(0xE2) . \chr(0x81) . \chr(0xA0), 0x2060]; |