Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
83 | public function mbstring($fromOverride = null) |
||
84 | { |
||
85 | $from = $this->source; |
||
86 | if ($fromOverride !== null) { |
||
87 | $from = $fromOverride; |
||
88 | } |
||
89 | try { |
||
90 | $converted = mb_convert_encoding($this->string, $this->destination, $from); |
||
91 | } catch (\Exception $msg) { |
||
92 | return false; |
||
93 | } |
||
94 | return $converted; |
||
95 | } |
||
96 | |||
113 |