original_string: protected function parseHosts(array $config)
      {
          $hosts = Arr::wrap($config['host']);
  
          if (empty($hosts)) {
              throw new InvalidArgumentException('Database hosts array is empty.');
          }
  
          return $hosts;
      }
code: protected function parseHosts(array $config)
      {
          $hosts = Arr::wrap($config['host']);
  
          if (empty($hosts)) {
              throw new InvalidArgumentException('Database hosts array is empty.');
          }
  
          return $hosts;
      }
code_tokens: protected function parseHosts ( array $ config ) { $ hosts = Arr :: wrap ( $ config [ 'host' ] ) ; if ( empty ( $ hosts ) ) { throw new InvalidArgumentException ( 'Database hosts array is empty.' ) ; } return $ hosts ; }
docstring: Parse the hosts configuration item into an array.
  
  @param  array  $config
  @return array
docstring_tokens: Parse the hosts configuration item into an array .