Code Duplication    Length = 9-9 lines in 2 locations

forms/ResetPassword.php 2 locations

@@ 130-138 (lines=9) @@
127
     * Validates the authenticated users state
128
     * @inheritdoc
129
     */
130
    public function validateAuthUser($attributes, $params)
131
    {
132
        if (!$this->hasErrors()) {
133
            if ($this->getUser() === null) {
134
                $this->addError('email', Yii::t('yrc', 'The provided email address is not valid.'));
135
                return;
136
            }
137
        }
138
    }
139
140
    /**
141
     * Validates the users email
@@ 144-152 (lines=9) @@
141
     * Validates the users email
142
     * @inheritdoc
143
     */
144
    public function validateUser($attributes, $params)
145
    {
146
        if (!$this->hasErrors()) {
147
            if ($this->getUser() === null) {
148
                $this->addError('email', Yii::t('yrc', 'The provided email address is not valid'));
149
                return;
150
            }
151
        }
152
    }
153
154
    /**
155
     * Reset token validator