original_string: public static function findByEmailToken($token)
      {
          if (!static::isEmailTokenValid($token)) {
              return null;
          }
          return static::find()->where(['email_token' => $token, 'status' => self::STATUS_ACTIVE])->limit(1)->one();
      }
code: public static function findByEmailToken($token)
      {
          if (!static::isEmailTokenValid($token)) {
              return null;
          }
          return static::find()->where(['email_token' => $token, 'status' => self::STATUS_ACTIVE])->limit(1)->one();
      }
code_tokens: public static function findByEmailToken ( $ token ) { if ( ! static :: isEmailTokenValid ( $ token ) ) { return null ; } return static :: find ( ) -> where ( [ 'email_token' => $ token , 'status' => self :: STATUS_ACTIVE ] ) -> limit ( 1 ) -> one ( ) ; }
docstring: Finds active user by email token.
  @param string $token activation token
  @return static|null
docstring_tokens: Finds active user by email token .