diff --git a/js/sharethis.form.js b/js/sharethis.form.js
index a26559c..ab80166 100644
--- a/js/sharethis.form.js
+++ b/js/sharethis.form.js
@@ -4,7 +4,9 @@
  */
 
 (function ($, window) {
-
+ /*global drupal_st;*/
+  /*global _all_services;*/
+  /*global stlib_picke;*/
   'use strict';
 
   // Create the drupal ShareThis object for clean code and namespacing:
diff --git a/js/sharethis.js b/js/sharethis.js
index 625ebaf..d8556a2 100644
--- a/js/sharethis.js
+++ b/js/sharethis.js
@@ -4,6 +4,7 @@
  */
 
 (function ($, drupalSettings) {
+  /*global stLight;*/
     'use strict';
     $(document).ready(function(){
         var switchTo5x = true;var __st_loadLate = true;
diff --git a/js/stlib_picker.js b/js/stlib_picker.js
index 097199e..9593dab 100644
--- a/js/stlib_picker.js
+++ b/js/stlib_picker.js
@@ -8,6 +8,7 @@
 // Styling can be found in stlib_picker.css and should be linked in the page.
 // To get selected services as an array of strings:  (ie ["twitter", "sharethis", "facebook"] )
 // Call: var answer = stlib_picker.pickerList[uniqueID]["getServices"]();.
+/*global _all_services;*/
 var stlib_picker = {}, isSecure = ("https:" == document.location.protocol) ? true : false;
 stlib_picker.pickerList = [];
 stlib_picker.defaultServices = ["sharethis", "tumblr", "bebo"];
diff --git a/sharethis.module b/sharethis.module
index 718e126..420b813 100644
--- a/sharethis.module
+++ b/sharethis.module
@@ -160,7 +160,7 @@ function sharethis_node_view(array &$build, EntityInterface $node, EntityViewDis
           '#attributes' => array(
             'class' => array('links', 'inline'),
           ),
-        // Wrap it in a div.
+          // Wrap it in a div.
           '#tag' => 'div',
           '#type' => 'html_tag',
           '#weight' => 10,
@@ -179,7 +179,9 @@ function sharethis_comment_view(array &$build, EntityInterface $comment, EntityV
   if ($sharethis_settings->get('comments') == 1) {
     $st_js = $sharethis_manager->sharethisIncludeJs();
     $data_options = $sharethis_manager->getOptions();
-    $current_path = \Drupal::routeMatch()->getRouteName() ? Url::fromRouteMatch(\Drupal::routeMatch())->getInternalPath() : '';
+    $current_path = \Drupal::routeMatch()
+      ->getRouteName() ? Url::fromRouteMatch(\Drupal::routeMatch())
+      ->getInternalPath() : '';
     $path = isset($current_path) ? $current_path : '<front>';
     global $base_url;
     $path_obj = Url::fromUri($base_url . '/' . $path,
@@ -191,7 +193,8 @@ function sharethis_comment_view(array &$build, EntityInterface $comment, EntityV
     $path = $path_obj->toString();
     $request = \Drupal::request();
     $route_match = \Drupal::routeMatch();
-    $title = \Drupal::service('title_resolver')->getTitle($request, $route_match->getRouteObject());
+    $title = \Drupal::service('title_resolver')
+      ->getTitle($request, $route_match->getRouteObject());
     $content = $sharethis_manager->renderSpans($data_options, $title, $path);
     $build['sharethis_comments'] = array(
       '#theme' => 'sharethis_block',
diff --git a/src/Form/SharethisConfigurationForm.php b/src/Form/SharethisConfigurationForm.php
index 959961f..f834d42 100644
--- a/src/Form/SharethisConfigurationForm.php
+++ b/src/Form/SharethisConfigurationForm.php
@@ -203,8 +203,7 @@ class SharethisConfigurationForm extends ConfigFormBase {
     $form['context']['block']['#children'] = 'You must choose which region to display the in from the Blocks administration';
     $entity_bundles = $this->entityManager->getBundleInfo('node');
     // Add checkboxes for each view mode of each bundle.
-    $entity_modes = $this->entityManager->getViewModes('node');
-    ;
+    $entity_modes = $this->entityManager->getViewModes('node');;
     $modes = array();
     foreach ($entity_modes as $mode => $mode_info) {
       $modes[$mode] = $mode_info['label'];
@@ -402,7 +401,8 @@ class SharethisConfigurationForm extends ConfigFormBase {
       ->save();
     if (is_array($entity_types)) {
       foreach ($entity_types as $key => $entity_type) {
-        $config->set('sharethisnodes.' . $key, $values[$key . '_options'])->save();
+        $config->set('sharethisnodes.' . $key, $values[$key . '_options'])
+          ->save();
       }
     }
     parent::submitForm($form, $form_state);
diff --git a/src/Tests/SharethisBlockTest.php b/src/Tests/SharethisBlockTest.php
index 81d8677..f463d91 100644
--- a/src/Tests/SharethisBlockTest.php
+++ b/src/Tests/SharethisBlockTest.php
@@ -50,7 +50,7 @@ class SharethisBlockTest extends NodeTestBase {
     $theme_settings = $this->config('system.theme');
     foreach (['bartik', 'seven', 'stark'] as $theme) {
       $this->drupalGet('admin/structure/block/list/' . $theme);
-      $this->assertTitle(t('Block layout') . ' | Drupal');
+      $this->assertTitle(t('Block layout | Drupal'));
       // Select the 'Sharethis' block to be placed.
       $block = array();
       $block['id'] = strtolower($this->randomMachineName());
