Code Duplication    Length = 8-8 lines in 2 locations

src/wp-admin/includes/class-pclzip.php 2 locations

@@ 1937-1944 (lines=8) @@
1934
        break;
1935
1936
        // ----- Look for options that takes a string
1937
        case PCLZIP_ATT_FILE_COMMENT :
1938
          if (!is_string($v_value)) {
1939
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'");
1940
            return PclZip::errorCode();
1941
          }
1942
1943
          $p_filedescr['comment'] = $v_value;
1944
        break;
1945
1946
        case PCLZIP_ATT_FILE_MTIME :
1947
          if (!is_integer($v_value)) {
@@ 1946-1953 (lines=8) @@
1943
          $p_filedescr['comment'] = $v_value;
1944
        break;
1945
1946
        case PCLZIP_ATT_FILE_MTIME :
1947
          if (!is_integer($v_value)) {
1948
            PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". Integer expected for attribute '".PclZipUtilOptionText($v_key)."'");
1949
            return PclZip::errorCode();
1950
          }
1951
1952
          $p_filedescr['mtime'] = $v_value;
1953
        break;
1954
1955
        case PCLZIP_ATT_FILE_CONTENT :
1956
          $p_filedescr['content'] = $v_value;