@@ -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 | } |
@@ -2421,7 +2421,7 @@ discard block |
||
| 2421 | 2421 | /** |
| 2422 | 2422 | * @param string $word |
| 2423 | 2423 | * |
| 2424 | - * @return string |
|
| 2424 | + * @return Stringy |
|
| 2425 | 2425 | */ |
| 2426 | 2426 | protected function capitalizeWord($word) |
| 2427 | 2427 | { |
@@ -2440,7 +2440,7 @@ discard block |
||
| 2440 | 2440 | * @param string $names |
| 2441 | 2441 | * @param string $delimiter |
| 2442 | 2442 | * |
| 2443 | - * @return string |
|
| 2443 | + * @return Stringy |
|
| 2444 | 2444 | */ |
| 2445 | 2445 | protected function capitalizePersonalNameByDelimiter($names, $delimiter) |
| 2446 | 2446 | { |