Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | 14 | public function filter($value) |
|
27 | { |
||
28 | 14 | if ($this->encodingFormat !== null) { |
|
29 | 2 | $firstChar = mb_substr($value, 0, 1, $this->encodingFormat); |
|
30 | 2 | $rest = mb_substr($value, 1, null, $this->encodingFormat); |
|
31 | 2 | return mb_strtoupper($firstChar, $this->encodingFormat) . $rest; |
|
32 | } |
||
33 | |||
34 | 12 | $firstChar = mb_substr($value, 0, 1); |
|
35 | 12 | $rest = mb_substr($value, 1); |
|
36 | |||
37 | 12 | return mb_strtoupper($firstChar) . $rest; |
|
38 | } |
||
39 | } |
||
40 |