]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/registry/connection/class_ConnectionRegistry.php
Changed all true/false to TRUE/FALSE respectively as PHP constants are better than...
[hub.git] / application / hub / main / registry / connection / class_ConnectionRegistry.php
index 4c786b3f9b61b8fa2972b4e9e9d1013ffbdfd752..11e43cdb284a1e2d7c9aa588455ec84350e830a8 100644 (file)
@@ -108,7 +108,7 @@ class ConnectionRegistry extends BaseRegistry implements Register, RegisterableC
 
        /**
         * Checks whether given socket resource is registered. If $socketResource is
-        * false only the instance will be checked.
+        * FALSE only the instance will be checked.
         *
         * @param       $connectionInstance             An instance of a ConnectionHelper class
         * @param       $socketResource                 A valid socket resource
@@ -185,7 +185,7 @@ class ConnectionRegistry extends BaseRegistry implements Register, RegisterableC
         */
        public function getRegisteredConnectionResource (ConnectionHelper $connectionInstance) {
                // The socket must be registered before we can return it
-               if (!$this->isConnectionRegistered($connectionInstance, false)) {
+               if (!$this->isConnectionRegistered($connectionInstance, FALSE)) {
                        // Throw the exception
                        throw new NoConnectionRegisteredException ($connectionInstance, self::CONNECTION_NOT_REGISTERED);
                } // END - if