| Total Complexity | 11 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | final class Jsoner |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param bool $encode Encode the value into JSON. |
||
| 23 | * @param bool $validate Checking the value that it is valid JSON. |
||
| 24 | * |
||
| 25 | * @throws \JsonException |
||
| 26 | */ |
||
| 27 | public static function toJson(mixed $value, bool $encode = true, bool $validate = true): string |
||
| 42 |