Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Shared/OLERead.php 1 location

@@ 344-349 (lines=6) @@
341
        // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334
342
        // Changed by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems
343
        $_or_24 = ord($data[$pos + 3]);
344
        if ($_or_24 >= 128) {
345
            // negative number
346
            $_ord_24 = -abs((256 - $_or_24) << 24);
347
        } else {
348
            $_ord_24 = ($_or_24 & 127) << 24;
349
        }
350
351
        return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24;
352
    }

src/PhpSpreadsheet/Reader/Xls.php 1 location

@@ 7922-7927 (lines=6) @@
7919
        // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334
7920
        // Changed by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems
7921
        $_or_24 = ord($data[$pos + 3]);
7922
        if ($_or_24 >= 128) {
7923
            // negative number
7924
            $_ord_24 = -abs((256 - $_or_24) << 24);
7925
        } else {
7926
            $_ord_24 = ($_or_24 & 127) << 24;
7927
        }
7928
7929
        return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24;
7930
    }