Code Duplication    Length = 9-9 lines in 2 locations

src/utils/migration/MigrationRegistryMysql.php 2 locations

@@ 70-78 (lines=9) @@
67
     * @param string $class migration class
68
     * @throws \Exception
69
     */
70
    public function register(string $class)
71
    {
72
        $this->initRegistry();
73
        if (!$this->isRegistered($class)) {
74
            $migration = $this->getMigration($class);
75
            $migration->up();
76
            $this->db->insert($this->migrationTable, ['class' => $class]);
77
        }
78
    }
79
80
    /**
81
     * @param string $class migration class
@@ 84-92 (lines=9) @@
81
     * @param string $class migration class
82
     * @throws \Exception
83
     */
84
    public function unregister(string $class)
85
    {
86
        $this->initRegistry();
87
        if ($this->isRegistered($class)) {
88
            $migration = $this->getMigration($class);
89
            $migration->down();
90
            $this->db->delete($this->migrationTable, ['class' => $class]);
91
        }
92
    }
93
94
    /**
95
     * @return string