diff --git a/src/includes/date-utilities.php b/src/includes/date-utilities.php
index 324eaff1..1df9f262 100644
--- a/src/includes/date-utilities.php
+++ b/src/includes/date-utilities.php
@@ -43,4 +43,4 @@ function mt_current_time() {
$timestamp = $timestamp + $offset;
return $timestamp;
-}
\ No newline at end of file
+}
diff --git a/src/mt-add-to-cart.php b/src/mt-add-to-cart.php
index 111161ef..03eeb01c 100644
--- a/src/mt-add-to-cart.php
+++ b/src/mt-add-to-cart.php
@@ -61,12 +61,12 @@ function mt_has_tickets( $pricing ) {
/**
* Check add to cart form exit conditions. Returns the event registration array if all conditions pass.
*
- * @param int $event_id Event post ID.
+ * @param int $event_id Event post ID.
* @param bool $override Is the add to cart form output being overridden.
*
* @return bool|array
*/
- function mt_check_early_returns( $event_id, $override) {
+function mt_check_early_returns( $event_id, $override ) {
$options = array_merge( mt_default_settings(), get_option( 'mt_settings', array() ) );
$purchase_page = $options['mt_purchase_page'];
$receipt_page = $options['mt_receipt_page'];
@@ -175,7 +175,7 @@ function mt_registration_form( $content, $event = false, $view = 'calendar', $ti
$sold_out = false;
$total_order = 0;
foreach ( $pricing as $type => $settings ) {
- $row = mt_ticket_row( $event_id, $registration, $settings, $type, $available, $tickets_remaining );
+ $row = mt_ticket_row( $event_id, $registration, $settings, $type, $available, $tickets_remaining );
if ( $row ) {
$form .= $row['form'];
$handling_notice = $row['handling'];
@@ -288,6 +288,7 @@ function mt_registration_form( $content, $event = false, $view = 'calendar', $ti
* @param array $settings Settings for this row.
* @param string $type Type of ticket.
* @param int|string $available Number of tickets available or 'inherit'.
+ * @param int $tickets_remaining Number of ticket left for purchase.
*
* @return array|bool 'false' if ticket is not purchaseable.
*/
diff --git a/src/mt-payment-settings.php b/src/mt-payment-settings.php
index 9f77091d..4722162b 100644
--- a/src/mt-payment-settings.php
+++ b/src/mt-payment-settings.php
@@ -187,14 +187,14 @@ function mt_payment_settings() {