diff --git a/sharpspring_crm.module b/sharpspring_crm.module
index 5dcb04e..45eafcc 100644
--- a/sharpspring_crm.module
+++ b/sharpspring_crm.module
@@ -24,12 +24,12 @@ function sharpspring_crm_help($route_name, RouteMatchInterface $route_match) {
 }
 
 /**
- * implement hook_mail()
+ * Implement sharpspring crm mail().
  */
 function sharpspring_crm_mail($key, &$message, $params) {
-  $options = array(
+  $options = [
     'langcode' => $message['langcode'],
-  );
+  ];
   switch ($key) {
     case 'backup_email':
       $message['from'] = \Drupal::config('system.site')->get('mail');
diff --git a/src/Form/SharpSpringCrmConfigForm.php b/src/Form/SharpSpringCrmConfigForm.php
index 6516b5a..bd0a967 100644
--- a/src/Form/SharpSpringCrmConfigForm.php
+++ b/src/Form/SharpSpringCrmConfigForm.php
@@ -2,70 +2,84 @@
 
 namespace Drupal\sharpspring_crm\Form;
 
-use Drupal\Core\Form\{ConfigFormBase, FormStateInterface};
-use Drupal\sharpspring_crm\SharpSpringCrm;
-
+use Drupal\Core\Form\ConfigFormBase;
 
+/**
+ * Sharp Spring Crm Config Form.
+ */
 class SharpSpringCrmConfigForm extends ConfigFormBase {
 
   /**
+   * Get form id.
+   *
    * @return string
+   *   Get form id.
    */
-  public function getFormId(): string {
+  public function getformid(): string {
     return "sharpspring_crm";
-  }
+    ;
 
-  /**
-   * @return array
-   */
-  public function getEditableConfigNames(): array {
-    return [
-      "sharpspring_crm.settings"
-    ];
-  }
+    /**
+     * @return array
+     *   Get editable config names.
+     */
+    public function geteditableconfignames(): array {
+      return [
+        "sharpspring_crm.settings",
+      ];
+    }
 
-  /**
-   * @param array $form
-   * @param FormStateInterface $formState
-   * @return array
-   */
-  public function buildForm(array $form, ?FormStateInterface $formState): array {
-    $config = \Drupal::config("sharpspring_crm.settings");
+    /**
+     * @param array $form
+     *   An associative array containing the structure of the form.
+     * @param FormStateInterface $formState
+     *   Validate submitted form data.
+     * @return array
+     *   I just put this here so it would compile at all.
+     */
+    public function buildform(array $form, FormStateInterface $formState): array {
+      $config = \Drupal::config("sharpspring_crm.settings");
 
-    $form["sharpspring_crm_settings"]["account_id"] = [
-      "#type" => "textfield",
-      "#title" => $this->t("Account Id"),
-      "#default_value" => $config->get("account_id"),
-      "#required" => TRUE
-    ];
+      $form["sharpspring_crm_settings"]["account_id"] = [
+        "#type" => "textfield",
+        "#title" => $this->t("Account Id"),
+        "#default_value" => $config->get("account_id"),
+        "#required" => TRUE,
+      ];
 
-    $form["sharpspring_crm_settingsorm_settings"]["secret_key"] = [
-      "#type" => "textfield",
-      "#title" => $this->t("Secret Key"),
-      "#default_value" => $config->get("secret_key"),
-      "#required" => TRUE
-    ];
+      $form["sharpspring_crm_settingsorm_settings"]["secret_key"] = [
+        "#type" => "textfield",
+        "#title" => $this->t("Secret Key"),
+        "#default_value" => $config->get("secret_key"),
+        "#required" => TRUE,
+      ];
 
-    $form["sharpspring_crm_settingsorm_settings"]["backupEmailAddress"] = [
-      "#type" => "textfield",
-      "#title" => $this->t("Backup Email Address"),
-      '#description' => $this->t('Enter a list (separated by semicolons) to send backup emails to if connection fails.'),
-      "#default_value" => $config->get("backupEmailAddress"),
-      "#required" => TRUE
-    ];
+      $form["sharpspring_crm_settingsorm_settings"]["backupEmailAddress"] = [
+        "#type" => "textfield",
+        "#title" => $this->t("Backup Email Address"),
+        '#description' => $this->t('Enter a list (separated by semicolons) to send backup emails to if connection fails.'),
+        "#default_value" => $config->get("backupEmailAddress"),
+        "#required" => TRUE,
+      ];
 
-    return parent::buildForm($form, $formState);
-  }
+      return parent::buildForm($form, $formState);
+    }
 
-  public function submitForm(array &$form, ?FormStateInterface $formState) {
-    $values = $formState->getValues();
+    /**
+     * Submit form.
+     */
+    public function submitform(array &$form, ?\FormStateInterface $formState) {
+      $values = $formState->getValues();
 
-    $this->configFactory->getEditable("sharpspring_crm.settings")
-      ->set("account_id", $values["account_id"])
-      ->set("secret_key", $values["secret_key"])
-      ->set("backupEmailAddress", $values["backupEmailAddress"])
-      ->save();
+      $this->configFactory->getEditable("sharpspring_crm.settings")
+        ->set("account_id", $values["account_id"])
+        ->set("secret_key", $values["secret_key"])
+        ->set("backupEmailAddress", $values["backupEmailAddress"])
+        ->save();
+
+      parent::submitForm($form, $formState);
+    }
 
-    parent::submitForm($form, $formState);
   }
+
 }
diff --git a/src/Plugin/WebformHandler/SharpSpringCrmLeadHandler.php b/src/Plugin/WebformHandler/SharpSpringCrmLeadHandler.php
index bbbb62b..e4bbc71 100644
--- a/src/Plugin/WebformHandler/SharpSpringCrmLeadHandler.php
+++ b/src/Plugin/WebformHandler/SharpSpringCrmLeadHandler.php
@@ -3,7 +3,6 @@
 namespace Drupal\sharpspring_crm\Plugin\WebformHandler;
 
 use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Logger\LoggerChannelFactory;
 use Drupal\sharpspring_crm\SharpSpringCrm;
 use Drupal\webform\Plugin\WebformHandlerBase;
 use Drupal\webform\WebformSubmissionInterface;
@@ -22,9 +21,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
  *   results = \Drupal\webform\Plugin\WebformHandlerInterface::RESULTS_PROCESSED,
  * )
  */
-
-class SharpSpringCrmLeadHandler extends WebformHandlerBase
-{
+class SharpSpringCrmLeadHandler extends WebformHandlerBase {
 
   /**
    * The token manager.
@@ -36,8 +33,7 @@ class SharpSpringCrmLeadHandler extends WebformHandlerBase
   /**
    * {@inheritdoc}
    */
-  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
-  {
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
     $instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
     $instance->tokenManager = $container->get('webform.token_manager');
     return $instance;
@@ -46,26 +42,25 @@ class SharpSpringCrmLeadHandler extends WebformHandlerBase
   /**
    * {@inheritdoc}
    */
-  public function defaultConfiguration()
-  {
+  public function defaultConfiguration() {
     return [];
   }
 
   /**
    * {@inheritdoc}
    */
-  public function buildConfigurationForm(array $form, FormStateInterface $form_state)
-  {
+  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
     $form = parent::buildConfigurationForm($form, $form_state);
 
-    // Get Module Configuration
+    // Get Module Configuration.
     $config = \Drupal::config("sharpspring_crm.settings");
 
-    // Get list of fields from SharpSpring Lead
+    // Get list of fields from SharpSpring Lead.
     try {
       $sharpspring = new SharpSpringCrm();
       $fields = $sharpspring->getFields();
-    } catch (GuzzleException $e) {
+    }
+    catch (GuzzleException $e) {
       $markup = '<div ><h3>We didnt found any relevant fields, please check your account Id and secret key.</h3></div>';
       $form['error_markup'] = [
         '#type' => 'markup',
@@ -80,23 +75,24 @@ class SharpSpringCrmLeadHandler extends WebformHandlerBase
     ];
     $form['sharpspring']['instructions'] = [
       '#markup' => '<p>Enter the machine name of the webform field to each' .
-        'SharpSpring field you wish to map.',
+      'SharpSpring field you wish to map.',
     ];
 
     if (count($fields['result']['field']) > 0) {
       foreach ($fields['result']['field'] as $key => $field) {
-        if ((bool)$field['isActive'] && (bool)$field['isAvailableInContactManager']) {
+        if ((bool) $field['isActive'] && (bool) $field['isAvailableInContactManager']) {
           $form['sharpspring'][$field['systemName']] = [
             '#type' => 'textfield',
-            '#title' => $this->t($field['label']),
-            '#required' => (bool)$field['isRequired'],
-            '#default_value' => $this->configuration[$field['systemName']]
+            '#title' => ($field['label']),
+            '#required' => (bool) $field['isRequired'],
+            '#default_value' => $this->configuration[$field['systemName']],
           ];
         }
       }
-    } else {
+    }
+    else {
       $form['error_markup'] = [
-        '#markup' => '<p>There are no fields to configure for this API ID</p>'
+        '#markup' => '<p>There are no fields to configure for this API ID</p>',
       ];
     }
     return $this->setSettingsParents($form);
@@ -105,14 +101,13 @@ class SharpSpringCrmLeadHandler extends WebformHandlerBase
   /**
    * {@inheritdoc}
    */
-  public function submitConfigurationForm(array &$form, FormStateInterface $form_state): void
-  {
+  public function submitConfigurationForm(array &$form, FormStateInterface $form_state): void {
     parent::submitConfigurationForm($form, $form_state);
 
-    // Save Configurations for Handler
+    // Save Configurations for Handler.
     $fields = $form_state->getValues()['sharpspring'];
-    foreach($fields as $key => $field) {
-      if(!empty($field)) {
+    foreach ($fields as $key => $field) {
+      if (!empty($field)) {
         $this->configuration[$key] = $field;
       }
     }
@@ -121,24 +116,23 @@ class SharpSpringCrmLeadHandler extends WebformHandlerBase
   /**
    * {@inheritdoc}
    */
-  public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE): void
-  {
-    // Get Module Configuration
+  public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE): void {
+    // Get Module Configuration.
     $config = \Drupal::config("sharpspring_crm.settings");
 
-    // Retreive data to send to SharpSpring
-    if($webform_submission->isCompleted()) {
+    // Retreive data to send to SharpSpring.
+    if ($webform_submission->isCompleted()) {
       $dataToSend = new \stdClass();
       $formData = $webform_submission->getData();
 
-      // Loop through values and fields
+      // Loop through values and fields.
       foreach ($this->configuration as $ssKey => $ssValue) {
         $dataToSend->{$ssKey} = $formData[$ssValue];
       }
 
       $sharpspringCrm = new SharpSpringCrm();
-      if(!$sharpspringCrm->createLeads($dataToSend, $webform_submission)) {
-        // Send email to admin if lead did not successfully send to SharpSpring
+      if (!$sharpspringCrm->createLeads($dataToSend, $webform_submission)) {
+        // Send email to admin if lead did not successfully send to SharpSpring.
         $mailManager = \Drupal::service('plugin.manager.mail');
         $linkToSumbission = $webform_submission->toLink($this->t('View Submission'), 'canonical',
           ['absolute' => TRUE, 'attributes' => ['target' => '_blank']])->toString();
@@ -149,8 +143,9 @@ class SharpSpringCrmLeadHandler extends WebformHandlerBase
           . 'The submission can be found at: ' . $linkToSumbission->getGeneratedLink();
         $params['subject'] = 'New Lead from Website';
         $langcode = \Drupal::currentUser()->getPreferredLangcode();
-        $mailManager->mail($module, $key, $to, $langcode, $params, NULL, true);
+        $mailManager->mail($module, $key, $to, $langcode, $params, NULL, TRUE);
       }
     }
   }
+
 }
diff --git a/src/Plugin/WebformHandler/SharpSpringCrmListHandler.php b/src/Plugin/WebformHandler/SharpSpringCrmListHandler.php
index d5686b4..512e20e 100644
--- a/src/Plugin/WebformHandler/SharpSpringCrmListHandler.php
+++ b/src/Plugin/WebformHandler/SharpSpringCrmListHandler.php
@@ -6,7 +6,6 @@ use Drupal\Core\Form\FormStateInterface;
 use Drupal\sharpspring_crm\SharpSpringCrm;
 use Drupal\webform\Plugin\WebformHandlerBase;
 use Drupal\webform\WebformSubmissionInterface;
-use GuzzleHttp\Exception\GuzzleException;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
@@ -21,7 +20,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
  *   results = \Drupal\webform\Plugin\WebformHandlerInterface::RESULTS_PROCESSED,
  * )
  */
-
 class SharpSpringCrmListHandler extends WebformHandlerBase {
 
   /**
@@ -49,10 +47,10 @@ class SharpSpringCrmListHandler extends WebformHandlerBase {
 
   /**
    * {@inheritdoc}
-   * @throws GuzzleException
+   *
+   * @throws \GuzzleHttp\Exception\GuzzleException
    */
-  public function buildConfigurationForm(array $form, FormStateInterface $form_state)
-  {
+  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
     $form = parent::buildConfigurationForm($form, $form_state);
 
     $sswf = new SharpSpringCrm();
@@ -62,14 +60,14 @@ class SharpSpringCrmListHandler extends WebformHandlerBase {
     ];
 
     $form['sharpspring']['description'] = [
-      '#markup' => '<p>This handler expects a field with an email address with a key of <strong>email_address</strong>'
+      '#markup' => '<p>This handler expects a field with an email address with a key of <strong>email_address</strong>',
     ];
 
     $form['sharpspring']['active_list'] = [
       '#type' => 'select',
       "#title" => $this->t("List to subscribe"),
       '#options' => $sswf->getLists(),
-      '#default_value' => $this->configuration['active_list']
+      '#default_value' => $this->configuration['active_list'],
     ];
 
     return $this->setSettingsParents($form);
@@ -78,21 +76,22 @@ class SharpSpringCrmListHandler extends WebformHandlerBase {
   /**
    * {@inheritdoc}
    */
-  public function submitConfigurationForm(array &$form, FormStateInterface $form_state): void
-  {
+  public function submitConfigurationForm(array &$form, FormStateInterface $form_state): void {
     parent::submitConfigurationForm($form, $form_state);
-    $this->configuration['active_list'] = $form_state->getValue(['sharpspring', 'active_list']);
+    $this->configuration['active_list'] = $form_state->getValue([
+      'sharpspring',
+      'active_list',
+    ]);
   }
 
   /**
    * {@inheritdoc}
    */
-  public function submitForm(array &$form, FormStateInterface $form_state, WebformSubmissionInterface $webform_submission)
-  {
-    // Get config for module
+  public function submitForm(array &$form, FormStateInterface $form_state, WebformSubmissionInterface $webform_submission) {
+    // Get config for module.
     $listId = $this->configuration['active_list'];
 
-    // Get Submitted Email Address
+    // Get Submitted Email Address.
     $emailAddress = $form_state->getValue('email_address');
 
     if (!empty(($emailAddress))) {
diff --git a/src/SharpSpringCrm.php b/src/SharpSpringCrm.php
index 6b6caeb..11f0e93 100644
--- a/src/SharpSpringCrm.php
+++ b/src/SharpSpringCrm.php
@@ -5,33 +5,39 @@ namespace Drupal\sharpspring_crm;
 use Drupal\webform\Entity\WebformSubmission;
 use GuzzleHttp\Exception\GuzzleException;
 
+/**
+ * Sharp Spring Crm.
+ */
 class SharpSpringCrm {
 
   /**
-   * Configuration object containing the variables
+   * Configuration object containing the variables.
+   *
+   * @var config
    */
   protected $config;
 
   /**
    * SharpSpringCrm constructor.
    */
-  public function __construct()
-  {
+  public function __construct() {
     $configFactory = \Drupal::configFactory();
     $this->config = $configFactory->getEditable('sharpspring_crm.settings');
   }
 
   /**
-   * Get List of Existing Email Lists
+   * Get List of Existing Email Lists.
    */
-  public function getLists(): array
-  {
+  public function getLists(): array {
 
     try {
-      // Implements SharpSpring getActiveLists
+      // Implements SharpSpring getActiveLists.
       $client = \Drupal::httpClient();
       $method = 'getActiveLists';
-      $queryString = http_build_query(array('accountID' => $this->config->get("account_id"), 'secretKey' => $this->config->get("secret_key")));
+      $queryString = http_build_query([
+        'accountID' => $this->config->get("account_id"),
+        'secretKey' => $this->config->get("secret_key"),
+      ]);
       $url = 'http://api.sharpspring.com/pubapi/v1/?' . $queryString;
 
       $data = new \stdClass();
@@ -39,11 +45,11 @@ class SharpSpringCrm {
       $data->id = rand();
       $data->params = ['where' => []];
       $request = $client->post($url, [
-        'json' => $data
+        'json' => $data,
       ]);
-      $lists = json_decode($request->getBody(), true);
+      $lists = json_decode($request->getBody(), TRUE);
 
-      // Transform results into array of IDs and Names
+      // Transform results into array of IDs and Names.
       $activeLists = [];
       foreach ($lists['result']['activeList'] as $key => $list) {
         $activeLists[$list['id']] = $list['name'];
@@ -51,21 +57,24 @@ class SharpSpringCrm {
 
       return $activeLists;
 
-    } catch (GuzzleException $exception) {
+    }
+    catch (GuzzleException $exception) {
       throw $exception;
     }
   }
 
   /**
-   * Implements SharpSpring getFields
+   * Implements SharpSpring getFields.
    */
-  public function getFields(): array
-  {
+  public function getFields(): array {
     try {
-      // Get Active Lists from SharpSpring
+      // Get Active Lists from SharpSpring.
       $client = \Drupal::httpClient();
       $method = 'getFields';
-      $queryString = http_build_query(array('accountID' => $this->config->get("account_id"), 'secretKey' => $this->config->get("secret_key")));
+      $queryString = http_build_query([
+        'accountID' => $this->config->get("account_id"),
+        'secretKey' => $this->config->get("secret_key"),
+      ]);
       $url = 'http://api.sharpspring.com/pubapi/v1/?' . $queryString;
 
       $data = new \stdClass();
@@ -74,23 +83,27 @@ class SharpSpringCrm {
       $data->params = new \stdClass();
       $data->params->where = new \stdClass();
       $request = $client->post($url, [
-        'json' => $data
+        'json' => $data,
       ]);
 
-      return json_decode($request->getBody(), true);
+      return json_decode($request->getBody(), TRUE);
 
-    } catch (GuzzleException $exception) {
+    }
+    catch (GuzzleException $exception) {
       throw $exception;
     }
   }
 
   /**
-   * Implements SharpSpring addListMemberEmailAddress
+   * Implements SharpSpring addListMemberEmailAddress.
    */
   public function addListMemberEmailAddress(string $listId, string $emailAddress) {
     $client = \Drupal::httpClient();
     $method = 'addListMemberEmailAddress';
-    $queryString = http_build_query(array('accountID' => $this->config->get("account_id"), 'secretKey' => $this->config->get("secret_key")));
+    $queryString = http_build_query([
+      'accountID' => $this->config->get("account_id"),
+      'secretKey' => $this->config->get("secret_key"),
+    ]);
     $url = 'http://api.sharpspring.com/pubapi/v1/?' . $queryString;
 
     $data = new \stdClass();
@@ -98,21 +111,24 @@ class SharpSpringCrm {
     $data->id = rand();
     $data->params = ['listID' => $listId, 'emailAddress' => $emailAddress];
     $request = $client->post($url, [
-      'json' => $data
+      'json' => $data,
     ]);
     $result = $request->getStatusCode();
   }
 
   /**
-   * Implements SharpSpring createLeads
+   * Implements SharpSpring createLeads.
+   *
    * @todo Add Update if exists?
    */
-  public function createLeads(\stdClass $leadToSend, WebformSubmission $webform_submission)
-  {
+  public function createLeads(\stdClass $leadToSend, WebformSubmission $webform_submission) {
     try {
       $client = \Drupal::httpClient();
       $method = 'createLeads';
-      $queryString = http_build_query(array('accountID' => $this->config->get("account_id"), 'secretKey' => $this->config->get("secret_key")));
+      $queryString = http_build_query([
+        'accountID' => $this->config->get("account_id"),
+        'secretKey' => $this->config->get("secret_key"),
+      ]);
       $url = 'http://api.sharpspring.com/pubapi/v1/?' . $queryString;
 
       $data = new \stdClass();
@@ -121,22 +137,25 @@ class SharpSpringCrm {
       $data->params = new \stdClass();
       $data->params->objects = [$leadToSend];
       $request = $client->post($url, [
-        'json' => $data
+        'json' => $data,
       ]);
       $response = json_decode($request->getBody());
 
-      // Track Results
+      // Track Results.
       switch ($response->result->creates[0]->success) {
         case TRUE:
-          return true;
+          return TRUE;
+
         case FALSE:
           $error = $response->error[0]->code . ': ' . $response->error[0]->message;
           \Drupal::logger('sharpspring_crm')->notice($error);
-          return false;
+          return FALSE;
       }
-    } catch (GuzzleException $e) {
+    }
+    catch (GuzzleException $e) {
       \Drupal::logger('sharpspring_crm')->error($e->getMessage());
       throw $e;
     }
   }
+
 }
