diff --git a/autologout.api.php b/autologout.api.php
index 5b8def8..1871de1 100644
--- a/autologout.api.php
+++ b/autologout.api.php
@@ -31,7 +31,7 @@ function hook_autologout_prevent() {
  *
  * @return bool
  *   By returning TRUE from this function the JS which talks to autologout
- *   module is included in the current page request and peridoically dials
+ *   module is included in the current page request and periodically dials
  *   back to the server to keep the login alive.
  *   Return FALSE (or nothing) to just use the standard behaviour.
  */
diff --git a/autologout.module b/autologout.module
index 00d8782..28251bf 100644
--- a/autologout.module
+++ b/autologout.module
@@ -38,7 +38,7 @@ function autologout_help($path, $arg) {
 
 /**
  * Checks to see if timeout threshold is outside max/min values. Only done here
- * to centrilize and stop repeated code. Hard coded min, configurable max.
+ * to centralize and stop repeated code. Hard coded min, configurable max.
  *
  * @param int $timeout
  *   The timeout value in seconds to validate.
@@ -74,7 +74,7 @@ function autologout_form_user_form_alter(&$form, FormStateInterface $form_state)
   $access = FALSE;
 
   // If user has access to change, and they are changing their own and only
-  // thier own timeout. Or they are an admin.
+  // their own timeout. Or they are an admin.
   if (($user->hasPermission('change own logout threshold') && $current_uid == $userid) || $user->hasPermission('administer autologout')) {
     $access = TRUE;
   }
@@ -326,8 +326,6 @@ function _autologout_get_user_timeout($uid = NULL) {
     $user = User::load($uid);
   }
 
-  $uid = $user->id();
-
   if ($user->id() == 0) {
     // Anonymous doesn't get logged out.
     return 0;
diff --git a/src/Controller/AutologoutController.php b/src/Controller/AutologoutController.php
index cdbf7b5..24feb03 100644
--- a/src/Controller/AutologoutController.php
+++ b/src/Controller/AutologoutController.php
@@ -1,7 +1,7 @@
 <?php
 /**
  * @file
- * Contains \Drupal\autologout\Controller\AutologouteController.
+ * Contains \Drupal\autologout\Controller\AutologoutController.
  */
 
 namespace Drupal\autologout\Controller;
diff --git a/src/Form/AutologoutBlockForm.php b/src/Form/AutologoutBlockForm.php
index aab6dd0..6a82f73 100644
--- a/src/Form/AutologoutBlockForm.php
+++ b/src/Form/AutologoutBlockForm.php
@@ -11,7 +11,7 @@ use Drupal\Core\Form\ConfigFormBase;
 use Drupal\Core\Form\FormStateInterface;
 
 /**
- * Provides a settings for autologout modle.
+ * Provides a settings for autologout module.
  */
 class AutologoutBlockForm extends ConfigFormBase {
 
diff --git a/src/Form/AutologoutSettingsForm.php b/src/Form/AutologoutSettingsForm.php
index dd6ad89..1327ab1 100644
--- a/src/Form/AutologoutSettingsForm.php
+++ b/src/Form/AutologoutSettingsForm.php
@@ -11,7 +11,7 @@ use Drupal\Core\Form\ConfigFormBase;
 use Drupal\Core\Form\FormStateInterface;
 
 /**
- * Provides a settings for autologout modle.
+ * Provides a settings for autologout module.
  */
 class AutologoutSettingsForm extends ConfigFormBase {
 
diff --git a/tests/autologout.test b/tests/autologout.test
index 0cf2c82..41a0731 100644
--- a/tests/autologout.test
+++ b/tests/autologout.test
@@ -396,7 +396,7 @@ class AutologoutTestCase extends DrupalWebTestCase {
     // Set an admin page path.
     $_GET['q'] = 'admin';
 
-    // Check if user will be kept logged in on admin paths with enforce dsabled.
+    // Check if user will be kept logged in on admin paths with enforce disabled.
     variable_set('autologout_enforce_admin', FALSE);
     $this->assertEqual(autologout_autologout_refresh_only(), TRUE, t('Autologout does logout of admin pages without enforce on admin checked.'));
 
