Skip to content

Commit 226bd12

Browse files
author
Robert He
committed
MAGETWO-43908: Rename misspelled functions in Weee helper
-- rename some Weee functions
1 parent e7b699f commit 226bd12

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/code/Magento/Weee/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ public function isDisplayInclDesc($storeId = null)
774774
* @param int|null $storeId
775775
* @return bool
776776
*/
777-
public function isDisplayExlDescIncl($storeId = null)
777+
public function isDisplayExclDescIncl($storeId = null)
778778
{
779779
return $this->typeOfDisplay(
780780
WeeeDisplayConfig::DISPLAY_EXCL_DESCR_INCL,

app/code/Magento/Weee/Observer/GetPriceConfigurationObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected function getWhichCalcPriceToUse($storeId = null)
143143
{
144144
$calcPrice = 'finalPrice';
145145
if ($this->weeeData->isDisplayExcl($storeId) ||
146-
$this->weeeData->isDisplayExlDescIncl($storeId) ||
146+
$this->weeeData->isDisplayExclDescIncl($storeId) ||
147147
($this->taxData->priceIncludesTax() && $this->taxData->displayPriceExcludingTax())
148148
) {
149149
$calcPrice = 'basePrice';

app/code/Magento/Weee/Observer/UpdateProductOptionsObserver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
8787
}
8888
}
8989

90-
if ($this->weeeData->isDisplayExlDescIncl($product->getStoreId())) {
90+
if ($this->weeeData->isDisplayExclDescIncl($product->getStoreId())) {
9191
$options['optionTemplate'] .= sprintf(
9292
' <%% if (data.weeePrice) { %%>'
9393
. '<%%- data.weeePrice.formatted %%>'
@@ -111,7 +111,7 @@ protected function getWhichCalcPriceToUse($storeId = null)
111111
{
112112
$calcPrice = 'finalPrice';
113113
if ($this->weeeData->isDisplayExcl($storeId) ||
114-
$this->weeeData->isDisplayExlDescIncl($storeId) ||
114+
$this->weeeData->isDisplayExclDescIncl($storeId) ||
115115
($this->taxData->priceIncludesTax() && $this->taxData->displayPriceExcludingTax())
116116
) {
117117
$calcPrice = 'basePrice';

app/code/Magento/Weee/Test/Unit/Observer/UpdateProductOptionsObserverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testUpdateProductOptions($testArray, $weeeEnabled, $weeeDisplayE
4747
->method('isEnabled')
4848
->will($this->returnValue($weeeEnabled));
4949
$weeeHelper->expects($this->any())
50-
->method('isDisplayExlDescIncl')
50+
->method('isDisplayExclDescIncl')
5151
->will($this->returnValue($weeeDisplayExclDescIncl));
5252
$weeeHelper->expects($this->any())
5353
->method('getWeeeAttributesForBundle')

0 commit comments

Comments
 (0)