| Total Complexity | 6 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 4 | class EncodeUtils |
||
| 5 | { |
||
| 6 | |||
| 7 | /* |
||
| 8 | * URL安全的Base64编码适用于以URL方式传递Base64编码结果的场景。 |
||
| 9 | * 该编码方式的基本过程是先将内容以Base64格式编码为字符串, |
||
| 10 | * 然后检查该结果字符串,将字符串中的加号+换成中划线-,并且将斜杠/换成下划线_,同时尾部去除等号padding。 |
||
| 11 | */ |
||
| 12 | public static function encodeWithURLSafeBase64($arg) |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function newEncodeWithUrlSafeBase64($arg) |
||
| 31 |