original_string: public static function cmpIP($baseIP, $list) {
  		$list = trim($list);
  		if ($list === '') {
  			return FALSE;
  		} elseif ($list === '*') {
  			return TRUE;
  		}
  		if (strpos($baseIP, ':') !== FALSE && self::validIPv6($baseIP)) {
  			return self::cmpIPv6($baseIP, $list);
  		} else {
  			return self::cmpIPv4($baseIP, $list);
  		}
  	}
code: public static function cmpIP($baseIP, $list) {
  		$list = trim($list);
  		if ($list === '') {
  			return FALSE;
  		} elseif ($list === '*') {
  			return TRUE;
  		}
  		if (strpos($baseIP, ':') !== FALSE && self::validIPv6($baseIP)) {
  			return self::cmpIPv6($baseIP, $list);
  		} else {
  			return self::cmpIPv4($baseIP, $list);
  		}
  	}
code_tokens: public static function cmpIP ( $ baseIP , $ list ) { $ list = trim ( $ list ) ; if ( $ list === '' ) { return FALSE ; } elseif ( $ list === '*' ) { return TRUE ; } if ( strpos ( $ baseIP , ':' ) !== FALSE && self :: validIPv6 ( $ baseIP ) ) { return self :: cmpIPv6 ( $ baseIP , $ list ) ; } else { return self :: cmpIPv4 ( $ baseIP , $ list ) ; } }
docstring: Match IP number with list of numbers with wildcard
  Dispatcher method for switching into specialised IPv4 and IPv6 methods.
  
  @param string $baseIP is the current remote IP address for instance, typ. REMOTE_ADDR
  @param string $list is a comma-list of IP-addresses to match with. *-wildcard allowed instead of number, plus leaving out parts in the IP number is accepted as wildcard (eg. 192.168.*.* equals 192.168). If list is "*" no check is done and the function returns TRUE immediately. An empty list always returns FALSE.
  @return boolean TRUE if an IP-mask from $list matches $baseIP
docstring_tokens: Match IP number with list of numbers with wildcard Dispatcher method for switching into specialised IPv4 and IPv6 methods .