Skip to content

Commit

Permalink
Fixed misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Jan 21, 2016
1 parent 8ee1de3 commit d38f243
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
10 changes: 5 additions & 5 deletions app/library/Acl/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Acl extends Component
private $acl;

/**
* The filepath of the ACL cache file from APP_DIR
* The file path of the ACL cache file from APP_DIR
*
* @var string
*/
Expand Down Expand Up @@ -95,7 +95,7 @@ public function isAllowed($profile, $controller, $action)
/**
* Returns the ACL list
*
* @return Phalcon\Acl\Adapter\Memory
* @return \Phalcon\Acl\Adapter\Memory
*/
public function getAcl()
{
Expand Down Expand Up @@ -147,7 +147,7 @@ public function getPermissions(Profiles $profile)
}

/**
* Returns all the resoruces and their actions available in the application
* Returns all the resources and their actions available in the application
*
* @return array
*/
Expand All @@ -160,7 +160,7 @@ public function getResources()
* Returns the action description according to its simplified name
*
* @param string $action
* @return $action
* @return string
*/
public function getActionDescription($action)
{
Expand Down Expand Up @@ -193,7 +193,7 @@ public function rebuild()
$acl->addResource(new AclResource($resource), $actions);
}

// Grant acess to private area to role Users
// Grant access to private area to role Users
foreach ($profiles as $profile) {

// Grant permissions in "permissions" model
Expand Down
24 changes: 14 additions & 10 deletions app/library/Auth/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
*/
class Auth extends Component
{

/**
* Checks the user credentials
*
* @param array $credentials
* @return boolan
* @return boolean
* @throws Exception
*/
public function check($credentials)
{
Expand All @@ -44,7 +44,7 @@ public function check($credentials)

// Check if the remember me was selected
if (isset($credentials['remember'])) {
$this->createRememberEnviroment($user);
$this->createRememberEnvironment($user);
}

$this->session->set('auth-identity', array(
Expand All @@ -57,7 +57,8 @@ public function check($credentials)
/**
* Creates the remember me environment settings the related cookies and generating tokens
*
* @param Vokuro\Models\Users $user
* @param \Vokuro\Models\Users $user
* @throws Exception
*/
public function saveSuccessLogin($user)
{
Expand All @@ -73,7 +74,7 @@ public function saveSuccessLogin($user)

/**
* Implements login throttling
* Reduces the efectiveness of brute force attacks
* Reduces the effectiveness of brute force attacks
*
* @param int $userId
*/
Expand Down Expand Up @@ -111,9 +112,9 @@ public function registerUserThrottling($userId)
/**
* Creates the remember me environment settings the related cookies and generating tokens
*
* @param Vokuro\Models\Users $user
* @param \Vokuro\Models\Users $user
*/
public function createRememberEnviroment(Users $user)
public function createRememberEnvironment(Users $user)
{
$userAgent = $this->request->getUserAgent();
$token = md5($user->email . $user->password . $userAgent);
Expand Down Expand Up @@ -141,9 +142,9 @@ public function hasRememberMe()
}

/**
* Logs on using the information in the coookies
* Logs on using the information in the cookies
*
* @return Phalcon\Http\Response
* @return \Phalcon\Http\Response
*/
public function loginWithRememberMe()
{
Expand Down Expand Up @@ -198,7 +199,8 @@ public function loginWithRememberMe()
/**
* Checks if the user is banned/inactive/suspended
*
* @param Vokuro\Models\Users $user
* @param \Vokuro\Models\Users $user
* @throws Exception
*/
public function checkUserFlags(Users $user)
{
Expand Down Expand Up @@ -255,6 +257,7 @@ public function remove()
* Auths the user by his/her id
*
* @param int $id
* @throws Exception
*/
public function authUserById($id)
{
Expand All @@ -276,6 +279,7 @@ public function authUserById($id)
* Get the entity related to user in the active identity
*
* @return \Vokuro\Models\Users
* @throws Exception
*/
public function getUser()
{
Expand Down
4 changes: 2 additions & 2 deletions app/models/EmailConfirmations.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class EmailConfirmations extends Model
*/
public function beforeValidationOnCreate()
{
// Timestamp the confirmaton
// Timestamp the confirmation
$this->createdAt = time();

// Generate a random confirmation code
Expand All @@ -58,7 +58,7 @@ public function beforeValidationOnCreate()
*/
public function beforeValidationOnUpdate()
{
// Timestamp the confirmaton
// Timestamp the confirmation
$this->modifiedAt = time();
}

Expand Down

0 comments on commit d38f243

Please sign in to comment.