Code Duplication    Length = 3-3 lines in 2 locations

migrations/m161119_153348_alter_cart_data.php 2 locations

@@ 9-11 (lines=3) @@
6
{
7
    public function up()
8
    {
9
        if ($this->db->driverName === 'mysql' || $this->db->driverName === 'mariadb') {
10
            $this->alterColumn('{{%cart}}', 'cartData', 'longtext');
11
        }
12
    }
13
14
    public function down()
@@ 16-18 (lines=3) @@
13
14
    public function down()
15
    {
16
        if ($this->db->driverName === 'mysql' || $this->db->driverName === 'mariadb') {
17
            $this->alterColumn('{{%cart}}', 'cartData', $this->text());
18
        }
19
    }
20
}
21