Code Duplication    Length = 14-14 lines in 2 locations

migrations/m170127_102220_change_recovery_template.php 2 locations

@@ 7-20 (lines=14) @@
4
5
class m170127_102220_change_recovery_template extends Migration
6
{
7
    public function up()
8
    {
9
        $this->delete('mail_templates', ['key' => 'CHANGE_PASSWORD']);
10
11
        $this->insert('mail_templates', [
12
            'key' => 'RECOVERY_PASSWORD',
13
            'body' => '<p>Hello, {{name}}!</p>'
14
                . '<p>To change your password, click here please {{link}}.</p>'
15
                . '<p>After setting new password you will be automatically logged in.</p>',
16
            'updated_at' => date('Y-m-d H:i:s'),
17
            'name' => 'Password recovery',
18
            'subject' => 'Password recovery'
19
        ]);
20
    }
21
22
    public function down()
23
    {
@@ 22-35 (lines=14) @@
19
        ]);
20
    }
21
22
    public function down()
23
    {
24
        $this->delete('mail_templates', ['key' => 'RECOVERY_PASSWORD']);
25
26
        $this->insert('mail_templates', [
27
            'key' => 'CHANGE_PASSWORD',
28
            'body' => '<p>Hello, {{name}}!</p>'
29
                . '<p>To change your password, click here please {{link}}.</p>'
30
                . '<p>After setting new password you will be automatically logged in.</p>',
31
            'updated_at' => date('Y-m-d H:i:s'),
32
            'name' => 'Password recovery',
33
            'subject' => 'Password recovery'
34
        ]);
35
    }
36
}
37