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

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