$dbgMsg = "<br />\nDebug backtrace begin:<br />\n";
foreach ($dbgTrace as $dbgIndex => $dbgInfo) {
// No info by default
- $info = "NULL";
+ $info = 'NULL';
// Are there arguments?
if ((isset($dbgInfo['args'])) && (is_array($dbgInfo['args'])) && (isset($dbgInfo['args'][0]))) {
} // END - if
// Prepare argument infos
- $info = "<em id=\"debug_args_".$dbgIndex."\">{$info}</em>";
+ $info = '<em id="debug_args_' . $dbgIndex . '">' . $info . '</em>';
// File detection
- $file = "Unknown file";
+ $file = 'Unknown file';
if (isset($dbgInfo['file'])) {
$file = basename($dbgInfo['file']);
} // END - if
// Line detection
- $line = "Unknown line";
+ $line = 'Unknown line';
if (isset($dbgInfo['line'])) {
- $line = "line {$dbgInfo['line']}";
+ $line = 'line ' . $dbgInfo['line'];
} // END - if
// The message
/**
* Setter for resolver instance
*
- * @param $resolverInstance Instance of a command resolver class
+ * @param $resolverInstance Instance of a command resolver class
* @return void
*/
public final function setResolverInstance (Resolver $resolverInstance) {
/**
* Getter for resolver instance
*
- * @return $resolverInstance Instance of a command resolver class
+ * @return $resolverInstance Instance of a command resolver class
*/
public final function getResolverInstance () {
return $this->resolverInstance;
return $result;
}
+ /**
+ * Generates a generic hash code of this class. You should really overwrite
+ * this method with your own hash code generator code. But keep KISS in mind.
+ *
+ * @return $hashCode A generic hash code respresenting this whole class
+ */
+ public function hashCode () {
+ // Simple hash code
+ return crc32($this->__toString());
+ }
+
/**
* Formats computer generated price values into human-understandable formats
* with thousand and decimal seperators.
}
}
- /**
- * Generates a generic hash code of this class. You should really overwrite
- * this method with your own hash code generator code. But keep KISS in mind.
- *
- * @return $hashCode A generic hash code respresenting this whole class
- */
- public function hashCode () {
- // Simple hash code
- return crc32($this->__toString());
- }
-
/**
* Checks wether the given PHP extension is loaded
*