@@ -1579,9 +1579,9 @@ discard block |
||
1579 | 1579 | } |
1580 | 1580 | |
1581 | 1581 | $pos_end = min( |
1582 | - UTF8::strpos($text, ' ', $l, $this->encoding), |
|
1583 | - UTF8::strpos($text, '.', $l, $this->encoding) |
|
1584 | - ) - $pos_start; |
|
1582 | + UTF8::strpos($text, ' ', $l, $this->encoding), |
|
1583 | + UTF8::strpos($text, '.', $l, $this->encoding) |
|
1584 | + ) - $pos_start; |
|
1585 | 1585 | |
1586 | 1586 | if (!$pos_end || $pos_end <= 0) { |
1587 | 1587 | $extract = $ellipsis . ltrim( |
@@ -1621,9 +1621,9 @@ discard block |
||
1621 | 1621 | |
1622 | 1622 | if ($pos_end) { |
1623 | 1623 | $extract = rtrim( |
1624 | - UTF8::substr($text, 0, $pos_end, $this->encoding), |
|
1625 | - $trimChars |
|
1626 | - ) . $ellipsis; |
|
1624 | + UTF8::substr($text, 0, $pos_end, $this->encoding), |
|
1625 | + $trimChars |
|
1626 | + ) . $ellipsis; |
|
1627 | 1627 | } else { |
1628 | 1628 | $extract = $text; |
1629 | 1629 | } |
@@ -2316,7 +2316,7 @@ discard block |
||
2316 | 2316 | /** |
2317 | 2317 | * @param string $word |
2318 | 2318 | * |
2319 | - * @return string |
|
2319 | + * @return Stringy |
|
2320 | 2320 | */ |
2321 | 2321 | private function capitalizeWord($word) |
2322 | 2322 | { |
@@ -2335,7 +2335,7 @@ discard block |
||
2335 | 2335 | * @param string $names |
2336 | 2336 | * @param string $delimiter |
2337 | 2337 | * |
2338 | - * @return string |
|
2338 | + * @return Stringy |
|
2339 | 2339 | */ |
2340 | 2340 | private function capitalizePersonalNameByDelimiter($names, $delimiter) |
2341 | 2341 | { |