original_string: public static function findByPasswordResetToken($token)
      {
          $expire = Yii::$app->params['user.passwordResetTokenExpire'];
          $parts = explode('_', $token);
          $timestamp = (int) end($parts);
          if ($timestamp + $expire < time()) {
              // token expired
              return null;
          }
  
          return static::findOne([
              'password_reset_token' => $token,
              'status' => self::STATUS_ACTIVE,
          ]);
      }
code: public static function findByPasswordResetToken($token)
      {
          $expire = Yii::$app->params['user.passwordResetTokenExpire'];
          $parts = explode('_', $token);
          $timestamp = (int) end($parts);
          if ($timestamp + $expire < time()) {
              // token expired
              return null;
          }
  
          return static::findOne([
              'password_reset_token' => $token,
              'status' => self::STATUS_ACTIVE,
          ]);
      }
code_tokens: public static function findByPasswordResetToken ( $ token ) { $ expire = Yii :: $ app -> params [ 'user.passwordResetTokenExpire' ] ; $ parts = explode ( '_' , $ token ) ; $ timestamp = ( int ) end ( $ parts ) ; if ( $ timestamp + $ expire < time ( ) ) { // token expired return null ; } return static :: findOne ( [ 'password_reset_token' => $ token , 'status' => self :: STATUS_ACTIVE , ] ) ; }
docstring: Finds user by password reset token
  
  @param string $token password reset token
  @return static|null
docstring_tokens: Finds user by password reset token