Some methods moved, speed improved
authorRoland Häder <roland@mxchange.org>
Thu, 11 Nov 2010 18:31:46 +0000 (18:31 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 11 Nov 2010 18:31:46 +0000 (18:31 +0000)
inc/classes/exceptions/class_FrameworkException.php
inc/classes/main/class_BaseFrameworkSystem.php

index 3b7a3c9f48a163cf979738bbe4bb518326f0fef5..4f79738b4168e8a7d32404b5fa85910b5f947d25 100644 (file)
@@ -114,7 +114,7 @@ abstract class FrameworkException extends ReflectionException {
                $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]))) {
@@ -132,18 +132,18 @@ abstract class FrameworkException extends ReflectionException {
                        } // 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
index 15acea160f4403cfc998d215ab1746f4c3e1ebdd..7fa4374d41d6c735efcdf5bb541faa6e2f0b06ea 100644 (file)
@@ -375,7 +375,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /**
         * 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) {
@@ -385,7 +385,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /**
         * 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;
@@ -598,6 +598,17 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                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.
@@ -1147,17 +1158,6 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                }
        }
 
-       /**
-        * 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
         *