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

@@ -269,9 +269,9 @@ class Product extends BaseAction implements EventSubscriberInterface
$product = $event->getProduct();
// 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 */
foreach($featureProducts as $featureProduct){
foreach ($featureProducts as $featureProduct) {
$eventDelete = new FeatureProductDeleteEvent($product->getId(), $featureProduct->getFeatureId());
$event->getDispatcher()->dispatch(TheliaEvents::PRODUCT_FEATURE_DELETE_VALUE, $eventDelete);