]> git.mxchange.org Git - core.git/blobdiff - inc/classes/exceptions/class_FrameworkException.php
Some rewrites of double-quote to single-quote
[core.git] / inc / classes / exceptions / class_FrameworkException.php
index c3a2c1a38ff395788fb3eb187d1038ba6b0e217c..f3a42895eaf2dcba6a719a394203c5d4acfe0f58 100644 (file)
@@ -6,7 +6,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007 - 2009 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -32,7 +32,7 @@ abstract class FrameworkException extends ReflectionException {
        /**
         * Extra data
         */
-       private $extraData = "";
+       private $extraData = '';
 
        /**
         * The super constructor for all exceptions
@@ -41,7 +41,7 @@ abstract class FrameworkException extends ReflectionException {
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct($message, $code = 0) {
+       public function __construct ($message, $code = 0) {
                // Extract backtrace
                $this->saveBackTrace();
 
@@ -118,14 +118,15 @@ abstract class FrameworkException extends ReflectionException {
                        // Are there arguments?
                        if ((isset($dbgInfo['args'])) && (is_array($dbgInfo['args'])) && (isset($dbgInfo['args'][0]))) {
                                //* DEBUG: */ echo $dbgIndex.": <pre>".htmlentities(print_r($dbgInfo['args'], true))."</pre>";
-                               $info = "";
+                               $info = '';
                                foreach ($dbgInfo['args'] as $debug) {
                                        // Add only non-array elements
                                        if (!is_array($debug)) {
                                                $info .= $debug.", ";
                                        } // END - if
-                               } // END - if
+                               } // END - foreach
 
+                               // Remove last chars (commata, space)
                                $info = substr($info, 0, -2);
                        } // END - if
 
@@ -147,8 +148,11 @@ abstract class FrameworkException extends ReflectionException {
                        // The message
                        $dbgMsg .= "\t at <em id=\"debug_id_".$dbgIndex."\">".$dbgIndex."</em> <em id=\"debug_file_".$dbgIndex."\">".$file."</em> (<em id=\"debug_line_".$dbgIndex."\">".$line."</em>) -&gt; ".$dbgInfo['function']."(".$info.")<br />\n";
                } // END - if
+
+               // Add end-message
                $dbgMsg .= "Debug backtrace end<br />\n";
 
+               // Return full debug message
                return $dbgMsg;
        }