original_string: public function cleanEmail($email)
      {
          $response = $this->query($this->prepareUri('clean/email'), [$email]);
          $result = $this->populate(new Email, $response);
          if (!$result instanceof Email) {
              throw new RuntimeException('Unexpected populate result: ' . get_class($result). '. Expected: ' . Email::class);
          }
  
          return $result;
      }
code: public function cleanEmail($email)
      {
          $response = $this->query($this->prepareUri('clean/email'), [$email]);
          $result = $this->populate(new Email, $response);
          if (!$result instanceof Email) {
              throw new RuntimeException('Unexpected populate result: ' . get_class($result). '. Expected: ' . Email::class);
          }
  
          return $result;
      }
code_tokens: public function cleanEmail ( $ email ) { $ response = $ this -> query ( $ this -> prepareUri ( 'clean/email' ) , [ $ email ] ) ; $ result = $ this -> populate ( new Email , $ response ) ; if ( ! $ result instanceof Email ) { throw new RuntimeException ( 'Unexpected populate result: ' . get_class ( $ result ) . '. Expected: ' . Email :: class ) ; } return $ result ; }
docstring: Cleans email.
  
  @param string $email
  
  @return Email
  @throws RuntimeException
  @throws InvalidArgumentException
docstring_tokens: Cleans email .