diff --git a/maxlength.module b/maxlength.module
index af65769..8914462 100644
--- a/maxlength.module
+++ b/maxlength.module
@@ -2,8 +2,7 @@
 
 /**
  * @file
- * Limits the number of characters in textfields and textareas and shows the
- *  amount of characters left.
+ * Limits the number of characters in textfields and textareas and shows the amount of characters left.
  */
 
 use Drupal\Core\Field\FieldDefinitionInterface;
@@ -27,7 +26,6 @@ function maxlength_help($route_name, RouteMatchInterface $route_match) {
  * Implements hook_element_info_alter().
  *
  * @todo: Check if all them work.
- * @param $cache
  */
 function maxlength_element_info_alter(&$cache) {
   // Add prerender functions to textareas and text fields.
@@ -43,7 +41,7 @@ function maxlength_element_info_alter(&$cache) {
  */
 function maxlength_pre_render($element) {
   if (isset($element['#maxlength_js']) && $element['#maxlength_js'] === TRUE) {
-    if (((isset($element['#attributes']['maxlength']) && $element['#attributes']['maxlength'] > 0)) ) {
+    if (((isset($element['#attributes']['maxlength']) && $element['#attributes']['maxlength'] > 0))) {
       $element['#attributes']['class'][] = 'maxlength';
       $element['#attached']['library'][] = 'maxlength/maxlength';
     }
@@ -130,16 +128,17 @@ function maxlength_field_widget_settings_summary_alter(&$summary, $context) {
   $allowed_settings = $widget_settings->getAllowedSettings($plugin_id);
   if (!empty($allowed_settings)) {
     if (!empty($allowed_settings['maxlength_setting']) && $context['widget']->getThirdPartySetting('maxlength', 'maxlength_js')) {
-      $summary [] = t('Max length: @count', array('@count' => $context['widget']->getThirdPartySetting('maxlength', 'maxlength_js')));
+      $summary[] = t('Max length: @count', array('@count' => $context['widget']->getThirdPartySetting('maxlength', 'maxlength_js')));
     }
     if (!empty($allowed_settings['summary_maxlength_setting']) && $context['widget']->getThirdPartySetting('maxlength', 'maxlength_js_summary')) {
-      $summary [] = t('Max summary length: @count', array('@count' => $context['widget']->getThirdPartySetting('maxlength', 'maxlength_js_summary')));
+      $summary[] = t('Max summary length: @count', array('@count' => $context['widget']->getThirdPartySetting('maxlength', 'maxlength_js_summary')));
     }
     if (!empty($allowed_settings['truncate_setting'])) {
       if ($context['widget']->getThirdPartySetting('maxlength', 'maxlength_js_truncate_html')) {
-        $summary [] = t('Max length - Safe truncate html');
-      } elseif ($context['widget']->getThirdPartySetting('maxlength', 'maxlength_js_enforce')) {
-        $summary [] = t('Max length - Force truncate');
+        $summary[] = t('Max length - Safe truncate html');
+      }
+      elseif ($context['widget']->getThirdPartySetting('maxlength', 'maxlength_js_enforce')) {
+        $summary[] = t('Max length - Force truncate');
       }
     }
   }
@@ -184,9 +183,14 @@ function maxlength_field_widget_form_alter(&$element, FormStateInterface $form_s
 
 /**
  * Process handler for the form elements that can have maxlength attribute.
- * @param $element
- * @param $form_state
- * @return
+ *
+ * @param array $element
+ *   Form $element.
+ * @param array $form_state
+ *   Form state being altered.
+ *
+ *@return array $element
+ *   Form $elemet.
  */
 function maxlength_process_element($element, FormStateInterface $form_state) {
   if (isset($element['#attributes']['#maxlength_js_enforce']) && $element['#attributes']['#maxlength_js_enforce']) {
diff --git a/maxlength.test b/maxlength.test
index fd43969..9e19ceb 100644
--- a/maxlength.test
+++ b/maxlength.test
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file
  * Test maxlength module.
@@ -8,6 +9,9 @@ class MaxlengthTestCase extends DrupalWebTestCase {
   private $hyphen_type;
   private $type;
 
+  /**
+   *
+   */
   public static function getInfo() {
     return array(
       'name' => 'Test maxlength module',
@@ -16,6 +20,9 @@ class MaxlengthTestCase extends DrupalWebTestCase {
     );
   }
 
+  /**
+   *
+   */
   protected function setUp() {
     parent::setUp('maxlength');
 
@@ -24,7 +31,7 @@ class MaxlengthTestCase extends DrupalWebTestCase {
     $this->hyphen_type = str_replace('_', '-', $this->type);
     $this->admin = $this->drupalCreateUser(array('administer content types', 'bypass node access'));
   }
-  
+
   /**
    * Test fieldapi field.
    */
@@ -77,25 +84,25 @@ class MaxlengthTestCase extends DrupalWebTestCase {
     // Check the maxlength html attributes.
     $elements = $this->xpath('//input[@id=:id]', array(':id' => 'edit-title'));
 
-//     foreach ($elements[0]->attributes() as $key => $value) {
-//       switch ($key) {
-//         case 'class':
-//           $this->assertTrue(strpos($value, 'maxlength'), 'Take sure the maxlength class is existant');
-//           break;
-//         case 'maxlength_js':
-//           $this->assertTrue($value, 'Take sure that the maxlenght_js attribute is set.');
-//           break;
-//         case 'maxlength_js_label':
-//           $this->assertEqual($edit['maxlength_js_label'], $value, 'Take sure that the maxlenght_js_label is the defined one.');
-//           break;
-//         case 'maxlength':
-//           $this->assertEqual($edit['maxlenght_js'], $value);
-//           break;
-//       }
-//     }
+    // Foreach ($elements[0]->attributes() as $key => $value) {
+    // switch ($key) {
+    // case 'class':
+    // $this->assertTrue(strpos($value, 'maxlength'), 'Take sure the maxlength class is existant');
+    // break;
+    // case 'maxlength_js':
+    // $this->assertTrue($value, 'Take sure that the maxlenght_js attribute is set.');
+    // break;
+    // case 'maxlength_js_label':
+    // $this->assertEqual($edit['maxlength_js_label'], $value, 'Take sure that the maxlenght_js_label is the defined one.');
+    // break;
+    // case 'maxlength':
+    // $this->assertEqual($edit['maxlenght_js'], $value);
+    // break;
+    // }
+    // }.
   }
 
-   /**
+  /**
     * Test general api.
     */
 
diff --git a/src/WidgetSettings.php b/src/WidgetSettings.php
index bc9d35b..61dfdd3 100644
--- a/src/WidgetSettings.php
+++ b/src/WidgetSettings.php
@@ -45,6 +45,7 @@ class WidgetSettings implements WidgetSettingsInterface {
 
   /**
    * {@inheritdoc}
+   *
    * @see \Drupal\maxlength\WidgetSettingsInterface::getAllowedSettings()
    */
   public function getAllowedSettings($widget_plugin_id) {
