| Total Complexity | 2 | 
| Total Lines | 24 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 13 | class Unicode  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * Unicode 编码  | 
            ||
| 17 | *  | 
            ||
| 18 | * @param string $string  | 
            ||
| 19 | *  | 
            ||
| 20 | * @return string  | 
            ||
| 21 | */  | 
            ||
| 22 | public static function encode($string)  | 
            ||
| 23 |     { | 
            ||
| 24 | return trim(json_encode($string), '"');  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * Unicode 解码  | 
            ||
| 29 | *  | 
            ||
| 30 | * @param string $string  | 
            ||
| 31 | *  | 
            ||
| 32 | * @return string  | 
            ||
| 33 | */  | 
            ||
| 34 | public static function decode($string)  | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 |