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