Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

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