| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class Json |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @param mixed $value |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | * |
||
| 31 | * @throws JsonException |
||
| 32 | */ |
||
| 33 | 34 | public static function encode($value): string |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $json |
||
| 48 | * |
||
| 49 | * @param bool $assoc |
||
| 50 | * @param int $depth |
||
| 51 | * @return mixed |
||
| 52 | * |
||
| 53 | */ |
||
| 54 | 7 | public static function decode(string $json, bool $assoc = true, int $depth = 512) |
|
| 65 |