Code Duplication    Length = 21-21 lines in 2 locations

src/controllers/DatabaseController.php 1 location

@@ 476-496 (lines=21) @@
473
     *
474
     * @param mixed $msg
475
     */
476
    public function doExport($msg = '')
477
    {
478
        $this->printTrail('database');
479
        $this->printTabs('database', 'export');
480
        $this->printMsg($msg);
481
482
        $subject = 'database';
483
        $object  = $_REQUEST['database'];
484
485
        echo $this->formHeader('dbexport');
486
487
        echo $this->dataOnly(true, true);
488
489
        echo $this->structureOnly();
490
491
        echo $this->structureAndData(true);
492
493
        echo $this->displayOrDownload(!(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') && isset($_SERVER['HTTPS'])));
494
495
        echo $this->formFooter($subject, $object);
496
    }
497
498
    /**
499
     * Show the current status of all database variables.

src/controllers/SchemasController.php 1 location

@@ 497-517 (lines=21) @@
494
     *
495
     * @param mixed $msg
496
     */
497
    public function doExport($msg = '')
498
    {
499
        $this->printTrail('schema');
500
        $this->printTabs('schema', 'export');
501
        $this->printMsg($msg);
502
503
        $subject = 'schema';
504
        $object  = $_REQUEST['schema'];
505
506
        echo $this->formHeader('dbexport');
507
508
        echo $this->dataOnly(true, true);
509
510
        echo $this->structureOnly();
511
512
        echo $this->structureAndData(true);
513
514
        echo $this->displayOrDownload(!(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') && isset($_SERVER['HTTPS'])));
515
516
        echo $this->formFooter($subject, $object);
517
    }
518
}
519