From cae0db00eb80b67355fc817ce76b99421f11f353 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Sat, 17 May 2014 12:00:08 +0200 Subject: [PATCH] Applied Windows version of php-cs script --- core/lib/Thelia/Model/Coupon.php | 4 ++-- core/lib/Thelia/Model/CouponCountryQuery.php | 1 - core/lib/Thelia/Model/CouponCustomerCountQuery.php | 1 - core/lib/Thelia/Model/CouponModuleQuery.php | 1 - core/lib/Thelia/Model/Module.php | 4 ++-- core/lib/Thelia/Model/Order.php | 2 ++ core/lib/Thelia/Model/OrderCouponCountryQuery.php | 1 - core/lib/Thelia/Model/OrderCouponModuleQuery.php | 1 - 8 files changed, 6 insertions(+), 9 deletions(-) diff --git a/core/lib/Thelia/Model/Coupon.php b/core/lib/Thelia/Model/Coupon.php index 0e4853de1..b7bf07b6b 100644 --- a/core/lib/Thelia/Model/Coupon.php +++ b/core/lib/Thelia/Model/Coupon.php @@ -107,7 +107,7 @@ class Coupon extends BaseCoupon CouponCountryQuery::create()->filterByCouponId($this->id)->delete(); CouponModuleQuery::create()->filterByCouponId($this->id)->delete(); - foreach($freeShippingForCountries as $countryId) { + foreach ($freeShippingForCountries as $countryId) { if ($countryId <= 0) continue; @@ -120,7 +120,7 @@ class Coupon extends BaseCoupon ; } - foreach($freeShippingForMethods as $moduleId) { + foreach ($freeShippingForMethods as $moduleId) { if ($moduleId <= 0) continue; diff --git a/core/lib/Thelia/Model/CouponCountryQuery.php b/core/lib/Thelia/Model/CouponCountryQuery.php index 1db44ab64..4045d82a1 100644 --- a/core/lib/Thelia/Model/CouponCountryQuery.php +++ b/core/lib/Thelia/Model/CouponCountryQuery.php @@ -4,7 +4,6 @@ namespace Thelia\Model; use Thelia\Model\Base\CouponCountryQuery as BaseCouponCountryQuery; - /** * Skeleton subclass for performing query and update operations on the 'coupon_country' table. * diff --git a/core/lib/Thelia/Model/CouponCustomerCountQuery.php b/core/lib/Thelia/Model/CouponCustomerCountQuery.php index 12dd40e91..f52abd354 100644 --- a/core/lib/Thelia/Model/CouponCustomerCountQuery.php +++ b/core/lib/Thelia/Model/CouponCustomerCountQuery.php @@ -4,7 +4,6 @@ namespace Thelia\Model; use Thelia\Model\Base\CouponCustomerCountQuery as BaseCouponCustomerCountQuery; - /** * Skeleton subclass for performing query and update operations on the 'coupon_customer_count' table. * diff --git a/core/lib/Thelia/Model/CouponModuleQuery.php b/core/lib/Thelia/Model/CouponModuleQuery.php index 778617f61..84118127f 100644 --- a/core/lib/Thelia/Model/CouponModuleQuery.php +++ b/core/lib/Thelia/Model/CouponModuleQuery.php @@ -4,7 +4,6 @@ namespace Thelia\Model; use Thelia\Model\Base\CouponModuleQuery as BaseCouponModuleQuery; - /** * Skeleton subclass for performing query and update operations on the 'coupon_module' table. * diff --git a/core/lib/Thelia/Model/Module.php b/core/lib/Thelia/Model/Module.php index 691fbc1e2..e0360b634 100644 --- a/core/lib/Thelia/Model/Module.php +++ b/core/lib/Thelia/Model/Module.php @@ -185,8 +185,8 @@ class Module extends BaseModule } /** - * @param ContainerInterface $container the Thelia container - * @return BaseModuleInterface a module instance + * @param ContainerInterface $container the Thelia container + * @return BaseModuleInterface a module instance * @throws \InvalidArgumentException if the module could not be found in the container/ */ public function getModuleInstance(ContainerInterface $container) diff --git a/core/lib/Thelia/Model/Order.php b/core/lib/Thelia/Model/Order.php index 1505ea29f..1aec4623e 100644 --- a/core/lib/Thelia/Model/Order.php +++ b/core/lib/Thelia/Model/Order.php @@ -25,6 +25,7 @@ class Order extends BaseOrder public function setChoosenDeliveryAddress($choosenDeliveryAddress) { $this->choosenDeliveryAddress = $choosenDeliveryAddress; + return $this; } @@ -42,6 +43,7 @@ class Order extends BaseOrder public function setChoosenInvoiceAddress($choosenInvoiceAddress) { $this->choosenInvoiceAddress = $choosenInvoiceAddress; + return $this; } diff --git a/core/lib/Thelia/Model/OrderCouponCountryQuery.php b/core/lib/Thelia/Model/OrderCouponCountryQuery.php index 899fe9da7..d7849ffc7 100644 --- a/core/lib/Thelia/Model/OrderCouponCountryQuery.php +++ b/core/lib/Thelia/Model/OrderCouponCountryQuery.php @@ -4,7 +4,6 @@ namespace Thelia\Model; use Thelia\Model\Base\OrderCouponCountryQuery as BaseOrderCouponCountryQuery; - /** * Skeleton subclass for performing query and update operations on the 'order_coupon_country' table. * diff --git a/core/lib/Thelia/Model/OrderCouponModuleQuery.php b/core/lib/Thelia/Model/OrderCouponModuleQuery.php index 45c3725eb..dcc617dd0 100644 --- a/core/lib/Thelia/Model/OrderCouponModuleQuery.php +++ b/core/lib/Thelia/Model/OrderCouponModuleQuery.php @@ -4,7 +4,6 @@ namespace Thelia\Model; use Thelia\Model\Base\OrderCouponModuleQuery as BaseOrderCouponModuleQuery; - /** * Skeleton subclass for performing query and update operations on the 'order_coupon_module' table. *