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