| @@ 3434-3453 (lines=20) @@ | ||
| 3431 | $useExceptions = false; |
|
| 3432 | } |
|
| 3433 | ||
| 3434 | foreach ($words as $word) { |
|
| 3435 | ||
| 3436 | if (!$word) { |
|
| 3437 | continue; |
|
| 3438 | } |
|
| 3439 | ||
| 3440 | if ( |
|
| 3441 | $useExceptions === false |
|
| 3442 | || |
|
| 3443 | ( |
|
| 3444 | $useExceptions === true |
|
| 3445 | && |
|
| 3446 | !in_array($word, $exceptions, true) |
|
| 3447 | ) |
|
| 3448 | ) { |
|
| 3449 | $word = self::lcfirst($word, $encoding, $cleanUtf8); |
|
| 3450 | } |
|
| 3451 | ||
| 3452 | $newWords[] = $word; |
|
| 3453 | } |
|
| 3454 | ||
| 3455 | return implode('', $newWords); |
|
| 3456 | } |
|
| @@ 7494-7513 (lines=20) @@ | ||
| 7491 | $useExceptions = false; |
|
| 7492 | } |
|
| 7493 | ||
| 7494 | foreach ($words as $word) { |
|
| 7495 | ||
| 7496 | if (!$word) { |
|
| 7497 | continue; |
|
| 7498 | } |
|
| 7499 | ||
| 7500 | if ( |
|
| 7501 | $useExceptions === false |
|
| 7502 | || |
|
| 7503 | ( |
|
| 7504 | $useExceptions === true |
|
| 7505 | && |
|
| 7506 | !in_array($word, $exceptions, true) |
|
| 7507 | ) |
|
| 7508 | ) { |
|
| 7509 | $word = self::ucfirst($word, $encoding); |
|
| 7510 | } |
|
| 7511 | ||
| 7512 | $newWords[] = $word; |
|
| 7513 | } |
|
| 7514 | ||
| 7515 | return implode('', $newWords); |
|
| 7516 | } |
|