original_string: private function extractName($name) {
  		if (is_string($name)) {
  			return [$name, null];
  		}
  
  		if (is_array($name)) {
  			return [key($name), current($name)];
  		}
  
  		throw new ComponentRegisterException('The services\'s name must be a string or an array, ' . gettype($name) . ' given.');
  	}
code: private function extractName($name) {
  		if (is_string($name)) {
  			return [$name, null];
  		}
  
  		if (is_array($name)) {
  			return [key($name), current($name)];
  		}
  
  		throw new ComponentRegisterException('The services\'s name must be a string or an array, ' . gettype($name) . ' given.');
  	}
code_tokens: private function extractName ( $ name ) { if ( is_string ( $ name ) ) { return [ $ name , null ] ; } if ( is_array ( $ name ) ) { return [ key ( $ name ) , current ( $ name ) ] ; } throw new ComponentRegisterException ( 'The services\'s name must be a string or an array, ' . gettype ( $ name ) . ' given.' ) ; }
docstring: Extract Name and Aliases.
  
  @param string|array $name
  
  @return array [$name, $aliases]
docstring_tokens: Extract Name and Aliases .