Applied php-cs-fixer with level psr2

This commit is contained in:
Franck Allimant
2014-05-17 10:49:34 +02:00
parent ef142ca077
commit 2c7337d8e0
4 changed files with 123 additions and 119 deletions

View File

@@ -261,7 +261,8 @@ class Coupon extends BaseCoupon
* Return the countries for which free shipping is valid * Return the countries for which free shipping is valid
* @return array|mixed|\Propel\Runtime\Collection\ObjectCollection * @return array|mixed|\Propel\Runtime\Collection\ObjectCollection
*/ */
public function getFreeShippingForCountries() { public function getFreeShippingForCountries()
{
return CouponCountryQuery::create()->filterByCouponId($this->getId())->find(); return CouponCountryQuery::create()->filterByCouponId($this->getId())->find();
} }
@@ -270,7 +271,8 @@ class Coupon extends BaseCoupon
* *
* @return array|mixed|\Propel\Runtime\Collection\ObjectCollection * @return array|mixed|\Propel\Runtime\Collection\ObjectCollection
*/ */
public function getFreeShippingForModules() { public function getFreeShippingForModules()
{
return CouponModuleQuery::create()->filterByCouponId($this->getId())->find(); return CouponModuleQuery::create()->filterByCouponId($this->getId())->find();
} }

View File

@@ -189,8 +189,8 @@ class Module extends BaseModule
* @return BaseModuleInterface a module instance * @return BaseModuleInterface a module instance
* @throws \InvalidArgumentException if the module could not be found in the container/ * @throws \InvalidArgumentException if the module could not be found in the container/
*/ */
public function getModuleInstance(ContainerInterface $container) { public function getModuleInstance(ContainerInterface $container)
{
$instance = $container->get(sprintf('module.%s', $this->getCode())); $instance = $container->get(sprintf('module.%s', $this->getCode()));
if ($instance == null) { if ($instance == null) {

View File

@@ -12,7 +12,8 @@ class OrderCoupon extends BaseOrderCoupon
* Return the countries for which free shipping is valid * Return the countries for which free shipping is valid
* @return array|mixed|\Propel\Runtime\Collection\ObjectCollection * @return array|mixed|\Propel\Runtime\Collection\ObjectCollection
*/ */
public function getFreeShippingForCountries() { public function getFreeShippingForCountries()
{
return OrderCouponCountryQuery::create()->filterByOrderCoupon($this)->find(); return OrderCouponCountryQuery::create()->filterByOrderCoupon($this)->find();
} }
@@ -21,7 +22,8 @@ class OrderCoupon extends BaseOrderCoupon
* *
* @return array|mixed|\Propel\Runtime\Collection\ObjectCollection * @return array|mixed|\Propel\Runtime\Collection\ObjectCollection
*/ */
public function getFreeShippingForModules() { public function getFreeShippingForModules()
{
return OrderCouponModuleQuery::create()->filterByOrderCoupon($this)->find(); return OrderCouponModuleQuery::create()->filterByOrderCoupon($this)->find();
} }
} }