// Is the extra message given?
if (!empty($message)) {
// Then add it as well
- $stubMessage .= sprintf(' Message: <span id="stub_message">%s</span>', $message);
+ $stubMessage .= ' Message: ' . $message;
} // END - if
// Debug instance is there?
$this->debugOutput($stubMessage);
} else {
// Trigger an error
- trigger_error($stubMessage . '<br />' . chr(10));
+ trigger_error($stubMessage);
}
}
*/
protected function resolveIpAddress ($hostname) {
// Debug message
- $this->debugOutput(sprintf("[%s:] Our host name is: <span class=\"data\">%s</span>",
+ $this->debugOutput(sprintf('[%s:] Our host name is: %s',
$this->__toString(),
$hostname
));
$ip = $ipResolved;
// Debug message
- $this->debugOutput(sprintf("[%s:] Resolved IP address is: <span class=\"data\">%s</span>\n",
+ $this->debugOutput(sprintf('[%s:] Resolved IP address is: %s',
$this->__toString(),
$ip
));
} else {
// Problem while resolving IP address
- $this->debugOutput(sprintf("[%s:] Problem resolving IP address for host <span class=\"data\">%s</span>. Please check your /etc/hosts file.",
+ $this->debugOutput(sprintf('[%s:] Problem resolving IP address for host %s. Please check your /etc/hosts file.',
$this->__toString(),
$hostname
));
$ip = $helperInstance->resolveIpAddress($_SERVER['COMPUTERNAME']);
} else {
// Could not find our hostname
- $helperInstance->debugOutput(sprintf("[%s:] WARNING: Cannot resolve my own IP address.",
+ $helperInstance->debugOutput(sprintf('[%s:] WARNING: Cannot resolve my own IP address.',
$helperInstance->__toString()
));
}
} catch (FrameworkException $e) {
// Output debug message
- $helperInstance->debugOutput(sprintf("[%s:] Problem while resolving own IP address: [%s|%s]:%s",
+ $helperInstance->debugOutput(sprintf('[%s:] Problem while resolving own IP address: [%s|%s]:%s',
$helperInstance->__toString(),
$e->__toString(),
$e->getHexCode(),
} // END - if
} else {
// Invalid count!
- throw new InvalidArrayCountException(array($this, "data", count($data), 2), self::EXCEPTION_ARRAY_HAS_INVALID_COUNT);
+ throw new InvalidArrayCountException(array($this, 'data', count($data), 2), self::EXCEPTION_ARRAY_HAS_INVALID_COUNT);
}
// Add this to the readData string