diff --git a/app/code/Magento/Backend/App/Config.php b/app/code/Magento/Backend/App/Config.php
index bb60a1e69dd47..e0983139a690d 100644
--- a/app/code/Magento/Backend/App/Config.php
+++ b/app/code/Magento/Backend/App/Config.php
@@ -68,6 +68,6 @@ public function isSetFlag($path)
if ($path) {
$configPath .= '/' . $path;
}
- return (bool) $this->appConfig->get(System::CONFIG_TYPE, $configPath);
+ return (bool)$this->appConfig->get(System::CONFIG_TYPE, $configPath);
}
}
diff --git a/app/code/Magento/Backup/Model/ResourceModel/Db.php b/app/code/Magento/Backup/Model/ResourceModel/Db.php
index f50a3c5b091ad..57748a979c08f 100644
--- a/app/code/Magento/Backup/Model/ResourceModel/Db.php
+++ b/app/code/Magento/Backup/Model/ResourceModel/Db.php
@@ -115,7 +115,7 @@ public function getTableForeignKeysSql($tableName = null)
}
/**
- * Return triggers fro table(s)
+ * Return triggers for table(s)
*
* @param string|null $tableName
* @param bool $addDropIfExists
diff --git a/app/code/Magento/Braintree/Gateway/Config/Config.php b/app/code/Magento/Braintree/Gateway/Config/Config.php
index 01bb32fbb1a7e..b56021c402263 100644
--- a/app/code/Magento/Braintree/Gateway/Config/Config.php
+++ b/app/code/Magento/Braintree/Gateway/Config/Config.php
@@ -131,7 +131,7 @@ public function getCountryAvailableCardTypes($country, $storeId = null)
*/
public function isCvvEnabled($storeId = null)
{
- return (bool) $this->getValue(self::KEY_USE_CVV, $storeId);
+ return (bool)$this->getValue(self::KEY_USE_CVV, $storeId);
}
/**
@@ -142,7 +142,7 @@ public function isCvvEnabled($storeId = null)
*/
public function isVerify3DSecure($storeId = null)
{
- return (bool) $this->getValue(self::KEY_VERIFY_3DSECURE, $storeId);
+ return (bool)$this->getValue(self::KEY_VERIFY_3DSECURE, $storeId);
}
/**
@@ -233,7 +233,7 @@ public function getSdkUrl()
*/
public function hasFraudProtection($storeId = null)
{
- return (bool) $this->getValue(Config::FRAUD_PROTECTION, $storeId);
+ return (bool)$this->getValue(Config::FRAUD_PROTECTION, $storeId);
}
/**
@@ -244,7 +244,7 @@ public function hasFraudProtection($storeId = null)
*/
public function isActive($storeId = null)
{
- return (bool) $this->getValue(self::KEY_ACTIVE, $storeId);
+ return (bool)$this->getValue(self::KEY_ACTIVE, $storeId);
}
/**
diff --git a/app/code/Magento/Braintree/Gateway/Config/PayPal/Config.php b/app/code/Magento/Braintree/Gateway/Config/PayPal/Config.php
index e7d8724082fb3..0854ae2d1e363 100644
--- a/app/code/Magento/Braintree/Gateway/Config/PayPal/Config.php
+++ b/app/code/Magento/Braintree/Gateway/Config/PayPal/Config.php
@@ -60,7 +60,7 @@ public function __construct(
*/
public function isActive()
{
- return (bool) $this->getValue(self::KEY_ACTIVE);
+ return (bool)$this->getValue(self::KEY_ACTIVE);
}
/**
@@ -68,7 +68,7 @@ public function isActive()
*/
public function isDisplayShoppingCart()
{
- return (bool) $this->getValue(self::KEY_DISPLAY_ON_SHOPPING_CART);
+ return (bool)$this->getValue(self::KEY_DISPLAY_ON_SHOPPING_CART);
}
/**
@@ -78,7 +78,7 @@ public function isDisplayShoppingCart()
*/
public function isAllowToEditShippingAddress()
{
- return (bool) $this->getValue(self::KEY_ALLOW_TO_EDIT_SHIPPING_ADDRESS);
+ return (bool)$this->getValue(self::KEY_ALLOW_TO_EDIT_SHIPPING_ADDRESS);
}
/**
@@ -117,7 +117,7 @@ public function getTitle()
*/
public function isSkipOrderReview()
{
- return (bool) $this->getValue('skip_order_review');
+ return (bool)$this->getValue('skip_order_review');
}
/**
diff --git a/app/code/Magento/Catalog/Model/Indexer/Product/Price/Action/Full.php b/app/code/Magento/Catalog/Model/Indexer/Product/Price/Action/Full.php
index 411b89d7981cc..8f74a8ff0fdec 100644
--- a/app/code/Magento/Catalog/Model/Indexer/Product/Price/Action/Full.php
+++ b/app/code/Magento/Catalog/Model/Indexer/Product/Price/Action/Full.php
@@ -413,7 +413,7 @@ private function switchTables()
private function moveDataFromReplicaTableToReplicaTables(array $dimensions)
{
if (!$dimensions) {
- return ;
+ return;
}
//TODO: need to update logic for run this move only when replica table is not empty
$select = $this->dimensionTableMaintainer->getConnection()->select()->from(
diff --git a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/CustomOptionPriceModifier.php b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/CustomOptionPriceModifier.php
index 269d29bf7e26a..646cd0d4c1a4c 100644
--- a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/CustomOptionPriceModifier.php
+++ b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/CustomOptionPriceModifier.php
@@ -93,7 +93,7 @@ public function modifyPrice(IndexTableStructure $priceTable, array $entityIds =
{
// no need to run all queries if current products have no custom options
if (!$this->checkIfCustomOptionsExist($priceTable)) {
- return ;
+ return;
}
$connection = $this->getConnection();
diff --git a/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php b/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php
index d6103e18c6e36..fe0ebcd95b196 100755
--- a/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php
+++ b/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php
@@ -589,7 +589,7 @@ private function getPreviousSetAttributes()
*/
private function isProductExists()
{
- return (bool) $this->locator->getProduct()->getId();
+ return (bool)$this->locator->getProduct()->getId();
}
/**
diff --git a/app/code/Magento/CatalogInventory/Model/Configuration.php b/app/code/Magento/CatalogInventory/Model/Configuration.php
index 06cfde0b7d247..ac1b764ea3738 100644
--- a/app/code/Magento/CatalogInventory/Model/Configuration.php
+++ b/app/code/Magento/CatalogInventory/Model/Configuration.php
@@ -264,7 +264,7 @@ public function getNotifyStockQty($store = null)
*/
public function getEnableQtyIncrements($store = null)
{
- return (bool) $this->scopeConfig->getValue(
+ return (bool)$this->scopeConfig->getValue(
self::XML_PATH_ENABLE_QTY_INCREMENTS,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$store
diff --git a/app/code/Magento/CatalogInventory/Model/Stock/Item.php b/app/code/Magento/CatalogInventory/Model/Stock/Item.php
index efba8cd97d040..83ba3ddbc6ace 100644
--- a/app/code/Magento/CatalogInventory/Model/Stock/Item.php
+++ b/app/code/Magento/CatalogInventory/Model/Stock/Item.php
@@ -198,7 +198,7 @@ public function getProductId()
*/
public function getStockStatusChangedAuto()
{
- return (bool) $this->_getData(static::STOCK_STATUS_CHANGED_AUTO);
+ return (bool)$this->_getData(static::STOCK_STATUS_CHANGED_AUTO);
}
/**
@@ -219,7 +219,7 @@ public function getIsInStock()
if (!$this->getManageStock()) {
return true;
}
- return (bool) $this->_getData(static::IS_IN_STOCK);
+ return (bool)$this->_getData(static::IS_IN_STOCK);
}
/**
@@ -228,7 +228,7 @@ public function getIsInStock()
*/
public function getIsQtyDecimal()
{
- return (bool) $this->_getData(static::IS_QTY_DECIMAL);
+ return (bool)$this->_getData(static::IS_QTY_DECIMAL);
}
/**
@@ -237,7 +237,7 @@ public function getIsQtyDecimal()
*/
public function getIsDecimalDivided()
{
- return (bool) $this->_getData(static::IS_DECIMAL_DIVIDED);
+ return (bool)$this->_getData(static::IS_DECIMAL_DIVIDED);
}
/**
@@ -265,7 +265,7 @@ public function getShowDefaultNotificationMessage()
*/
public function getUseConfigMinQty()
{
- return (bool) $this->_getData(static::USE_CONFIG_MIN_QTY);
+ return (bool)$this->_getData(static::USE_CONFIG_MIN_QTY);
}
/**
@@ -289,7 +289,7 @@ public function getMinQty()
*/
public function getUseConfigMinSaleQty()
{
- return (bool) $this->_getData(static::USE_CONFIG_MIN_SALE_QTY);
+ return (bool)$this->_getData(static::USE_CONFIG_MIN_SALE_QTY);
}
/**
@@ -314,7 +314,7 @@ public function getMinSaleQty()
*/
public function getUseConfigMaxSaleQty()
{
- return (bool) $this->_getData(static::USE_CONFIG_MAX_SALE_QTY);
+ return (bool)$this->_getData(static::USE_CONFIG_MAX_SALE_QTY);
}
/**
@@ -339,7 +339,7 @@ public function getMaxSaleQty()
*/
public function getUseConfigNotifyStockQty()
{
- return (bool) $this->_getData(static::USE_CONFIG_NOTIFY_STOCK_QTY);
+ return (bool)$this->_getData(static::USE_CONFIG_NOTIFY_STOCK_QTY);
}
/**
@@ -361,7 +361,7 @@ public function getNotifyStockQty()
*/
public function getUseConfigEnableQtyInc()
{
- return (bool) $this->_getData(static::USE_CONFIG_ENABLE_QTY_INC);
+ return (bool)$this->_getData(static::USE_CONFIG_ENABLE_QTY_INC);
}
/**
@@ -375,7 +375,7 @@ public function getEnableQtyIncrements()
if ($this->getUseConfigEnableQtyInc()) {
return $this->stockConfiguration->getEnableQtyIncrements($this->getStoreId());
}
- return (bool) $this->getData(static::ENABLE_QTY_INCREMENTS);
+ return (bool)$this->getData(static::ENABLE_QTY_INCREMENTS);
}
/**
@@ -386,7 +386,7 @@ public function getEnableQtyIncrements()
*/
public function getUseConfigQtyIncrements()
{
- return (bool) $this->_getData(static::USE_CONFIG_QTY_INCREMENTS);
+ return (bool)$this->_getData(static::USE_CONFIG_QTY_INCREMENTS);
}
/**
@@ -418,7 +418,7 @@ public function getQtyIncrements()
*/
public function getUseConfigBackorders()
{
- return (bool) $this->_getData(static::USE_CONFIG_BACKORDERS);
+ return (bool)$this->_getData(static::USE_CONFIG_BACKORDERS);
}
/**
@@ -440,7 +440,7 @@ public function getBackorders()
*/
public function getUseConfigManageStock()
{
- return (bool) $this->_getData(static::USE_CONFIG_MANAGE_STOCK);
+ return (bool)$this->_getData(static::USE_CONFIG_MANAGE_STOCK);
}
/**
diff --git a/app/code/Magento/Config/Test/Unit/Model/_files/system_2.xml b/app/code/Magento/Config/Test/Unit/Model/_files/system_2.xml
index c4001f47ced0b..81d614a81e881 100644
--- a/app/code/Magento/Config/Test/Unit/Model/_files/system_2.xml
+++ b/app/code/Magento/Config/Test/Unit/Model/_files/system_2.xml
@@ -76,7 +76,6 @@
section/group/field4
-
diff --git a/app/code/Magento/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Links.php b/app/code/Magento/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Links.php
index 947e6dc1e8339..54d7c75aeecaf 100644
--- a/app/code/Magento/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Links.php
+++ b/app/code/Magento/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Links.php
@@ -163,7 +163,7 @@ public function getPurchasedSeparatelyAttribute()
*/
public function isProductLinksCanBePurchasedSeparately()
{
- return (bool) $this->getProduct()->getData('links_purchased_separately');
+ return (bool)$this->getProduct()->getData('links_purchased_separately');
}
/**
diff --git a/app/code/Magento/Downloadable/Ui/DataProvider/Product/Form/Modifier/Data/Links.php b/app/code/Magento/Downloadable/Ui/DataProvider/Product/Form/Modifier/Data/Links.php
index f29708cc9a2c6..5b350071e03f3 100644
--- a/app/code/Magento/Downloadable/Ui/DataProvider/Product/Form/Modifier/Data/Links.php
+++ b/app/code/Magento/Downloadable/Ui/DataProvider/Product/Form/Modifier/Data/Links.php
@@ -97,7 +97,7 @@ public function getLinksTitle()
*/
public function isProductLinksCanBePurchasedSeparately()
{
- return (bool) $this->locator->getProduct()->getData('links_purchased_separately');
+ return (bool)$this->locator->getProduct()->getData('links_purchased_separately');
}
/**
diff --git a/app/code/Magento/Payment/Gateway/Command/Result/BoolResult.php b/app/code/Magento/Payment/Gateway/Command/Result/BoolResult.php
index 38b02c19cc094..3f9ebf95f94c4 100644
--- a/app/code/Magento/Payment/Gateway/Command/Result/BoolResult.php
+++ b/app/code/Magento/Payment/Gateway/Command/Result/BoolResult.php
@@ -37,6 +37,6 @@ public function __construct($result = true)
*/
public function get()
{
- return (bool) $this->result;
+ return (bool)$this->result;
}
}
diff --git a/app/code/Magento/Paypal/Block/Express/InContext/Component.php b/app/code/Magento/Paypal/Block/Express/InContext/Component.php
index bb5c17a18fe95..ef6a03b15b62e 100644
--- a/app/code/Magento/Paypal/Block/Express/InContext/Component.php
+++ b/app/code/Magento/Paypal/Block/Express/InContext/Component.php
@@ -102,6 +102,6 @@ public function getMerchantId()
*/
public function isButtonContext()
{
- return (bool) $this->getData(self::IS_BUTTON_CONTEXT_INDEX);
+ return (bool)$this->getData(self::IS_BUTTON_CONTEXT_INDEX);
}
}
diff --git a/app/code/Magento/Paypal/etc/adminhtml/system/express_checkout.xml b/app/code/Magento/Paypal/etc/adminhtml/system/express_checkout.xml
index 920c612021a1a..a726439331cb0 100644
--- a/app/code/Magento/Paypal/etc/adminhtml/system/express_checkout.xml
+++ b/app/code/Magento/Paypal/etc/adminhtml/system/express_checkout.xml
@@ -198,7 +198,6 @@
1
-
Get Publisher ID from PayPal
Magento\Paypal\Block\Adminhtml\System\Config\BmlApiWizard
diff --git a/app/code/Magento/Security/Model/Plugin/AuthSession.php b/app/code/Magento/Security/Model/Plugin/AuthSession.php
index abec4dc7c29ef..64645396dceb6 100644
--- a/app/code/Magento/Security/Model/Plugin/AuthSession.php
+++ b/app/code/Magento/Security/Model/Plugin/AuthSession.php
@@ -95,6 +95,6 @@ private function addUserLogoutNotification()
*/
private function isAjaxRequest()
{
- return (bool) $this->request->getParam('isAjax');
+ return (bool)$this->request->getParam('isAjax');
}
}
diff --git a/app/code/Magento/Store/Model/BaseUrlChecker.php b/app/code/Magento/Store/Model/BaseUrlChecker.php
index c0d27fd0d7a09..b22b18c5002ad 100644
--- a/app/code/Magento/Store/Model/BaseUrlChecker.php
+++ b/app/code/Magento/Store/Model/BaseUrlChecker.php
@@ -47,7 +47,7 @@ public function execute($uri, $request)
*/
public function isEnabled()
{
- return (bool) $this->scopeConfig->getValue(
+ return (bool)$this->scopeConfig->getValue(
'web/url/redirect_to_base',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
diff --git a/app/code/Magento/Tax/Helper/Data.php b/app/code/Magento/Tax/Helper/Data.php
index 9d31368106924..5bfbf9e061a37 100644
--- a/app/code/Magento/Tax/Helper/Data.php
+++ b/app/code/Magento/Tax/Helper/Data.php
@@ -690,7 +690,7 @@ public function getDefaultProductTaxClass()
*/
public function isCrossBorderTradeEnabled($store = null)
{
- return (bool) $this->_config->crossBorderTradeEnabled($store);
+ return (bool)$this->_config->crossBorderTradeEnabled($store);
}
/**
diff --git a/app/code/Magento/Tax/Model/Calculation/Rule.php b/app/code/Magento/Tax/Model/Calculation/Rule.php
index d8060590e849b..f5f7d2dc4d25a 100644
--- a/app/code/Magento/Tax/Model/Calculation/Rule.php
+++ b/app/code/Magento/Tax/Model/Calculation/Rule.php
@@ -214,7 +214,7 @@ public function getPosition()
*/
public function getCalculateSubtotal()
{
- return (bool) $this->getData(self::KEY_CALCULATE_SUBTOTAL);
+ return (bool)$this->getData(self::KEY_CALCULATE_SUBTOTAL);
}
/**
diff --git a/app/code/Magento/Ui/Component/Form/Element/AbstractElement.php b/app/code/Magento/Ui/Component/Form/Element/AbstractElement.php
index fb8db59c90bd7..c00affc748e67 100644
--- a/app/code/Magento/Ui/Component/Form/Element/AbstractElement.php
+++ b/app/code/Magento/Ui/Component/Form/Element/AbstractElement.php
@@ -44,7 +44,7 @@ public function getFormInputName()
*/
public function isReadonly()
{
- return (bool) $this->getData('readonly');
+ return (bool)$this->getData('readonly');
}
/**
diff --git a/dev/tests/integration/testsuite/Magento/CatalogSearch/Model/Indexer/IndexSwitcherMock.php b/dev/tests/integration/testsuite/Magento/CatalogSearch/Model/Indexer/IndexSwitcherMock.php
index 47c60393c33ad..093be2f0decd6 100644
--- a/dev/tests/integration/testsuite/Magento/CatalogSearch/Model/Indexer/IndexSwitcherMock.php
+++ b/dev/tests/integration/testsuite/Magento/CatalogSearch/Model/Indexer/IndexSwitcherMock.php
@@ -46,6 +46,6 @@ public function switchIndex(array $dimensions)
*/
public function isSwitched()
{
- return (bool) $this->isSwitched;
+ return (bool)$this->isSwitched;
}
}
diff --git a/dev/tests/integration/testsuite/Magento/Paypal/Model/Config/Structure/Reader/_files/expected/config.xml b/dev/tests/integration/testsuite/Magento/Paypal/Model/Config/Structure/Reader/_files/expected/config.xml
index 671ab6e4b5619..2552d383bbcc3 100644
--- a/dev/tests/integration/testsuite/Magento/Paypal/Model/Config/Structure/Reader/_files/expected/config.xml
+++ b/dev/tests/integration/testsuite/Magento/Paypal/Model/Config/Structure/Reader/_files/expected/config.xml
@@ -767,7 +767,6 @@
1
-
Get Publisher ID from PayPal
Magento\Paypal\Block\Adminhtml\System\Config\BmlApiWizard
diff --git a/lib/internal/Magento/Framework/Config/FileIterator.php b/lib/internal/Magento/Framework/Config/FileIterator.php
index f8cbe5d46dd8d..88f4004fc319a 100644
--- a/lib/internal/Magento/Framework/Config/FileIterator.php
+++ b/lib/internal/Magento/Framework/Config/FileIterator.php
@@ -98,7 +98,7 @@ public function next()
*/
public function valid()
{
- return (bool) $this->key();
+ return (bool)$this->key();
}
/**
diff --git a/lib/internal/Magento/Framework/Model/AbstractModel.php b/lib/internal/Magento/Framework/Model/AbstractModel.php
index b9b607a0f7631..e0f18e61ba1b7 100644
--- a/lib/internal/Magento/Framework/Model/AbstractModel.php
+++ b/lib/internal/Magento/Framework/Model/AbstractModel.php
@@ -620,7 +620,7 @@ protected function _hasModelChanged()
*/
public function isSaveAllowed()
{
- return (bool) $this->_dataSaveAllowed;
+ return (bool)$this->_dataSaveAllowed;
}
/**
diff --git a/lib/internal/Magento/Framework/Url.php b/lib/internal/Magento/Framework/Url.php
index 11f828370d441..2982edaa4766f 100644
--- a/lib/internal/Magento/Framework/Url.php
+++ b/lib/internal/Magento/Framework/Url.php
@@ -390,13 +390,13 @@ protected function _isSecure()
{
if ($this->_request->isSecure()) {
if ($this->getRouteParamsResolver()->hasData('secure')) {
- return (bool) $this->getRouteParamsResolver()->getData('secure');
+ return (bool)$this->getRouteParamsResolver()->getData('secure');
}
return true;
}
if ($this->getRouteParamsResolver()->hasData('secure_is_forced')) {
- return (bool) $this->getRouteParamsResolver()->getData('secure');
+ return (bool)$this->getRouteParamsResolver()->getData('secure');
}
if (!$this->_getScope()->isUrlSecure()) {
diff --git a/lib/web/mage/utils/wrapper.js b/lib/web/mage/utils/wrapper.js
index c90d1a026b147..9d4bb045b5722 100644
--- a/lib/web/mage/utils/wrapper.js
+++ b/lib/web/mage/utils/wrapper.js
@@ -45,7 +45,7 @@ define([
return {
/**
- * Wraps target function with a specified wrapper, which will recieve
+ * Wraps target function with a specified wrapper, which will receive
* reference to the original function as a first argument.
*
* @param {Function} target - Function to be wrapped.