original_string: public function getAdapter()
      {
          if (!$this->adapter) {
              throw new Exception\RuntimeException(sprintf(
                  '"%s" unable to load adapter; adapter not found',
                  __METHOD__
              ));
          }
          if (method_exists($this->adapter, 'setOptions')) {
              $this->adapter->setOptions($this->getAdapterOptions());
          }
  
          return $this->adapter;
      }
code: public function getAdapter()
      {
          if (!$this->adapter) {
              throw new Exception\RuntimeException(sprintf(
                  '"%s" unable to load adapter; adapter not found',
                  __METHOD__
              ));
          }
          if (method_exists($this->adapter, 'setOptions')) {
              $this->adapter->setOptions($this->getAdapterOptions());
          }
  
          return $this->adapter;
      }
code_tokens: public function getAdapter ( ) { if ( ! $ this -> adapter ) { throw new Exception \ RuntimeException ( sprintf ( '"%s" unable to load adapter; adapter not found' , __METHOD__ ) ) ; } if ( method_exists ( $ this -> adapter , 'setOptions' ) ) { $ this -> adapter -> setOptions ( $ this -> getAdapterOptions ( ) ) ; } return $ this -> adapter ; }
docstring: Returns the current adapter
  
  @return ConversionAlgorithmInterface
  @throws Exception\RuntimeException
docstring_tokens: Returns the current adapter