original_string: public function validateCurrentPassword($attribute)
      {
          if (!$this->hasErrors()) {
              if (!$this->validatePassword($this->currentPassword)) {
                  $this->addError($attribute, Yii::t('podium/view', 'Current password is incorrect.'));
              }
          }
      }
code: public function validateCurrentPassword($attribute)
      {
          if (!$this->hasErrors()) {
              if (!$this->validatePassword($this->currentPassword)) {
                  $this->addError($attribute, Yii::t('podium/view', 'Current password is incorrect.'));
              }
          }
      }
code_tokens: public function validateCurrentPassword ( $ attribute ) { if ( ! $ this -> hasErrors ( ) ) { if ( ! $ this -> validatePassword ( $ this -> currentPassword ) ) { $ this -> addError ( $ attribute , Yii :: t ( 'podium/view' , 'Current password is incorrect.' ) ) ; } } }
docstring: Validates current password.
  @param string $attribute
docstring_tokens: Validates current password .