| @@ 7475-7494 (lines=20) @@ | ||
| 7472 | $useExceptions = false; |
|
| 7473 | } |
|
| 7474 | ||
| 7475 | foreach ($words as $word) { |
|
| 7476 | ||
| 7477 | if (!$word) { |
|
| 7478 | continue; |
|
| 7479 | } |
|
| 7480 | ||
| 7481 | if ( |
|
| 7482 | $useExceptions === false |
|
| 7483 | || |
|
| 7484 | ( |
|
| 7485 | $useExceptions === true |
|
| 7486 | && |
|
| 7487 | !in_array($word, $exceptions, true) |
|
| 7488 | ) |
|
| 7489 | ) { |
|
| 7490 | $word = self::ucfirst($word, $encoding); |
|
| 7491 | } |
|
| 7492 | ||
| 7493 | $newWords[] = $word; |
|
| 7494 | } |
|
| 7495 | ||
| 7496 | return implode('', $newWords); |
|
| 7497 | } |
|
| @@ 3429-3448 (lines=20) @@ | ||
| 3426 | $useExceptions = false; |
|
| 3427 | } |
|
| 3428 | ||
| 3429 | foreach ($words as $word) { |
|
| 3430 | ||
| 3431 | if (!$word) { |
|
| 3432 | continue; |
|
| 3433 | } |
|
| 3434 | ||
| 3435 | if ( |
|
| 3436 | $useExceptions === false |
|
| 3437 | || |
|
| 3438 | ( |
|
| 3439 | $useExceptions === true |
|
| 3440 | && |
|
| 3441 | !in_array($word, $exceptions, true) |
|
| 3442 | ) |
|
| 3443 | ) { |
|
| 3444 | $word = self::lcfirst($word, $encoding, $cleanUtf8); |
|
| 3445 | } |
|
| 3446 | ||
| 3447 | $newWords[] = $word; |
|
| 3448 | } |
|
| 3449 | ||
| 3450 | return implode('', $newWords); |
|
| 3451 | } |
|