original_string: public function check($domain)
      {
          return $this->client
              ->query($domain)
              ->then(function ($result) use ($domain) {
                  return Factory::create($domain, $result)->isAvailable();
              });
      }
code: public function check($domain)
      {
          return $this->client
              ->query($domain)
              ->then(function ($result) use ($domain) {
                  return Factory::create($domain, $result)->isAvailable();
              });
      }
code_tokens: public function check ( $ domain ) { return $ this -> client -> query ( $ domain ) -> then ( function ( $ result ) use ( $ domain ) { return Factory :: create ( $ domain , $ result ) -> isAvailable ( ) ; } ) ; }
docstring: Checks domain availability.
  
  @param string $domain
docstring_tokens: Checks domain availability .