| @@ 3398-3417 (lines=20) @@ | ||
| 3395 | $useExceptions = false; |
|
| 3396 | } |
|
| 3397 | ||
| 3398 | foreach ($words as $word) { |
|
| 3399 | ||
| 3400 | if (!$word) { |
|
| 3401 | continue; |
|
| 3402 | } |
|
| 3403 | ||
| 3404 | if ( |
|
| 3405 | $useExceptions === false |
|
| 3406 | || |
|
| 3407 | ( |
|
| 3408 | $useExceptions === true |
|
| 3409 | && |
|
| 3410 | !in_array($word, $exceptions, true) |
|
| 3411 | ) |
|
| 3412 | ) { |
|
| 3413 | $word = self::lcfirst($word, $encoding, $cleanUtf8); |
|
| 3414 | } |
|
| 3415 | ||
| 3416 | $newWords[] = $word; |
|
| 3417 | } |
|
| 3418 | ||
| 3419 | return implode('', $newWords); |
|
| 3420 | } |
|
| @@ 7385-7404 (lines=20) @@ | ||
| 7382 | $useExceptions = false; |
|
| 7383 | } |
|
| 7384 | ||
| 7385 | foreach ($words as $word) { |
|
| 7386 | ||
| 7387 | if (!$word) { |
|
| 7388 | continue; |
|
| 7389 | } |
|
| 7390 | ||
| 7391 | if ( |
|
| 7392 | $useExceptions === false |
|
| 7393 | || |
|
| 7394 | ( |
|
| 7395 | $useExceptions === true |
|
| 7396 | && |
|
| 7397 | !in_array($word, $exceptions, true) |
|
| 7398 | ) |
|
| 7399 | ) { |
|
| 7400 | $word = self::ucfirst($word, $encoding); |
|
| 7401 | } |
|
| 7402 | ||
| 7403 | $newWords[] = $word; |
|
| 7404 | } |
|
| 7405 | ||
| 7406 | return implode('', $newWords); |
|
| 7407 | } |
|