// Is the username set?
if (is_null($userName)) {
// Not found in form so stop the filtering process
- $requestInstance->requestIsValid(FALSE);
+ $requestInstance->requestIsValid(false);
// Add a message to the response
$responseInstance->addFatalMessage('username_guest_unset');
throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
} elseif (empty($userName)) {
// Empty field!
- $requestInstance->requestIsValid(FALSE);
+ $requestInstance->requestIsValid(false);
// Add a message to the response
$responseInstance->addFatalMessage('username_guest_empty');
// Abort here
throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
- } elseif ($this->ifUserGuestIsTaken($userName) === FALSE) {
+ } elseif ($this->ifUserGuestIsTaken($userName) === false) {
// Username is already taken
- $requestInstance->requestIsValid(FALSE);
+ $requestInstance->requestIsValid(false);
// Add a message to the response
$responseInstance->addFatalMessage('username_guest_not_found');
*/
private function ifUserGuestIsTaken ($userName) {
// Default is already taken
- $alreadyTaken = TRUE;
+ $alreadyTaken = true;
// Initialize instance
$userInstance = NULL;
}
// Does the username exist?
- if ((is_null($userInstance)) || ($userInstance->ifUsernameExists() === FALSE)) {
+ if ((is_null($userInstance)) || ($userInstance->ifUsernameExists() === false)) {
// This username is still available
- $alreadyTaken = FALSE;
+ $alreadyTaken = false;
}
// Return the result