Skip to content

Commit 32892a4

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #15294: Fix typos in variable names (by @dmytro-ch) - #15302: Fixed typo mistake in function comment (by @namratachangani) - #15386: [Backport-2.2] Unused variable removed (by @VitaliyBoyko) - #15293: Fix typos in PHPDocs and comments (by @dmytro-ch) - #15276: [fix] typo in method name _getCharg[e]ableOptionPrice (by @mhauri)
2 parents 9a28908 + 2bd2994 commit 32892a4

File tree

44 files changed

+84
-72
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+84
-72
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/DefaultType.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function getOptionPrice($optionValue, $basePrice)
338338
{
339339
$option = $this->getOption();
340340

341-
return $this->_getChargableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice);
341+
return $this->_getChargeableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice);
342342
}
343343

344344
/**
@@ -392,14 +392,27 @@ public function getProductOptions()
392392
}
393393

394394
/**
395-
* Return final chargable price for option
396-
*
397395
* @param float $price Price of option
398396
* @param boolean $isPercent Price type - percent or fixed
399397
* @param float $basePrice For percent price type
400398
* @return float
399+
* @deprecated 102.0.4 typo in method name
400+
* @see _getChargeableOptionPrice
401401
*/
402402
protected function _getChargableOptionPrice($price, $isPercent, $basePrice)
403+
{
404+
return $this->_getChargeableOptionPrice($price, $isPercent, $basePrice);
405+
}
406+
407+
/**
408+
* Return final chargeable price for option
409+
*
410+
* @param float $price Price of option
411+
* @param boolean $isPercent Price type - percent or fixed
412+
* @param float $basePrice For percent price type
413+
* @return float
414+
*/
415+
protected function _getChargeableOptionPrice($price, $isPercent, $basePrice)
403416
{
404417
if ($isPercent) {
405418
return $basePrice * $price / 100;

app/code/Magento/Catalog/Model/Product/Option/Type/Select.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function getOptionPrice($optionValue, $basePrice)
222222
foreach (explode(',', $optionValue) as $value) {
223223
$_result = $option->getValueById($value);
224224
if ($_result) {
225-
$result += $this->_getChargableOptionPrice(
225+
$result += $this->_getChargeableOptionPrice(
226226
$_result->getPrice(),
227227
$_result->getPriceType() == 'percent',
228228
$basePrice
@@ -237,7 +237,7 @@ public function getOptionPrice($optionValue, $basePrice)
237237
} elseif ($this->_isSingleSelection()) {
238238
$_result = $option->getValueById($optionValue);
239239
if ($_result) {
240-
$result = $this->_getChargableOptionPrice(
240+
$result = $this->_getChargeableOptionPrice(
241241
$_result->getPrice(),
242242
$_result->getPriceType() == 'percent',
243243
$basePrice

app/code/Magento/Paypal/Model/Api/Nvp.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ public function callGetPalDetails()
10271027
}
10281028

10291029
/**
1030-
* Set Customer BillingA greement call
1030+
* Set Customer BillingAgreement call
10311031
*
10321032
* @return void
10331033
* @link https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_SetCustomerBillingAgreement
@@ -1427,15 +1427,15 @@ protected function _deformatNVP($nvpstr)
14271427
$nvpstr = strpos($nvpstr, "\r\n\r\n") !== false ? substr($nvpstr, strpos($nvpstr, "\r\n\r\n") + 4) : $nvpstr;
14281428

14291429
while (strlen($nvpstr)) {
1430-
//postion of Key
1430+
//position of Key
14311431
$keypos = strpos($nvpstr, '=');
14321432
//position of value
14331433
$valuepos = strpos($nvpstr, '&') ? strpos($nvpstr, '&') : strlen($nvpstr);
14341434

14351435
/*getting the Key and Value values and storing in a Associative Array*/
14361436
$keyval = substr($nvpstr, $intial, $keypos);
14371437
$valval = substr($nvpstr, $keypos + 1, $valuepos - $keypos - 1);
1438-
//decoding the respose
1438+
//decoding the response
14391439
$nvpArray[urldecode($keyval)] = urldecode($valval);
14401440
$nvpstr = substr($nvpstr, $valuepos + 1, strlen($nvpstr));
14411441
}

dev/tests/functional/lib/Magento/Mtf/Client/Element/SimplifiedselectElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SimplifiedselectElement extends SelectElement
2121
protected $optionGroupValue = ".//*[@data-title='%s' or contains(normalize-space(.), %s)]";
2222

2323
/**
24-
* Select value in ropdown which has option groups.
24+
* Select value in dropdown which has option groups.
2525
*
2626
* @param string $value
2727
* @return void

dev/tests/functional/lib/Magento/Mtf/Client/Element/SwitcherElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SwitcherElement extends SimpleElement
2222
protected $parentContainer = 'parent::div[@data-role="switcher"]';
2323

2424
/**
25-
* XPath selector for label text on swticher element.
25+
* XPath selector for label text on switcher element.
2626
*
2727
* @var string
2828
*/

dev/tests/functional/tests/app/Magento/Bundle/Test/TestCase/CancelPartiallyInvoicedOrderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* 3. Open the created order.
2121
* 4. Create partial invoice
2222
* 4. Do cancel Order.
23-
* 5. Perform all assetions.
23+
* 5. Perform all assertions.
2424
*
2525
* @group Order_Management
2626
* @ZephyrId MAGETWO-67787

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Section/Attributes/Search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Search extends SuggestElement
3737
protected $actionToggle = '.action-toggle';
3838

3939
/**
40-
* Saerch result dropdown.
40+
* Search result dropdown.
4141
*
4242
* @var string
4343
*/

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsHtmlAllowed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AssertProductAttributeIsHtmlAllowed extends AbstractConstraint
2323

2424
/**
2525
* Check whether html tags are using in attribute value.
26-
* Checked tag structure <b><i>atttribute_default_value</p></i></b>
26+
* Checked tag structure <b><i>attribute_default_value</p></i></b>
2727
*
2828
* @param InjectableFixture $product
2929
* @param CatalogProductAttribute $attribute

dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/Product/WebsiteIds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class WebsiteIds extends DataSource
3737
private $fixtureFactory;
3838

3939
/**
40-
* Rought fixture field data.
40+
* Rough fixture field data.
4141
*
4242
* @var array
4343
*/

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ReSavingProductAfterInitialSaveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* 1. Login to backend.
2121
* 2. Create a product with invalid from and To dates
22-
* 3. Save the product which generates an error messsage
22+
* 3. Save the product which generates an error message
2323
* 4. Modify the dates to valid values
2424
* 5. Save the product again
2525
* 6. Product is saved successfully

0 commit comments

Comments
 (0)