Code Duplication    Length = 9-13 lines in 2 locations

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

@@ 1285-1297 (lines=13) @@
1282
    }
1283
    switch ($dest)
1284
    {
1285
        case 'I':
1286
            // Send to standard output
1287
            $this->_checkoutput();
1288
            if (PHP_SAPI != 'cli')
1289
            {
1290
                // We send to a browser
1291
                header('Content-Type: application/pdf');
1292
                header('Content-Disposition: inline; filename="'.$name.'"');
1293
                header('Cache-Control: private, max-age=0, must-revalidate');
1294
                header('Pragma: public');
1295
            }
1296
            echo $this->buffer;
1297
            break;
1298
        case 'D':
1299
            // Download file
1300
            $this->_checkoutput();
@@ 1298-1306 (lines=9) @@
1295
            }
1296
            echo $this->buffer;
1297
            break;
1298
        case 'D':
1299
            // Download file
1300
            $this->_checkoutput();
1301
            header('Content-Type: application/x-download');
1302
            header('Content-Disposition: attachment; filename="'.$name.'"');
1303
            header('Cache-Control: private, max-age=0, must-revalidate');
1304
            header('Pragma: public');
1305
            echo $this->buffer;
1306
            break;
1307
        case 'F':
1308
            // Save to local file
1309
            $f = fopen($name, 'wb');