Code Duplication    Length = 8-8 lines in 2 locations

app/Vendor/PHPExcel/PHPExcel/Shared/PCLZip/pclzip.lib.php 2 locations

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