@@ -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]; |
@@ -516,12 +516,12 @@ |
||
516 | 516 | |
517 | 517 | public function offsetSet($offset, $value) |
518 | 518 | { |
519 | - throw new \LogicException('Cannot assign '.$value.' to immutable StrObj instance at index '.$offset); |
|
519 | + throw new \LogicException('Cannot assign ' . $value . ' to immutable StrObj instance at index ' . $offset); |
|
520 | 520 | } |
521 | 521 | |
522 | 522 | public function offsetUnset($offset) |
523 | 523 | { |
524 | - throw new \LogicException('Cannot unset index '.$offset.' on immutable StrObj instance'); |
|
524 | + throw new \LogicException('Cannot unset index ' . $offset . ' on immutable StrObj instance'); |
|
525 | 525 | } |
526 | 526 | |
527 | 527 | // PRIVATE STATIC FUNCTIONS |
@@ -63,11 +63,11 @@ |
||
63 | 63 | |
64 | 64 | public function offsetSet($offset, $value) |
65 | 65 | { |
66 | - throw new \LogicException('Cannot assign '.$value.' to immutable StrObj adapter instance at index '.$offset); |
|
66 | + throw new \LogicException('Cannot assign ' . $value . ' to immutable StrObj adapter instance at index ' . $offset); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | public function offsetUnset($offset) |
70 | 70 | { |
71 | - throw new \LogicException('Cannot unset index '.$offset.' on immutable StrObj adapter instance'); |
|
71 | + throw new \LogicException('Cannot unset index ' . $offset . ' on immutable StrObj adapter instance'); |
|
72 | 72 | } |
73 | 73 | } |