Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE.php 2 locations

@@ 522-526 (lines=5) @@
519
        // Make HEX string
520
        $res = '';
521
522
        for ($i = 0; $i < 4; ++$i) {
523
            $hex = $low_part % 0x100;
524
            $res .= pack('c', $hex);
525
            $low_part /= 0x100;
526
        }
527
        for ($i = 0; $i < 4; ++$i) {
528
            $hex = $high_part % 0x100;
529
            $res .= pack('c', $hex);
@@ 527-531 (lines=5) @@
524
            $res .= pack('c', $hex);
525
            $low_part /= 0x100;
526
        }
527
        for ($i = 0; $i < 4; ++$i) {
528
            $hex = $high_part % 0x100;
529
            $res .= pack('c', $hex);
530
            $high_part /= 0x100;
531
        }
532
533
        return $res;
534
    }