original_string: protected function getTargets(array $config)
      {
          if (!isset($config['targets'])
              || !is_array($config['targets'])
              || array_filter($config['targets'], 'is_array') != $config['targets']) {
              throw new \DomainException(
                  'targets must be an array of arrays',
                  self::ERR_TARGETS_INVALID
              );
          }
          return $config['targets'];
      }
code: protected function getTargets(array $config)
      {
          if (!isset($config['targets'])
              || !is_array($config['targets'])
              || array_filter($config['targets'], 'is_array') != $config['targets']) {
              throw new \DomainException(
                  'targets must be an array of arrays',
                  self::ERR_TARGETS_INVALID
              );
          }
          return $config['targets'];
      }
code_tokens: protected function getTargets ( array $ config ) { if ( ! isset ( $ config [ 'targets' ] ) || ! is_array ( $ config [ 'targets' ] ) || array_filter ( $ config [ 'targets' ] , 'is_array' ) != $ config [ 'targets' ] ) { throw new \ DomainException ( 'targets must be an array of arrays' , self :: ERR_TARGETS_INVALID ) ; } return $ config [ 'targets' ] ; }
docstring: Extracts targets from configuration.
  
  @param array $config
  @return array
  @throws \DomainException if targets setting is invalid
docstring_tokens: Extracts targets from configuration .