Code Duplication    Length = 8-8 lines in 2 locations

src/validators/LoginValidator.php 1 location

@@ 23-30 (lines=8) @@
20
     */
21
    public $passwordAttribute = 'current_password';
22
23
    public function init()
24
    {
25
        parent::init();
26
        if ($this->message !== null) {
27
            return;
28
        }
29
        $this->message = Yii::t('hiam', 'Incorrect login');
30
    }
31
32
    /**
33
     * {@inheritdoc}

src/validators/PasswordValidator.php 1 location

@@ 23-30 (lines=8) @@
20
     */
21
    public $passwordAttribute = 'current_password';
22
23
    public function init()
24
    {
25
        parent::init();
26
        if ($this->message !== null) {
27
            return;
28
        }
29
        $this->message = Yii::t('hiam', 'The current password is incorrect');
30
    }
31
32
    /**
33
     * {@inheritdoc}