From 44d5b78e3ec1323a700bfc2f35e6b86e5534c8b1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 13 Oct 2017 11:22:28 +0300 Subject: [PATCH] Clean up code --- app/Console/Commands/SendRenewalInvoices.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/Console/Commands/SendRenewalInvoices.php b/app/Console/Commands/SendRenewalInvoices.php index ca0a11568cb7..a054c2e18b2c 100644 --- a/app/Console/Commands/SendRenewalInvoices.php +++ b/app/Console/Commands/SendRenewalInvoices.php @@ -74,13 +74,6 @@ class SendRenewalInvoices extends Command $plan['num_users'] = $company->num_users; $plan['price'] = min($company->plan_price, Utils::getPlanPrice($plan)); - if ($company->pending_plan) { - $plan['plan'] = $company->pending_plan; - $plan['term'] = $company->pending_term; - $plan['num_users'] = $company->pending_num_users; - $plan['price'] = min($company->pending_plan_price, Utils::getPlanPrice($plan)); - } - if ($plan['plan'] == PLAN_FREE || ! $plan['plan'] || ! $plan['term'] || ! $plan['price']) { continue; }