Code Duplication    Length = 8-8 lines in 2 locations

models/LoginForm.php 1 location

@@ 52-59 (lines=8) @@
49
    /**
50
     * @inheritdoc
51
     */
52
    public function attributeLabels()
53
    {
54
        return [
55
            'email' => Yii::t('yii2mod.user', 'Email'),
56
            'password' => Yii::t('yii2mod.user', 'Password'),
57
            'rememberMe' => Yii::t('yii2mod.user', 'Remember Me'),
58
        ];
59
    }
60
61
    /**
62
     * Validates the password.

models/SignupForm.php 1 location

@@ 60-67 (lines=8) @@
57
    /**
58
     * @inheritdoc
59
     */
60
    public function attributeLabels()
61
    {
62
        return [
63
            'username' => Yii::t('yii2mod.user', 'Username'),
64
            'email' => Yii::t('yii2mod.user', 'Email'),
65
            'password' => Yii::t('yii2mod.user', 'Password'),
66
        ];
67
    }
68
69
    /**
70
     * Signs user up.