Code Duplication    Length = 9-9 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 569-577 (lines=9) @@
566
            if (is_array($objectData) && count($objectData)) {
567
                $result = array_map('self::object2array', $objectData);
568
            }
569
        } else {
570
            if (is_array($object)) {
571
                foreach ($object as $item => $value) {
572
                    $result[$item] = self::object2array($value);
573
                }
574
            } else {
575
                $result = $object;
576
            }
577
        }
578
579
        return $result;
580
    }
@@ 594-602 (lines=9) @@
591
        $result = null;
592
        if (is_object($object)) {
593
            $result = $object->__toString();
594
        } else {
595
            if (is_array($object)) {
596
                foreach ($object as $item => $value) {
597
                    $result[$item] = self::objectToID($value);
598
                }
599
            } else { //String
600
                $result = $object;
601
            }
602
        }
603
604
        return $result;
605
    }