Code Duplication    Length = 8-9 lines in 2 locations

src/Ffcms/Core/Migrations/Migration.php 2 locations

@@ 35-43 (lines=9) @@
32
    /**
33
     * Insert data into migration table
34
     */
35
    public function up()
36
    {
37
        $record = new MigrationRecord();
38
        if ($this->connection !== null) {
39
            $record->setConnection($this->connection);
40
        }
41
        $record->migration = $this->name;
42
        $record->save();
43
    }
44
45
    /**
46
     * Remove data from migration table
@@ 48-55 (lines=8) @@
45
    /**
46
     * Remove data from migration table
47
     */
48
    public function down()
49
    {
50
        $record = new MigrationRecord();
51
        if ($this->connection !== null) {
52
            $record->setConnection($this->connection);
53
        }
54
        $record->where('migration', $this->name)->delete();
55
    }
56
57
    /**
58
     * Set connection name