@@ -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]; |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace StringObject\Decorator; |
| 4 | 4 | |
| 5 | -use StringObject\StrObj; |
|
| 6 | - |
|
| 7 | 5 | class HTMLStrObj extends TextStrObj |
| 8 | 6 | { |
| 9 | 7 | public function nl2br() |
@@ -157,6 +157,9 @@ |
||
| 157 | 157 | return self::duplicate($strobj, $str); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | + /** |
|
| 161 | + * @param string $str |
|
| 162 | + */ |
|
| 160 | 163 | protected static function duplicate(AnyStrObj $strobj, $str) |
| 161 | 164 | { |
| 162 | 165 | $classname = \get_class($strobj); |