]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/user/class_BaseUser.php
Added assert, all arrays are empty initialized now
[core.git] / inc / classes / main / user / class_BaseUser.php
index 1cb55b42e1f884f725925db749d5c3ba85d8a192..e4f795d58873ee77807b5554a92048326d057cf6 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -112,9 +112,9 @@ class BaseUser extends BaseFrameworkSystem implements Updateable {
        }
 
        /**
-        * Determines wether the username exists or not
+        * Determines whether the username exists or not
         *
-        * @return      $exists         Wether the username exists
+        * @return      $exists         Whether the username exists
         */
        public function ifUsernameExists () {
                // By default the username does not exist
@@ -156,9 +156,9 @@ class BaseUser extends BaseFrameworkSystem implements Updateable {
        }
 
        /**
-        * Determines wether the email exists or not
+        * Determines whether the email exists or not
         *
-        * @return      $exists         Wether the email exists
+        * @return      $exists         Whether the email exists
         */
        public function ifEmailAddressExists () {
                // By default the email does not exist
@@ -213,7 +213,7 @@ class BaseUser extends BaseFrameworkSystem implements Updateable {
         * database.
         *
         * @param       $requestInstance        A requestable class instance
-        * @return      $matches                        Wether the supplied password hash matches
+        * @return      $matches                        Whether the supplied password hash matches
         */
        public function ifPasswordHashMatches (Requestable $requestInstance) {
                // By default nothing matches... ;)
@@ -265,7 +265,7 @@ class BaseUser extends BaseFrameworkSystem implements Updateable {
         */
        public final function getPasswordHash () {
                // Default is missing password hash
-               $passHash = null;
+               $passHash = NULL;
 
                // Get a database entry
                $entry = $this->getDatabaseEntry();