Skip to content

Commit 83e1e84

Browse files
committed
Rename variable to comply to codestyle standards
1 parent 0319bb0 commit 83e1e84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ private function getCouponCodeSelect($couponCode)
233233
$this->_date->date()->format('Y-m-d')
234234
);
235235

236-
$isAutogeneratedCoupon =
236+
$isAutogenerated =
237237
$this->getConnection()->quoteInto('main_table.coupon_type = ?', Rule::COUPON_TYPE_AUTO)
238238
. ' AND ' .
239239
$this->getConnection()->quoteInto('rule_coupons.type = ?', CouponInterface::TYPE_GENERATED);
240240

241-
$isValidSpecificCoupon =
241+
$isValidSpecific =
242242
$this->getConnection()->quoteInto('(main_table.coupon_type = ?)', Rule::COUPON_TYPE_SPECIFIC)
243243
. ' AND (' .
244244
'(main_table.use_auto_generation = 1 AND rule_coupons.type = 1)'
@@ -247,7 +247,7 @@ private function getCouponCodeSelect($couponCode)
247247
. ')';
248248

249249
$couponSelect->where(
250-
"$notExpired AND ($isAutogeneratedCoupon OR $isValidSpecificCoupon)",
250+
"$notExpired AND ($isAutogenerated OR $isValidSpecific)",
251251
null,
252252
Select::TYPE_CONDITION
253253
);

0 commit comments

Comments
 (0)