php-cs-fixer

This commit is contained in:
Julien Chanséaume
2014-08-01 09:59:21 +02:00
committed by Julien Chanseaume
parent f7f32c35f8
commit 2b2a5690a7
5 changed files with 9 additions and 9 deletions

View File

@@ -220,7 +220,6 @@ class Coupon extends BaseI18nLoop implements PropelSearchLoopInterface
// which adds a product to the cart. // which adds a product to the cart.
$discount = $couponManager->isInUse() ? $couponManager->exec() : 0; $discount = $couponManager->isInUse() ? $couponManager->exec() : 0;
$loopResultRow $loopResultRow
->set("ID", $coupon->getId()) ->set("ID", $coupon->getId())
->set("IS_TRANSLATED", $coupon->getVirtualColumn('IS_TRANSLATED')) ->set("IS_TRANSLATED", $coupon->getVirtualColumn('IS_TRANSLATED'))

View File

@@ -219,6 +219,7 @@ class TheliaLoop extends AbstractSmartyPlugin
if ($content === null) { if ($content === null) {
if ( ! $this->checkEmptyLoop($params)) { if ( ! $this->checkEmptyLoop($params)) {
$repeat = false; $repeat = false;
return ''; return '';
} }
} }

View File

@@ -509,7 +509,8 @@ abstract class CouponAbstract implements CouponInterface
// Does nothing. Override this function as needed. // Does nothing. Override this function as needed.
} }
public function isInUse() { public function isInUse()
{
return in_array( return in_array(
$this->code, $this->code,
$this->facade->getRequest()->getSession()->getConsumedCoupons() $this->facade->getRequest()->getSession()->getConsumedCoupons()

View File

@@ -89,7 +89,6 @@ class Order extends BaseOrder
return parent::preSave($con); return parent::preSave($con);
} }
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */