Code Duplication    Length = 5-8 lines in 2 locations

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

@@ 366-373 (lines=8) @@
363
        }
364
365
        // ----- Reformat the string list
366
        if (sizeof($v_string_list) != 0) {
367
            foreach ($v_string_list as $v_string) {
368
                if ($v_string != '') {
369
                    $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string;
370
                } else {
371
                }
372
            }
373
        }
374
375
        // ----- For each file in the list check the attributes
376
        $v_supported_attributes = [
@@ 538-542 (lines=5) @@
535
        }
536
537
        // ----- Reformat the string list
538
        if (sizeof($v_string_list) != 0) {
539
            foreach ($v_string_list as $v_string) {
540
                $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string;
541
            }
542
        }
543
544
        // ----- For each file in the list check the attributes
545
        $v_supported_attributes = [