diff --git a/src/Plugin/views/field/CumulativeField.php b/src/Plugin/views/field/CumulativeField.php
index bcae82c..b3883b0 100644
--- a/src/Plugin/views/field/CumulativeField.php
+++ b/src/Plugin/views/field/CumulativeField.php
@@ -8,7 +8,6 @@ use Drupal\views\Plugin\views\field\NumericField;
 use Drupal\views\ResultRow;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 
-
 /**
  * @file
  * Defines Drupal\views_cumulative_field\Plugin\views\field\CumulativeField.
@@ -33,15 +32,24 @@ class CumulativeField extends NumericField {
    * Views Cumulative Field constructor.
    *
    * @param array $configuration
-   * @param $plugin_id
-   * @param $plugin_definition
+   *   A configuration array containing information about the plugin instance.
+   * @param string $plugin_id
+   *   The plugin ID.
+   * @param mixed $plugin_definition
+   *   The plugin implementation definition.
    * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
+   *   The entity type manager.
    */
   public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->entityTypeManager = $entity_type_manager;
   }
 
+  /**
+   * Counter for tracking the number of times a certain action occurs.
+   *
+   * @var int
+   */
   private $counter = 0;
 
   /**
@@ -83,11 +91,13 @@ class CumulativeField extends NumericField {
   /**
    * Determine the field type we are dealing with.
    *
-   * @param $field
+   * @param string $field
+   *   The name of the field for which to retrieve the type.
    *
    * @return string
+   *   The field type of the provided field
    */
-  protected function getFieldType($field) {
+  protected function getFieldType(string $field) {
     $field_handler = $this->displayHandler->getHandler('field', $field)->options ?? NULL;
     if (!empty($field_handler['type'])) {
       $field_type = $field_handler['type'];
@@ -100,13 +110,15 @@ class CumulativeField extends NumericField {
   }
 
   /**
-   * Determine if the field comes from a relationship.
+   * Determines if the field comes from a relationship.
    *
-   * @param $field
+   * @param string $field
+   *   The name of the field for which to retrieve the relationship.
    *
    * @return mixed
+   *   The relationship needed to join tables to retrieve the field data.
    */
-  protected function getFieldRelationship($field) {
+  protected function getFieldRelationship(string $field) {
     $field_handler = $this->displayHandler->getHandler('field', $field)->options ?? NULL;
     if ($field_handler && !empty($field_handler['relationship']) && $field_handler['relationship'] !== 'none') {
       $relationship = $field_handler['relationship'];
@@ -119,13 +131,15 @@ class CumulativeField extends NumericField {
   }
 
   /**
-   * Determine if the field is rewritten/altered.
+   * Determines whether the field is rewritten/altered.
    *
-   * @param $field
+   * @param string $field
+   *   The name of the field to retrieve the rewrite status.
    *
    * @return mixed
+   *   The rewrite status for the provided field,which can be mixed value.
    */
-  protected function getRewriteStatus($field) {
+  protected function getRewriteStatus(string $field) {
     $field_handler = $this->displayHandler->getHandler('field', $field)->options ?? NULL;
     if ($field_handler && $field_handler['alter']['alter_text'] && !empty($field_handler['alter']['text'])) {
       $alter = $field_handler['alter']['text'];
@@ -138,15 +152,22 @@ class CumulativeField extends NumericField {
   }
 
   /**
-   * @param $values
-   * @param $field
-   * @param $relationship
+   * Retrieves relationship entity for given values.
+   *
+   * @param array $values
+   *   An array of values used by the plugin.
+   * @param string $field
+   *   The name of the field to retrieve the relationship entity.
+   * @param string $relationship
+   *   The name of the relationship to retrieve.
    *
    * @return \Drupal\Core\Entity\EntityInterface|null
+   *   An entity representing the relationship, or null if not found.
+   *
    * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
    * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
    */
-  protected function getRelationshipEntity($values, $field, $relationship) {
+  protected function getRelationshipEntity(array $values, $field, $relationship) {
     $relationship_entity = NULL;
     // Get the entity type of the relationship.
     $relationship_entity_type = $this->displayHandler
diff --git a/views_cumulative_field.views.inc b/views_cumulative_field.views.inc
index 3174147..2d49623 100644
--- a/views_cumulative_field.views.inc
+++ b/views_cumulative_field.views.inc
@@ -1,5 +1,10 @@
 <?php
 
+/**
+ * @file
+ * Hook implementations for the Views Cumulative Field module.
+ */
+
 /**
  * Implements hook_views_data().
  */
@@ -14,8 +19,9 @@ function views_cumulative_field_views_data() {
     'help' => t('Views field that calculates the cumulative value of another field in your view.'),
     'field' => [
       'id' => 'field_cumulative_field',
-      // Allow users to specify how precise the results should be. Useful for divisions
-      'float' => TRUE
+      // Allows users to specify how precise the results should be.
+      // This is useful for divisions.
+      'float' => TRUE,
     ],
   ];
 
