Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Commit

Permalink
Updated spelling mistake of booleon to boolean [#2]
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Aug 29, 2012
1 parent bce64d8 commit 4ee3340
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 17 deletions.
10 changes: 5 additions & 5 deletions Strong/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(array $config) {
/**
* User login check based on provider
*
* @return booleon
* @return boolean
*/
abstract public function loggedIn();

Expand All @@ -47,16 +47,16 @@ abstract public function loggedIn();
*
* @param string $usernameOrEmail
* @param string $password
* @return booleon
* @return boolean
*/
abstract public function login($usernameOrEmail, $password);

/**
* Log user out by deleting session key values or
* deleting the session completely
*
* @param booleon $destroy
* @return booleon
* @param boolean $destroy
* @return boolean
*/
public function logout($destroy = false) {
if ($destroy === true) {
Expand Down Expand Up @@ -87,7 +87,7 @@ public function getUser() {
* Login and store user details in Session
*
* @param array $user
* @return booleon
* @return boolean
*/
protected function completeLogin($user) {
// Store session data
Expand Down
6 changes: 3 additions & 3 deletions Strong/Provider/Activerecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Strong_Provider_Activerecord extends Strong_Provider
/**
* User login check based on provider
*
* @return booleon
* @return boolean
*/
public function loggedIn() {
return (isset($_SESSION['auth_user']) && !empty($_SESSION['auth_user']));
Expand All @@ -28,7 +28,7 @@ public function loggedIn() {
*
* @param string $usernameOrEmail
* @param string $password
* @return booleon
* @return boolean
*/
public function login($usernameOrEmail, $password) {
if(! is_object($usernameOrEmail)) {
Expand All @@ -46,7 +46,7 @@ public function login($usernameOrEmail, $password) {
* Login and store user details in Session
*
* @param array $user
* @return booleon
* @return boolean
*/
protected function completeLogin($user) {
$users = User::find($user->id);
Expand Down
6 changes: 3 additions & 3 deletions Strong/Provider/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct($config)
/**
* User login check based on provider
*
* @return booleon
* @return boolean
*/
public function loggedIn()
{
Expand All @@ -56,7 +56,7 @@ public function loggedIn()
*
* @param string $usernameOrEmail
* @param string $password
* @return booleon
* @return boolean
*/
public function login($usernameOrEmail, $password)
{
Expand Down Expand Up @@ -86,7 +86,7 @@ public function hashPassword($password)
* Login and store user details in Session
*
* @param object $user
* @return booleon
* @return boolean
*/
protected function completeLogin($user)
{
Expand Down
22 changes: 16 additions & 6 deletions Strong/Strong.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function __construct($config = array())
/**
* User login check based on provider
*
* @return booleon
* @return boolean
*/
public function loggedIn()
{
Expand All @@ -127,7 +127,7 @@ public function loggedIn()
/**
* Protect a page, route, controller, url
* @param string $name
* @return booleon
* @return boolean
*/
public static function protect($name = 'default')
{
Expand All @@ -143,8 +143,8 @@ public static function protect($name = 'default')
*
* @param string $usernameOrEmail
* @param string $password
* @param booleon $remember
* @return booleon
* @param boolean $remember
* @return boolean
*/
public function login($usernameOrEmail, $password, $remember = false)
{
Expand All @@ -163,8 +163,8 @@ public function login($usernameOrEmail, $password, $remember = false)
* Log user out by deleting session key values or
* deleting the session completely
*
* @param booleon $destroy
* @return booleon
* @param boolean $destroy
* @return boolean
*/
public function logout($destroy = false)
{
Expand Down Expand Up @@ -193,6 +193,16 @@ public function setName($name)
self::$apps[$name] = $this;
}

/**
* Get Strong application name
*
* @return string|null
*/
public function getName()
{
return $this->name;
}

/**
* Set Config for Strong Auth
* @param array $config
Expand Down

0 comments on commit 4ee3340

Please sign in to comment.