@@ -1903,9 +1903,9 @@ discard block |
||
1903 | 1903 | } |
1904 | 1904 | |
1905 | 1905 | $pos_end = min( |
1906 | - UTF8::strpos($text, ' ', $l, $this->encoding), |
|
1907 | - UTF8::strpos($text, '.', $l, $this->encoding) |
|
1908 | - ) - $pos_start; |
|
1906 | + UTF8::strpos($text, ' ', $l, $this->encoding), |
|
1907 | + UTF8::strpos($text, '.', $l, $this->encoding) |
|
1908 | + ) - $pos_start; |
|
1909 | 1909 | |
1910 | 1910 | if (!$pos_end || $pos_end <= 0) { |
1911 | 1911 | $extract = $replacerForSkippedText . ltrim( |
@@ -1945,9 +1945,9 @@ discard block |
||
1945 | 1945 | |
1946 | 1946 | if ($pos_end) { |
1947 | 1947 | $extract = rtrim( |
1948 | - UTF8::substr($text, 0, $pos_end, $this->encoding), |
|
1949 | - $trimChars |
|
1950 | - ) . $replacerForSkippedText; |
|
1948 | + UTF8::substr($text, 0, $pos_end, $this->encoding), |
|
1949 | + $trimChars |
|
1950 | + ) . $replacerForSkippedText; |
|
1951 | 1951 | } else { |
1952 | 1952 | $extract = $text; |
1953 | 1953 | } |