* @param $applicationInstance An application helper instance or
* null if we shall use the default
* @return $templateInstance The template engine instance
- * @throws NullPointerException If the template engine could not
- * be initialized
- * @throws UnsupportedTemplateEngineException If $templateInstance is an
- * unsupported template engine
* @throws NullPointerException If the discovered application
* instance is still null
*/
// Generate the class::method string
$methodName = 'UnknownClass->unknownMethod';
if ((isset($backtrace[1]['class'])) && (isset($backtrace[1]['function']))) {
- $methodName = $backtrace[1]['class']."->".$backtrace[1]['function'];
+ $methodName = $backtrace[1]['class'] . '->' . $backtrace[1]['function'];
} // END - if
// Construct the full message
$this->debugOutput($stubMessage);
} else {
// Trigger an error
- trigger_error($stubMessage."<br />\n");
+ trigger_error($stubMessage . "<br />\n");
}
}
if (is_object($debugInstance)) {
// Use debug output handler
$debugInstance->output($message);
- if ($doPrint === false) die(); // Die here if not printed
+
+ if ($doPrint === false) {
+ // Die here if not printed
+ die();
+ } // END - if
} else {
// Put directly out
if ($doPrint === true) {
$this->debugOutput($message);
} else {
// Trigger an error
- trigger_error($message."<br />\n");
+ trigger_error($message . "<br />\n");
}
} else {
// @TODO Finish this part!