From 235487b52bdb9e99af23a4c91293ea43a9854fee Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 24 Feb 2014 15:27:18 +0100 Subject: [PATCH] fix typo in method name --- core/lib/Thelia/Action/ShippingZone.php | 6 +++--- .../ShippingZone/ShippingZoneAddAreaEvent.php | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/lib/Thelia/Action/ShippingZone.php b/core/lib/Thelia/Action/ShippingZone.php index c621efd8f..0a58537da 100644 --- a/core/lib/Thelia/Action/ShippingZone.php +++ b/core/lib/Thelia/Action/ShippingZone.php @@ -43,7 +43,7 @@ class ShippingZone extends BaseAction implements EventSubscriberInterface $areaDelivery ->setAreaId($event->getAreaId()) - ->setDeliveryModuleId($event->getShoppingZoneId()) + ->setDeliveryModuleId($event->getShippingZoneId()) ->save(); } @@ -51,13 +51,13 @@ class ShippingZone extends BaseAction implements EventSubscriberInterface { $areaDelivery = AreaDeliveryModuleQuery::create() ->filterByAreaId($event->getAreaId()) - ->filterByDeliveryModuleId($event->getShoppingZoneId()) + ->filterByDeliveryModuleId($event->getShippingZoneId()) ->findOne(); if ($areaDelivery) { $areaDelivery->delete(); } else { - throw new \RuntimeException(sprintf('areaDeliveryModule not found with area_id = %d and delivery_module_id = %d', $event->getAreaId(), $event->getShoppingZoneId())); + throw new \RuntimeException(sprintf('areaDeliveryModule not found with area_id = %d and delivery_module_id = %d', $event->getAreaId(), $event->getShippingZoneId())); } } diff --git a/core/lib/Thelia/Core/Event/ShippingZone/ShippingZoneAddAreaEvent.php b/core/lib/Thelia/Core/Event/ShippingZone/ShippingZoneAddAreaEvent.php index 35f3dcac1..5329aff12 100644 --- a/core/lib/Thelia/Core/Event/ShippingZone/ShippingZoneAddAreaEvent.php +++ b/core/lib/Thelia/Core/Event/ShippingZone/ShippingZoneAddAreaEvent.php @@ -32,12 +32,12 @@ use Thelia\Core\Event\ActionEvent; class ShippingZoneAddAreaEvent extends ActionEvent { protected $area_id; - protected $shopping_zone_id; + protected $shipping_zone_id; - public function __construct($area_id, $shopping_zone_id) + public function __construct($area_id, $shipping_zone_id) { $this->area_id = $area_id; - $this->shopping_zone_id = $shopping_zone_id; + $this->shipping_zone_id = $shipping_zone_id; } /** @@ -65,9 +65,9 @@ class ShippingZoneAddAreaEvent extends ActionEvent * * @return $this */ - public function setShoppingZoneId($shopping_zone_id) + public function setShippingZoneId($shipping_zone_id) { - $this->shopping_zone_id = $shopping_zone_id; + $this->shipping_zone_id = $shipping_zone_id; return $this; } @@ -75,9 +75,9 @@ class ShippingZoneAddAreaEvent extends ActionEvent /** * @return mixed */ - public function getShoppingZoneId() + public function getShippingZoneId() { - return $this->shopping_zone_id; + return $this->shipping_zone_id; } }