Some indentation

This commit is contained in:
jekkos
2017-08-05 19:56:54 +02:00
committed by FrancescoUK
parent 6b0a2576a3
commit 4a05f00307
2 changed files with 4 additions and 6 deletions

View File

@@ -33,10 +33,6 @@ class Token_customer extends Token
return trim($customer_info->first_name . ' ' . $customer_info->last_name);
}
}
elseif (!empty($this->customer_info))
{
}
return $value;
}

View File

@@ -1294,10 +1294,12 @@ class Sale extends CI_Model
*/
private function save_customer_rewards($customer_id, $sale_id, $total_amount, $total_amount_used)
{
if (!empty($customer_id) && $this->config->item('customer_reward_enable') == TRUE) {
if (!empty($customer_id) && $this->config->item('customer_reward_enable') == TRUE)
{
$package_id = $this->Customer->get_info($customer_id)->package_id;
if (!empty($package_id)) {
if (!empty($package_id))
{
$points_percent = $this->Customer_rewards->get_points_percent($package_id);
$points = $this->Customer->get_info($customer_id)->points;
$points = ($points == NULL ? 0 : $points);