Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 3839-3845 (lines=7) @@
3836
3837
                // read STRING record
3838
                $value = $this->readString();
3839
            } elseif ((ord($recordData[6]) == 1)
3840
                && (ord($recordData[12]) == 255)
3841
                && (ord($recordData[13]) == 255)) {
3842
                // Boolean formula. Result is in +2; 0=false, 1=true
3843
                $dataType = \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_BOOL;
3844
                $value = (bool) ord($recordData[8]);
3845
            } elseif ((ord($recordData[6]) == 2)
3846
                && (ord($recordData[12]) == 255)
3847
                && (ord($recordData[13]) == 255)) {
3848
                // Error formula. Error code is in +2
@@ 3851-3857 (lines=7) @@
3848
                // Error formula. Error code is in +2
3849
                $dataType = \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_ERROR;
3850
                $value = Xls\ErrorCode::lookup(ord($recordData[8]));
3851
            } elseif ((ord($recordData[6]) == 3)
3852
                && (ord($recordData[12]) == 255)
3853
                && (ord($recordData[13]) == 255)) {
3854
                // Formula result is a null string
3855
                $dataType = \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_NULL;
3856
                $value = '';
3857
            } else {
3858
                // forumla result is a number, first 14 bytes like _NUMBER record
3859
                $dataType = \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_NUMERIC;
3860
                $value = self::extractNumber(substr($recordData, 6, 8));