php-cs-fixer
This commit is contained in:
committed by
Julien Chanseaume
parent
f7f32c35f8
commit
2b2a5690a7
@@ -269,9 +269,9 @@ class Product extends BaseAction implements EventSubscriberInterface
|
|||||||
$product = $event->getProduct();
|
$product = $event->getProduct();
|
||||||
|
|
||||||
// Delete all product feature relations
|
// Delete all product feature relations
|
||||||
if(null !== $featureProducts = FeatureProductQuery::create()->findByProductId($product->getId())){
|
if (null !== $featureProducts = FeatureProductQuery::create()->findByProductId($product->getId())) {
|
||||||
/** @var \Thelia\Model\FeatureProduct $featureProduct */
|
/** @var \Thelia\Model\FeatureProduct $featureProduct */
|
||||||
foreach($featureProducts as $featureProduct){
|
foreach ($featureProducts as $featureProduct) {
|
||||||
$eventDelete = new FeatureProductDeleteEvent($product->getId(), $featureProduct->getFeatureId());
|
$eventDelete = new FeatureProductDeleteEvent($product->getId(), $featureProduct->getFeatureId());
|
||||||
|
|
||||||
$event->getDispatcher()->dispatch(TheliaEvents::PRODUCT_FEATURE_DELETE_VALUE, $eventDelete);
|
$event->getDispatcher()->dispatch(TheliaEvents::PRODUCT_FEATURE_DELETE_VALUE, $eventDelete);
|
||||||
|
|||||||
@@ -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'))
|
||||||
|
|||||||
@@ -217,8 +217,9 @@ class TheliaLoop extends AbstractSmartyPlugin
|
|||||||
{
|
{
|
||||||
//Block the smarty interpretation in the elseloop
|
//Block the smarty interpretation in the elseloop
|
||||||
if ($content === null) {
|
if ($content === null) {
|
||||||
if ( ! $this->checkEmptyLoop($params)){
|
if ( ! $this->checkEmptyLoop($params)) {
|
||||||
$repeat = false;
|
$repeat = false;
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ abstract class CouponAbstract implements CouponInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param true $perCustomerUsageCount
|
* @param true $perCustomerUsageCount
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setPerCustomerUsageCount($perCustomerUsageCount)
|
public function setPerCustomerUsageCount($perCustomerUsageCount)
|
||||||
@@ -428,8 +428,8 @@ abstract class CouponAbstract implements CouponInterface
|
|||||||
*
|
*
|
||||||
* This method should be overriden to be useful.
|
* This method should be overriden to be useful.
|
||||||
*
|
*
|
||||||
* @param string $fieldName
|
* @param string $fieldName
|
||||||
* @param string $fieldValue
|
* @param string $fieldValue
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws \InvalidArgumentException if the field value is not valid.
|
* @throws \InvalidArgumentException if the field value is not valid.
|
||||||
*/
|
*/
|
||||||
@@ -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()
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ class Order extends BaseOrder
|
|||||||
return parent::preSave($con);
|
return parent::preSave($con);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user