original_string: protected function getConfig($services)
      {
          if ($this->config !== null) {
              return $this->config;
          }
  
          if (!$services->has('Config')) {
              $this->config = [];
  
              return $this->config;
          }
  
          $config = $services->get('Config');
          if (!isset($config['sphinxql'])
              || !is_array($config['sphinxql'])
          ) {
              $this->config = [];
  
              return $this->config;
          }
  
          $config = $config['sphinxql'];
          if (!isset($config['adapters'])
              || !is_array($config['adapters'])
          ) {
              $this->config = [];
  
              return $this->config;
          }
  
          $this->config = $config['adapters'];
  
          return $this->config;
      }
code: protected function getConfig($services)
      {
          if ($this->config !== null) {
              return $this->config;
          }
  
          if (!$services->has('Config')) {
              $this->config = [];
  
              return $this->config;
          }
  
          $config = $services->get('Config');
          if (!isset($config['sphinxql'])
              || !is_array($config['sphinxql'])
          ) {
              $this->config = [];
  
              return $this->config;
          }
  
          $config = $config['sphinxql'];
          if (!isset($config['adapters'])
              || !is_array($config['adapters'])
          ) {
              $this->config = [];
  
              return $this->config;
          }
  
          $this->config = $config['adapters'];
  
          return $this->config;
      }
code_tokens: protected function getConfig ( $ services ) { if ( $ this -> config !== null ) { return $ this -> config ; } if ( ! $ services -> has ( 'Config' ) ) { $ this -> config = [ ] ; return $ this -> config ; } $ config = $ services -> get ( 'Config' ) ; if ( ! isset ( $ config [ 'sphinxql' ] ) || ! is_array ( $ config [ 'sphinxql' ] ) ) { $ this -> config = [ ] ; return $ this -> config ; } $ config = $ config [ 'sphinxql' ] ; if ( ! isset ( $ config [ 'adapters' ] ) || ! is_array ( $ config [ 'adapters' ] ) ) { $ this -> config = [ ] ; return $ this -> config ; } $ this -> config = $ config [ 'adapters' ] ; return $ this -> config ; }
docstring: Get db configuration, if any
  
  @param  ServiceLocatorInterface|ContainerInterface $services
  @return array
docstring_tokens: Get db configuration if any