Code Duplication    Length = 10-11 lines in 2 locations

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

@@ 1114-1123 (lines=10) @@
1111
    if (@is_file($this->zipname))
1112
    {
1113
      // ----- Open the zip file
1114
      if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0)
1115
      {
1116
        $this->privSwapBackMagicQuotes();
1117
        
1118
        // ----- Error log
1119
        PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode');
1120
1121
        // ----- Return
1122
        return 0;
1123
      }
1124
1125
      // ----- Read the central directory informations
1126
      $v_central_dir = array();
@@ 3157-3167 (lines=11) @@
3154
    $this->privDisableMagicQuotes();
3155
3156
    // ----- Open the zip file
3157
    if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0)
3158
    {
3159
      // ----- Magic quotes trick
3160
      $this->privSwapBackMagicQuotes();
3161
      
3162
      // ----- Error log
3163
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode');
3164
3165
      // ----- Return
3166
      return PclZip::errorCode();
3167
    }
3168
3169
    // ----- Read the central directory informations
3170
    $v_central_dir = array();