| @@ 2818-2837 (lines=20) @@ | ||
| 2815 | $useExceptions = false; |
|
| 2816 | } |
|
| 2817 | ||
| 2818 | foreach ($words as $word) { |
|
| 2819 | ||
| 2820 | if (!$word) { |
|
| 2821 | continue; |
|
| 2822 | } |
|
| 2823 | ||
| 2824 | if ( |
|
| 2825 | $useExceptions === false |
|
| 2826 | || |
|
| 2827 | ( |
|
| 2828 | $useExceptions === true |
|
| 2829 | && |
|
| 2830 | !in_array($word, $exceptions, true) |
|
| 2831 | ) |
|
| 2832 | ) { |
|
| 2833 | $word = self::lcfirst($word, $encoding, $cleanUtf8); |
|
| 2834 | } |
|
| 2835 | ||
| 2836 | $newWords[] = $word; |
|
| 2837 | } |
|
| 2838 | ||
| 2839 | return implode('', $newWords); |
|
| 2840 | } |
|
| @@ 6905-6924 (lines=20) @@ | ||
| 6902 | $useExceptions = false; |
|
| 6903 | } |
|
| 6904 | ||
| 6905 | foreach ($words as $word) { |
|
| 6906 | ||
| 6907 | if (!$word) { |
|
| 6908 | continue; |
|
| 6909 | } |
|
| 6910 | ||
| 6911 | if ( |
|
| 6912 | $useExceptions === false |
|
| 6913 | || |
|
| 6914 | ( |
|
| 6915 | $useExceptions === true |
|
| 6916 | && |
|
| 6917 | !in_array($word, $exceptions, true) |
|
| 6918 | ) |
|
| 6919 | ) { |
|
| 6920 | $word = self::ucfirst($word, $encoding); |
|
| 6921 | } |
|
| 6922 | ||
| 6923 | $newWords[] = $word; |
|
| 6924 | } |
|
| 6925 | ||
| 6926 | return implode('', $newWords); |
|
| 6927 | } |
|