diff --git a/improved_multi_select.info.yml b/improved_multi_select.info.yml
index 068f299..f077d4c 100755
--- a/improved_multi_select.info.yml
+++ b/improved_multi_select.info.yml
@@ -2,7 +2,6 @@ package: Form Elements
 name: 'Improved Multi Select'
 type: module
 description: 'Improved Multi Select'
-version: VERSION
 core: 8.x
 configure: ims.settings
 libraries:
diff --git a/improved_multi_select.module b/improved_multi_select.module
index b251c14..a875974 100755
--- a/improved_multi_select.module
+++ b/improved_multi_select.module
@@ -21,12 +21,12 @@ function improved_multi_select_page_attachments(&$attachments) {
   if ($replace_all = $config->get('isall')) {
     $activated = TRUE;
   }
-  // Activated based on the matching path or not empty selectors in the module settings.
+  /* Activated based on the matching path or not empty selectors in the module settings.*/
   elseif (($context['url'] && \Drupal::service('path.matcher')->matchPath($context['request_path'], $context['url'])) || $context['selectors']) {
     $activated = TRUE;
   }
 
-  // Allow other modules to activate or deactivate our module for specific pages.
+  /* Allow other modules to activate or deactivate our module for specific pages.*/
   \Drupal::moduleHandler()->alter('improved_multi_select_activated', $activated, $context);
   if (!$activated) {
     return;
@@ -53,9 +53,11 @@ function improved_multi_select_page_attachments(&$attachments) {
 }
 
 /**
- * Return array of jQuery selectors from jQuery selectors or 'replace all' option.
+ * Return array of jQuery selectors from jQuery selectors or.
  *
- * @param boolean $replace_all
+ * 'replace all' option.
+ *
+ * @param bool $replace_all
  *   Boolean indicating if all multiselects will be replaced.
  * @param array $selectors
  *   Array with jQuery selectors.
@@ -63,7 +65,7 @@ function improved_multi_select_page_attachments(&$attachments) {
  * @return array
  *   Array with jQuery selectors.
  */
-function improved_multi_select_load_selectors($replace_all, $selectors) {
+function improved_multi_select_load_selectors($replace_all, array $selectors) {
   $output = [];
   if (!empty($selectors) and !$replace_all) {
     foreach ($selectors as $selector) {
diff --git a/js/improved_multi_select.js b/js/improved_multi_select.js
index 3f3f262..dc353bf 100755
--- a/js/improved_multi_select.js
+++ b/js/improved_multi_select.js
@@ -1,13 +1,14 @@
 (function ($) {
   Drupal.behaviors.improved_multi_select = {
-    attach: function(context, settings) {
+    attach: function (context, settings) {
+      'use strict';
       if (settings.improved_multi_select && settings.improved_multi_select.selectors) {
-        var options = settings.improved_multi_select;
-
+        var options = settings.improved_multi_select, $opt, group;
         for (var key in options.selectors) {
           var selector = options.selectors[key];
-          $(selector, context).once('improvedselect').each(function() {
-            var $select = $(this),
+          var $select, moveButtons, improvedselect_id, $cloned_select, cloned_select_id;
+          $(selector, context).once('improvedselect').each(function () {
+            $select = $(this),
               moveButtons = '',
               improvedselect_id = $select.attr('id'),
               $cloned_select = null,
@@ -45,7 +46,7 @@
               // Build groups.
               $('#improvedselect-' + improvedselect_id + ' .improvedselect-text-wrapper', context)
                 .after('<div class="improvedselect_tabs-wrapper" sid="' + $select.attr('id') + '"><ul class="improvedselect_tabs"></ul></div>');
-              $select.find('optgroup').has('option').each(function() {
+              $select.find('optgroup').has('option').each(function () {
                 $('#improvedselect-' + improvedselect_id + ' .improvedselect_tabs', context)
                   .append('<li><a href="">' + $(this).attr('label') + '</a></li>');
               });
@@ -53,8 +54,9 @@
               $('#improvedselect-' + improvedselect_id + ' .improvedselect_tabs', context)
                 .prepend('<li class="all"><a href="">' + Drupal.t('All') + '</a></li>');
               // Select group.
-              $('#improvedselect-' + improvedselect_id + ' .improvedselect_tabs li a', context).click(function(e) {
-                var $group = $(this),
+              var $group;
+              $('#improvedselect-' + improvedselect_id + ' .improvedselect_tabs li a', context).click(function (e) {
+                $group = $(this),
                   sid = $group.parent().parent().parent().attr('sid');
                 $('#improvedselect-' + improvedselect_id + ' .improvedselect_tabs li.selected', context).removeClass('selected').find('a').unwrap();
                 $group.wrap('<div>').parents('li').first().addClass('selected');
@@ -79,22 +81,21 @@
               // Select all to begin.
               $('#improvedselect-' + improvedselect_id + ' .improvedselect_tabs li.all a', context).click();
             }
-
-            $select.find('option, optgroup').each(function() {
-              var $opt = $(this),
+            $select.find('option, optgroup').each(function () {
+              $opt = $(this),
                 group = '';
-              if ($opt[0].tagName == 'OPTGROUP') {
+              if ($opt[0].tagName === 'OPTGROUP') {
                 if ($opt.has('option').length) {
-                  $('#improvedselect-'+ improvedselect_id +' .improvedselect_all', context)
-                    .append('<li isgroup="isgroup" so="---' + $opt.attr('label') + '---">--- '+ $opt.attr('label') +' ---</li>');
+                  $('#improvedselect-' + improvedselect_id + ' .improvedselect_all', context)
+                    .append('<li isgroup="isgroup" so="---' + $opt.attr('label') + '---">--- ' + $opt.attr('label') + ' ---</li>');
                 }
               }
               else {
-                group = $opt.parent("optgroup").attr("label");
+                group = $opt.parent('optgroup').attr('label');
                 if (group) {
                   group = ' group="' + group + '"';
                 }
-                if ($opt.attr('value') != "_none") {
+                if ($opt.attr('value') !== '_none') {
                   if ($opt.attr('selected')) {
                     $('#improvedselect-' + improvedselect_id + ' .improvedselect_sel', context)
                       .append('<li so="' + $opt.attr('value') + '"' + group + '>' + $opt.html() + '</li>');
@@ -106,17 +107,18 @@
                 }
               }
             });
-            $('#improvedselect-'+ improvedselect_id + ' .improvedselect_sel li, #improvedselect-' + improvedselect_id + ' .improvedselect_all li[isgroup!="isgroup"]', context).click(function() {
+            $('#improvedselect-' + improvedselect_id + ' .improvedselect_sel li, #improvedselect-' + improvedselect_id + ' .improvedselect_all li[isgroup!="isgroup"]', context).click(function () {
               $(this).toggleClass('selected');
             });
             $select.hide();
+            var selected;
             // Double click feature request.
-            $('#improvedselect-'+ improvedselect_id + ' .improvedselect_sel li, #improvedselect-' + improvedselect_id + ' .improvedselect_all li[isgroup!="isgroup"]', context).dblclick(function() {
+            $('#improvedselect-' + improvedselect_id + ' .improvedselect_sel li, #improvedselect-' + improvedselect_id + ' .improvedselect_all li[isgroup!="isgroup"]', context).dblclick(function () {
               // Store selected items.
-              var selected = $(this).parent().find('li.selected'),
+              selected = $(this).parent().find('li.selected'),
                 current_class = $(this).parent().attr('class');
               // Add item.
-              if (current_class == 'improvedselect_all') {
+              if (current_class === 'improvedselect_all') {
                 $(this).parent().find('li.selected').removeClass('selected');
                 $(this).addClass('selected');
                 $(this).parent().parent().find('.add').click();
@@ -130,7 +132,7 @@
               // Restore selected items.
               if (selected.length) {
                 for (var k = 0; k < selected.length; k++) {
-                  if ($(selected[k]).parent().attr('class') == current_class) {
+                  if ($(selected[k]).parent().attr('class') === current_class) {
                     $(selected[k]).addClass('selected');
                   }
                 }
@@ -139,24 +141,23 @@
 
             // Set the height of the select fields based on the height of the
             // parent, otherwise it can end up with a lot of wasted space.
-            $('.improvedselect_sel, .improvedselect_all').each(function() {
-              if ($(this).parent().height() > 0 ) {
+            $('.improvedselect_sel, .improvedselect_all').each(function () {
+              if ($(this).parent().height() > 0) {
                 $(this).height($(this).parent().height() - 35);
               }
               // @todo: Element is hidden - we can't detect its height.
-              else {}
             });
           });
         }
 
-        $('.improvedselect_filter', context).bind('input', function() {
+        $('.improvedselect_filter', context).bind('input', function () {
           improvedselectFilter($(this).attr('sid'), options, context);
         });
 
         // Add selected items.
-        $('.improvedselect .add', context).click(function() {
+        $('.improvedselect .add', context).click(function () {
           var sid = $(this).attr('sid');
-          $('#improvedselect-' + sid + ' .improvedselect_all .selected', context).each(function() {
+          $('#improvedselect-' + sid + ' .improvedselect_all .selected', context).each(function () {
             $opt = $(this);
             $opt.removeClass('selected');
             improvedselectUpdateGroupVisibility($opt, 1);
@@ -166,9 +167,9 @@
         });
 
         // Remove selected items.
-        $('.improvedselect .del', context).click(function() {
+        $('.improvedselect .del', context).click(function () {
           var sid = $(this).attr('sid');
-          $('#improvedselect-' + sid + ' .improvedselect_sel .selected', context).each(function() {
+          $('#improvedselect-' + sid + ' .improvedselect_sel .selected', context).each(function () {
             $opt = $(this);
             $opt.removeClass('selected');
             $('#improvedselect-' + sid + ' .improvedselect_all', context).append($opt);
@@ -182,11 +183,11 @@
         });
 
         // Add all items.
-        $('.improvedselect .add_all', context).click(function() {
+        $('.improvedselect .add_all', context).click(function () {
           var sid = $(this).attr('sid');
-          $('#improvedselect-' + sid + ' .improvedselect_all li[isgroup!=isgroup]', context).each(function() {
+          $('#improvedselect-' + sid + ' .improvedselect_all li[isgroup!=isgroup]', context).each(function () {
             $opt = $(this);
-            if ($opt.css('display') != 'none') {
+            if ($opt.css('display') !== 'none') {
               $opt.removeClass('selected');
               improvedselectUpdateGroupVisibility($opt, 1);
               $('#improvedselect-' + sid + ' .improvedselect_sel', context).append($opt);
@@ -196,9 +197,9 @@
         });
 
         // Remove all items.
-        $('.improvedselect .del_all', context).click(function() {
+        $('.improvedselect .del_all', context).click(function () {
           var sid = $(this).attr('sid');
-          $('#improvedselect-' + sid + ' .improvedselect_sel li', context).each(function() {
+          $('#improvedselect-' + sid + ' .improvedselect_sel li', context).each(function () {
             $opt = $(this);
             $opt.removeClass('selected');
             $('#improvedselect-' + sid + ' .improvedselect_all', context).append($opt);
@@ -212,9 +213,9 @@
         });
 
         // Move selected items up.
-        $('.improvedselect .move_up', context).click(function() {
+        $('.improvedselect .move_up', context).click(function () {
           var sid = $(this).attr('sid');
-          $('#improvedselect-' + sid + ' .improvedselect_sel .selected', context).each(function() {
+          $('#improvedselect-' + sid + ' .improvedselect_sel .selected', context).each(function () {
             var $selected = $(this);
             // Don't move selected items past other selected items or there will
             // be problems when moving multiple items at once.
@@ -224,11 +225,11 @@
         });
 
         // Move selected items down.
-        $('.improvedselect .move_down', context).click(function() {
+        $('.improvedselect .move_down', context).click(function () {
           var sid = $(this).attr('sid');
           // Run through the selections in reverse, otherwise problems occur
           // when moving multiple items at once.
-          $($('#improvedselect-' + sid + ' .improvedselect_sel .selected', context).get().reverse()).each(function() {
+          $($('#improvedselect-' + sid + ' .improvedselect_sel .selected', context).get().reverse()).each(function () {
             var $selected = $(this);
             // Don't move selected items past other selected items or there will
             // be problems when moving multiple items at once.
@@ -246,17 +247,22 @@
 
   /**
    * Filter the all options list.
+   *
+   * @param string sid
+   * @param  object options
+   * @param object context
    */
   function improvedselectFilter(sid, options, context) {
+    var i, $selectedGroup, pattern, regex, words;
     $filter = $('#improvedselect-' + sid + ' .improvedselect_filter', context);
     // Get current selected group.
-    var $selectedGroup = $('#improvedselect-' + sid + ' .improvedselect_tabs li.selected:not(.all) a', context),
+    $selectedGroup = $('#improvedselect-' + sid + ' .improvedselect_tabs li.selected:not(.all) a', context),
       text = $filter.val(),
       pattern,
       regex,
       words;
 
-    if (text.length && text != $filter.attr('prev')) {
+    if (text.length && text !== $filter.attr('prev')) {
       $filter.attr('prev', text);
       switch (options.filtertype) {
         case 'partial':
@@ -269,7 +275,7 @@
         case 'anywords':
           words = text.split(' ');
           pattern = '';
-          for (var i = 0; i < words.length; i++) {
+          for (i = 0; i < words.length; i++) {
             if (words[i]) {
               pattern += (pattern) ? '|\\b' + words[i] + '\\b' : '\\b' + words[i] + '\\b';
             }
@@ -278,7 +284,7 @@
         case 'anywords_partial':
           words = text.split(' ');
           pattern = '';
-          for (var i = 0; i < words.length; i++) {
+          for (i = 0; i < words.length; i++) {
             if (words[i]) {
               pattern += (pattern) ? '|' + words[i] + '' : words[i];
             }
@@ -290,7 +296,7 @@
           // Add a lookahead for each individual word.
           // Lookahead is used because the words can match in any order
           // so this makes it simpler and faster.
-          for (var i = 0; i < words.length; i++) {
+          for (i = 0; i < words.length; i++) {
             if (words[i]) {
               pattern += '(?=.*?\\b' + words[i] + '\\b)';
             }
@@ -302,7 +308,7 @@
           // Add a lookahead for each individual word.
           // Lookahead is used because the words can match in any order
           // so this makes it simpler and faster.
-          for (var i = 0; i < words.length; i++) {
+          for (i = 0; i < words.length; i++) {
             if (words[i]) {
               pattern += '(?=.*?' + words[i] + ')';
             }
@@ -310,12 +316,12 @@
           break;
       }
 
-      regex = new RegExp(pattern,'i');
-      $('#improvedselect-' + sid + ' .improvedselect_all li', context).each(function() {
+      regex = new RegExp(pattern, 'i');
+      $('#improvedselect-' + sid + ' .improvedselect_all li', context).each(function () {
         $opt = $(this);
-        if ($opt.attr('isgroup') != 'isgroup') {
+        if ($opt.attr('isgroup') !== 'isgroup') {
           var str = $opt.text();
-          if (str.match(regex) && (!$selectedGroup.length || $selectedGroup.text() == $opt.attr('group'))) {
+          if (str.match(regex) && (!$selectedGroup.length || $selectedGroup.text() === $opt.attr('group'))) {
             $opt.show();
             if ($opt.attr('group')) {
               // If a group is selected we don't need to show groups.
@@ -330,7 +336,7 @@
           else {
             $opt.hide();
             if ($opt.attr('group')) {
-              if ($opt.siblings('li[isgroup!="isgroup"][group="' + $opt.attr('group') + '"]:visible').length == 0) {
+              if ($opt.siblings('li[isgroup!="isgroup"][group="' + $opt.attr('group') + '"]:visible').length === 0) {
                 $opt.siblings('li[isgroup="isgroup"][so="---' + $opt.attr('group') + '---"]').hide();
               }
             }
@@ -342,10 +348,10 @@
       if (!text.length) {
         $filter.attr('prev', '');
       }
-      $('#improvedselect-' + sid + ' .improvedselect_all li', context).each(function() {
+      $('#improvedselect-' + sid + ' .improvedselect_all li', context).each(function () {
         var $opt = $(this);
-        if ($opt.attr('isgroup') != 'isgroup') {
-          if (!$selectedGroup.length || $selectedGroup.text() == $opt.attr('group')) {
+        if ($opt.attr('isgroup') !== 'isgroup') {
+          if (!$selectedGroup.length || $selectedGroup.text() === $opt.attr('group')) {
             $opt.show();
           }
           else {
@@ -360,9 +366,9 @@
   /**
    * Update the visibility of an option's group.
    *
-   * @param $opt
+   * @param object $opt
    *   A jQuery object of a select option.
-   * @param numItems
+   * @param int numItems
    *   How many items should be considered an empty group. Generally zero or one
    *   depending on if an item has been or is going to be removed or added.
    */
@@ -377,15 +383,15 @@
       $opt.siblings('li[isgroup="isgroup"][so="---' + $opt.attr('group') + '---"]').show();
     }
   }
-
   function improvedselectUpdate(sid, context) {
     // If we have sorting enabled, make sure we have the results sorted.
-    var $select = $('#' + sid),
+    var $select;
+    $select = $('#' + sid),
       $cloned_select = $('#' + sid + '-cloned');
 
     if ($cloned_select.length) {
       $select.find('option, optgroup').remove();
-      $('#improvedselect-' + sid + ' .improvedselect_sel li', context).each(function() {
+      $('#improvedselect-' + sid + ' .improvedselect_sel li', context).each(function () {
         var $li = $(this);
         $select.append($('<option></option>').attr('value', $li.attr('so')).prop('selected', true).text($li.text()));
       });
@@ -395,14 +401,14 @@
     }
     else {
       $select.find('option:selected').prop('selected', false);
-      $('#improvedselect-' + sid + ' .improvedselect_sel li', context).each(function() {
+      $('#improvedselect-' + sid + ' .improvedselect_sel li', context).each(function () {
         $('#' + sid + ' [value="' + $(this).attr('so') + '"]', context).prop('selected', true);
       });
     }
 
-    $select.find('option, optgroup').each(function() {
+    $select.find('option, optgroup').each(function () {
       $opt = $(this);
-      if ($opt[0].tagName == 'OPTGROUP') {
+      if ($opt[0].tagName === 'OPTGROUP') {
         if ($opt.has('option').length) {
           $('#improvedselect-' + sid + ' .improvedselect_all', context).append($('#improvedselect-' + sid + ' .improvedselect_all [so="---' + $opt.attr('label') + '---"]', context));
         }
@@ -411,7 +417,7 @@
         // When using reordering, the options will be from the cloned select,
         // meaning that there will be none selected, which means that items
         // in the selected list will not be reordered, which is what we want.
-        if ($opt.attr("selected")) {
+        if ($opt.attr('selected')) {
           $('#improvedselect-' + sid + ' .improvedselect_sel', context).append($('#improvedselect-' + sid + ' .improvedselect_sel [so="' + $opt.attr('value') + '"]', context));
         }
         else {
diff --git a/src/Form/SettingsForm.php b/src/Form/SettingsForm.php
index 7ef9e89..064d54d 100644
--- a/src/Form/SettingsForm.php
+++ b/src/Form/SettingsForm.php
@@ -1,10 +1,5 @@
 <?php
 
-/**
- * @file
- * Contains \Drupal\improved_multi_select\Form\SettingsForm.
- */
-
 namespace Drupal\improved_multi_select\Form;
 
 use Drupal\Core\Form\ConfigFormBase;
@@ -18,7 +13,7 @@ class SettingsForm extends ConfigFormBase {
   /**
    * {@inheritdoc}
    */
-  public function getFormID() {
+  public function getFormId() {
     return 'ims_admin_settings_form';
   }
 
@@ -37,85 +32,85 @@ class SettingsForm extends ConfigFormBase {
 
     $form['isall'] = [
       '#type' => 'checkbox',
-      '#title' => t('Replace all multi-select lists'),
+      '#title' => $this->t('Replace all multi-select lists'),
       '#default_value' => $config->get('isall'),
     ];
 
     $form['url'] = [
       '#type' => 'textarea',
-      '#title' => t('Replace multi-select lists on specific pages'),
-      '#description' => t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", [
+      '#title' => $this->t('Replace multi-select lists on specific pages'),
+      '#description' => $this->t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", [
         '%blog' => '/blog',
         '%blog-wildcard' => '/blog/*',
-        '%front' => '<front>'
+        '%front' => '<front>',
       ]),
       '#default_value' => $config->get('url'),
     ];
 
     $form['selectors'] = [
       '#type' => 'textarea',
-      '#title' => t('Replace multi-select with specified selectors'),
-      '#description' => t('Enter jQuery selectors (one selector per line). Example: select[multiple]'),
+      '#title' => $this->t('Replace multi-select with specified selectors'),
+      '#description' => $this->t('Enter jQuery selectors (one selector per line). Example: select[multiple]'),
       '#default_value' => $config->get('selectors'),
     ];
 
     $form['filtertype'] = [
       '#type' => 'radios',
-      '#title' => t('Filter functionality'),
-      '#description' => t('Choose how you would like the filter textfield to function.'),
+      '#title' => $this->t('Filter functionality'),
+      '#description' => $this->t('Choose how you would like the filter textfield to function.'),
       '#options' => [
-        'partial' => t('Partial match: Shows options that contain the filter text.'),
-        'exact' => t('Exact match: Shows options that exactly match the filter text.'),
-        'anywords' => t('Any words: Shows options that contain any of the individual words in the filter text. Only exact word matches count.'),
-        'anywords_partial' => t('Any words (partial): Shows options that contain any of the individual words in the filter text. Partial word matches count.'),
-        'allwords' => t('All words: Shows options that contain all of the individual words in the filter text (in any order). Only exact word matches count.'),
-        'allwords_partial' => t('All words (partial): Shows options that contain all of the individual words in the filter text (in any order). Partial word matches count.'),
+        'partial' => $this->t('Partial match: Shows options that contain the filter text.'),
+        'exact' => $this->t('Exact match: Shows options that exactly match the filter text.'),
+        'anywords' => $this->t('Any words: Shows options that contain any of the individual words in the filter text. Only exact word matches count.'),
+        'anywords_partial' => $this->t('Any words (partial): Shows options that contain any of the individual words in the filter text. Partial word matches count.'),
+        'allwords' => $this->t('All words: Shows options that contain all of the individual words in the filter text (in any order). Only exact word matches count.'),
+        'allwords_partial' => $this->t('All words (partial): Shows options that contain all of the individual words in the filter text (in any order). Partial word matches count.'),
       ],
       '#default_value' => $config->get('filtertype'),
     ];
 
     $form['orderable'] = [
       '#type' => 'checkbox',
-      '#title' => t('Allow re-ordering of selected items'),
-      '#description' => t('If checked, the user will be able to re-order the selected items using "Move up" and "Move down" buttons. Also, when adding items they will remain in the order they were added instead of keeping the order of the original field.'),
+      '#title' => $this->t('Allow re-ordering of selected items'),
+      '#description' => $this->t('If checked, the user will be able to re-order the selected items using "Move up" and "Move down" buttons. Also, when adding items they will remain in the order they were added instead of keeping the order of the original field.'),
       '#default_value' => $config->get('orderable'),
     ];
 
     $form['groupresetfilter'] = [
       '#type' => 'checkbox',
-      '#title' => t('Reset filter when selecting a group'),
-      '#description' => t('If checked and a select has optgroups, when a group is selected the filter text field is cleared. If unchecked, any existing filter will be applied only to items of the selected group.'),
+      '#title' => $this->t('Reset filter when selecting a group'),
+      '#description' => $this->t('If checked and a select has optgroups, when a group is selected the filter text field is cleared. If unchecked, any existing filter will be applied only to items of the selected group.'),
       '#default_value' => $config->get('groupresetfilter'),
     ];
 
     $form['button_text'] = [
       '#type' => 'fieldset',
-      '#title' => t('Button text'),
-      '#description' => t('Set the text used for the improved multi-select buttons.'),
+      '#title' => $this->t('Button text'),
+      '#description' => $this->t('Set the text used for the improved multi-select buttons.'),
     ];
     $form['button_text']['buttontext_add'] = [
       '#type' => 'textfield',
-      '#title' => t('Add button'),
+      '#title' => $this->t('Add button'),
       '#default_value' => $config->get('buttontext_add'),
     ];
     $form['button_text']['buttontext_addall'] = [
       '#type' => 'textfield',
-      '#title' => t('Add all button'),
+      '#title' => $this->t('Add all button'),
       '#default_value' => $config->get('buttontext_addall'),
     ];
     $form['button_text']['buttontext_del'] = [
       '#type' => 'textfield',
-      '#title' => t('Remove button'),
+      '#title' => $this->t('Remove button'),
       '#default_value' => $config->get('buttontext_del'),
     ];
     $form['button_text']['buttontext_delall'] = [
       '#type' => 'textfield',
-      '#title' => t('Remove all button'),
+      '#title' => $this->t('Remove all button'),
       '#default_value' => $config->get('buttontext_delall'),
     ];
     $form['button_text']['buttontext_moveup'] = [
       '#type' => 'textfield',
-      '#title' => t('Move up button'),
+      '#title' => $this->t('Move up button'),
       '#default_value' => $config->get('buttontext_moveup'),
       // Hide the settings when the move buttons are disabled.
       '#states' => [
@@ -126,7 +121,7 @@ class SettingsForm extends ConfigFormBase {
     ];
     $form['button_text']['buttontext_movedown'] = [
       '#type' => 'textfield',
-      '#title' => t('Move down button'),
+      '#title' => $this->t('Move down button'),
       '#default_value' => $config->get('buttontext_movedown'),
       '#states' => [
         // Hide the settings when the move buttons are disabled.
@@ -135,8 +130,6 @@ class SettingsForm extends ConfigFormBase {
         ],
       ],
     ];
-
-
     return parent::buildForm($form, $form_state);
   }
 
diff --git a/src/Tests/ImprovedMultiSelectTests.php b/src/Tests/ImprovedMultiSelectTests.php
index d5bc410..355fe1c 100644
--- a/src/Tests/ImprovedMultiSelectTests.php
+++ b/src/Tests/ImprovedMultiSelectTests.php
@@ -1,10 +1,5 @@
 <?php
 
-/**
- * @file
- * Contains \Drupal\improved_multi_select\Tests\ImprovedMultiSelectTests.
- */
-
 namespace Drupal\improved_multi_select\Tests;
 
 use Drupal\simpletest\WebTestBase;
@@ -21,13 +16,12 @@ class ImprovedMultiSelectTests extends WebTestBase {
    *
    * @var array
    */
-  public static $modules = array('improved_multi_select');
-
+  public static $modules = ['improved_multi_select'];
 
   /**
    * Test improved_multi_select_load_selectors() function.
    */
-  protected function testIMSLoadSelectors() {
+  protected function testImsLoadSelectors() {
     $replace_all = FALSE;
     $selectors = [];
     $jquery_selectors = improved_multi_select_load_selectors($replace_all, $selectors);
