Code Duplication    Length = 16-16 lines in 2 locations

src/Ifsnop/Mysqldump/Mysqldump.php 2 locations

@@ 788-803 (lines=16) @@
785
     * @param string $procedureName  Name of procedure to export
786
     * @return null
787
     */
788
    private function getProcedureStructure($procedureName)
789
    {
790
        if (!$this->dumpSettings['skip-comments']) {
791
            $ret = "--" . PHP_EOL .
792
                "-- Dumping routines for database '" . $this->dbName . "'" . PHP_EOL .
793
                "--" . PHP_EOL . PHP_EOL;
794
            $this->compressManager->write($ret);
795
        }
796
        $stmt = $this->typeAdapter->show_create_procedure($procedureName);
797
        foreach ($this->dbHandler->query($stmt) as $r) {
798
            $this->compressManager->write(
799
                $this->typeAdapter->create_procedure($r, $this->dumpSettings)
800
            );
801
            return;
802
        }
803
    }
804
805
    /**
806
     * Event structure extractor
@@ 811-826 (lines=16) @@
808
     * @param string $eventName  Name of event to export
809
     * @return null
810
     */
811
    private function getEventStructure($eventName)
812
    {
813
        if (!$this->dumpSettings['skip-comments']) {
814
            $ret = "--" . PHP_EOL .
815
                "-- Dumping events for database '" . $this->dbName . "'" . PHP_EOL .
816
                "--" . PHP_EOL . PHP_EOL;
817
            $this->compressManager->write($ret);
818
        }
819
        $stmt = $this->typeAdapter->show_create_event($eventName);
820
        foreach ($this->dbHandler->query($stmt) as $r) {
821
            $this->compressManager->write(
822
                $this->typeAdapter->create_event($r, $this->dumpSettings)
823
            );
824
            return;
825
        }
826
    }
827
828
    /**
829
     * Escape values with quotes when needed