Skip to content

Commit

Permalink
More PHPDocs work
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jan 1, 2025
1 parent ffb0b7e commit df236d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion upload/catalog/model/account/reward.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getTotalRewards(): int {
/**
* Get Total Points
*
* @return int total number of point records
* @return int total number of reward point records
*/
public function getTotalPoints(): int {
$query = $this->db->query("SELECT SUM(`points`) AS `total` FROM `" . DB_PREFIX . "customer_reward` WHERE `customer_id` = '" . (int)$this->customer->getId() . "' GROUP BY `customer_id`");
Expand Down
6 changes: 3 additions & 3 deletions upload/system/library/cart/customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function getNewsletter(): bool {
/**
* Get Address ID
*
* @return int
* @return int address record
*/
public function getAddressId(): int {
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "address` WHERE `customer_id` = '" . (int)$this->customer_id . "' AND `default` = '1'");
Expand All @@ -230,7 +230,7 @@ public function getAddressId(): int {
/**
* Get Balance
*
* @return float
* @return float total number of balance records
*/
public function getBalance(): float {
$query = $this->db->query("SELECT SUM(`amount`) AS `total` FROM `" . DB_PREFIX . "customer_transaction` WHERE `customer_id` = '" . (int)$this->customer_id . "'");
Expand All @@ -241,7 +241,7 @@ public function getBalance(): float {
/**
* Get Reward Points
*
* @return float
* @return float total number of reward point records
*/
public function getRewardPoints(): float {
$query = $this->db->query("SELECT SUM(`points`) AS `total` FROM `" . DB_PREFIX . "customer_reward` WHERE `customer_id` = '" . (int)$this->customer_id . "'");
Expand Down

0 comments on commit df236d2

Please sign in to comment.