Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
4432 | 5 | public static function json_encode($value, int $options = 0, int $depth = 512) |
|
4433 | { |
||
4434 | 5 | $value = self::filter($value); |
|
4435 | |||
4436 | 5 | if (self::$SUPPORT['json'] === false) { |
|
4437 | throw new \RuntimeException('ext-json: is not installed'); |
||
4438 | } |
||
4439 | |||
4440 | /** @noinspection PhpComposerExtensionStubsInspection */ |
||
4441 | 5 | return \json_encode($value, $options, $depth); |
|
4442 | } |
||
14812 |