}
$defaultContainer = self::DEFAULT_PATH;
- if ($value && $value{0} == '[' && preg_match(';^\[([a-zA-Z0-9\._]+)\]/(.*);', $value, $matches)) {
+ if ($value && $value[0] == '[' && preg_match(';^\[([a-zA-Z0-9\._]+)\]/(.*);', $value, $matches)) {
$defaultContainer = $matches[1];
$value = $matches[2];
}
* The result data may not meet the preference -- if the setting
* refers to an external domain, then the result will be
* absolute (regardless of preference).
- * @param bool|NULL $ssl
+ * @param bool|null $ssl
* NULL to autodetect. TRUE to force to SSL.
* @return FALSE|string
* The URL for $value (string), or FALSE if the $value is not specified.
}
$defaultContainer = self::DEFAULT_URL;
- if ($value && $value{0} == '[' && preg_match(';^\[([a-zA-Z0-9\._]+)\](/(.*))$;', $value, $matches)) {
+ if ($value && $value[0] == '[' && preg_match(';^\[([a-zA-Z0-9\._]+)\](/(.*))$;', $value, $matches)) {
$defaultContainer = $matches[1];
$value = $matches[3];
}