(
/*array /*use type hint if you can removing initial comment*/
$list
)
| 25 | class JSONH { |
| 26 | |
| 27 | public static function pack( |
| 28 | /*array /*use type hint if you can removing initial comment*/ |
| 29 | $list |
| 30 | ) { |
| 31 | $length = count($list); |
| 32 | return $length ? ( |
| 33 | is_array($list[0]) ? self::_pack_array($list, $length) : self::_pack_object($list, $length) |
| 34 | ) : array(0); |
| 35 | } |
| 36 | |
| 37 | public static function parse( |
| 38 | /*string /*use type hint if you can removing initial comment*/ |
no test coverage detected