Method
_unpack_array
(
/*array /*use type hint if you can removing initial comment*/
$hlist
)
Source from the content-addressed store, hash-verified
| 117 | } |
| 118 | |
| 119 | private static function _unpack_array( |
| 120 | /*array /*use type hint if you can removing initial comment*/ |
| 121 | $hlist |
| 122 | ) { |
| 123 | for ( |
| 124 | $length = count($hlist), |
| 125 | $klength = $hlist[0], |
| 126 | $result = array(), |
| 127 | $i = 1 + $klength, |
| 128 | $j = 0, |
| 129 | $ki, $o; |
| 130 | $i < $length; |
| 131 | ) { |
| 132 | for ( |
| 133 | $o = array(), $ki = 0; |
| 134 | $ki < $klength; |
| 135 | $o[$hlist[++$ki]] = $hlist[$i++] |
| 136 | ); |
| 137 | $result[$j++] = $o; |
| 138 | } |
| 139 | return $result; |
| 140 | } |
| 141 | |
| 142 | private static function _unpack_object( |
| 143 | /*array /*use type hint if you can removing initial comment*/ |
Tested by
no test coverage detected