| @@ 2685-2704 (lines=20) @@ | ||
| 2682 | $useExceptions = false; |
|
| 2683 | } |
|
| 2684 | ||
| 2685 | foreach ($words as $word) { |
|
| 2686 | ||
| 2687 | if (!$word) { |
|
| 2688 | continue; |
|
| 2689 | } |
|
| 2690 | ||
| 2691 | if ( |
|
| 2692 | $useExceptions === false |
|
| 2693 | || |
|
| 2694 | ( |
|
| 2695 | $useExceptions === true |
|
| 2696 | && |
|
| 2697 | !\in_array($word, $exceptions, true) |
|
| 2698 | ) |
|
| 2699 | ) { |
|
| 2700 | $word = self::lcfirst($word, $encoding, $cleanUtf8); |
|
| 2701 | } |
|
| 2702 | ||
| 2703 | $newWords[] = $word; |
|
| 2704 | } |
|
| 2705 | ||
| 2706 | return \implode('', $newWords); |
|
| 2707 | } |
|
| @@ 6554-6573 (lines=20) @@ | ||
| 6551 | $useExceptions = false; |
|
| 6552 | } |
|
| 6553 | ||
| 6554 | foreach ($words as $word) { |
|
| 6555 | ||
| 6556 | if (!$word) { |
|
| 6557 | continue; |
|
| 6558 | } |
|
| 6559 | ||
| 6560 | if ( |
|
| 6561 | $useExceptions === false |
|
| 6562 | || |
|
| 6563 | ( |
|
| 6564 | $useExceptions === true |
|
| 6565 | && |
|
| 6566 | !\in_array($word, $exceptions, true) |
|
| 6567 | ) |
|
| 6568 | ) { |
|
| 6569 | $word = self::ucfirst($word, $encoding); |
|
| 6570 | } |
|
| 6571 | ||
| 6572 | $newWords[] = $word; |
|
| 6573 | } |
|
| 6574 | ||
| 6575 | return \implode('', $newWords); |
|
| 6576 | } |
|