diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php index 683739abe..f9f8725bd 100644 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php @@ -434,7 +434,8 @@ class DataAccessFunctions extends AbstractSmartyPlugin * * @return string the camel cased string. */ - private function underscoreToCamelcase($str) { + private function underscoreToCamelcase($str) + { // Split string in words. $words = explode('_', strtolower($str)); diff --git a/core/lib/Thelia/Coupon/Type/RemoveAmountOnCategories.php b/core/lib/Thelia/Coupon/Type/RemoveAmountOnCategories.php index 1c5da8683..d65b462f7 100644 --- a/core/lib/Thelia/Coupon/Type/RemoveAmountOnCategories.php +++ b/core/lib/Thelia/Coupon/Type/RemoveAmountOnCategories.php @@ -65,7 +65,6 @@ class RemoveAmountOnCategories extends CouponAbstract $this->category_list = isset($effects[self::CATEGORIES_LIST]) ? $effects[self::CATEGORIES_LIST] : array(); if (! is_array($this->category_list)) $this->category_list = array($this->category_list); - return $this; } diff --git a/core/lib/Thelia/Coupon/Type/RemoveAmountOnProducts.php b/core/lib/Thelia/Coupon/Type/RemoveAmountOnProducts.php index cb1fda768..9a3fb8b93 100644 --- a/core/lib/Thelia/Coupon/Type/RemoveAmountOnProducts.php +++ b/core/lib/Thelia/Coupon/Type/RemoveAmountOnProducts.php @@ -170,8 +170,7 @@ class RemoveAmountOnProducts extends CouponAbstract ) ); } - } - elseif ($fieldName === self::CATEGORY_ID) { + } elseif ($fieldName === self::CATEGORY_ID) { if (empty($fieldValue)) { throw new \InvalidArgumentException( Translator::getInstance()->trans( @@ -191,4 +190,4 @@ class RemoveAmountOnProducts extends CouponAbstract return $fieldValue; } -} \ No newline at end of file +} diff --git a/core/lib/Thelia/Coupon/Type/RemovePercentageOnCategories.php b/core/lib/Thelia/Coupon/Type/RemovePercentageOnCategories.php index db05f7f5a..892984a14 100644 --- a/core/lib/Thelia/Coupon/Type/RemovePercentageOnCategories.php +++ b/core/lib/Thelia/Coupon/Type/RemovePercentageOnCategories.php @@ -66,7 +66,6 @@ class RemovePercentageOnCategories extends CouponAbstract $this->percentage = isset($effects[self::PERCENTAGE]) ? $effects[self::PERCENTAGE] : 0; if (! is_array($this->category_list)) $this->category_list = array($this->category_list); - return $this; } diff --git a/core/lib/Thelia/Coupon/Type/RemovePercentageOnProducts.php b/core/lib/Thelia/Coupon/Type/RemovePercentageOnProducts.php index 007fa2a57..030a87c23 100644 --- a/core/lib/Thelia/Coupon/Type/RemovePercentageOnProducts.php +++ b/core/lib/Thelia/Coupon/Type/RemovePercentageOnProducts.php @@ -175,8 +175,7 @@ class RemovePercentageOnProducts extends CouponAbstract ) ); } - } - elseif ($fieldName === self::CATEGORY_ID) { + } elseif ($fieldName === self::CATEGORY_ID) { if (empty($fieldValue)) { throw new \InvalidArgumentException( Translator::getInstance()->trans( @@ -196,4 +195,4 @@ class RemovePercentageOnProducts extends CouponAbstract return $fieldValue; } -} \ No newline at end of file +}