From d38f2432d997499c65ff1e9aebda0f033ab65598 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Fri, 22 Jan 2016 00:38:51 +0200 Subject: [PATCH] Fixed misspelling --- app/library/Acl/Acl.php | 10 +++++----- app/library/Auth/Auth.php | 24 ++++++++++++++---------- app/models/EmailConfirmations.php | 4 ++-- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/app/library/Acl/Acl.php b/app/library/Acl/Acl.php index ddb10984..96360f2e 100644 --- a/app/library/Acl/Acl.php +++ b/app/library/Acl/Acl.php @@ -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 */ @@ -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() { @@ -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 */ @@ -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) { @@ -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 diff --git a/app/library/Auth/Auth.php b/app/library/Auth/Auth.php index 86ca9171..0b4b208e 100644 --- a/app/library/Auth/Auth.php +++ b/app/library/Auth/Auth.php @@ -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) { @@ -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( @@ -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) { @@ -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 */ @@ -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); @@ -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() { @@ -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) { @@ -255,6 +257,7 @@ public function remove() * Auths the user by his/her id * * @param int $id + * @throws Exception */ public function authUserById($id) { @@ -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() { diff --git a/app/models/EmailConfirmations.php b/app/models/EmailConfirmations.php index ca660e49..337e1f3f 100644 --- a/app/models/EmailConfirmations.php +++ b/app/models/EmailConfirmations.php @@ -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 @@ -58,7 +58,7 @@ public function beforeValidationOnCreate() */ public function beforeValidationOnUpdate() { - // Timestamp the confirmaton + // Timestamp the confirmation $this->modifiedAt = time(); }