Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 4000-4006 (lines=7) @@
3997
3998
                // read STRING record
3999
                $value = $this->readString();
4000
            } elseif ((ord($recordData[6]) == 1)
4001
                && (ord($recordData[12]) == 255)
4002
                && (ord($recordData[13]) == 255)) {
4003
                // Boolean formula. Result is in +2; 0=false, 1=true
4004
                $dataType = DataType::TYPE_BOOL;
4005
                $value = (bool) ord($recordData[8]);
4006
            } elseif ((ord($recordData[6]) == 2)
4007
                && (ord($recordData[12]) == 255)
4008
                && (ord($recordData[13]) == 255)) {
4009
                // Error formula. Error code is in +2
@@ 4012-4018 (lines=7) @@
4009
                // Error formula. Error code is in +2
4010
                $dataType = DataType::TYPE_ERROR;
4011
                $value = Xls\ErrorCode::lookup(ord($recordData[8]));
4012
            } elseif ((ord($recordData[6]) == 3)
4013
                && (ord($recordData[12]) == 255)
4014
                && (ord($recordData[13]) == 255)) {
4015
                // Formula result is a null string
4016
                $dataType = DataType::TYPE_NULL;
4017
                $value = '';
4018
            } else {
4019
                // forumla result is a number, first 14 bytes like _NUMBER record
4020
                $dataType = DataType::TYPE_NUMERIC;
4021
                $value = self::extractNumber(substr($recordData, 6, 8));