src/CborDecoder.php
Method parseFloatSimple
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected static function parseFloatSimple(int $val, ByteBuffer $buf, int &$offset): bool|float|null
{
switch ($val) {
case 24:
$val = $buf->getByteVal($offset);
Method parseExtraLength
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected static function parseExtraLength(int $val, ByteBuffer $buf, int &$offset): int
{
switch ($val) {
case 24:
$val = $buf->getByteVal($offset);
Avoid too many return
statements within this method. Open
Open
return $val;
Avoid too many return
statements within this method. Open
Open
return static::parseMap($buf, $offset, $val);
Avoid too many return
statements within this method. Open
Open
return static::parseItem($buf, $offset); // 1 embedded data item
Avoid too many return
statements within this method. Open
Open
return static::parseSimpleValue($val);
Avoid too many return
statements within this method. Open
Open
return static::parseArray($buf, $offset, $val);