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

dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertBillingAddressSameAsShippingCheckbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function processAssert(CheckoutOnepage $checkoutOnepage, $billingCheckbox
3737
}
3838

3939
/**
40-
* Returns a string representation of successfull assertion.
40+
* Returns a string representation of successful assertion.
4141
*
4242
* @return string
4343
*/

dev/tests/functional/tests/app/Magento/Config/Test/TestCase/VerifyAdminAccountSharingEntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Steps:
1414
* 1. Log in to Admin.
1515
* 2. Go to Stores>Configuration>Advanced>admin>Security.
16-
* 3. * 7. Verify admin Acoount Sharing option availability.
16+
* 3. Verify admin Account Sharing option availability.
1717
*
1818
* @group Config_(PS)
1919
* @ZephyrId MAGETWO-47822

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductTierPriceOnProductPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\ConfigurableProduct\Test\Block\Product\View\ConfigurableOptions;
1111

1212
/**
13-
* Open created configurble product on frontend and choose variation with tier price
13+
* Open created configurable product on frontend and choose variation with tier price
1414
*/
1515
class AssertProductTierPriceOnProductPage extends AssertProductPage
1616
{

dev/tests/functional/tests/app/Magento/Customer/Test/Fixture/Customer/WebsiteId.php

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

4040
/**
41-
* Rought fixture field data.
41+
* Rough fixture field data.
4242
*
4343
* @var array
4444
*/

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/AbstractApplyVatIdTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __prepare(FixtureFactory $fixtureFactory)
7676
}
7777

7878
/**
79-
* Prepare VAT ID confguration.
79+
* Prepare VAT ID configuration.
8080
*
8181
* @param ConfigData $vatConfig
8282
* @param string $customerGroup

dev/tests/functional/tests/app/Magento/Integration/Test/TestCase/ReAuthorizeTokensIntegrationEntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ReAuthorizeTokensIntegrationEntityTest extends Injectable
5151
*
5252
* @param FixtureFactory $fixtureFactory
5353
* @param IntegrationIndex $integrationIndex
54-
* @retun void
54+
* @return void
5555
*/
5656
public function __inject(IntegrationIndex $integrationIndex, FixtureFactory $fixtureFactory)
5757
{

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Create/CustomerActivities/Sidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ abstract class Sidebar extends Block
3636
protected $addToOrderProductName = './/tr/td[.="%s"]';
3737

3838
/**
39-
* Add productz to order.
39+
* Add products to order.
4040
*
4141
* @param array $products
4242
* @return void

dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CancelCreatedOrderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* 2. Sales > Orders.
2424
* 3. Open the created order.
2525
* 4. Do cancel Order.
26-
* 5. Perform all assetions.
26+
* 5. Perform all assertions.
2727
*
2828
* @group Order_Management
2929
* @ZephyrId MAGETWO-28191

dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateCustomOrderStatusEntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CreateCustomOrderStatusEntityTest extends Injectable
3030
/* end tags */
3131

3232
/**
33-
* Order staus page.
33+
* Order status page.
3434
*
3535
* @var OrderStatusIndex
3636
*/

dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessDeleteMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Mtf\Constraint\AbstractConstraint;
1111

1212
/**
13-
* Assert sales rule delte message.
13+
* Assert sales rule delete message.
1414
*/
1515
class AssertCartPriceRuleSuccessDeleteMessage extends AbstractConstraint
1616
{

dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockAdminUserWhenEditingIntegrationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ public function __inject(
8484
/**
8585
* Run Lock user when creating new integration test.
8686
*
87-
* @param Integration $initintegration
87+
* @param Integration $initIntegration
8888
* @param Integration $integration
8989
* @param int $attempts
9090
* @param User $customAdmin
9191
* @param string $configData
9292
* @return void
9393
*/
9494
public function test(
95-
Integration $initintegration,
95+
Integration $initIntegration,
9696
Integration $integration,
9797
$attempts,
9898
User $customAdmin,
@@ -106,15 +106,15 @@ public function test(
106106
['configData' => $this->configData]
107107
)->run();
108108
$customAdmin->persist();
109-
$initintegration->persist();
109+
$initIntegration->persist();
110110

111111
// login to backend with new user
112112
$this->adminAuthLogin->open();
113113
$this->adminAuthLogin->getLoginBlock()->fill($customAdmin);
114114
$this->adminAuthLogin->getLoginBlock()->submit();
115115

116116
// Steps
117-
$filter = ['name' => $initintegration->getName()];
117+
$filter = ['name' => $initIntegration->getName()];
118118
$this->integrationIndexPage->open();
119119
$this->integrationIndexPage->getIntegrationGrid()->searchAndOpen($filter);
120120
for ($i = 0; $i < $attempts; $i++) {

dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertCityBasedShippingRateChanged.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public function processAssert(CheckoutOnepage $checkoutOnepage, $shippingMethod,
3030
'Shipping rate has not been changed.'
3131
);
3232
}
33-
$shippingAvaialability = $isShippingAvailable ? 'avaiable' : 'unavailable';
33+
$shippingAvailability = $isShippingAvailable ? 'avaiable' : 'unavailable';
3434
\PHPUnit_Framework_Assert::assertEquals(
3535
$isShippingAvailable,
3636
$checkoutOnepage->getShippingMethodBlock()->isShippingMethodAvaiable($shippingMethod),
37-
"Shipping rates for {$shippingMethod['shipping_service']} should be $shippingAvaialability."
37+
"Shipping rates for {$shippingMethod['shipping_service']} should be $shippingAvailability."
3838
);
3939
}
4040

dev/tests/functional/tests/app/Magento/Shipping/Test/TestStep/FillShippingAddressesStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\Shipping\Test\Constraint\AssertCityBasedShippingRateChanged;
1414

1515
/**
16-
* Fill shipping addresses and assert rates relouding.
16+
* Fill shipping addresses and assert rates reloading.
1717
*/
1818
class FillShippingAddressesStep implements TestStepInterface
1919
{

dev/tests/functional/tests/app/Magento/Theme/Test/Block/Html/Footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function selectStoreGroup(Store $store)
120120
}
121121

122122
/**
123-
* Check if correspondent "Store" is present in "Store" swither or not.
123+
* Check if correspondent "Store" is present in "Store" switcher or not.
124124
*
125125
* @param Store $store
126126
* @return bool

dev/tests/functional/tests/app/Magento/Ui/Test/Block/Adminhtml/DataGrid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function selectMassAction($massActionSelection)
332332
}
333333

334334
/**
335-
* Peform action using the dropdown above the grid.
335+
* Perform action using the dropdown above the grid.
336336
*
337337
* @param array|string $action [array -> key = value from first select; value => value from subselect]
338338
* @return void

dev/tests/functional/tests/app/Magento/Ui/Test/Block/Adminhtml/Modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function setAlertText($text)
150150
}
151151

152152
/**
153-
* Wait until modal window will disapper.
153+
* Wait until modal window will disappear.
154154
*
155155
* @return void
156156
*/

dev/tests/functional/tests/app/Magento/Ui/Test/TestCase/GridFullTextSearchTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* Steps:
2020
* 1. Navigate to backend.
2121
* 2. Go to grid page
22-
* 3. Perfrom full text search
23-
* 5. Perform Asserts
22+
* 3. Perform full text search
23+
* 4. Perform Asserts
2424
*
2525
* @group Ui
2626
* @ZephyrId MAGETWO-41330

dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Block/Adminhtml/Catalog/Edit/UrlRewriteForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function prepareData(FixtureInterface $fixture)
3939
*
4040
* @param array $data
4141
* @param SimpleElement $context
42-
* @retun void
42+
* @return void
4343
*/
4444
protected function fillFields(array $data, SimpleElement $context)
4545
{

dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCmsPageLink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Magento\Mtf\Constraint\AbstractConstraint;
1313

1414
/**
15-
* Check that created widget displayed on frontent on Home page and on Advanced Search and
15+
* Check that created widget displayed on frontend on Home page and on Advanced Search and
1616
* after click on widget link on frontend system redirects you to cms page.
1717
*/
1818
class AssertWidgetCmsPageLink extends AbstractConstraint

dev/tests/integration/framework/Magento/TestFramework/Db/AbstractDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ abstract public function cleanup();
8484
abstract protected function getSetupDbDumpFilename();
8585

8686
/**
87-
* Is dump esxists
87+
* Is dump exists
8888
*
8989
* @return bool
9090
*/

dev/tests/integration/framework/Magento/TestFramework/Db/Mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function getSetupDbDumpFilename()
8989
}
9090

9191
/**
92-
* Is dump esxists
92+
* Is dump exists
9393
*
9494
* @return bool
9595
*/

dev/tests/integration/framework/Magento/TestFramework/TestCase/AbstractConfigFiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function setUp()
4747
\Magento\Framework\App\Arguments\FileResolver\Primary::class
4848
)->disableOriginalConstructor()->getMock();
4949

50-
/* Enable Validation regardles of MAGE_MODE */
50+
/* Enable Validation regardless of MAGE_MODE */
5151
$validateStateMock = $this->getMockBuilder(
5252
\Magento\Framework\Config\ValidationStateInterface::class
5353
)->disableOriginalConstructor()->getMock();

0 commit comments

Comments
 (0)