', $body);
// Verify the password check box is not checked
- $this->assertContains('
', $body);
+ $this->assertContains(
+ '
',
+ $body
+ );
}
/**
@@ -481,11 +486,13 @@ public function testChangePasswordEditAction()
);
}
+ // @codingStandardsIgnoreStart
/**
* @magentoConfigFixture current_store customer/account_information/change_email_template customer_account_information_change_email_and_password_template
* @magentoConfigFixture current_store customer/password/forgot_email_identity support
* @magentoDataFixture Magento/Customer/_files/customer.php
*/
+ // @codingStandardsIgnoreEnd
public function testEditPostAction()
{
/** @var $customerRepository \Magento\Customer\Api\CustomerRepositoryInterface */
@@ -522,11 +529,13 @@ public function testEditPostAction()
$this->assertEquals('johndoe@email.com', $customer->getEmail());
}
+ // @codingStandardsIgnoreStart
/**
* @magentoConfigFixture current_store customer/account_information/change_email_and_password_template customer_account_information_change_email_and_password_template
* @magentoConfigFixture current_store customer/password/forgot_email_identity support
* @magentoDataFixture Magento/Customer/_files/customer.php
*/
+ // @codingStandardsIgnoreEnd
public function testChangePasswordEditPostAction()
{
/** @var $customerRepository \Magento\Customer\Api\CustomerRepositoryInterface */
diff --git a/dev/tests/integration/testsuite/Magento/Customer/Model/CustomerRegistryTest.php b/dev/tests/integration/testsuite/Magento/Customer/Model/CustomerRegistryTest.php
index e0d6cb8481692..bd58d93bf8a08 100644
--- a/dev/tests/integration/testsuite/Magento/Customer/Model/CustomerRegistryTest.php
+++ b/dev/tests/integration/testsuite/Magento/Customer/Model/CustomerRegistryTest.php
@@ -70,8 +70,10 @@ public function testRetrieveCached()
//Verify presence of Customer in registry
$this->assertEquals($customerBeforeDeletion, $this->_model->retrieve(self::CUSTOMER_ID));
//Verify presence of Customer in email registry
- $this->assertEquals($customerBeforeDeletion, $this->_model
- ->retrieveByEmail(self::CUSTOMER_EMAIL, self::WEBSITE_ID));
+ $this->assertEquals(
+ $customerBeforeDeletion,
+ $this->_model->retrieveByEmail(self::CUSTOMER_EMAIL, self::WEBSITE_ID)
+ );
}
/**
diff --git a/dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Export/AddressTest.php b/dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Export/AddressTest.php
index 1258fdc763a5c..f771bd51c973c 100644
--- a/dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Export/AddressTest.php
+++ b/dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Export/AddressTest.php
@@ -214,7 +214,7 @@ protected function _csvToArray($content, $entityId = null)
$data['header'] = str_getcsv($line);
} else {
$row = array_combine($data['header'], str_getcsv($line));
- if ($entityId !== null&& !empty($row[$entityId])) {
+ if ($entityId !== null && !empty($row[$entityId])) {
$data['data'][$row[$entityId]] = $row;
} else {
$data['data'][] = $row;
diff --git a/dev/tests/integration/testsuite/Magento/Framework/Api/AbstractExtensibleObjectTest.php b/dev/tests/integration/testsuite/Magento/Framework/Api/AbstractExtensibleObjectTest.php
index 2b57e8080d0a8..7cac42bf94204 100644
--- a/dev/tests/integration/testsuite/Magento/Framework/Api/AbstractExtensibleObjectTest.php
+++ b/dev/tests/integration/testsuite/Magento/Framework/Api/AbstractExtensibleObjectTest.php
@@ -21,8 +21,10 @@ protected function setUp()
$this->_objectManager->configure(
[
'preferences' => [
- \Magento\Wonderland\Api\Data\FakeAddressInterface::class => \Magento\Wonderland\Model\FakeAddress::class,
- \Magento\Wonderland\Api\Data\FakeRegionInterface::class => \Magento\Wonderland\Model\FakeRegion::class,
+ \Magento\Wonderland\Api\Data\FakeAddressInterface::class
+ => \Magento\Wonderland\Model\FakeAddress::class,
+ \Magento\Wonderland\Api\Data\FakeRegionInterface::class
+ => \Magento\Wonderland\Model\FakeRegion::class,
],
]
);
diff --git a/dev/tests/integration/testsuite/Magento/Framework/App/Response/HeaderProvider/AbstractHeaderTestCase.php b/dev/tests/integration/testsuite/Magento/Framework/App/Response/HeaderProvider/AbstractHeaderTestCase.php
index af96800f22603..e3a5e6c8ff369 100644
--- a/dev/tests/integration/testsuite/Magento/Framework/App/Response/HeaderProvider/AbstractHeaderTestCase.php
+++ b/dev/tests/integration/testsuite/Magento/Framework/App/Response/HeaderProvider/AbstractHeaderTestCase.php
@@ -5,6 +5,8 @@
*/
namespace Magento\Framework\App\Response\HeaderProvider;
+use Magento\Framework\App\Response\Http\Interceptor;
+
abstract class AbstractHeaderTestCase extends \Magento\TestFramework\TestCase\AbstractController
{
/** @var \Magento\Framework\App\Response\Http */
@@ -16,8 +18,8 @@ public function setUp()
$this->_objectManager->configure(
[
'preferences' => [
- \Magento\Framework\App\Response\Http::class => \Magento\Framework\App\Response\Http\Interceptor::class
- ]
+ \Magento\Framework\App\Response\Http::class => Interceptor::class
+ ]
]
);
$this->interceptedResponse = $this->_objectManager->create(\Magento\Framework\App\Response\Http::class);
diff --git a/dev/tests/integration/testsuite/Magento/Framework/Code/GeneratorTest.php b/dev/tests/integration/testsuite/Magento/Framework/Code/GeneratorTest.php
index fe04d873ba8eb..05894a9b384fa 100644
--- a/dev/tests/integration/testsuite/Magento/Framework/Code/GeneratorTest.php
+++ b/dev/tests/integration/testsuite/Magento/Framework/Code/GeneratorTest.php
@@ -53,7 +53,7 @@ protected function setUp()
'generatedEntities' => [
DIGenerator\Factory::ENTITY_TYPE => \Magento\Framework\ObjectManager\Code\Generator\Factory::class,
DIGenerator\Proxy::ENTITY_TYPE => \Magento\Framework\ObjectManager\Code\Generator\Proxy::class,
- InterceptionGenerator\Interceptor::ENTITY_TYPE => \Magento\Framework\Interception\Code\Generator\Interceptor::class,
+ InterceptionGenerator\Interceptor::ENTITY_TYPE => InterceptionGenerator\Interceptor::class,
]
]
);
diff --git a/dev/tests/integration/testsuite/Magento/Framework/Translate/_files/_translation_data.php b/dev/tests/integration/testsuite/Magento/Framework/Translate/_files/_translation_data.php
index 65551e95bae4a..eed4e7cd575b5 100644
--- a/dev/tests/integration/testsuite/Magento/Framework/Translate/_files/_translation_data.php
+++ b/dev/tests/integration/testsuite/Magento/Framework/Translate/_files/_translation_data.php
@@ -9,6 +9,7 @@
'Magento_Store::Text with different translation on different modules' => 'Text translation by Magento_Store module',
'Some non-translated value for Magento_Catalog' => 'Translation for some value for Magento_Catalog',
'Another non-translated value for Magento_Catalog' => 'Translation for another value for Magento_Catalog',
- 'Magento_Catalog::Text with different translation on different modules' => 'Text translation by Magento_Catalog module',
+ 'Magento_Catalog::Text with different translation on different modules'
+ => 'Text translation by Magento_Catalog module',
'Design value to translate' => 'Design translated value',
];
diff --git a/dev/tests/integration/testsuite/Magento/ImportExport/Controller/Adminhtml/Import/ValidateTest.php b/dev/tests/integration/testsuite/Magento/ImportExport/Controller/Adminhtml/Import/ValidateTest.php
index 65d0b98d9bd4d..04de0aa412897 100644
--- a/dev/tests/integration/testsuite/Magento/ImportExport/Controller/Adminhtml/Import/ValidateTest.php
+++ b/dev/tests/integration/testsuite/Magento/ImportExport/Controller/Adminhtml/Import/ValidateTest.php
@@ -59,7 +59,8 @@ public function testValidationReturn($fileName, $message)
$this->_objectManager->configure(
[
'preferences' => [
- \Magento\Framework\HTTP\Adapter\FileTransferFactory::class => \Magento\ImportExport\Controller\Adminhtml\Import\HttpFactoryMock::class
+ \Magento\Framework\HTTP\Adapter\FileTransferFactory::class
+ => \Magento\ImportExport\Controller\Adminhtml\Import\HttpFactoryMock::class
]
]
);
diff --git a/dev/tests/integration/testsuite/Magento/Multishipping/Block/Checkout/Address/SelectTest.php b/dev/tests/integration/testsuite/Magento/Multishipping/Block/Checkout/Address/SelectTest.php
index 51d4b9ffc352e..ffc363ef7b99d 100644
--- a/dev/tests/integration/testsuite/Magento/Multishipping/Block/Checkout/Address/SelectTest.php
+++ b/dev/tests/integration/testsuite/Magento/Multishipping/Block/Checkout/Address/SelectTest.php
@@ -39,7 +39,7 @@ public function testGetAddressAsHtml()
$addressAsHtml = $this->_selectBlock->getAddressAsHtml($address);
$this->assertEquals(
"John Smith
CompanyName
Green str, 67
CityM, Alabama, 75477"
- . "
United States
T:
3468676",
+ . "
United States
T:
3468676",
str_replace("\n", '', $addressAsHtml),
"Address was represented as HTML incorrectly"
);
diff --git a/dev/tests/integration/testsuite/Magento/Quote/Model/QuoteTest.php b/dev/tests/integration/testsuite/Magento/Quote/Model/QuoteTest.php
index 2b6f5c8306f0d..fea361dda2723 100644
--- a/dev/tests/integration/testsuite/Magento/Quote/Model/QuoteTest.php
+++ b/dev/tests/integration/testsuite/Magento/Quote/Model/QuoteTest.php
@@ -7,6 +7,7 @@
use Magento\Catalog\Model\ProductRepository;
use Magento\Customer\Api\Data\CustomerInterfaceFactory;
+use Magento\Customer\Model\GroupManagement;
use Magento\Framework\Exception\LocalizedException;
use Magento\TestFramework\Helper\Bootstrap;
@@ -394,7 +395,7 @@ protected function _getCustomerDataArray()
\Magento\Customer\Model\Data\Customer::EMAIL => 'qa@example.com',
\Magento\Customer\Model\Data\Customer::FIRSTNAME => 'Joe',
\Magento\Customer\Model\Data\Customer::GENDER => 'Male',
- \Magento\Customer\Model\Data\Customer::GROUP_ID => \Magento\Customer\Model\GroupManagement::NOT_LOGGED_IN_ID,
+ \Magento\Customer\Model\Data\Customer::GROUP_ID => GroupManagement::NOT_LOGGED_IN_ID,
\Magento\Customer\Model\Data\Customer::ID => 1,
\Magento\Customer\Model\Data\Customer::LASTNAME => 'Dou',
\Magento\Customer\Model\Data\Customer::MIDDLENAME => 'Ivan',
diff --git a/dev/tests/integration/testsuite/Magento/Reports/Controller/Adminhtml/Report/Product/ViewedTest.php b/dev/tests/integration/testsuite/Magento/Reports/Controller/Adminhtml/Report/Product/ViewedTest.php
index 49e2f0a306a95..549a901e623a2 100644
--- a/dev/tests/integration/testsuite/Magento/Reports/Controller/Adminhtml/Report/Product/ViewedTest.php
+++ b/dev/tests/integration/testsuite/Magento/Reports/Controller/Adminhtml/Report/Product/ViewedTest.php
@@ -20,8 +20,10 @@ public function testExecute()
public function testExecuteWithoutError()
{
- $this->dispatch('backend/reports/report_product/viewed/filter/' .
- 'cGVyaW9kX3R5cGU9ZGF5JmZyb209MDIlMkYxJTJGMjAxNSZ0bz0wMiUyRjE2JTJGMjAxNSZzaG93X2VtcHR5X3Jvd3M9MA');
+ $this->dispatch(
+ 'backend/reports/report_product/viewed/filter/'
+ . 'cGVyaW9kX3R5cGU9ZGF5JmZyb209MDIlMkYxJTJGMjAxNSZ0bz0wMiUyRjE2JTJGMjAxNSZzaG93X2VtcHR5X3Jvd3M9MA'
+ );
$actual = $this->getResponse()->getBody();
$this->assertContains('Product Views Report', $actual);
$this->assertNotContains('An error occurred while showing the product views report.', $actual);
@@ -30,8 +32,10 @@ public function testExecuteWithoutError()
public function testExecuteWithError()
{
$this->markTestSkipped('MAGETWO-38528');
- $this->dispatch('backend/reports/report_product/viewed/filter/' .
- 'cGVyaW9kX3R5cGU9ZGF5JmZyb209NyUyRjElMkY2NyZ0bz1odG1sJTIwZm90bSZzaG93X2VtcHR5X3Jvd3M9MA==');
+ $this->dispatch(
+ 'backend/reports/report_product/viewed/filter/'
+ . 'cGVyaW9kX3R5cGU9ZGF5JmZyb209NyUyRjElMkY2NyZ0bz1odG1sJTIwZm90bSZzaG93X2VtcHR5X3Jvd3M9MA=='
+ );
$actual = $this->getResponse()->getBody();
$this->assertEquals('', $actual);
}
diff --git a/dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/Order/StatusTest.php b/dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/Order/StatusTest.php
index 4882e5fb50103..283acf478f9dd 100644
--- a/dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/Order/StatusTest.php
+++ b/dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/Order/StatusTest.php
@@ -39,10 +39,13 @@ public function testUnassignState()
{
$this->resourceModel->unassignState('fake_status_do_not_use_it', 'fake_state_do_not_use_it');
$this->assertTrue(true);
- $this->assertFalse((bool)
- $this->resourceModel->getConnection()->fetchOne($this->resourceModel->getConnection()->select()
- ->from($this->resourceModel->getTable('sales_order_status_state'), [new \Zend_Db_Expr(1)])
- ->where('status = ?', 'fake_status_do_not_use_it')
- ->where('state = ?', 'fake_state_do_not_use_it')));
+ $this->assertFalse(
+ (bool)$this->resourceModel->getConnection()->fetchOne(
+ $this->resourceModel->getConnection()->select()
+ ->from($this->resourceModel->getTable('sales_order_status_state'), [new \Zend_Db_Expr(1)])
+ ->where('status = ?', 'fake_status_do_not_use_it')
+ ->where('state = ?', 'fake_state_do_not_use_it')
+ )
+ );
}
}
diff --git a/dev/tests/integration/testsuite/Magento/Store/Model/StoreTest.php b/dev/tests/integration/testsuite/Magento/Store/Model/StoreTest.php
index 5fa173ae0f51e..c15092063f2d8 100644
--- a/dev/tests/integration/testsuite/Magento/Store/Model/StoreTest.php
+++ b/dev/tests/integration/testsuite/Magento/Store/Model/StoreTest.php
@@ -61,7 +61,7 @@ protected function _getStoreModel()
'websiteRepository' => $objectManager->get(\Magento\Store\Api\WebsiteRepositoryInterface::class),
];
- return $this->getMock(\Magento\Store\Model\Store::class, ['getUrl'], $this->modelParams);
+ return $this->getMock(Store::class, ['getUrl'], $this->modelParams);
}
protected function tearDown()
@@ -287,7 +287,7 @@ public function testCRUD()
'sort_order' => 0,
'is_active' => 1,
]);
- $crud = new \Magento\TestFramework\Entity($this->model, ['name' => 'new name'], \Magento\Store\Model\Store::class);
+ $crud = new \Magento\TestFramework\Entity($this->model, ['name' => 'new name'], Store::class);
$crud->testCrud();
}
@@ -349,7 +349,7 @@ public function testIsUseStoreInUrl($storeInUrl, $disableStoreInUrl, $expectedRe
->will($this->returnValue($storeInUrl));
$params['config'] = $configMock;
- $model = $objectManager->create(\Magento\Store\Model\Store::class, $params);
+ $model = $objectManager->create(Store::class, $params);
$model->setDisableStoreInUrl($disableStoreInUrl);
$this->assertEquals($expectedResult, $model->isUseStoreInUrl());
}
@@ -380,7 +380,7 @@ public function testIsCurrentlySecure($expected, $serverValues)
{
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
/** @var Store $model */
- $model = $objectManager->create(\Magento\Store\Model\Store::class);
+ $model = $objectManager->create(Store::class);
$request = $objectManager->get(\Magento\Framework\App\RequestInterface::class);
$request->setServer(new Parameters(array_merge($_SERVER, $serverValues)));
@@ -408,7 +408,7 @@ public function testIsCurrentlySecureNoSecureBaseUrl()
{
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
/** @var Store $model */
- $model = $objectManager->create(\Magento\Store\Model\Store::class);
+ $model = $objectManager->create(Store::class);
$server = $_SERVER;
$_SERVER['SERVER_PORT'] = 80;
diff --git a/dev/tests/integration/testsuite/Magento/Tax/Pricing/AdjustmentTest.php b/dev/tests/integration/testsuite/Magento/Tax/Pricing/AdjustmentTest.php
index 5b017ce2e071a..0ace49db2a954 100644
--- a/dev/tests/integration/testsuite/Magento/Tax/Pricing/AdjustmentTest.php
+++ b/dev/tests/integration/testsuite/Magento/Tax/Pricing/AdjustmentTest.php
@@ -31,7 +31,7 @@ protected function isIncludedInBasePricePrice($isShippingPriceExcludeTax, $expec
* @param bool $isShippingPriceExcludeTax
* @param bool $expectedResult
* @magentoConfigFixture current_store tax/calculation/price_includes_tax 1
- * @dataProvider IsIncludedInBasePricePriceIncludeTaxEnabledDataProvider
+ * @dataProvider isIncludedInBasePricePriceIncludeTaxEnabledDataProvider
*/
public function testIsIncludedInBasePricePriceIncludeTacEnabled($isShippingPriceExcludeTax, $expectedResult)
{
@@ -42,7 +42,7 @@ public function testIsIncludedInBasePricePriceIncludeTacEnabled($isShippingPrice
* @param bool $isShippingPriceExcludeTax
* @param bool $expectedResult
* @magentoConfigFixture current_store tax/calculation/price_includes_tax 0
- * @dataProvider IsIncludedInBasePricePriceIncludeTaxDisabledDataProvider
+ * @dataProvider isIncludedInBasePricePriceIncludeTaxDisabledDataProvider
*/
public function testIsIncludedInBasePricePriceIncludeTacDisabled($isShippingPriceExcludeTax, $expectedResult)
{
@@ -52,7 +52,7 @@ public function testIsIncludedInBasePricePriceIncludeTacDisabled($isShippingPric
/**
* @return array
*/
- public function IsIncludedInBasePricePriceIncludeTaxEnabledDataProvider()
+ public function isIncludedInBasePricePriceIncludeTaxEnabledDataProvider()
{
return [
[0, true],
@@ -63,7 +63,7 @@ public function IsIncludedInBasePricePriceIncludeTaxEnabledDataProvider()
/**
* @return array
*/
- public function IsIncludedInBasePricePriceIncludeTaxDisabledDataProvider()
+ public function isIncludedInBasePricePriceIncludeTaxDisabledDataProvider()
{
return [
[0, false],
diff --git a/dev/tests/integration/testsuite/Magento/Test/Integrity/LayoutTest.php b/dev/tests/integration/testsuite/Magento/Test/Integrity/LayoutTest.php
index 1caf3e845319b..89d98ae2c3b13 100644
--- a/dev/tests/integration/testsuite/Magento/Test/Integrity/LayoutTest.php
+++ b/dev/tests/integration/testsuite/Magento/Test/Integrity/LayoutTest.php
@@ -238,7 +238,11 @@ function ($themeFile, $theme) {
);
// Search for the overridden file in the ancestor theme
- $ancestorFiles = self::_getCachedFiles($ancestorTheme->getFullPath(), \Magento\Framework\View\File\Collector\ThemeModular::class, $ancestorTheme);
+ $ancestorFiles = self::_getCachedFiles(
+ $ancestorTheme->getFullPath(),
+ \Magento\Framework\View\File\Collector\ThemeModular::class,
+ $ancestorTheme
+ );
$fileKey = $themeFile->getModule() . '/' . $themeFile->getName();
$this->assertArrayHasKey(
$fileKey,
diff --git a/dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml/User/InvalidateTokenTest.php b/dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml/User/InvalidateTokenTest.php
index 71a1b869cd9b6..1365c42113b36 100644
--- a/dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml/User/InvalidateTokenTest.php
+++ b/dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml/User/InvalidateTokenTest.php
@@ -80,7 +80,7 @@ public function testInvalidateMultipleTokens()
/**
* @magentoDataFixture Magento/User/_files/user_with_role.php
*/
- public function testInvalidateToken_NoTokens()
+ public function testInvalidateTokenWhenUserHasNoTokens()
{
/** @var \Magento\User\Model\User $userModel */
$userModel = Bootstrap::getObjectManager()->get(\Magento\User\Model\User::class);
@@ -95,7 +95,7 @@ public function testInvalidateToken_NoTokens()
);
}
- public function testInvalidateToken_NoUser()
+ public function testInvalidateTokenWhenNoUser()
{
$this->dispatch('backend/admin/user/invalidateToken');
$this->assertSessionMessages(
@@ -104,7 +104,7 @@ public function testInvalidateToken_NoUser()
);
}
- public function testInvalidateToken_InvalidUser()
+ public function testInvalidateTokenWhenUserIsInvalid()
{
$adminUserId = 999;
// invalidate token
diff --git a/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php b/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php
index 296ce4c2c02ef..5c06f68031bdd 100644
--- a/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php
+++ b/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php
@@ -35,7 +35,8 @@ public function testGetRequestedSoapServices()
'resources' => [
'Magento_Customer::manage'
],
- 'documentation' => 'Activate a customer account using a key that was sent in a confirmation email.',
+ 'documentation'
+ => 'Activate a customer account using a key that was sent in a confirmation email.',
'interface' => [
'in' => [
'parameters' => [
diff --git a/dev/tests/static/testsuite/Magento/Test/Integrity/Di/CompilerTest.php b/dev/tests/static/testsuite/Magento/Test/Integrity/Di/CompilerTest.php
index 753348b7b2325..59835e65d2e8f 100644
--- a/dev/tests/static/testsuite/Magento/Test/Integrity/Di/CompilerTest.php
+++ b/dev/tests/static/testsuite/Magento/Test/Integrity/Di/CompilerTest.php
@@ -306,8 +306,8 @@ public function testConstructorIntegrity()
Converter::ENTITY_TYPE => \Magento\Framework\ObjectManager\Code\Generator\Converter::class,
Mapper::ENTITY_TYPE => \Magento\Framework\Api\Code\Generator\Mapper::class,
SearchResults::ENTITY_TYPE => \Magento\Framework\Api\Code\Generator\SearchResults::class,
- ExtensionAttributesInterfaceGenerator::ENTITY_TYPE => \Magento\Framework\Api\Code\Generator\ExtensionAttributesInterfaceGenerator::class,
- ExtensionAttributesGenerator::ENTITY_TYPE => \Magento\Framework\Api\Code\Generator\ExtensionAttributesGenerator::class
+ ExtensionAttributesInterfaceGenerator::ENTITY_TYPE => ExtensionAttributesInterfaceGenerator::class,
+ ExtensionAttributesGenerator::ENTITY_TYPE => ExtensionAttributesGenerator::class
]
);
$generationAutoloader = new \Magento\Framework\Code\Generator\Autoloader($generator);
diff --git a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_config_nodes.php b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_config_nodes.php
index efb37754ed584..59e0b33a54d2b 100644
--- a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_config_nodes.php
+++ b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_config_nodes.php
@@ -12,11 +12,16 @@
'/config/global/fieldsets' => '',
'/config/global/cache/betatypes' => '',
'/config/admin/fieldsets' => '',
- '/config/general/locale' => 'This configuration moved to Di configuration of \Magento\Framework\Locale\ConfigInterface',
- '/config/global/can_use_base_url' => 'This configuration moved to Di configuration of \Magento\Backend\App\Action\Context class',
- '/config/global/locale/allow/codes' => 'This configuration moved to Di configuration of \Magento\Framework\Locale\ConfigInterface',
- '/config/global/locale/allow/currencies' => 'This configuration moved to Di configuration of \Magento\Framework\Locale\ConfigInterface',
- '/config/global/mime/types' => 'This configuration moved to Di configuration for \Magento\Downloadable\Helper\File class',
+ '/config/general/locale'
+ => 'This configuration moved to Di configuration of \Magento\Framework\Locale\ConfigInterface',
+ '/config/global/can_use_base_url'
+ => 'This configuration moved to Di configuration of \Magento\Backend\App\Action\Context class',
+ '/config/global/locale/allow/codes'
+ => 'This configuration moved to Di configuration of \Magento\Framework\Locale\ConfigInterface',
+ '/config/global/locale/allow/currencies'
+ => 'This configuration moved to Di configuration of \Magento\Framework\Locale\ConfigInterface',
+ '/config/global/mime/types'
+ => 'This configuration moved to Di configuration for \Magento\Downloadable\Helper\File class',
'/config/global/models/*/deprecatedNode' => '',
'/config/global/models/*/entities/*/table' => '',
'/config/global/models/*/class' => '',
@@ -25,15 +30,18 @@
'/config/global/models/*/resourceModel' => '',
'/config/global/page/layouts' => 'Moved to page_layouts.xml',
'/config/global/cms/layouts' => 'This was never used and is no longer supported',
- '/config/global/payment/cc/types/*/validator' => 'This configuration was moved to DI configuration of \Magento\Centinel\Model\StateFactory',
+ '/config/global/payment/cc/types/*/validator'
+ => 'This configuration was moved to DI configuration of \Magento\Centinel\Model\StateFactory',
'/config/global/payment' => 'Move them to payment.xml.',
'/config/adminhtml/menu' => 'Move them to adminhtml.xml.',
'/config/adminhtml/acl' => 'Move them to adminhtml.xml.',
- '/config/adminhtml/global_search' => 'This configuration moved to Di configuration of \Magento\Backend\Controller\Index',
+ '/config/adminhtml/global_search'
+ => 'This configuration moved to Di configuration of \Magento\Backend\Controller\Index',
'/config/*[self::global|self::adminhtml|self::frontend]/di' => 'This configuration moved to di.xml file',
'/config/*[self::global|self::adminhtml|self::frontend]/events' => 'This configuration moved to events.xml file',
- '/config/*[self::global|self::adminhtml|self::frontend]/routers' => 'Routes configuration moved to routes.xml file,' .
- 'routers list can be set through Di configuration of \Magento\Framework\App\RouterList model',
+ '/config/*[self::global|self::adminhtml|self::frontend]/routers'
+ => 'Routes configuration moved to routes.xml file,'
+ . 'routers list can be set through Di configuration of \Magento\Framework\App\RouterList model',
'/config/global/importexport' => 'This configuration moved to import.xml and export.xml files',
'/config/global/catalog/product/type' => 'This configuration moved to product_types.xml file',
'/config/global/catalog/product/options' => 'This configuration moved to product_options.xml file',
@@ -45,28 +53,42 @@
'/config/global/salesrule' => 'This configuration moved to Di configuration of \Magento\SalesRule\Helper\Coupon',
'/config/global/session' => 'This configuration moved to Di configuration of \Magento\Framework\Session\Validator',
'/config/global/ignore_user_agents' => 'This configuration moved to Di configuration of \Magento\Log\Model\Visitor',
- '/config/global/request' => 'This configuration moved to Di configuration of \Magento\Framework\App\RequestInterface',
- '/config/global/secure_url' => 'This configuration moved to Di configuration of \Magento\Framework\Url\SecurityInfo',
+ '/config/global/request'
+ => 'This configuration moved to Di configuration of \Magento\Framework\App\RequestInterface',
+ '/config/global/secure_url'
+ => 'This configuration moved to Di configuration of \Magento\Framework\Url\SecurityInfo',
'/config/global/dev' => 'This configuration moved to Di configuration of \Magento\Framework\App\Action\Context',
- '/config/global/webapi' => 'This configuration moved to Di configuration of \Magento\Webapi\Controller\Request\Rest\Interpreter\Factory' .
- ' and \Magento\Webapi\Controller\Response\Rest\Renderer\Factory',
- '/config/global/cms' => 'This configuration moved to Di configuration of \Magento\Cms\Model\Wysiwyg\Images\Storage' .
- ' and \Magento\Cms\Model\Wysiwyg\Config',
- '/config/global/widget' => 'This configuration moved to Di configuration of \Magento\Cms\Model\Template\FilterProvider',
- '/config/global/catalog/product/flat/max_index_count' => 'This configuration moved to Di configuration of \Magento\Catalog\Model\ResourceModel\Product\Flat\Indexer',
- '/config/global/catalog/product/flat/attribute_groups' => 'This configuration moved to Di configuration of \Magento\Catalog\Model\ResourceModel\Product\Flat\Indexer',
- '/config/global/catalog/product/flat/add_filterable_attributes' => 'This configuration moved to Di configuration of \Magento\Catalog\Helper\Product\Flat\Indexer',
- '/config/global/catalog/product/flat/add_child_data' => 'This configuration moved to Di configuration of \Magento\Catalog\Helper\Product\Flat\Indexer',
- '/config/global/catalog/content/template_filter' => 'This configuration moved to Di configuration of \Magento\Catalog\Helper\Data',
- '/config/frontend/catalog/per_page_values/list' => 'This configuration moved to Di configuration of \Magento\Catalog\Model\Config\Source\ListPerPage',
- '/config/frontend/catalog/per_page_values/grid' => 'This configuration moved to Di configuration of \Magento\Catalog\Model\Config\Source\GridPerPage',
- '/config/global/catalog/product/design' => 'This configuration moved to Di configuration of' .
- ' \Magento\Catalog\Model\Entity\Product\Attribute\Design\Option\Container',
+ '/config/global/webapi'
+ => 'This configuration moved to Di configuration of \Magento\Webapi\Controller\Request\Rest\Interpreter\Factory'
+ . ' and \Magento\Webapi\Controller\Response\Rest\Renderer\Factory',
+ '/config/global/cms' => 'This configuration moved to Di configuration of \Magento\Cms\Model\Wysiwyg\Images\Storage'
+ . ' and \Magento\Cms\Model\Wysiwyg\Config',
+ '/config/global/widget'
+ => 'This configuration moved to Di configuration of \Magento\Cms\Model\Template\FilterProvider',
+ '/config/global/catalog/product/flat/max_index_count'
+ => 'This configuration moved to Di configuration of \Magento\Catalog\Model\ResourceModel\Product\Flat\Indexer',
+ '/config/global/catalog/product/flat/attribute_groups'
+ => 'This configuration moved to Di configuration of \Magento\Catalog\Model\ResourceModel\Product\Flat\Indexer',
+ '/config/global/catalog/product/flat/add_filterable_attributes'
+ => 'This configuration moved to Di configuration of \Magento\Catalog\Helper\Product\Flat\Indexer',
+ '/config/global/catalog/product/flat/add_child_data'
+ => 'This configuration moved to Di configuration of \Magento\Catalog\Helper\Product\Flat\Indexer',
+ '/config/global/catalog/content/template_filter'
+ => 'This configuration moved to Di configuration of \Magento\Catalog\Helper\Data',
+ '/config/frontend/catalog/per_page_values/list'
+ => 'This configuration moved to Di configuration of \Magento\Catalog\Model\Config\Source\ListPerPage',
+ '/config/frontend/catalog/per_page_values/grid'
+ => 'This configuration moved to Di configuration of \Magento\Catalog\Model\Config\Source\GridPerPage',
+ '/config/global/catalog/product/design'
+ => 'This configuration moved to Di configuration of'
+ . ' \Magento\Catalog\Model\Entity\Product\Attribute\Design\Option\Container',
'/config/global/catalog/product/attributes' => 'This configuration moved catalog_attributes.xml',
'/config/global/eav_frontendclasses' => 'This configuration was removed. ' .
'Please pluginize \Magento\Eav\Helper\Data::getFrontendClasses to extend frontend classes list',
- '/config/global/resources' => 'This configuration moved to Di configuration of \Magento\Framework\App\ResourceConnection',
- '/config/global/resource' => 'This configuration moved to Di configuration of \Magento\Framework\App\ResourceConnection',
+ '/config/global/resources'
+ => 'This configuration moved to Di configuration of \Magento\Framework\App\ResourceConnection',
+ '/config/global/resource'
+ => 'This configuration moved to Di configuration of \Magento\Framework\App\ResourceConnection',
'/config/*/events/core_block_abstract_to_html_after' => 'Event has been replaced with "core_layout_render_element"',
'/config/*/events/catalog_controller_product_delete' => '',
'/config//observers/*/args' => 'This was an undocumented and unused feature in event subscribers',
@@ -79,10 +101,14 @@
'/config/global/disable_local_modules' => '',
'/config/global/newsletter/tempate_filter' => 'Use DI configs to setup model for template processing',
'/config/*/layout' => 'Use convention for layout files placement instead of configuration',
- '/config/frontend/product/collection/attributes' => 'Use /config/group[@name="catalog_product"] of catalog_attributes.xml',
- '/config/frontend/category/collection/attributes' => 'Use /config/group[@name="catalog_category"] of catalog_attributes.xml',
- '/config/global/sales/quote/item/product_attributes' => 'Use /config/group[@name="quote_item"] of catalog_attributes.xml',
- '/config/global/wishlist/item/product_attributes' => 'Use /config/group[@name="wishlist_item"] of catalog_attributes.xml',
+ '/config/frontend/product/collection/attributes'
+ => 'Use /config/group[@name="catalog_product"] of catalog_attributes.xml',
+ '/config/frontend/category/collection/attributes'
+ => 'Use /config/group[@name="catalog_category"] of catalog_attributes.xml',
+ '/config/global/sales/quote/item/product_attributes'
+ => 'Use /config/group[@name="quote_item"] of catalog_attributes.xml',
+ '/config/global/wishlist/item/product_attributes'
+ => 'Use /config/group[@name="wishlist_item"] of catalog_attributes.xml',
'/config/global/catalog/product/flat/attribute_nodes' => 'Use /config/global/catalog/product/flat/attribute_groups',
'/config/global/customer/address/formats' => 'Use /config/format of address_formats.xml',
'/config/global/pdf' => 'Use configuration in pdf.xml',
diff --git a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_constants.php b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_constants.php
index 216a2ad50694d..e69943b7fa211 100644
--- a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_constants.php
+++ b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_constants.php
@@ -103,19 +103,31 @@
'Magento\Core\Model\Design\PackageInterface',
'Magento_Core_Model_Design_Package::PUBLIC_MODULE_DIR',
],
- ['PUBLIC_MODULE_DIR', 'Magento\Framework\View\Publisher', 'Magento\Framework\View\Publisher\FileInterface::PUBLIC_MODULE_DIR'],
+ [
+ 'PUBLIC_MODULE_DIR',
+ 'Magento\Framework\View\Publisher',
+ 'Magento\Framework\View\Publisher\FileInterface::PUBLIC_MODULE_DIR'
+ ],
[
'PUBLIC_THEME_DIR',
'Magento\Core\Model\Design\PackageInterface',
'Magento_Core_Model_Design_Package::PUBLIC_THEME_DIR',
],
- ['PUBLIC_THEME_DIR', 'Magento\Framework\View\Publisher', 'Magento\Framework\View\Publisher\FileInterface::PUBLIC_THEME_DIR'],
+ [
+ 'PUBLIC_THEME_DIR',
+ 'Magento\Framework\View\Publisher',
+ 'Magento\Framework\View\Publisher\FileInterface::PUBLIC_THEME_DIR'
+ ],
[
'PUBLIC_VIEW_DIR',
'Magento\Core\Model\Design\PackageInterface',
'Magento_Core_Model_Design_Package::PUBLIC_VIEW_DIR',
],
- ['PUBLIC_VIEW_DIR', 'Magento\Framework\View\Publisher', 'Magento\Framework\View\Publisher\FileInterface::PUBLIC_VIEW_DIR'],
+ [
+ 'PUBLIC_VIEW_DIR',
+ 'Magento\Framework\View\Publisher',
+ 'Magento\Framework\View\Publisher\FileInterface::PUBLIC_VIEW_DIR'
+ ],
['REGISTRY_FORM_PARAMS_KEY', null, 'direct value'],
['RULE_PERM_ALLOW', '\Magento\Framework\Math\Random'],
['RULE_PERM_DENY', '\Magento\Framework\Math\Random'],
@@ -506,7 +518,11 @@
['CONTAINER_OPT_HTML_CLASS', 'Magento\Framework\View\Layout', '\Magento\Framework\View\Layout\Element'],
['CONTAINER_OPT_HTML_ID', 'Magento\Framework\View\Layout', '\Magento\Framework\View\Layout\Element'],
['CONTAINER_OPT_LABEL', 'Magento\Framework\View\Layout', '\Magento\Framework\View\Layout\Element'],
- ['XML_PATH_THEME_ID', 'Magento\Core\Model\View\Design', '\Magento\Framework\View\DesignInterface::XML_PATH_THEME_ID'],
+ [
+ 'XML_PATH_THEME_ID',
+ 'Magento\Core\Model\View\Design',
+ '\Magento\Framework\View\DesignInterface::XML_PATH_THEME_ID'
+ ],
['UPLOAD_ROOT', 'Magento\Backend\Model\Config\Backend\Logo'],
['UPLOAD_ROOT', 'Magento\Backend\Model\Config\Backend\Favicon'],
['DIRECTORY_SEPARATOR', 'Magento\Framework\Filesystem'],
@@ -648,26 +664,74 @@
['VAT_CLASS_INVALID', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::VAT_CLASS_INVALID'],
['VAT_CLASS_INTRA_UNION', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::VAT_CLASS_INTRA_UNION'],
['VAT_CLASS_DOMESTIC', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::VAT_CLASS_DOMESTIC'],
- ['XML_PATH_CUSTOMER_VIV_INTRA_UNION_GROUP', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_VIV_INTRA_UNION_GROUP'],
- ['XML_PATH_CUSTOMER_VIV_DOMESTIC_GROUP', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_VIV_DOMESTIC_GROUP'],
- ['XML_PATH_CUSTOMER_VIV_INVALID_GROUP', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_VIV_INVALID_GROUP'],
- ['XML_PATH_CUSTOMER_VIV_ERROR_GROUP', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_VIV_ERROR_GROUP'],
+ [
+ 'XML_PATH_CUSTOMER_VIV_INTRA_UNION_GROUP',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_VIV_INTRA_UNION_GROUP'
+ ],
+ [
+ 'XML_PATH_CUSTOMER_VIV_DOMESTIC_GROUP',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_VIV_DOMESTIC_GROUP'
+ ],
+ [
+ 'XML_PATH_CUSTOMER_VIV_INVALID_GROUP',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_VIV_INVALID_GROUP'
+ ],
+ [
+ 'XML_PATH_CUSTOMER_VIV_ERROR_GROUP',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_VIV_ERROR_GROUP'
+ ],
['VAT_VALIDATION_WSDL_URL', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::VAT_VALIDATION_WSDL_URL'],
- ['XML_PATH_CUSTOMER_GROUP_AUTO_ASSIGN', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_GROUP_AUTO_ASSIGN'],
- ['XML_PATH_EU_COUNTRIES_LIST', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::XML_PATH_EU_COUNTRIES_LIST'],
- ['XML_PATH_MERCHANT_COUNTRY_CODE', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::XML_PATH_MERCHANT_COUNTRY_CODE'],
- ['XML_PATH_MERCHANT_VAT_NUMBER', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::XML_PATH_MERCHANT_VAT_NUMBER'],
+ [
+ 'XML_PATH_CUSTOMER_GROUP_AUTO_ASSIGN',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::XML_PATH_CUSTOMER_GROUP_AUTO_ASSIGN'
+ ],
+ [
+ 'XML_PATH_EU_COUNTRIES_LIST',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::XML_PATH_EU_COUNTRIES_LIST'
+ ],
+ [
+ 'XML_PATH_MERCHANT_COUNTRY_CODE',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::XML_PATH_MERCHANT_COUNTRY_CODE'
+ ],
+ [
+ 'XML_PATH_MERCHANT_VAT_NUMBER',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::XML_PATH_MERCHANT_VAT_NUMBER'
+ ],
['ROUTE_ACCOUNT_LOGIN', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Url::ROUTE_ACCOUNT_LOGIN'],
- ['XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Url::XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD'],
- ['REFERER_QUERY_PARAM_NAME', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Url::REFERER_QUERY_PARAM_NAME'],
- ['XML_PATH_CUSTOMER_RESET_PASSWORD_LINK_EXPIRATION_PERIOD', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Customer::XML_PATH_CUSTOMER_RESET_PASSWORD_LINK_EXPIRATION_PERIOD'],
+ [
+ 'XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Url::XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD'
+ ],
+ [
+ 'REFERER_QUERY_PARAM_NAME',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Url::REFERER_QUERY_PARAM_NAME'
+ ],
+ [
+ 'XML_PATH_CUSTOMER_RESET_PASSWORD_LINK_EXPIRATION_PERIOD',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Customer::XML_PATH_CUSTOMER_RESET_PASSWORD_LINK_EXPIRATION_PERIOD'
+ ],
['XML_PATH_SUPPORT_EMAIL', 'Magento\Customer\Helper\Data'],
['CONTEXT_AUTH', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Context::CONTEXT_AUTH'],
['CONTEXT_CURRENCY', 'Magento\Customer\Helper\Data', 'Magento\Framework\App\Http\Context::CONTEXT_CURRENCY'],
['CONTEXT_GROUP', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Context::CONTEXT_GROUP'],
['CONTEXT_STORE', 'Magento\Customer\Helper\Data', 'Magento\Store\Model\StoreManagerInterface::CONTEXT_STORE'],
['DEBUG_CONNECT', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\LoggerInterface::TYPE_CONNECT'],
- ['DEBUG_TRANSACTION', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\LoggerInterface::TYPE_TRANSACTION'],
+ [
+ 'DEBUG_TRANSACTION',
+ 'Magento\Framework\DB\Adapter\Pdo\Mysql',
+ 'Magento\Framework\DB\LoggerInterface::TYPE_TRANSACTION'
+ ],
['DEBUG_QUERY', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\LoggerInterface::TYPE_QUERY'],
[
'PARAM_ALLOWED_MODULES',
diff --git a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_methods.php b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_methods.php
index 42e94c348e50a..4e8253cde34d9 100644
--- a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_methods.php
+++ b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_methods.php
@@ -34,8 +34,16 @@
['_avoidDoubleTransactionProcessing'],
['_beforeChildToHtml'],
['_beforeMove', 'Magento\Catalog\Model\ResourceModel\Category\Tree'],
- ['_getIsActiveAttributeId', 'Magento\Catalog\Model\ResourceModel\Category\Tree', 'Magento\Catalog\Model\ResourceModel\Category::getIsActiveAttributeId'],
- ['_getIsActiveAttributeId', 'Magento\Catalog\Model\ResourceModel\Category', 'Magento\Catalog\Model\ResourceModel\Category::getIsActiveAttributeId'],
+ [
+ '_getIsActiveAttributeId',
+ 'Magento\Catalog\Model\ResourceModel\Category\Tree',
+ 'Magento\Catalog\Model\ResourceModel\Category::getIsActiveAttributeId'
+ ],
+ [
+ '_getIsActiveAttributeId',
+ 'Magento\Catalog\Model\ResourceModel\Category',
+ 'Magento\Catalog\Model\ResourceModel\Category::getIsActiveAttributeId'
+ ],
['_bytesToMbytes', 'Magento\Catalog\Model\Product\Option\Type\File'],
['_calculatePrice', 'Magento\Quote\Model\Quote\Item\AbstractItem'],
['_canBeStoreCodeInUrl', 'Magento\Framework\App\Request\Http'],
@@ -1892,9 +1900,21 @@
['_addWelcomeMessage', 'Magento\Customer\Controller\Account'],
['_isVatValidationEnabled', 'Magento\Customer\Controller\Account'],
['_createUrl', 'Magento\Customer\Controller\Account'],
- ['_extractAddress', 'Magento\Customer\Controller\Account\CreatePost', 'Magento\Customer\Controller\Account\CreatePost::extractAddress'],
- ['_loginPostRedirect', 'Magento\Customer\Controller\Account\LoginPost', 'Magento\Customer\Model\Account\Redirect::getRedirect'],
- ['_getAllowedActions', 'Magento\Customer\Controller\Account', 'Magento\Customer\Controller\Account::getAllowedActions'],
+ [
+ '_extractAddress',
+ 'Magento\Customer\Controller\Account\CreatePost',
+ 'Magento\Customer\Controller\Account\CreatePost::extractAddress'
+ ],
+ [
+ '_loginPostRedirect',
+ 'Magento\Customer\Controller\Account\LoginPost',
+ 'Magento\Customer\Model\Account\Redirect::getRedirect'
+ ],
+ [
+ '_getAllowedActions',
+ 'Magento\Customer\Controller\Account',
+ 'Magento\Customer\Controller\Account::getAllowedActions'
+ ],
['isRegistrationAllowed', 'Magento\Customer\Controller\Account\CreatePost'],
['isRegistrationAllowed', 'Magento\Invitation\Controller\Customer\Account\CreatePost'],
['getNoDisplay', 'Magento\Catalog\Block\Adminhtml\Product\Helper\Form\Category'],
@@ -1913,15 +1933,27 @@
['getLoginUrlParams', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Url::getLoginUrlParams'],
['getMerchantCountryCode', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::getMerchantCountryCode'],
['getMerchantVatNumber', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::getMerchantVatNumber'],
- ['getCustomerGroupIdBasedOnVatNumber', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::getCustomerGroupIdBasedOnVatNumber'],
+ [
+ 'getCustomerGroupIdBasedOnVatNumber',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::getCustomerGroupIdBasedOnVatNumber'
+ ],
['checkVatNumber', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::checkVatNumber'],
- ['createVatNumberValidationSoapClient', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::createVatNumberValidationSoapClient'],
+ [
+ 'createVatNumberValidationSoapClient',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Vat::createVatNumberValidationSoapClient'
+ ],
['canCheckVatNumber', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::canCheckVatNumber'],
['getCustomerVatClass', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::getCustomerVatClass'],
['isCountryInEU', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Vat::isCountryInEU'],
['generateResetPasswordLinkToken', 'Magento\Customer\Helper\Data'],
['isLoggedIn', 'Magento\Customer\Helper\Data'],
- ['getResetPasswordLinkExpirationPeriod', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Customer::getResetPasswordLinkExpirationPeriod'],
+ [
+ 'getResetPasswordLinkExpirationPeriod',
+ 'Magento\Customer\Helper\Data',
+ 'Magento\Customer\Model\Customer::getResetPasswordLinkExpirationPeriod'
+ ],
['isRegistrationAllowed', 'Magento\Customer\Helper\Data', 'Magento\Customer\Model\Registration::isAllowed'],
['getFlatIndexer', 'Magento\Catalog\Model\Category'],
['getProductIndexer', 'Magento\Catalog\Model\Category'],
@@ -1934,35 +1966,83 @@
['getIndexer', 'Magento\CatalogSearch\Model\Indexer\Fulltext\Plugin\AbstractPlugin'],
['getRemoteResource', 'Magento\Framework\Filesystem', 'Magento\Framework\Filesystem\File\ReadFactory::create'],
['setCache', 'Magento\Framework\App\Magento\Framework\App\ResourceConnection'],
- ['setTablePrefix', 'Magento\Framework\App\Magento\Framework\App\ResourceConnection', 'Can be passed through constructor only'],
+ [
+ 'setTablePrefix',
+ 'Magento\Framework\App\Magento\Framework\App\ResourceConnection',
+ 'Can be passed through constructor only'
+ ],
['_debugTimer', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\Logger\LoggerAbstract::startTimer'],
['_debugStat', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\Logger\File::logStats'],
['_debugException', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\Logger\File::critical'],
['_debugWriteToFile', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\Logger\File::log'],
- ['applyDataUpdates', 'Magento\Framework\Module\Setup', '\Magento\Framework\Setup\ModuleDataSetupInterface::applyDataUpdates'],
+ [
+ 'applyDataUpdates',
+ 'Magento\Framework\Module\Setup',
+ '\Magento\Framework\Setup\ModuleDataSetupInterface::applyDataUpdates'
+ ],
['_installData', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_installData'],
['_upgradeData', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_upgradeData'],
- ['_getAvailableDataFiles', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_getAvailableDataFiles'],
+ [
+ '_getAvailableDataFiles',
+ 'Magento\Framework\Module\Setup',
+ 'Magento\Setup\Module\DataSetup::_getAvailableDataFiles'
+ ],
['_modifyResourceDb', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_modifyResourceDb'],
['_includeFile', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_includeFile'],
['_getModifySqlFiles', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_getModifySqlFiles'],
['getTableRow', 'Magento\Framework\Module\Setup', '\Magento\Framework\Setup\ModuleDataSetupInterface::getTableRow'],
- ['deleteTableRow', 'Magento\Framework\Module\Setup', '\Magento\Framework\Setup\ModuleDataSetupInterface::deleteTableRow'],
- ['updateTableRow', 'Magento\Framework\Module\Setup', '\Magento\Framework\Setup\ModuleDataSetupInterface::updateTableRow'],
- ['getCallAfterApplyAllUpdates', 'Magento\Framework\Module\Setup', '\Magento\Framework\Setup\ModuleDataSetupInterface::getCallAfterApplyAllUpdates'],
- ['afterApplyAllUpdates', 'Magento\Framework\Module\Setup', '\\Magento\Framework\Setup\ModuleDataSetupInterface::afterApplyAllUpdates'],
- ['getEventManager', 'Magento\Framework\Module\Setup', '\Magento\Framework\Setup\ModuleDataSetupInterface::getEventManager'],
- ['getFilesystem', 'Magento\Framework\Module\Setup', '\Magento\Framework\Setup\ModuleDataSetupInterface::getFilesystem'],
- ['createMigrationSetup', 'Magento\Framework\Module\Setup', '\Magento\Framework\Setup\ModuleDataSetupInterface::createMigrationSetup'],
+ [
+ 'deleteTableRow',
+ 'Magento\Framework\Module\Setup',
+ '\Magento\Framework\Setup\ModuleDataSetupInterface::deleteTableRow'
+ ],
+ [
+ 'updateTableRow',
+ 'Magento\Framework\Module\Setup',
+ '\Magento\Framework\Setup\ModuleDataSetupInterface::updateTableRow'
+ ],
+ [
+ 'getCallAfterApplyAllUpdates',
+ 'Magento\Framework\Module\Setup',
+ '\Magento\Framework\Setup\ModuleDataSetupInterface::getCallAfterApplyAllUpdates'
+ ],
+ [
+ 'afterApplyAllUpdates',
+ 'Magento\Framework\Module\Setup',
+ '\\Magento\Framework\Setup\ModuleDataSetupInterface::afterApplyAllUpdates'
+ ],
+ [
+ 'getEventManager',
+ 'Magento\Framework\Module\Setup',
+ '\Magento\Framework\Setup\ModuleDataSetupInterface::getEventManager'
+ ],
+ [
+ 'getFilesystem',
+ 'Magento\Framework\Module\Setup',
+ '\Magento\Framework\Setup\ModuleDataSetupInterface::getFilesystem'
+ ],
+ [
+ 'createMigrationSetup',
+ 'Magento\Framework\Module\Setup',
+ '\Magento\Framework\Setup\ModuleDataSetupInterface::createMigrationSetup'
+ ],
['getModules', 'Magento\Framework\Module\ModuleList', 'getAll'],
['getModules', 'Magento\Framework\Module\ModuleListInterface', 'getAll'],
['getModule', 'Magento\Framework\Module\ModuleList', 'getOne'],
['getModule', 'Magento\Framework\Module\ModuleListInterface', 'getOne'],
['_getNewConditionModelInstance', 'Magento\Rule\Model\Condition\Combine'],
['getItemsRandomCollection', 'Magento\Sales\Model\Order'],
- ['importOrderAddress', 'Magento\Quote\Model\Quote\Address', 'Magento\Quote\Model\Quote\Address::importCustomerAddressData'],
+ [
+ 'importOrderAddress',
+ 'Magento\Quote\Model\Quote\Address',
+ 'Magento\Quote\Model\Quote\Address::importCustomerAddressData'
+ ],
['_getUsedAttributes', 'Magento\SalesRule\Model\Rule'],
- ['getDefaultCustomerGroupId', 'Magento\Customer\Model\Vat', 'Magento\Customer\Api\GroupManagementInterface::getDefaultGroup'],
+ [
+ 'getDefaultCustomerGroupId',
+ 'Magento\Customer\Model\Vat',
+ 'Magento\Customer\Api\GroupManagementInterface::getDefaultGroup'
+ ],
[
'getRatesByCustomerAndProductTaxClassId',
'Magento\Tax\Service\V1\TaxRuleServiceInterface',
@@ -1976,7 +2056,11 @@
['urlEncode', 'Magento\Framework\App\Helper\AbstractHelper', 'Magento\Framework\Url\EncoderInterface::encode'],
['urlDecode', 'Magento\Framework\App\Helper\AbstractHelper', 'Magento\Framework\Url\DecoderInterface::decode'],
['isModuleEnabled', 'Magento\Framework\App\Helper\AbstractHelper', 'Magento\Framework\Module\Manager::isEnabled()'],
- ['isModuleOutputEnabled', 'Magento\Framework\App\Helper\AbstractHelper', 'Magento\Framework\Module\Manager::isOutputEnabled()'],
+ [
+ 'isModuleOutputEnabled',
+ 'Magento\Framework\App\Helper\AbstractHelper',
+ 'Magento\Framework\Module\Manager::isOutputEnabled()'
+ ],
['_packToTar', 'Magento\Framework\Archive\Tar'],
['_parseHeader', 'Magento\Framework\Archive\Tar'],
['getIdentities', 'Magento\Wishlist\Block\Link'],
@@ -2036,7 +2120,11 @@
['_renderPage', 'Magento\Cms\Helper\Page'],
['beforeGenerateBlock', 'Magento\Backend\Model\View\Layout\Builder'],
['beforeGenerateBlock', 'Magento\Backend\Model\View\Page\Builder'],
- ['filterAclNodes', 'Magento\Backend\Model\View\Layout\Filter\Acl', 'Magento\Backend\Model\View\Layout\Filter\Acl::filterAclElements'],
+ [
+ 'filterAclNodes',
+ 'Magento\Backend\Model\View\Layout\Filter\Acl',
+ 'Magento\Backend\Model\View\Layout\Filter\Acl::filterAclElements'
+ ],
['getModuleName', 'Magento\Framework\App\Console\Request'],
['setModuleName', 'Magento\Framework\App\Console\Request'],
['getActionName', 'Magento\Framework\App\Console\Request'],
@@ -2111,13 +2199,21 @@
],
['isReviewOwner', 'Magento\Review\Block\Customer\View'],
['getRegistration', 'Magento\Customer\Block\Form\Login', 'Magento\Customer\Block\Form\Login\Info::getRegistration'],
- ['getCreateAccountUrl', 'Magento\Customer\Block\Form\Login', 'Magento\Customer\Block\Form\Login\Info::getCreateAccountUrl'],
+ [
+ 'getCreateAccountUrl',
+ 'Magento\Customer\Block\Form\Login',
+ 'Magento\Customer\Block\Form\Login\Info::getCreateAccountUrl'
+ ],
['getSuccessMessage', 'Magento\Newsletter\Block\Subscribe'],
['getErrorMessage', 'Magento\Newsletter\Block\Subscribe'],
['_initCollection', 'Magento\Review\Block\Customer\ListCustomer'],
['count', 'Magento\Review\Block\Customer\ListCustomer'],
['_getCollection', 'Magento\Review\Block\Customer\ListCustomer'],
- ['getCollection', 'Magento\Review\Block\Customer\ListCustomer', 'Magento\Review\Block\Customer\ListCustomer::getReviews'],
+ [
+ 'getCollection',
+ 'Magento\Review\Block\Customer\ListCustomer',
+ 'Magento\Review\Block\Customer\ListCustomer::getReviews'
+ ],
['_initCollection', 'Magento\Review\Block\Customer\Recent'],
['count', 'Magento\Review\Block\Customer\Recent'],
['_getCollection', 'Magento\Review\Block\Customer\Recent'],
@@ -2309,9 +2405,20 @@
['getChilds', 'Magento\Bundle\Block\Sales\Order\Items\Renderer', 'getChildren'],
['getChilds', 'Magento\Bundle\Model\Sales\Order\Pdf\Items\AbstractItems', 'getChildren'],
['prepareIndexdata', 'Magento\Search\Helper\Data'],
- ['isAssetMinification', 'Magento\Framework\View\Asset\ConfigInterface', 'Magento\Framework\View\Asset\Minification::isEnabled'],
- ['isAssetMinification', 'Magento\Framework\View\Asset\Config', 'Magento\Framework\View\Asset\Minification::isEnabled'],
- ['getPriceValues', 'Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\Attribute\Collection'],
+ [
+ 'isAssetMinification',
+ 'Magento\Framework\View\Asset\ConfigInterface',
+ 'Magento\Framework\View\Asset\Minification::isEnabled'
+ ],
+ [
+ 'isAssetMinification',
+ 'Magento\Framework\View\Asset\Config',
+ 'Magento\Framework\View\Asset\Minification::isEnabled'
+ ],
+ [
+ 'getPriceValues',
+ 'Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\Attribute\Collection'
+ ],
['getPricingValue', 'Magento\ConfigurableProduct\Model\Product\Type\Configurable\OptionValue'],
['getIsPercent', 'Magento\ConfigurableProduct\Model\Product\Type\Configurable\OptionValue'],
['addPrice', 'Magento\ConfigurableProduct\Model\Product\Type\Configurable\Attribute'],
@@ -2385,26 +2492,78 @@
['initOptionRenderer', 'Magento\Bundle\Model\Observer', 'Magento\Bundle\Observer\InitOptionRenderer::invoke'],
['setAttributeTabBlock', 'Magento\Bundle\Model\Observer', 'Magento\Bundle\Observer\SetAttributeTabBlock::invoke'],
['appendUpsellProducts', 'Magento\Bundle\Model\Observer', 'Magento\Bundle\Observer\AppendUpsellProducts::invoke'],
- ['prepareCatalogProductCollectionPrices', 'Magento\CatalogRule\Model\Observer', 'Magento\CatalogRule\Observer\PrepareCatalogProductCollectionPrices::invoke'],
- ['processAdminFinalPrice', 'Magento\CatalogRule\Model\Observer', 'Magento\CatalogRule\Observer\ProcessAdminFinalPrice::invoke'],
- ['processFrontFinalPrice', 'Magento\CatalogRule\Model\Observer', 'Magento\CatalogRule\Observer\ProcessFrontFinalPrice::invoke'],
+ [
+ 'prepareCatalogProductCollectionPrices',
+ 'Magento\CatalogRule\Model\Observer',
+ 'Magento\CatalogRule\Observer\PrepareCatalogProductCollectionPrices::invoke'
+ ],
+ [
+ 'processAdminFinalPrice',
+ 'Magento\CatalogRule\Model\Observer',
+ 'Magento\CatalogRule\Observer\ProcessAdminFinalPrice::invoke'
+ ],
+ [
+ 'processFrontFinalPrice',
+ 'Magento\CatalogRule\Model\Observer',
+ 'Magento\CatalogRule\Observer\ProcessFrontFinalPrice::invoke'
+ ],
['salesEventConvertQuoteAddressToOrder', 'Magento\Tax\Model\Observer'],
- ['aggregateSalesReportTaxData', 'Magento\Tax\Model\Observer', 'Magento\Tax\Observer\AggregateSalesReportTaxData::invoke'],
+ [
+ 'aggregateSalesReportTaxData',
+ 'Magento\Tax\Model\Observer',
+ 'Magento\Tax\Observer\AggregateSalesReportTaxData::invoke'
+ ],
['quoteCollectTotalsBefore', 'Magento\Tax\Model\Observer', 'Magento\Tax\Observer\QuoteCollectTotalsBefore::invoke'],
['updateProductOptions', 'Magento\Tax\Model\Observer', 'Magento\Tax\Observer\UpdateProductOptionsObserver::invoke'],
- ['invalidateVarnish', 'Magento\CacheInvalidate\Model\Observer', 'Magento\CacheInvalidate\Observer\InvalidateVarnish::invoke'],
- ['flushAllCache', 'Magento\CacheInvalidate\Model\Observer', 'Magento\CacheInvalidate\Observer\FlushAllCache::invoke'],
- ['sendPurgeRequest', 'Magento\CacheInvalidate\Model\Observer', 'Magento\CacheInvalidate\Model\PurgeCache::sendPurgeRequest'],
- ['addCatalogToTopmenuItems', 'Magento\Catalog\Model\Observer', 'Magento\Catalog\Observer\AddCatalogToTopmenuItems::invoke'],
- ['catalogCheckIsUsingStaticUrlsAllowed', 'Magento\Catalog\Model\Observer', 'Magento\Catalog\Observer\CatalogCheckIsUsingStaticUrlsAllowed::invoke'],
- ['_addCategoriesToMenu', 'Magento\Catalog\Model\Observer', 'Magento\Catalog\Observer\AddCatalogToTopmenuItems::_addCategoriesToMenu'],
+ [
+ 'invalidateVarnish',
+ 'Magento\CacheInvalidate\Model\Observer',
+ 'Magento\CacheInvalidate\Observer\InvalidateVarnish::invoke'
+ ],
+ [
+ 'flushAllCache',
+ 'Magento\CacheInvalidate\Model\Observer',
+ 'Magento\CacheInvalidate\Observer\FlushAllCache::invoke'
+ ],
+ [
+ 'sendPurgeRequest',
+ 'Magento\CacheInvalidate\Model\Observer',
+ 'Magento\CacheInvalidate\Model\PurgeCache::sendPurgeRequest'
+ ],
+ [
+ 'addCatalogToTopmenuItems',
+ 'Magento\Catalog\Model\Observer',
+ 'Magento\Catalog\Observer\AddCatalogToTopmenuItems::invoke'
+ ],
+ [
+ 'catalogCheckIsUsingStaticUrlsAllowed',
+ 'Magento\Catalog\Model\Observer',
+ 'Magento\Catalog\Observer\CatalogCheckIsUsingStaticUrlsAllowed::invoke'
+ ],
+ [
+ '_addCategoriesToMenu',
+ 'Magento\Catalog\Model\Observer',
+ 'Magento\Catalog\Observer\AddCatalogToTopmenuItems::_addCategoriesToMenu'
+ ],
['hasActive', 'Magento\Catalog\Model\Observer', 'Magento\Catalog\Observer\AddCatalogToTopmenuItems::hasActive'],
- ['getCatalogLayer', 'Magento\Catalog\Model\Observer', 'Magento\Catalog\Observer\AddCatalogToTopmenuItems::getCatalogLayer'],
- ['getMenuCategoryData', 'Magento\Catalog\Model\Observer', 'Magento\Catalog\Observer\MenuCategoryData::getMenuCategoryData'],
+ [
+ 'getCatalogLayer',
+ 'Magento\Catalog\Model\Observer',
+ 'Magento\Catalog\Observer\AddCatalogToTopmenuItems::getCatalogLayer'
+ ],
+ [
+ 'getMenuCategoryData',
+ 'Magento\Catalog\Model\Observer',
+ 'Magento\Catalog\Observer\MenuCategoryData::getMenuCategoryData'
+ ],
['loadCustomerQuote', 'Magento\Checkout\Model\Observer', 'Magento\Checkout\Observer\LoadCustomerQuote::invoke'],
['salesQuoteSaveAfter', 'Magento\Checkout\Model\Observer', 'Magento\Checkout\Observer\SalesQuoteSaveAfter::invoke'],
['unsetAll', 'Magento\Checkout\Model\Observer', 'Magento\Checkout\Observer\UnsetAll::invoke'],
- ['currencyDisplayOptions', 'Magento\CurrencySymbol\Model\Observer', 'Magento\CurrencySymbol\Observer\CurrencyDisplayOptions::invoke'],
+ [
+ 'currencyDisplayOptions',
+ 'Magento\CurrencySymbol\Model\Observer',
+ 'Magento\CurrencySymbol\Observer\CurrencyDisplayOptions::invoke'
+ ],
['__toString', 'Magento\Catalog\Helper\Image'],
['getProductImageView', 'Magento\Catalog\Block\Product\Image'],
['init', 'Magento\Catalog\Block\Product\Image'],
@@ -2433,13 +2592,25 @@
['getThumbnailUrl', 'Magento\ProductAlert\Block\Email\AbstractEmail'],
['getProductThumbnail', 'Magento\Checkout\Block\Cart\Item\Renderer'],
['prepareInvoice', 'Magento\Sales\Api\InvoiceManagementInterface'],
- ['getColumnsComponent', 'Magento\Ui\Model\Export\ConvertToCsv', 'Magento\Ui\Model\Export\MetadataProvider::getColumnsComponent'],
+ [
+ 'getColumnsComponent',
+ 'Magento\Ui\Model\Export\ConvertToCsv',
+ 'Magento\Ui\Model\Export\MetadataProvider::getColumnsComponent'
+ ],
['getColumns', 'Magento\Ui\Model\Export\ConvertToCsv', 'Magento\Ui\Model\Export\MetadataProvider::getColumns'],
['getHeaders', 'Magento\Ui\Model\Export\ConvertToCsv', 'Magento\Ui\Model\Export\MetadataProvider::getHeaders'],
['getFields', 'Magento\Ui\Model\Export\ConvertToCsv', 'Magento\Ui\Model\Export\MetadataProvider::getFields'],
['getRowData', 'Magento\Ui\Model\Export\ConvertToCsv', 'Magento\Ui\Model\Export\MetadataProvider::getRowData'],
- ['getComplexLabel', 'Magento\Ui\Model\Export\ConvertToCsv', 'Magento\Ui\Model\Export\MetadataProvider::getComplexLabel'],
- ['getFilterOptions', 'Magento\Ui\Model\Export\ConvertToCsv', 'Magento\Ui\Model\Export\MetadataProvider::getFilterOptions'],
+ [
+ 'getComplexLabel',
+ 'Magento\Ui\Model\Export\ConvertToCsv',
+ 'Magento\Ui\Model\Export\MetadataProvider::getComplexLabel'
+ ],
+ [
+ 'getFilterOptions',
+ 'Magento\Ui\Model\Export\ConvertToCsv',
+ 'Magento\Ui\Model\Export\MetadataProvider::getFilterOptions'
+ ],
['getOptions', 'Magento\Ui\Model\Export\ConvertToCsv', 'Magento\Ui\Model\Export\MetadataProvider::getOptions'],
[
'generateSimpleProducts',
@@ -2500,23 +2671,71 @@
['getProductMedia', 'Magento\Swatches\Helper\Data'],
['createSwatchProduct', 'Magento\Swatches\Helper\Data'],
['create', 'Magento\Quote\Model\QuoteRepository'],
- ['set', 'Magento\Quote\Api\GuestShippingMethodManagementInterface', 'Magento\Quote\Model\GuestCart\GuestShippingMethodManagementInterface::set'],
- ['get', 'Magento\Quote\Api\GuestShippingMethodManagementInterface', 'Magento\Quote\Model\GuestCart\GuestShippingMethodManagementInterface::get'],
- ['get', 'Magento\Quote\Api\ShippingMethodManagementInterface', 'Magento\Quote\Model\ShippingMethodManagementInterface::get'],
- ['set', 'Magento\Quote\Api\ShippingMethodManagementInterface', 'Magento\Quote\Model\ShippingMethodManagementInterface::get'],
+ [
+ 'set',
+ 'Magento\Quote\Api\GuestShippingMethodManagementInterface',
+ 'Magento\Quote\Model\GuestCart\GuestShippingMethodManagementInterface::set'
+ ],
+ [
+ 'get',
+ 'Magento\Quote\Api\GuestShippingMethodManagementInterface',
+ 'Magento\Quote\Model\GuestCart\GuestShippingMethodManagementInterface::get'
+ ],
+ [
+ 'get',
+ 'Magento\Quote\Api\ShippingMethodManagementInterface',
+ 'Magento\Quote\Model\ShippingMethodManagementInterface::get'
+ ],
+ [
+ 'set',
+ 'Magento\Quote\Api\ShippingMethodManagementInterface',
+ 'Magento\Quote\Model\ShippingMethodManagementInterface::get'
+ ],
['getTypeSwitcherData', 'Magento\Catalog\Block\Adminhtml\Product'],
['_afterLoad', 'Magento\CatalogRule\Model\ResourceModel\Rule'],
['_afterSave', 'Magento\CatalogRule\Model\ResourceModel\Rule'],
['_beforeDelete', 'Magento\Cms\Model\ResourceModel\Page'],
- ['_afterSave', 'Magento\Cms\Model\ResourceModel\Page', 'Magento\Cms\Model\ResourceModel\Page\Relation\Store\SaveHandler::execute'],
- ['_afterLoad', 'Magento\Cms\Model\ResourceModel\Page', 'Magento\Cms\Model\ResourceModel\Page\Relation\Store\ReadHandler::execute'],
+ [
+ '_afterSave',
+ 'Magento\Cms\Model\ResourceModel\Page',
+ 'Magento\Cms\Model\ResourceModel\Page\Relation\Store\SaveHandler::execute'
+ ],
+ [
+ '_afterLoad',
+ 'Magento\Cms\Model\ResourceModel\Page',
+ 'Magento\Cms\Model\ResourceModel\Page\Relation\Store\ReadHandler::execute'
+ ],
['_beforeDelete', 'Magento\Cms\Model\ResourceModel\Block'],
- ['_afterSave', 'Magento\Cms\Model\ResourceModel\Block', 'Magento\Cms\Model\ResourceModel\Block\Relation\Store\SaveHandler::execute'],
- ['_afterLoad', 'Magento\Cms\Model\ResourceModel\Block', 'Magento\Cms\Model\ResourceModel\Block\Relation\Store\ReadHandler::execute'],
- ['getTabElement', 'Magento\Backend\Test\Block\Widget\FormTabs', 'Magento\Ui\Test\Block\Adminhtml\AbstractFormContainers::getContainerElement'],
- ['getFieldsByTabs', 'Magento\Backend\Test\Block\Widget\FormTabs', 'Magento\Ui\Test\Block\Adminhtml\AbstractFormContainers::getFixtureFieldsByContainers'],
- ['fillFormTab', 'Magento\Backend\Test\Block\Widget\Tab', 'Magento\Ui\Test\Block\Adminhtml\AbstractContainer::setFieldsData'],
- ['getDataFormTab', 'Magento\Backend\Test\Block\Widget\Tab', 'Magento\Ui\Test\Block\Adminhtml\AbstractContainer::getFieldsData'],
+ [
+ '_afterSave',
+ 'Magento\Cms\Model\ResourceModel\Block',
+ 'Magento\Cms\Model\ResourceModel\Block\Relation\Store\SaveHandler::execute'
+ ],
+ [
+ '_afterLoad',
+ 'Magento\Cms\Model\ResourceModel\Block',
+ 'Magento\Cms\Model\ResourceModel\Block\Relation\Store\ReadHandler::execute'
+ ],
+ [
+ 'getTabElement',
+ 'Magento\Backend\Test\Block\Widget\FormTabs',
+ 'Magento\Ui\Test\Block\Adminhtml\AbstractFormContainers::getContainerElement'
+ ],
+ [
+ 'getFieldsByTabs',
+ 'Magento\Backend\Test\Block\Widget\FormTabs',
+ 'Magento\Ui\Test\Block\Adminhtml\AbstractFormContainers::getFixtureFieldsByContainers'
+ ],
+ [
+ 'fillFormTab',
+ 'Magento\Backend\Test\Block\Widget\Tab',
+ 'Magento\Ui\Test\Block\Adminhtml\AbstractContainer::setFieldsData'
+ ],
+ [
+ 'getDataFormTab',
+ 'Magento\Backend\Test\Block\Widget\Tab',
+ 'Magento\Ui\Test\Block\Adminhtml\AbstractContainer::getFieldsData'
+ ],
['getBunchImages', 'Magento\CatalogImportExport\Model\Import\Product'],
['_isAttributeValueEmpty', 'Magento\Catalog\Model\ResourceModel\AbstractResource'],
];
diff --git a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_properties.php b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_properties.php
index f3afbf44bd2ad..14682d9d93ab3 100644
--- a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_properties.php
+++ b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_properties.php
@@ -321,23 +321,75 @@
['_resourceList', 'Magento\Framework\Module\Updater'],
['_storeManager', 'Magento\Customer\Controller\Account'],
['_urlFactory', 'Magento\Customer\Controller\Account'],
- ['_addressHelper', 'Magento\Customer\Controller\Account', 'Magento\Customer\Controller\Account\Confirm::$addressHelper'],
+ [
+ '_addressHelper',
+ 'Magento\Customer\Controller\Account',
+ 'Magento\Customer\Controller\Account\Confirm::$addressHelper'
+ ],
['_scopeConfig', 'Magento\Customer\Controller\Account'],
['_customerAccountService', 'Magento\Customer\Controller\Account'],
- ['_formFactory', 'Magento\Customer\Controller\Account\CreatePost', 'Magento\Customer\Controller\Account\CreatePost::formFactory'],
- ['_subscriberFactory', 'Magento\Customer\Controller\Account\CreatePost', 'Magento\Customer\Controller\Account\CreatePost::subscriberFactory'],
- ['_regionBuilder', 'Magento\Customer\Controller\Account\CreatePost', 'Magento\Customer\Controller\Account\CreatePost::regionBuilder'],
- ['_addressBuilder', 'Magento\Customer\Controller\Account\CreatePost', 'Magento\Customer\Controller\Account\CreatePost::addressBuilder'],
- ['_customerDetailsBuilder', 'Magento\Customer\Controller\Account\CreatePost', 'Magento\Customer\Controller\Account\CreatePost::customerDetailsBuilder'],
- ['_customerBuilder', 'Magento\Customer\Controller\Account\Edit', 'Magento\Customer\Controller\Account\Edit::customerBuilder'],
- ['_customerBuilder', 'Magento\Customer\Controller\Account\EditPost', 'Magento\Customer\Controller\Account\EditPost::customerBuilder'],
- ['_customerDetailsBuilder', 'Magento\Customer\Controller\Account\EditPost', 'Magento\Customer\Controller\Account\EditPost::customerDetailsBuilder'],
- ['_formKeyValidator', 'Magento\Customer\Controller\Account\EditPost', 'Magento\Customer\Controller\Account\EditPost::formKeyValidator'],
- ['_customerHelperData', 'Magento\Customer\Controller\Account\LoginPost', 'Magento\Customer\Controller\Account\LoginPost::customerHelperData'],
- ['_formKeyValidator', 'Magento\Customer\Controller\Account\LoginPost', 'Magento\Customer\Controller\Account\LoginPost::formKeyValidator'],
+ [
+ '_formFactory',
+ 'Magento\Customer\Controller\Account\CreatePost',
+ 'Magento\Customer\Controller\Account\CreatePost::formFactory'
+ ],
+ [
+ '_subscriberFactory',
+ 'Magento\Customer\Controller\Account\CreatePost',
+ 'Magento\Customer\Controller\Account\CreatePost::subscriberFactory'
+ ],
+ [
+ '_regionBuilder',
+ 'Magento\Customer\Controller\Account\CreatePost',
+ 'Magento\Customer\Controller\Account\CreatePost::regionBuilder'
+ ],
+ [
+ '_addressBuilder',
+ 'Magento\Customer\Controller\Account\CreatePost',
+ 'Magento\Customer\Controller\Account\CreatePost::addressBuilder'
+ ],
+ [
+ '_customerDetailsBuilder',
+ 'Magento\Customer\Controller\Account\CreatePost',
+ 'Magento\Customer\Controller\Account\CreatePost::customerDetailsBuilder'
+ ],
+ [
+ '_customerBuilder',
+ 'Magento\Customer\Controller\Account\Edit',
+ 'Magento\Customer\Controller\Account\Edit::customerBuilder'
+ ],
+ [
+ '_customerBuilder',
+ 'Magento\Customer\Controller\Account\EditPost',
+ 'Magento\Customer\Controller\Account\EditPost::customerBuilder'
+ ],
+ [
+ '_customerDetailsBuilder',
+ 'Magento\Customer\Controller\Account\EditPost',
+ 'Magento\Customer\Controller\Account\EditPost::customerDetailsBuilder'
+ ],
+ [
+ '_formKeyValidator',
+ 'Magento\Customer\Controller\Account\EditPost',
+ 'Magento\Customer\Controller\Account\EditPost::formKeyValidator'
+ ],
+ [
+ '_customerHelperData',
+ 'Magento\Customer\Controller\Account\LoginPost',
+ 'Magento\Customer\Controller\Account\LoginPost::customerHelperData'
+ ],
+ [
+ '_formKeyValidator',
+ 'Magento\Customer\Controller\Account\LoginPost',
+ 'Magento\Customer\Controller\Account\LoginPost::formKeyValidator'
+ ],
['_openActions', 'Magento\Customer\Controller\Account', 'Magento\Customer\Controller\Account::openActions'],
['_session', 'Magento\Customer\Controller\Account', 'Magento\Customer\Controller\Account::session'],
- ['_cache', 'Magento\Framework\App\Magento\Framework\App\ResourceConnection', 'Magento\Framework\App\ResourceConnection\ConnectionFactory'],
+ [
+ '_cache',
+ 'Magento\Framework\App\Magento\Framework\App\ResourceConnection',
+ 'Magento\Framework\App\ResourceConnection\ConnectionFactory'
+ ],
['_debug', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'logger'],
['_logQueryTime', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\Logger\LoggerAbstract'],
['_logAllQueries', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\Logger\LoggerAbstract'],
@@ -347,7 +399,11 @@
['_debugTimer', 'Magento\Framework\DB\Adapter\Pdo\Mysql', 'Magento\Framework\DB\Logger\LoggerAbstract'],
['_resourceName', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_resourceName'],
['_moduleConfig', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_moduleConfig'],
- ['_callAfterApplyAllUpdates', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_callAfterApplyAllUpdates'],
+ [
+ '_callAfterApplyAllUpdates',
+ 'Magento\Framework\Module\Setup',
+ 'Magento\Setup\Module\DataSetup::_callAfterApplyAllUpdates'
+ ],
['_setupCache', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_setupCache'],
['_modulesReader', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_modulesReader'],
['_eventManager', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_eventManager'],
@@ -356,7 +412,11 @@
['_migrationFactory', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::_migrationFactory'],
['filesystem', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::filesystem'],
['modulesDir', 'Magento\Framework\Module\Setup', 'Magento\Setup\Module\DataSetup::modulesDir'],
- ['_directoryData', 'Magento\Customer\Model\Attribute\Data\Postcode', 'Magento\Customer\Model\Attribute\Data\Postcode::directoryHelper'],
+ [
+ '_directoryData',
+ 'Magento\Customer\Model\Attribute\Data\Postcode',
+ 'Magento\Customer\Model\Attribute\Data\Postcode::directoryHelper'
+ ],
['_conditionModels', 'Magento\Rule\Model\Condition\Combine'],
['_lables', 'Magento\SalesRule\Model\Rule'],
['_catalogData', 'Magento\Catalog\Block\Product\AbstractProduct'],
@@ -365,7 +425,11 @@
['_view', 'Magento\Cms\Helper\Page'],
['aclFilter', 'Magento\Backend\Model\View\Layout\Builder'],
['aclFilter', 'Magento\Backend\Model\View\Page\Builder'],
- ['_authorization', 'Magento\Backend\Model\View\Layout\Filter\Acl', 'Magento\Backend\Model\View\Layout\Filter\Acl::authorization'],
+ [
+ '_authorization',
+ 'Magento\Backend\Model\View\Layout\Filter\Acl',
+ 'Magento\Backend\Model\View\Layout\Filter\Acl::authorization'
+ ],
['scheduledStructure', 'Magento\Framework\View\Layout'],
['pageConfigStructure', 'Magento\Framework\View\Layout'],
['scopeConfig', 'Magento\Framework\View\Layout\Reader\Block'],
@@ -378,7 +442,11 @@
['_requestedRouteName', 'Magento\Framework\App\Request\Http'],
['_isStraight', 'Magento\Framework\App\Request\Http'],
['_originalPathInfo', 'Magento\Framework\App\Request\Http', 'originalPathInfo'],
- ['_requestString', 'Magento\Framework\App\Request\Http', 'Magento\Framework\HTTP\PhpEnvironment\Request::requestString'],
+ [
+ '_requestString',
+ 'Magento\Framework\App\Request\Http',
+ 'Magento\Framework\HTTP\PhpEnvironment\Request::requestString'
+ ],
['_pathInfoProcessor', 'Magento\Framework\App\Request\Http', 'pathInfoProcessor'],
['_objectManager', 'Magento\Framework\App\Request\Http', 'objectManager'],
['_directFrontNames', 'Magento\Framework\App\Request\Http', 'directFrontNames'],
diff --git a/lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php b/lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
index 75586af467389..0e87c549f172c 100644
--- a/lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
+++ b/lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
@@ -6,13 +6,15 @@
namespace Magento\Framework\Model\ResourceModel\Db\Collection;
+use Magento\Framework\App\ObjectManager;
use Magento\Framework\App\ResourceConnection\SourceProviderInterface;
+use Magento\Framework\Data\Collection\AbstractDb;
/**
* Abstract Resource Collection
* @SuppressWarnings(PHPMD.NumberOfChildren)
*/
-abstract class AbstractCollection extends \Magento\Framework\Data\Collection\AbstractDb implements SourceProviderInterface
+abstract class AbstractCollection extends AbstractDb implements SourceProviderInterface
{
/**
* Model name
@@ -456,7 +458,7 @@ public function getResourceModelName()
public function getResource()
{
if (empty($this->_resource)) {
- $this->_resource = \Magento\Framework\App\ObjectManager::getInstance()->create($this->getResourceModelName());
+ $this->_resource = ObjectManager::getInstance()->create($this->getResourceModelName());
}
return $this->_resource;
}
@@ -608,7 +610,7 @@ public function __sleep()
public function __wakeup()
{
parent::__wakeup();
- $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
+ $objectManager = ObjectManager::getInstance();
$this->_eventManager = $objectManager->get(\Magento\Framework\Event\ManagerInterface::class);
}
}
diff --git a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/AbstractDbTest.php b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/AbstractDbTest.php
index 5c03460cda12e..3cd39491e3f74 100644
--- a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/AbstractDbTest.php
+++ b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/AbstractDbTest.php
@@ -498,7 +498,7 @@ public function testPrepareDataForUpdate()
$abstractModelMock->afterLoad();
$this->assertEquals($abstractModelMock->getData(), $abstractModelMock->getStoredData());
$newData = ['value' => 'Test Value New'];
- $this->_model->expects($this->atLeastOnce())->method('_prepareDataForTable')->will($this->returnValue($newData));
+ $this->_model->expects($this->atLeastOnce())->method('_prepareDataForTable')->willReturn($newData);
$abstractModelMock->addData($newData);
$this->assertNotEquals($abstractModelMock->getData(), $abstractModelMock->getStoredData());
$abstractModelMock->isObjectNew(false);
diff --git a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php
index 2b1442f7e9784..9ee668c228893 100644
--- a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php
+++ b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php
@@ -45,7 +45,7 @@ class AbstractCollectionTest extends \PHPUnit_Framework_TestCase
/** @var \Magento\Framework\DB\Adapter\Pdo\Mysql|\PHPUnit_Framework_MockObject_MockObject */
protected $connectionMock;
- /** @var \Magento\Framework\DB\Select|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Select|\PHPUnit_Framework_MockObject_MockObject */
protected $selectMock;
/** @var \Magento\Framework\App\ObjectManager|\PHPUnit_Framework_MockObject_MockObject */
@@ -72,7 +72,7 @@ protected function setUp()
->will($this->returnValue($this->connectionMock));
$this->selectMock = $this->getMock(
- \Magento\Framework\DB\Select::class,
+ Select::class,
['getPart', 'setPart', 'from', 'columns'],
[$this->connectionMock, $renderer]
);
@@ -215,7 +215,7 @@ public function testGetSelect($idFieldNameRet, $getPartRet, $expected)
->method('getPart')
->will($this->returnValue($getPartRet));
- $this->selectMock->expects($this->once())->method('setPart')->with(\Magento\Framework\DB\Select::COLUMNS, $expected);
+ $this->selectMock->expects($this->once())->method('setPart')->with(Select::COLUMNS, $expected);
$this->assertTrue($this->uut->getSelect() instanceof Select);
}
diff --git a/lib/internal/Magento/Framework/Mview/ActionFactory.php b/lib/internal/Magento/Framework/Mview/ActionFactory.php
index a2bdec53a449b..807e30ca60cdf 100644
--- a/lib/internal/Magento/Framework/Mview/ActionFactory.php
+++ b/lib/internal/Magento/Framework/Mview/ActionFactory.php
@@ -32,7 +32,9 @@ public function get($className)
{
$action = $this->objectManager->get($className);
if (!$action instanceof ActionInterface) {
- throw new \InvalidArgumentException($className . ' doesn\'t implement \Magento\Framework\Mview\ActionInterface');
+ throw new \InvalidArgumentException(
+ $className . ' doesn\'t implement \Magento\Framework\Mview\ActionInterface'
+ );
}
return $action;
diff --git a/lib/internal/Magento/Framework/Mview/View/Subscription.php b/lib/internal/Magento/Framework/Mview/View/Subscription.php
index 35ebcbe6e3f33..56656dd950f71 100644
--- a/lib/internal/Magento/Framework/Mview/View/Subscription.php
+++ b/lib/internal/Magento/Framework/Mview/View/Subscription.php
@@ -152,7 +152,7 @@ public function remove()
protected function getLinkedViews()
{
if (!$this->linkedViews) {
- $viewList = $this->viewCollection->getViewsByStateMode(\Magento\Framework\Mview\View\StateInterface::MODE_ENABLED);
+ $viewList = $this->viewCollection->getViewsByStateMode(StateInterface::MODE_ENABLED);
foreach ($viewList as $view) {
/** @var \Magento\Framework\Mview\ViewInterface $view */
diff --git a/lib/internal/Magento/Framework/Validator/Builder.php b/lib/internal/Magento/Framework/Validator/Builder.php
index d4c30a6a68b80..d2be3f4489d64 100644
--- a/lib/internal/Magento/Framework/Validator/Builder.php
+++ b/lib/internal/Magento/Framework/Validator/Builder.php
@@ -255,7 +255,7 @@ protected function _createConstraint(array $data)
}
if (\Magento\Framework\Validator\Config::CONSTRAINT_TYPE_PROPERTY == $data['type']) {
- $result = new \Magento\Framework\Validator\Constraint\Property($validator, $data['property'], $data['alias']);
+ $result = new Constraint\Property($validator, $data['property'], $data['alias']);
} else {
$result = $this->_constraintFactory->create(['validator' => $validator, 'alias' => $data['alias']]);
}
@@ -267,7 +267,7 @@ protected function _createConstraint(array $data)
* Create constraint validator instance
*
* @param array $data
- * @return \Magento\Framework\Validator\ValidatorInterface
+ * @return ValidatorInterface
* @throws \InvalidArgumentException
*/
protected function _createConstraintValidator(array $data)
@@ -282,9 +282,12 @@ protected function _createConstraintValidator(array $data)
);
// Check validator type
- if (!$validator instanceof \Magento\Framework\Validator\ValidatorInterface) {
+ if (!$validator instanceof ValidatorInterface) {
throw new \InvalidArgumentException(
- sprintf('Constraint class "%s" must implement \Magento\Framework\Validator\ValidatorInterface', $data['class'])
+ sprintf(
+ 'Constraint class "%s" must implement \Magento\Framework\Validator\ValidatorInterface',
+ $data['class']
+ )
);
}
@@ -294,11 +297,11 @@ protected function _createConstraintValidator(array $data)
/**
* Configure validator
*
- * @param \Magento\Framework\Validator\ValidatorInterface $validator
+ * @param ValidatorInterface $validator
* @param array $options
* @return void
*/
- protected function _configureConstraintValidator(\Magento\Framework\Validator\ValidatorInterface $validator, array $options)
+ protected function _configureConstraintValidator(ValidatorInterface $validator, array $options)
{
// Call all validator methods according to configuration
if (isset($options['methods'])) {
diff --git a/lib/internal/Magento/Framework/Validator/Constraint/Property.php b/lib/internal/Magento/Framework/Validator/Constraint/Property.php
index 008d644ddbe56..75580f53008d4 100644
--- a/lib/internal/Magento/Framework/Validator/Constraint/Property.php
+++ b/lib/internal/Magento/Framework/Validator/Constraint/Property.php
@@ -31,8 +31,8 @@ public function __construct(\Magento\Framework\Validator\ValidatorInterface $val
}
/**
- * Get value that should be validated. Tries to extract value's property if \Magento\Framework\DataObject or \ArrayAccess or array
- * is passed
+ * Get value that should be validated. Tries to extract value's property
+ * if \Magento\Framework\DataObject or \ArrayAccess or array is passed
*
* @param mixed $value
* @return mixed
diff --git a/lib/internal/Magento/Framework/Validator/ConstraintFactory.php b/lib/internal/Magento/Framework/Validator/ConstraintFactory.php
index 61383fcfb3227..d90c4ee47338a 100644
--- a/lib/internal/Magento/Framework/Validator/ConstraintFactory.php
+++ b/lib/internal/Magento/Framework/Validator/ConstraintFactory.php
@@ -31,8 +31,10 @@ class ConstraintFactory
* @param \Magento\Framework\ObjectManagerInterface $objectManager
* @param string $instanceName
*/
- public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName = \Magento\Framework\Validator\Constraint::class)
- {
+ public function __construct(
+ \Magento\Framework\ObjectManagerInterface $objectManager,
+ $instanceName = \Magento\Framework\Validator\Constraint::class
+ ) {
$this->_objectManager = $objectManager;
$this->_instanceName = $instanceName;
}
diff --git a/lib/internal/Magento/Framework/Validator/Factory.php b/lib/internal/Magento/Framework/Validator/Factory.php
index 6dc791415bf03..b752bb47f47c3 100644
--- a/lib/internal/Magento/Framework/Validator/Factory.php
+++ b/lib/internal/Magento/Framework/Validator/Factory.php
@@ -72,6 +72,8 @@ public function __construct(
/**
* Init cached list of validation files
+ *
+ * @return void
*/
protected function _initializeConfigList()
{
diff --git a/lib/internal/Magento/Framework/Validator/Test/Unit/ConfigTest.php b/lib/internal/Magento/Framework/Validator/Test/Unit/ConfigTest.php
index 6e43469881b4b..e943e2684d792 100644
--- a/lib/internal/Magento/Framework/Validator/Test/Unit/ConfigTest.php
+++ b/lib/internal/Magento/Framework/Validator/Test/Unit/ConfigTest.php
@@ -7,6 +7,8 @@
*/
namespace Magento\Framework\Validator\Test\Unit;
+use Magento\Framework\App\Arguments\ValidationState;
+
/**
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
@@ -74,9 +76,9 @@ protected function _initConfig(array $files = null)
$appObjectManager->configure(
[
'preferences' => [
- \Magento\Framework\Config\ValidationStateInterface::class => \Magento\Framework\App\Arguments\ValidationState::class,
+ \Magento\Framework\Config\ValidationStateInterface::class => ValidationState::class,
],
- \Magento\Framework\App\Arguments\ValidationState::class => [
+ ValidationState::class => [
'arguments' => [
'appMode' => 'developer',
]
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Design/FileResolution/Fallback/Resolver/AlternativeTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Design/FileResolution/Fallback/Resolver/AlternativeTest.php
index cb0e8ca42402f..cbf81ff1bf850 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Design/FileResolution/Fallback/Resolver/AlternativeTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Design/FileResolution/Fallback/Resolver/AlternativeTest.php
@@ -54,8 +54,11 @@ protected function setUp()
*/
public function testConstructorException(array $alternativeExtensions)
{
- $this->setExpectedException('\InvalidArgumentException', "\$alternativeExtensions must be an array with format:"
- . " array('ext1' => array('ext1', 'ext2'), 'ext3' => array(...)]");
+ $this->setExpectedException(
+ '\InvalidArgumentException',
+ "\$alternativeExtensions must be an array with format:"
+ . " array('ext1' => array('ext1', 'ext2'), 'ext3' => array(...)]"
+ );
$readFactory = $this->getMock(\Magento\Framework\Filesystem\Directory\ReadFactory::class, [], [], '', false);
$rulePool = $this->getMock(\Magento\Framework\View\Design\Fallback\RulePool::class, [], [], '', false);
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/FileSystemTest.php b/lib/internal/Magento/Framework/View/Test/Unit/FileSystemTest.php
index ee4350f6eed37..d0c871b35b3fe 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/FileSystemTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/FileSystemTest.php
@@ -9,6 +9,8 @@
*/
namespace Magento\Framework\View\Test\Unit;
+use Magento\Framework\View\Design\FileResolution\Fallback\EmailTemplateFile;
+
class FileSystemTest extends \PHPUnit_Framework_TestCase
{
/**
@@ -37,7 +39,7 @@ class FileSystemTest extends \PHPUnit_Framework_TestCase
protected $_staticFileResolution;
/**
- * @var \Magento\Framework\View\Design\FileResolution\Fallback\EmailTemplateFile|\PHPUnit_Framework_MockObject_MockObject
+ * @var EmailTemplateFile|\PHPUnit_Framework_MockObject_MockObject
*/
protected $_emailTemplateFileResolution;
@@ -77,7 +79,7 @@ protected function setUp()
false
);
$this->_emailTemplateFileResolution = $this->getMock(
- \Magento\Framework\View\Design\FileResolution\Fallback\EmailTemplateFile::class,
+ EmailTemplateFile::class,
[],
[],
'',
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/MoveTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/MoveTest.php
index ec11c67442cc9..76d84f1ecae90 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/MoveTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/MoveTest.php
@@ -75,9 +75,9 @@ public function processDataProvider()
{
return [
'move_before' => [
- 'element' => new \Magento\Framework\View\Layout\Element('
-
- '),
+ 'element' => new \Magento\Framework\View\Layout\Element(
+ '
'
+ ),
'destination' => 'product.info',
'siblingName' => 'before.block',
'isAfter' => false,
@@ -85,9 +85,9 @@ public function processDataProvider()
'parentElement' => new \Magento\Framework\View\Layout\Element('
'),
],
'move_after' => [
- 'element' => new \Magento\Framework\View\Layout\Element('
-
- '),
+ 'element' => new \Magento\Framework\View\Layout\Element(
+ '
'
+ ),
'destination' => 'product.info',
'siblingName' => 'after.block',
'isAfter' => true,
diff --git a/setup/config/di.config.php b/setup/config/di.config.php
index bdbd8013b8e15..169f996d8a6e4 100644
--- a/setup/config/di.config.php
+++ b/setup/config/di.config.php
@@ -51,8 +51,10 @@
\Zend\ServiceManager\ServiceLocatorInterface::class => 'ServiceManager',
\Magento\Framework\DB\LoggerInterface::class => \Magento\Framework\DB\Logger\Quiet::class,
\Magento\Framework\Locale\ConfigInterface::class => \Magento\Framework\Locale\Config::class,
- \Magento\Framework\Filesystem\DriverInterface::class => \Magento\Framework\Filesystem\Driver\File::class,
- \Magento\Framework\Component\ComponentRegistrarInterface::class => \Magento\Framework\Component\ComponentRegistrar::class,
+ \Magento\Framework\Filesystem\DriverInterface::class
+ => \Magento\Framework\Filesystem\Driver\File::class,
+ \Magento\Framework\Component\ComponentRegistrarInterface::class
+ => \Magento\Framework\Component\ComponentRegistrar::class,
],
],
],
diff --git a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php
index b2d781b1eb954..3b2a5a1bb4661 100644
--- a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php
@@ -270,14 +270,23 @@ private function configureObjectManager(OutputInterface $output)
{
$this->objectManager->configure(
[
- 'preferences' => [\Magento\Setup\Module\Di\Compiler\Config\WriterInterface::class => \Magento\Setup\Module\Di\Compiler\Config\Writer\Filesystem::class,
+ 'preferences' => [
+ \Magento\Setup\Module\Di\Compiler\Config\WriterInterface::class
+ => \Magento\Setup\Module\Di\Compiler\Config\Writer\Filesystem::class,
], \Magento\Setup\Module\Di\Compiler\Config\ModificationChain::class => [
'arguments' => [
'modificationsList' => [
- 'BackslashTrim' => ['instance' => \Magento\Setup\Module\Di\Compiler\Config\Chain\BackslashTrim::class],
- 'PreferencesResolving' => ['instance' => \Magento\Setup\Module\Di\Compiler\Config\Chain\PreferencesResolving::class],
- 'InterceptorSubstitution' => ['instance' => \Magento\Setup\Module\Di\Compiler\Config\Chain\InterceptorSubstitution::class],
- 'InterceptionPreferencesResolving' => ['instance' => \Magento\Setup\Module\Di\Compiler\Config\Chain\PreferencesResolving::class],
+ 'BackslashTrim'
+ => ['instance' => \Magento\Setup\Module\Di\Compiler\Config\Chain\BackslashTrim::class],
+ 'PreferencesResolving'
+ => ['instance'
+ => \Magento\Setup\Module\Di\Compiler\Config\Chain\PreferencesResolving::class],
+ 'InterceptorSubstitution'
+ => ['instance'
+ => \Magento\Setup\Module\Di\Compiler\Config\Chain\InterceptorSubstitution::class],
+ 'InterceptionPreferencesResolving'
+ => ['instance'
+ => \Magento\Setup\Module\Di\Compiler\Config\Chain\PreferencesResolving::class],
]
]
], \Magento\Setup\Module\Di\Code\Generator\PluginList::class => [
diff --git a/setup/src/Magento/Setup/Model/ModuleRegistryUninstaller.php b/setup/src/Magento/Setup/Model/ModuleRegistryUninstaller.php
index 1bddcba1820c5..72e7c7ca28285 100644
--- a/setup/src/Magento/Setup/Model/ModuleRegistryUninstaller.php
+++ b/setup/src/Magento/Setup/Model/ModuleRegistryUninstaller.php
@@ -96,7 +96,8 @@ public function removeModulesFromDeploymentConfig(OutputInterface $output, array
}
$this->writer->saveConfig(
[
- \Magento\Framework\Config\File\ConfigFilePool::APP_CONFIG => [\Magento\Framework\Config\ConfigOptionsListConstants::KEY_MODULES => $newModules]
+ \Magento\Framework\Config\File\ConfigFilePool::APP_CONFIG
+ => [\Magento\Framework\Config\ConfigOptionsListConstants::KEY_MODULES => $newModules]
],
true
);
diff --git a/setup/src/Magento/Setup/Module/Di/App/Task/OperationFactory.php b/setup/src/Magento/Setup/Module/Di/App/Task/OperationFactory.php
index aa97cab5e5231..2ed4500f9c273 100644
--- a/setup/src/Magento/Setup/Module/Di/App/Task/OperationFactory.php
+++ b/setup/src/Magento/Setup/Module/Di/App/Task/OperationFactory.php
@@ -53,7 +53,8 @@ class OperationFactory
* @var array
*/
private $operationsDefinitions = [
- self::DATA_ATTRIBUTES_GENERATOR => \Magento\Setup\Module\Di\App\Task\Operation\ServiceDataAttributesGenerator::class,
+ self::DATA_ATTRIBUTES_GENERATOR
+ => \Magento\Setup\Module\Di\App\Task\Operation\ServiceDataAttributesGenerator::class,
self::AREA_CONFIG_GENERATOR => \Magento\Setup\Module\Di\App\Task\Operation\Area::class,
self::APPLICATION_CODE_GENERATOR => \Magento\Setup\Module\Di\App\Task\Operation\ApplicationCodeGenerator::class,
self::INTERCEPTION => \Magento\Setup\Module\Di\App\Task\Operation\Interception::class,
diff --git a/setup/src/Magento/Setup/Module/Di/Code/Reader/FileScanner.php b/setup/src/Magento/Setup/Module/Di/Code/Reader/FileScanner.php
index a739ab35e9fac..d330bfa6e8ed0 100644
--- a/setup/src/Magento/Setup/Module/Di/Code/Reader/FileScanner.php
+++ b/setup/src/Magento/Setup/Module/Di/Code/Reader/FileScanner.php
@@ -308,11 +308,14 @@ protected function scan()
// process the name
if ($infos[$infoIndex]['shortName'] == ''
- && (($this->tokenType === T_CLASS || $this->tokenType === T_INTERFACE || $this->tokenType === T_TRAIT) && $infos[$infoIndex]['type'] === 'class' && $tokens[$tokenIndex - 1][0] !== T_DOUBLE_COLON
+ && (($this->tokenType === T_CLASS
+ || $this->tokenType === T_INTERFACE || $this->tokenType === T_TRAIT)
+ && $infos[$infoIndex]['type'] === 'class' && $tokens[$tokenIndex - 1][0] !== T_DOUBLE_COLON
|| ($this->tokenType === T_FUNCTION && $infos[$infoIndex]['type'] === 'function'))
) {
$infos[$infoIndex]['shortName'] = $tokens[$tokenIndex + 2][1];
- $infos[$infoIndex]['name'] = (($namespace !== null) ? $namespace . '\\' : '') . $infos[$infoIndex]['shortName'];
+ $infos[$infoIndex]['name'] = (($namespace !== null) ? $namespace . '\\' : '')
+ . $infos[$infoIndex]['shortName'];
}
if ($this->tokenType === null) {
diff --git a/setup/src/Magento/Setup/Test/Unit/Module/Di/App/Task/OperationFactoryTest.php b/setup/src/Magento/Setup/Test/Unit/Module/Di/App/Task/OperationFactoryTest.php
index 5c2baf5247c19..302b85508638b 100644
--- a/setup/src/Magento/Setup/Test/Unit/Module/Di/App/Task/OperationFactoryTest.php
+++ b/setup/src/Magento/Setup/Test/Unit/Module/Di/App/Task/OperationFactoryTest.php
@@ -6,6 +6,8 @@
namespace Magento\Setup\Test\Unit\Module\Di\App\Task;
+use Magento\Setup\Model\ObjectManagerProvider;
+use Magento\Setup\Module\Di\App\Task\Operation\InterceptionCache;
use Magento\Setup\Module\Di\App\Task\OperationException;
use Magento\Setup\Module\Di\App\Task\OperationFactory;
@@ -26,7 +28,7 @@ protected function setUp()
$this->objectManagerMock = $this->getMockBuilder(\Magento\Framework\ObjectManagerInterface::class)
->setMethods([])
->getMock();
- $objectManagerProviderMock = $this->getMock(\Magento\Setup\Model\ObjectManagerProvider::class, [], [], '', false);
+ $objectManagerProviderMock = $this->getMock(ObjectManagerProvider::class, [], [], '', false);
$objectManagerProviderMock->expects($this->once())->method('get')->willReturn($this->objectManagerMock);
$this->factory = new OperationFactory(
$objectManagerProviderMock
@@ -70,7 +72,7 @@ public function aliasesDataProvider()
return [
[OperationFactory::AREA_CONFIG_GENERATOR, [], \Magento\Setup\Module\Di\App\Task\Operation\Area::class],
[OperationFactory::INTERCEPTION, null, \Magento\Setup\Module\Di\App\Task\Operation\Interception::class],
- [OperationFactory::INTERCEPTION_CACHE, 1, \Magento\Setup\Module\Di\App\Task\Operation\InterceptionCache::class],
+ [OperationFactory::INTERCEPTION_CACHE, 1, InterceptionCache::class],
];
}
}