@@ -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 | { |
@@ -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 | } |