Code Duplication    Length = 5-7 lines in 3 locations

src/PhpSpreadsheet/Shared/PCLZip/PclZip.php 3 locations

@@ 3266-3272 (lines=7) @@
3263
                    }
3264
3265
                    // ----- Get the only interesting attributes
3266
                    if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted])) != 1) {
3267
                        // ----- Close the zip file
3268
                        $this->privCloseFd();
3269
                        $this->privSwapBackMagicQuotes();
3270
3271
                        return $v_result;
3272
                    }
3273
3274
                    // ----- Set the file content
3275
                    $p_file_list[$v_nb_extracted]['content'] = $v_string;
@@ 3296-3300 (lines=5) @@
3293
                    }
3294
3295
                    // ----- Get the only interesting attributes
3296
                    if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) {
3297
                        $this->privCloseFd();
3298
                        $this->privSwapBackMagicQuotes();
3299
3300
                        return $v_result;
3301
                    }
3302
3303
                    // ----- Look for user callback abort
@@ 3319-3325 (lines=7) @@
3316
                    }
3317
3318
                    // ----- Get the only interesting attributes
3319
                    if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) {
3320
                        // ----- Close the zip file
3321
                        $this->privCloseFd();
3322
                        $this->privSwapBackMagicQuotes();
3323
3324
                        return $v_result;
3325
                    }
3326
3327
                    // ----- Look for user callback abort
3328
                    if ($v_result1 == 2) {