| Conditions | 4 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4.0312 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | 9 | protected function getStringLength($str) |
|
| 8 | { |
||
| 9 | 9 | if (function_exists('mb_strlen')) { |
|
| 10 | 9 | return mb_strlen( |
|
| 11 | 9 | $str, |
|
| 12 | 9 | (isset($this->options['encoding']) && $this->options['encoding']) ? |
|
| 13 | 9 | $this->options['encoding'] : mb_internal_encoding() |
|
| 14 | 9 | ); |
|
| 15 | } |
||
| 16 | |||
| 17 | return strlen($str); |
||
| 18 | } |
||
| 19 | } |
||
| 20 |