| @@ 2782-2801 (lines=20) @@ | ||
| 2779 | $useExceptions = false; |
|
| 2780 | } |
|
| 2781 | ||
| 2782 | foreach ($words as $word) { |
|
| 2783 | ||
| 2784 | if (!$word) { |
|
| 2785 | continue; |
|
| 2786 | } |
|
| 2787 | ||
| 2788 | if ( |
|
| 2789 | $useExceptions === false |
|
| 2790 | || |
|
| 2791 | ( |
|
| 2792 | $useExceptions === true |
|
| 2793 | && |
|
| 2794 | !\in_array($word, $exceptions, true) |
|
| 2795 | ) |
|
| 2796 | ) { |
|
| 2797 | $word = self::lcfirst($word, $encoding, $cleanUtf8); |
|
| 2798 | } |
|
| 2799 | ||
| 2800 | $newWords[] = $word; |
|
| 2801 | } |
|
| 2802 | ||
| 2803 | return \implode('', $newWords); |
|
| 2804 | } |
|
| @@ 6631-6650 (lines=20) @@ | ||
| 6628 | $useExceptions = false; |
|
| 6629 | } |
|
| 6630 | ||
| 6631 | foreach ($words as $word) { |
|
| 6632 | ||
| 6633 | if (!$word) { |
|
| 6634 | continue; |
|
| 6635 | } |
|
| 6636 | ||
| 6637 | if ( |
|
| 6638 | $useExceptions === false |
|
| 6639 | || |
|
| 6640 | ( |
|
| 6641 | $useExceptions === true |
|
| 6642 | && |
|
| 6643 | !\in_array($word, $exceptions, true) |
|
| 6644 | ) |
|
| 6645 | ) { |
|
| 6646 | $word = self::ucfirst($word, $encoding); |
|
| 6647 | } |
|
| 6648 | ||
| 6649 | $newWords[] = $word; |
|
| 6650 | } |
|
| 6651 | ||
| 6652 | return \implode('', $newWords); |
|
| 6653 | } |
|