Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE.php 2 locations

@@ 512-516 (lines=5) @@
509
        // Make HEX string
510
        $res = '';
511
512
        for ($i = 0; $i < 4; ++$i) {
513
            $hex = $low_part % 0x100;
514
            $res .= pack('c', $hex);
515
            $low_part /= 0x100;
516
        }
517
        for ($i = 0; $i < 4; ++$i) {
518
            $hex = $high_part % 0x100;
519
            $res .= pack('c', $hex);
@@ 517-521 (lines=5) @@
514
            $res .= pack('c', $hex);
515
            $low_part /= 0x100;
516
        }
517
        for ($i = 0; $i < 4; ++$i) {
518
            $hex = $high_part % 0x100;
519
            $res .= pack('c', $hex);
520
            $high_part /= 0x100;
521
        }
522
523
        return $res;
524
    }