Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE.php 2 locations

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