@@ -204,7 +204,6 @@ public function unpack()
204204 case 0xc0 : return null ;
205205 case 0xc2 : return false ;
206206 case 0xc3 : return true ;
207-
208207 // fixmap
209208 case 0x80 : return [];
210209 case 0x81 : return [$ this ->unpackMapKey () => $ this ->unpack ()];
@@ -222,7 +221,6 @@ public function unpack()
222221 case 0x8d : return $ this ->unpackMapData (13 );
223222 case 0x8e : return $ this ->unpackMapData (14 );
224223 case 0x8f : return $ this ->unpackMapData (15 );
225-
226224 // fixarray
227225 case 0x90 : return [];
228226 case 0x91 : return [$ this ->unpack ()];
@@ -240,41 +238,33 @@ public function unpack()
240238 case 0x9d : return $ this ->unpackArrayData (13 );
241239 case 0x9e : return $ this ->unpackArrayData (14 );
242240 case 0x9f : return $ this ->unpackArrayData (15 );
243-
244241 // bin
245242 case 0xc4 : return $ this ->read ($ this ->unpackUint8 ());
246243 case 0xc5 : return $ this ->read ($ this ->unpackUint16 ());
247244 case 0xc6 : return $ this ->read ($ this ->unpackUint32 ());
248-
249245 // float
250246 case 0xca : return $ this ->unpackFloat32 ();
251247 case 0xcb : return $ this ->unpackFloat64 ();
252-
253248 // uint
254249 case 0xcc : return $ this ->unpackUint8 ();
255250 case 0xcd : return $ this ->unpackUint16 ();
256251 case 0xce : return $ this ->unpackUint32 ();
257252 case 0xcf : return $ this ->unpackUint64 ();
258-
259253 // int
260254 case 0xd0 : return $ this ->unpackInt8 ();
261255 case 0xd1 : return $ this ->unpackInt16 ();
262256 case 0xd2 : return $ this ->unpackInt32 ();
263257 case 0xd3 : return $ this ->unpackInt64 ();
264-
265258 // str
266259 case 0xd9 : return $ this ->read ($ this ->unpackUint8 ());
267260 case 0xda : return $ this ->read ($ this ->unpackUint16 ());
268261 case 0xdb : return $ this ->read ($ this ->unpackUint32 ());
269-
270262 // array
271263 case 0xdc : return $ this ->unpackArrayData ($ this ->unpackUint16 ());
272264 case 0xdd : return $ this ->unpackArrayData ($ this ->unpackUint32 ());
273-
274265 // map
275266 case 0xde : return $ this ->unpackMapData ($ this ->unpackUint16 ());
276267 case 0xdf : return $ this ->unpackMapData ($ this ->unpackUint32 ());
277-
278268 // ext
279269 case 0xd4 : return $ this ->unpackExtData (1 );
280270 case 0xd5 : return $ this ->unpackExtData (2 );
@@ -347,7 +337,6 @@ public function unpackInt()
347337 case 0xcd : return $ this ->unpackUint16 ();
348338 case 0xce : return $ this ->unpackUint32 ();
349339 case 0xcf : return $ this ->unpackUint64 ();
350-
351340 // int
352341 case 0xd0 : return $ this ->unpackInt8 ();
353342 case 0xd1 : return $ this ->unpackInt16 ();
@@ -692,18 +681,15 @@ private function unpackMapKey()
692681 case 0xcd : return $ this ->unpackUint16 ();
693682 case 0xce : return $ this ->unpackUint32 ();
694683 case 0xcf : return $ this ->unpackUint64 ();
695-
696684 // int
697685 case 0xd0 : return $ this ->unpackInt8 ();
698686 case 0xd1 : return $ this ->unpackInt16 ();
699687 case 0xd2 : return $ this ->unpackInt32 ();
700688 case 0xd3 : return $ this ->unpackInt64 ();
701-
702689 // str
703690 case 0xd9 : return $ this ->read ($ this ->unpackUint8 ());
704691 case 0xda : return $ this ->read ($ this ->unpackUint16 ());
705692 case 0xdb : return $ this ->read ($ this ->unpackUint32 ());
706-
707693 // bin
708694 case 0xc4 : return $ this ->read ($ this ->unpackUint8 ());
709695 case 0xc5 : return $ this ->read ($ this ->unpackUint16 ());
0 commit comments