Code Duplication    Length = 9-13 lines in 2 locations

includes/libraries/Pdf/Tfpdf/tfpdf.class.php 2 locations

@@ 1249-1261 (lines=13) @@
1246
    }
1247
    switch ($dest)
1248
    {
1249
        case 'I':
1250
            // Send to standard output
1251
            $this->_checkoutput();
1252
            if (PHP_SAPI != 'cli')
1253
            {
1254
                // We send to a browser
1255
                header('Content-Type: application/pdf');
1256
                header('Content-Disposition: inline; filename="'.$name.'"');
1257
                header('Cache-Control: private, max-age=0, must-revalidate');
1258
                header('Pragma: public');
1259
            }
1260
            echo $this->buffer;
1261
            break;
1262
        case 'D':
1263
            // Download file
1264
            $this->_checkoutput();
@@ 1262-1270 (lines=9) @@
1259
            }
1260
            echo $this->buffer;
1261
            break;
1262
        case 'D':
1263
            // Download file
1264
            $this->_checkoutput();
1265
            header('Content-Type: application/x-download');
1266
            header('Content-Disposition: attachment; filename="'.$name.'"');
1267
            header('Cache-Control: private, max-age=0, must-revalidate');
1268
            header('Pragma: public');
1269
            echo $this->buffer;
1270
            break;
1271
        case 'F':
1272
            // Save to local file
1273
            $f = fopen($name, 'wb');