diff --git a/README.md b/README.md
index 1d64dca..569bff9 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
 # Search Form History
 
-This module facilitates search tracking for your search form, utilizing form attribute values. The tracking data can be displayed using Views.
+This module facilitates search tracking for your search form, utilizing form
+attribute values. The tracking data can be displayed using Views.
 
 For a full installation of the module, visit the
 [project page](https://www.drupal.org/project/search_tracking).
@@ -20,13 +21,15 @@ Submit bug reports and feature suggestions, or track changes in the
 ## Features
 
 - Provides views (Search Tracking) to display the search tracking data.
-- Displays searched keyword, IP address of the keyword searched from and searched timestrap.
+- Displays searched keyword, IP address of the keyword searched from and
+  searched timestrap.
 - Provides tracking using form attributes (id, class and input name).
 - Easy to use and configure.
 
 ## Requirements
 
-- Form attributes: Requires form attributes to track the search information of the form.
+- Form attributes: Requires form attributes to track the search information
+  of the form.
 
 ## Installation
 
@@ -36,15 +39,20 @@ information, see
 
 ## Configuration
 
-- Go to the configuration page of the Search Tracking module (/admin/config/search/search-tracking/form-config).
+- Go to the configuration page of the Search Tracking module
+  (/admin/config/search/search-tracking/form-config).
 - Enter the form attributes you want to use to track the searched keywords.
-- In the configuration page, you can choose whether you want to use the form's id or class.
-- Then go to the views page (admin/structure/views). Here you can add your view using the 'Search Tracking' view.
-- You can customize the view as per your requirements like other views you do. 
+- In the configuration page, you can choose whether you want to use the
+  form's id or class.
+- Then go to the views page (admin/structure/views). Here you can add your
+  view using the 'Search Tracking' view.
+- You can customize the view as per your requirements like other views you do.
 
 ## Troubleshooting
 
-It requires form id or class and the input element 'name' attribute to track the specified text searched from the input element. If any mistakes happen when entering the attribute it will throw an error.
+It requires form id or class and the input element 'name' attribute to track
+the specified text searched from the input element. If any mistakes happen
+when entering the attribute it will throw an error.
 
 ## Maintainers
 
@@ -52,7 +60,7 @@ It requires form id or class and the input element 'name' attribute to track the
 
 [Infospica Consultancy Services](https://www.drupal.org/infospica-consultancy-services)
 Description of the company….
-	
+
 
 ### Current Maintainers
 
@@ -61,8 +69,6 @@ Description of the company….
 - [Amal P (Amal_P)](https://www.drupal.org/u/amal_p)
 
 
-## Supporting Organizations 
+## Supporting Organizations
 
 [Infospica Consultancy Services](https://www.drupal.org/infospica-consultancy-services) - Concept, Drupal 8,9 and 10 development
-
-
diff --git a/search_tracking.info.yml b/search_tracking.info.yml
index 2f6932b..7ccde3e 100644
--- a/search_tracking.info.yml
+++ b/search_tracking.info.yml
@@ -1,13 +1,8 @@
 name: Search Tracking
 description: Provides searched content history with the provided form.
-type: module 
+type: module
 core_version_requirement: ^8 || ^9 || ^10
 package: Search
 
 libraries:
   - search_tracking/form-api-data
-
-# Information added by Drupal.org packaging script on 2024-01-11
-version: '1.0.0'
-project: 'search_tracking'
-datestamp: 1704954013
diff --git a/search_tracking.install b/search_tracking.install
index 6bb02c9..4e511d0 100644
--- a/search_tracking.install
+++ b/search_tracking.install
@@ -1,34 +1,43 @@
 <?php
+
+/**
+ * @file
+ * Implements hook_schema().
+ */
+
+/**
+ * Implements hook_schema().
+ */
 function search_tracking_schema() {
-  $schema['search_tracking'] = array(
+  $schema['search_tracking'] = [
     'description' => 'A table to store simple data',
-    'fields' => array(
-      'id' => array(
-      'description' => 'Holds the id value',
-      'type' => 'serial',
-      'unsigned' => TRUE,
-      'not null' => TRUE,
-      ),
-      'search' => array(
+    'fields' => [
+      'id' => [
+        'description' => 'Holds the id value',
+        'type' => 'serial',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+      ],
+      'search' => [
         'description' => 'Holds the keyword value',
         'type' => 'varchar',
         'length' => '100',
         'not null' => TRUE,
-      ),
-      'ip_address' => array(
+      ],
+      'ip_address' => [
         'description' => 'Holds the ip address',
         'type' => 'varchar',
         'length' => '100',
         'not null' => TRUE,
-      ),
-      'created_on' => array(
+      ],
+      'created_on' => [
         'description' => 'Holds the created time value',
         'mysql_type' => 'datetime',
         'length' => '100',
         'not null' => FALSE,
-      )
-    ),  
-    'primary key' => array('id'), 
-  );  
+      ],
+    ],
+    'primary key' => ['id'],
+  ];
   return $schema;
 }
diff --git a/search_tracking.module b/search_tracking.module
index 9b72998..2a9db4a 100644
--- a/search_tracking.module
+++ b/search_tracking.module
@@ -1,9 +1,10 @@
 <?php
 
-use \Drupal\Core\Database\Connection;
-use Drupal\user\Entity\User;
-use Drupal\Core\Form\FormStateInterface;
-use \Drupal\Core\Datetime\DrupalDateTime;
+/**
+ * @file
+ * Implements hook_page_attachments().
+ */
+
 /**
  * Implements hook_page_attachments().
  */
@@ -11,42 +12,44 @@ function search_tracking_page_attachments(array &$attachments) {
   // Attach the CSS library to every page on the site.
   $attachments['#attached']['library'][] = 'search_tracking/form-api-data';
 }
+
 /**
  * Implements hook_page_preprocess().
  */
 function search_tracking_preprocess_page(&$variables) {
-  // base url
+  // Base url.
   global $base_url;
   $variables['#attached']['drupalSettings']['search_form']['base_url'] = $base_url;
-  // config values
+  // Config values.
   $configFactory = \Drupal::service('config.factory');
   $config = $configFactory->getEditable('search_tracking.settings');
   $attr_type = $config->get('attr_type');
-  if($attr_type == '1') {
-    if($config->get('form_attr_id') != NULL && $config->get('input_name') != NULL) {
+  if ($attr_type == '1') {
+    if ($config->get('form_attr_id') != NULL && $config->get('input_name') != NULL) {
       $variables['#attached']['drupalSettings']['search_form']['form_attr_id'] = $config->get('form_attr_id');
       $variables['#attached']['drupalSettings']['search_form']['input_name'] = $config->get('input_name');
     }
   }
-  elseif($attr_type == '2') {
-    if($config->get('form_class') != NULL && $config->get('input_name') != NULL) {
+  elseif ($attr_type == '2') {
+    if ($config->get('form_class') != NULL && $config->get('input_name') != NULL) {
       $variables['#attached']['drupalSettings']['search_form']['form_class'] = $config->get('form_class');
       $variables['#attached']['drupalSettings']['search_form']['input_name'] = $config->get('input_name');
     }
   }
-  elseif($attr_type == '3') {
-    if($config->get('url_param') != NULL) {
+  elseif ($attr_type == '3') {
+    if ($config->get('url_param') != NULL) {
       $variables['#attached']['drupalSettings']['search_form']['url_param'] = $config->get('url_param');
     }
   }
 }
+
 /**
  * Implements hook_theme().
-*/
+ */
 function search_tracking_theme($existing, $type, $theme, $path) {
   return [
-        'page__admin__config__search__search_tracking' => [
-          'base hook' => 'page',
-        ]
-    ];
-}
\ No newline at end of file
+    'page__admin__config__search__search_tracking' => [
+      'base hook' => 'page',
+    ],
+  ];
+}
diff --git a/search_tracking.routing.yml b/search_tracking.routing.yml
index fb18bf7..5ce0f33 100644
--- a/search_tracking.routing.yml
+++ b/search_tracking.routing.yml
@@ -1,11 +1,11 @@
 search_tracking.api:
   path: '/api/form-data'
   defaults:
-    _controller: '\Drupal\search_tracking\Controller\searchTrackingController::formData'
+    _controller: '\Drupal\search_tracking\Controller\SearchTrackingController::formData'
     _title: 'Search Form API'
   requirements:
     _permission: access content
-    
+
 search_tracking.searchTrackingConfig:
   path: admin/config/search/search-tracking/form-config
   defaults:
diff --git a/search_tracking.views.inc b/search_tracking.views.inc
index bff55ed..74b0b1d 100644
--- a/search_tracking.views.inc
+++ b/search_tracking.views.inc
@@ -1,45 +1,48 @@
 <?php
 
 /**
+ * @file
  * Implements hook_views_data().
  */
 
+/**
+ * Implements hook_views_data().
+ */
 function search_tracking_views_data() {
-    $data = [];
-    $data['search_tracking']['table']['group'] = t('Search Tracking');
-    $data['search_tracking']['table']['base'] = [
-        'title' => t('Search Tracking'),
-        'help' => t('Search Tracking data.'),
-    ];
-    // Fields.
-    $data['search_tracking']['search'] = [
-        'title' => t('Keyword'),
-        'help' => t('Keywords searched in the site.'),
-        'field' => [
-        'id' => 'standard',
-        ],
-    ];
-    $data['search_tracking']['ip_address'] = [
-        'title' => t('Ip address'),
-        'help' => t('Ip address of the device that the keyword searched from.'),
-        'field' => [
-        'id' => 'standard',
-        ],
-    ];
-    $data['search_tracking']['created_on'] = [
-        'title' => t('Searched on'),
-        'help' => t('The keyword searched time.'),
-        'field' => [
-            'id' => 'standard',
-        ],
-        'filter' => [
-            'id' => 'standard',
-            'title' => t('Searched on'),
-        ],
-        'sort' => [
-            'id' => 'standard',
-        ],
-    ];
-    return $data;
-}   
-
+  $data = [];
+  $data['search_tracking']['table']['group'] = t('Search Tracking');
+  $data['search_tracking']['table']['base'] = [
+    'title' => t('Search Tracking'),
+    'help' => t('Search Tracking data.'),
+  ];
+  // Fields.
+  $data['search_tracking']['search'] = [
+    'title' => t('Keyword'),
+    'help' => t('Keywords searched in the site.'),
+    'field' => [
+      'id' => 'standard',
+    ],
+  ];
+  $data['search_tracking']['ip_address'] = [
+    'title' => t('Ip address'),
+    'help' => t('Ip address of the device that the keyword searched from.'),
+    'field' => [
+      'id' => 'standard',
+    ],
+  ];
+  $data['search_tracking']['created_on'] = [
+    'title' => t('Searched on'),
+    'help' => t('The keyword searched time.'),
+    'field' => [
+      'id' => 'standard',
+    ],
+    'filter' => [
+      'id' => 'standard',
+      'title' => t('Searched on'),
+    ],
+    'sort' => [
+      'id' => 'standard',
+    ],
+  ];
+  return $data;
+}
diff --git a/src/Controller/searchTrackingController.php b/src/Controller/SearchTrackingController.php
similarity index 73%
rename from src/Controller/searchTrackingController.php
rename to src/Controller/SearchTrackingController.php
index 517fac1..65c49d7 100644
--- a/src/Controller/searchTrackingController.php
+++ b/src/Controller/SearchTrackingController.php
@@ -3,25 +3,25 @@
 namespace Drupal\search_tracking\Controller;
 
 use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\HttpFoundation\JsonResponse;
-use \Drupal\Core\Database\Connection;
-use Symfony\Component\HttpFoundation;
 
 /**
  * Provides coordinates and stores in session.
  */
-class searchTrackingController extends ControllerBase {
+class SearchTrackingController extends ControllerBase {
 
+  /**
+   * Implements formdata().
+   */
   public function formData() {
     $jsonData = file_get_contents('php://input');
-    $keyword = json_decode($jsonData, true);
-    if($keyword['name']){
+    $keyword = json_decode($jsonData, TRUE);
+    if ($keyword['name']) {
       $connection = \Drupal::service('database');
       $connection->insert('search_tracking')
         ->fields([
           'search' => $keyword['name'],
-          'ip_address' => \Drupal::request()->getClientIp(), 
+          'ip_address' => \Drupal::request()->getClientIp(),
           'created_on' => date('Y-m-d H:i:s', \Drupal::time()->getCurrentTime()),
           // Add more fields as needed.
         ])
@@ -30,7 +30,10 @@ class searchTrackingController extends ControllerBase {
     return new JsonResponse();
   }
 
-  public function search_tracking() {
+  /**
+   * Implements searchTracking().
+   */
+  public function searchTracking() {
     $database = \Drupal::database();
     $query = $database->query("SELECT id,search,ip_address,created_on FROM `search_tracking`");
     $result = $query->fetchAll();
@@ -40,4 +43,5 @@ class searchTrackingController extends ControllerBase {
       '#items' => $result,
     ];
   }
+
 }
diff --git a/src/Form/SearchTrackingConfig.php b/src/Form/SearchTrackingConfig.php
index a01d49a..ff69624 100644
--- a/src/Form/SearchTrackingConfig.php
+++ b/src/Form/SearchTrackingConfig.php
@@ -1,123 +1,108 @@
 <?php
 
-/**
- * @file
- * Contains Search Form History configuration form
- */
-
 namespace Drupal\search_tracking\Form;
 
 use Drupal\Core\Form\ConfigFormBase;
 use Drupal\core\Form\FormStateInterface;
-use Drupal\Core\Url;
-
 
 /**
- *  Search Form History editable configuration
+ * Search Form History editable configuration.
  */
-class SearchTrackingConfig extends ConfigFormBase
-{
+class SearchTrackingConfig extends ConfigFormBase {
+
+  /**
+   * Implements ::getEditableConfigNames().
+   */
+  protected function getEditableConfigNames() {
+    return [
+      'search_tracking.settings',
+    ];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFormId() {
+    return 'search_tracking_config_form';
+  }
 
-    protected function getEditableConfigNames()
-    {
-        return [
-            'search_tracking.settings'
-        ];
-    }
+  /**
+   * {@inheritdoc}
+   */
+  public function buildForm(array $form, FormStateInterface $form_state) {
+    $config = $this->config('search_tracking.settings');
 
-    /**
-     * {@inheritdoc}
-     */
-    public function getFormId()
-    {
-        return 'search_tracking_config_form';
-    }
+    $form['attr_type'] = [
+      '#type' => 'select',
+      '#title' => $this->t('Attribute'),
+      '#description' => $this->t('Select the attribute type.'),
+      '#options' => ['1' => $this->t('ID'), '2' => $this->t('Class'), '3' => $this->t('Url Parameter')],
+      '#default_value' => $config->get('attr_type'),
+    ];
+    $form['form_attr_id'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Form id'),
+      '#description' => $this->t('Enter the form id of your form here. For example: #form-id'),
+      '#states' => [
+        'visible' => ['select[name="attr_type"]' => ['value' => '1']],
+      ],
+      '#default_value' => $config->get('form_attr_id'),
+    ];
+    $form['form_class'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Form class'),
+      '#description' => $this->t('Enter the form class here. For example: .form-class'),
+      '#states' => [
+        'visible' => ['select[name="attr_type"]' => ['value' => '2']],
+      ],
+      '#default_value' => $config->get('form_class'),
+    ];
+    $form['url_param'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Url parameter'),
+      '#description' => $this->t('Enter the url parameter here.'),
+      '#states' => [
+        'visible' => ['select[name="attr_type"]' => ['value' => '3']],
+      ],
+      '#default_value' => $config->get('url_param'),
+    ];
+    $form['input_name'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Input name attribute'),
+      '#description' => $this->t('Enter the input name attribute value here.'),
+      '#states' => [
+        'visible' => [
+          ':input[name="attr_type"]' => [
+                      ['value' => '1'],
+                      ['value' => '2'],
+          ],
+        ],
+      ],
+      '#default_value' => $config->get('input_name'),
+    ];
 
-    /**
-     * {@inheritdoc}
-     */
-    public function buildForm(array $form, FormStateInterface $form_state)
-    {
-        $config = $this->config('search_tracking.settings');
+    return parent::buildForm($form, $form_state);
+  }
 
-        $form['attr_type'] = [
-            '#type' => 'select',
-            '#title' => $this->t('Attribute'),
-            '#description' => $this->t('Select the attribute type.'),
-            '#options' => array('1' => 'ID', '2' => 'Class', '3' => 'Url Parameter'),
-            '#default_value' => $config->get('attr_type'),
-        ];
-        $form['form_attr_id'] = [
-            '#type' => 'textfield',
-            '#title' => $this->t('Form id'),
-            '#description' => $this->t('Enter the form id of your form here. For example: #form-id'),
-            '#states' => array(
-                'visible' => array('select[name="attr_type"]' => array('value' => '1')),
-            ),
-            '#default_value' => $config->get('form_attr_id'),
-        ];
-        $form['form_class'] = [
-            '#type' => 'textfield',
-            '#title' => $this->t('Form class'),
-            '#description' => $this->t('Enter the form class here. For example: .form-class'),
-            '#states' => array(
-                'visible' => array('select[name="attr_type"]' => array('value' => '2')),
-            ),
-            '#default_value' => $config->get('form_class'),
-        ];
-        $form['url_param'] = [
-            '#type' => 'textfield',
-            '#title' => $this->t('Url parameter'),
-            '#description' => $this->t('Enter the url parameter here.'),
-            '#states' => array(
-                'visible' => array('select[name="attr_type"]' => array('value' => '3')),
-            ),
-            '#default_value' => $config->get('url_param'),
-        ];
-        $form['input_name'] = [
-            '#type' => 'textfield',
-            '#title' => $this->t('Input name attribute'),
-            '#description' => $this->t('Enter the input name attribute value here.'),
-            '#states' => [
-                'visible' => [
-                    ':input[name="attr_type"]' => [
-                        ['value' => '1'],
-                        ['value' => '2'],
-                    ],
-                ],
-            ],
-            '#default_value' => $config->get('input_name'),
-        ];
+  /**
+   * {@inheritdoc}
+   */
+  public function getCacheMaxAge() {
+    return 0;
+  }
 
-        return parent::buildForm($form, $form_state);
-    }
+  /**
+   * {@inheritdoc}
+   */
+  public function submitForm(array &$form, FormStateInterface $form_state) {
+    parent::submitForm($form, $form_state);
+    $this->config('search_tracking.settings')
+      ->set('attr_type', $form_state->getValue('attr_type'))
+      ->set('form_attr_id', $form_state->getValue('form_attr_id'))
+      ->set('form_class', $form_state->getValue('form_class'))
+      ->set('url_param', $form_state->getValue('url_param'))
+      ->set('input_name', $form_state->getValue('input_name'))
+      ->save();
+  }
 
-    /**
-     * {@inheritdoc}
-     */
-    public function validateForm(array &$form, FormStateInterface $form_state)
-    {
-        parent::validateForm($form, $form_state);
-    }
-    /**
-     * {@inheritdoc}
-     */
-    public function getCacheMaxAge()
-    {
-        return 0;
-    }
-    /**
-     * {@inheritdoc}
-     */
-    public function submitForm(array &$form, FormStateInterface $form_state)
-    {
-        parent::submitForm($form, $form_state);
-        $this->config('search_tracking.settings')
-            ->set('attr_type', $form_state->getValue('attr_type'))
-            ->set('form_attr_id', $form_state->getValue('form_attr_id'))
-            ->set('form_class', $form_state->getValue('form_class'))
-            ->set('url_param', $form_state->getValue('url_param'))
-            ->set('input_name', $form_state->getValue('input_name'))
-            ->save();
-    }
 }
diff --git a/templates/page--admin--config--search--search-tracking.html.twig b/templates/page--admin--config--search--search-tracking.html.twig
index f132daa..d622b61 100644
--- a/templates/page--admin--config--search--search-tracking.html.twig
+++ b/templates/page--admin--config--search--search-tracking.html.twig
@@ -61,4 +61,4 @@
       <img src="http://localhost/projects/learn/drupal/drupal-10.2.1/modules/contrib/search_tracking/logo.png" alt="Infospica Consultancy Services" width="100" height="100">
     </a></p>
   </main>
-</div>
\ No newline at end of file
+</div>
