original_string: public function isAvailable()
      {
          try {
              /** @var Response $result */
              $result = $this->get('/', $this->getGuzzleOptions());
  
              if ($result->getStatusCode() == 200) {
                  return true;
              }
          } catch (RequestException $ex) {
              $msg = sprintf("Tika unavailable - %s", $ex->getMessage());
              Injector::inst()->get(LoggerInterface::class)->info($msg);
  
              return false;
          }
      }
code: public function isAvailable()
      {
          try {
              /** @var Response $result */
              $result = $this->get('/', $this->getGuzzleOptions());
  
              if ($result->getStatusCode() == 200) {
                  return true;
              }
          } catch (RequestException $ex) {
              $msg = sprintf("Tika unavailable - %s", $ex->getMessage());
              Injector::inst()->get(LoggerInterface::class)->info($msg);
  
              return false;
          }
      }
code_tokens: public function isAvailable ( ) { try { /** @var Response $result */ $ result = $ this -> get ( '/' , $ this -> getGuzzleOptions ( ) ) ; if ( $ result -> getStatusCode ( ) == 200 ) { return true ; } } catch ( RequestException $ ex ) { $ msg = sprintf ( "Tika unavailable - %s" , $ ex -> getMessage ( ) ) ; Injector :: inst ( ) -> get ( LoggerInterface :: class ) -> info ( $ msg ) ; return false ; } }
docstring: Detect if the service is available
  
  @return bool
docstring_tokens: Detect if the service is available