Skip to content

Commit cc8277e

Browse files
[Magento Community Engineering] Community Contributions - 2.3-develop
- merged latest code from mainline branch
2 parents f140681 + 54244f7 commit cc8277e

File tree

37 files changed

+184
-88
lines changed

37 files changed

+184
-88
lines changed

app/code/Magento/AmqpStore/Plugin/Framework/Amqp/Bulk/Exchange.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public function beforeEnqueue(SubjectExchange $subject, $topic, array $envelopes
9191
if ($headers instanceof AMQPTable) {
9292
try {
9393
$headers->set('store_id', $storeId);
94-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
9594
} catch (AMQPInvalidArgumentException $ea) {
9695
$errorMessage = sprintf("Can't set storeId to amqp message. Error %s.", $ea->getMessage());
9796
$this->logger->error($errorMessage);

app/code/Magento/Backup/Controller/Adminhtml/Index/Rollback.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public function execute()
127127
$adminSession->destroy();
128128

129129
$response->setRedirectUrl($this->getUrl('*'));
130-
// phpcs:disable Magento2.Exceptions.ThrowCatch
131130
} catch (\Magento\Framework\Backup\Exception\CantLoadSnapshot $e) {
132131
$errorMsg = __('We can\'t find the backup file.');
133132
} catch (\Magento\Framework\Backup\Exception\FtpConnectionFailed $e) {

app/code/Magento/Catalog/Model/Product/Gallery/GalleryManagement.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ public function create($sku, ProductAttributeMediaGalleryEntryInterface $entry)
7171
$product->setMediaGalleryEntries($existingMediaGalleryEntries);
7272
try {
7373
$product = $this->productRepository->save($product);
74-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
7574
} catch (InputException $inputException) {
7675
throw $inputException;
77-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
7876
} catch (\Exception $e) {
7977
throw new StateException(__("The product can't be saved."));
8078
}

app/code/Magento/Catalog/Model/ProductRepository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ private function getCollectionProcessor()
735735
{
736736
if (!$this->collectionProcessor) {
737737
$this->collectionProcessor = \Magento\Framework\App\ObjectManager::getInstance()->get(
738-
'Magento\Catalog\Model\Api\SearchCriteria\ProductCollectionProcessor'
738+
\Magento\Catalog\Model\Api\SearchCriteria\ProductCollectionProcessor::class
739739
);
740740
}
741741
return $this->collectionProcessor;
@@ -845,7 +845,6 @@ private function saveProduct($product): void
845845
throw new CouldNotSaveException(__($e->getMessage()));
846846
} catch (LocalizedException $e) {
847847
throw $e;
848-
// phpcs:disable Magento2.Exceptions.ThrowCatch
849848
} catch (\Exception $e) {
850849
throw new CouldNotSaveException(
851850
__('The product was unable to be saved. Please try again.'),

app/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ public function beforeSave()
193193
if ($this->_data[self::KEY_IS_GLOBAL] != $this->_origData[self::KEY_IS_GLOBAL]) {
194194
try {
195195
$this->attrLockValidator->validate($this);
196-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
197196
} catch (\Magento\Framework\Exception\LocalizedException $exception) {
198197
throw new \Magento\Framework\Exception\LocalizedException(
199198
__('Do not change the scope. %1', $exception->getMessage())

app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ public function createDirectory($name, $path)
447447
'id' => $this->_cmsWysiwygImages->convertPathToId($newPath),
448448
];
449449
return $result;
450-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
451450
} catch (\Magento\Framework\Exception\FileSystemException $e) {
452451
throw new \Magento\Framework\Exception\LocalizedException(__('We cannot create a new directory.'));
453452
}
@@ -474,7 +473,6 @@ public function deleteDirectory($path)
474473
$this->_deleteByPath($path);
475474
$path = $this->getThumbnailRoot() . $this->_getRelativePathToRoot($path);
476475
$this->_deleteByPath($path);
477-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
478476
} catch (\Magento\Framework\Exception\FileSystemException $e) {
479477
throw new \Magento\Framework\Exception\LocalizedException(
480478
__('We cannot delete directory %1.', $this->_getRelativePathToRoot($path))

app/code/Magento/Cms/view/adminhtml/ui_component/cms_block_form.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<dataScope>identifier</dataScope>
112112
</settings>
113113
</field>
114-
<field name="storeviews" formElement="multiselect">
114+
<field name="storeviews" formElement="multiselect" class="Magento\Store\Ui\Component\Form\Field\StoreView">
115115
<argument name="data" xsi:type="array">
116116
<item name="config" xsi:type="array">
117117
<item name="source" xsi:type="string">block</item>

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,49 +66,65 @@
6666
class AccountManagement implements AccountManagementInterface
6767
{
6868
/**
69-
* Configuration paths for email templates and identities
69+
* Configuration paths for create account email template
7070
*
7171
* @deprecated
7272
*/
7373
const XML_PATH_REGISTER_EMAIL_TEMPLATE = 'customer/create_account/email_template';
7474

7575
/**
76+
* Configuration paths for register no password email template
77+
*
7678
* @deprecated
7779
*/
7880
const XML_PATH_REGISTER_NO_PASSWORD_EMAIL_TEMPLATE = 'customer/create_account/email_no_password_template';
7981

8082
/**
83+
* Configuration paths for remind email identity
84+
*
8185
* @deprecated
8286
*/
8387
const XML_PATH_REGISTER_EMAIL_IDENTITY = 'customer/create_account/email_identity';
8488

8589
/**
90+
* Configuration paths for remind email template
91+
*
8692
* @deprecated
8793
*/
8894
const XML_PATH_REMIND_EMAIL_TEMPLATE = 'customer/password/remind_email_template';
8995

9096
/**
97+
* Configuration paths for forgot email email template
98+
*
9199
* @deprecated
92100
*/
93101
const XML_PATH_FORGOT_EMAIL_TEMPLATE = 'customer/password/forgot_email_template';
94102

95103
/**
104+
* Configuration paths for forgot email identity
105+
*
96106
* @deprecated
97107
*/
98108
const XML_PATH_FORGOT_EMAIL_IDENTITY = 'customer/password/forgot_email_identity';
99109

100110
/**
111+
* Configuration paths for account confirmation required
112+
*
101113
* @deprecated
102114
* @see AccountConfirmation::XML_PATH_IS_CONFIRM
103115
*/
104116
const XML_PATH_IS_CONFIRM = 'customer/create_account/confirm';
105117

106118
/**
119+
* Configuration paths for account confirmation email template
120+
*
107121
* @deprecated
108122
*/
109123
const XML_PATH_CONFIRM_EMAIL_TEMPLATE = 'customer/create_account/email_confirmation_template';
110124

111125
/**
126+
* Configuration paths for confirmation confirmed email template
127+
*
112128
* @deprecated
113129
*/
114130
const XML_PATH_CONFIRMED_EMAIL_TEMPLATE = 'customer/create_account/email_confirmed_template';
@@ -161,11 +177,15 @@ class AccountManagement implements AccountManagementInterface
161177
const XML_PATH_REQUIRED_CHARACTER_CLASSES_NUMBER = 'customer/password/required_character_classes_number';
162178

163179
/**
180+
* Configuration path to customer reset password email template
181+
*
164182
* @deprecated
165183
*/
166184
const XML_PATH_RESET_PASSWORD_TEMPLATE = 'customer/password/reset_password_template';
167185

168186
/**
187+
* Minimum password length
188+
*
169189
* @deprecated
170190
*/
171191
const MIN_PASSWORD_LENGTH = 6;
@@ -579,7 +599,6 @@ public function authenticate($username, $password)
579599
}
580600
try {
581601
$this->getAuthentication()->authenticate($customerId, $password);
582-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
583602
} catch (InvalidEmailOrPasswordException $e) {
584603
throw new InvalidEmailOrPasswordException(__('Invalid login or password.'));
585604
}
@@ -890,7 +909,6 @@ public function createAccountWithPasswordHash(CustomerInterface $customer, $hash
890909
throw new InputMismatchException(
891910
__('A customer with the same email address already exists in an associated website.')
892911
);
893-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
894912
} catch (LocalizedException $e) {
895913
throw $e;
896914
}
@@ -910,7 +928,6 @@ public function createAccountWithPasswordHash(CustomerInterface $customer, $hash
910928
}
911929
}
912930
$this->customerRegistry->remove($customer->getId());
913-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
914931
} catch (InputException $e) {
915932
$this->customerRepository->delete($customer);
916933
throw $e;
@@ -1017,7 +1034,6 @@ private function changePasswordForCustomer($customer, $currentPassword, $newPass
10171034
{
10181035
try {
10191036
$this->getAuthentication()->authenticate($customer->getId(), $currentPassword);
1020-
// phpcs:ignore Magento2.Exceptions.ThrowCatch
10211037
} catch (InvalidEmailOrPasswordException $e) {
10221038
throw new InvalidEmailOrPasswordException(
10231039
__("The password doesn't match this account. Verify the password and try again.")

app/code/Magento/Email/Model/Template/Filter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,6 @@ public function getCssFilesContent(array $files)
956956
}
957957
} catch (ContentProcessorException $exception) {
958958
$css = $exception->getMessage();
959-
// phpcs:disable Magento2.Exceptions.ThrowCatch
960959
} catch (\Magento\Framework\View\Asset\File\NotFoundException $exception) {
961960
$css = '';
962961
}

app/code/Magento/EncryptionKey/Block/Adminhtml/Crypt/Key/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function _prepareForm()
4545
'name' => 'generate_random',
4646
'label' => __('Auto-generate a Key'),
4747
'options' => [0 => __('No'), 1 => __('Yes')],
48-
'onclick' => "var cryptKey = jQuery('#crypt_key'); var cryptKeyBlock = cryptKey.parent().parent(); ".
48+
'onchange' => "var cryptKey = jQuery('#crypt_key'); var cryptKeyBlock = cryptKey.parent().parent(); ".
4949
"cryptKey.prop('disabled', this.value === '1'); " .
5050
"if (cryptKey.prop('disabled')) { cryptKeyBlock.hide() } " .
5151
"else { cryptKeyBlock.show() }",

0 commit comments

Comments
 (0)