Skip to content

Commit 406d000

Browse files
committed
Fix code stryling issues #18170
1 parent 54b6382 commit 406d000

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,8 @@ protected function createPasswordHash($password)
970970
}
971971

972972
/**
973+
* Get attribute validator
974+
*
973975
* @return Backend
974976
*/
975977
private function getEavValidator()
@@ -1168,6 +1170,8 @@ protected function getWebsiteStoreId($customer, $defaultStoreId = null)
11681170
}
11691171

11701172
/**
1173+
* Get available email template types
1174+
*
11711175
* @return array
11721176
* @deprecated 100.1.0
11731177
*/

app/code/Magento/Customer/Test/Unit/Model/AccountManagementTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,9 +1079,7 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
10791079
{
10801080
$websiteId = 1;
10811081
$addressId = 5;
1082-
10831082
$datetime = $this->prepareDateTimeFactory();
1084-
10851083
$customerData = ['key' => 'value'];
10861084
$customerName = 'Customer Name';
10871085

@@ -1091,7 +1089,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
10911089
$this->store->expects($this->any())
10921090
->method('getId')
10931091
->willReturn($storeId);
1094-
10951092
$this->storeManager->expects($this->any())
10961093
->method('getStore')
10971094
->willReturn($this->store);
@@ -1121,7 +1118,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
11211118
$customer->expects($this->any())
11221119
->method('getAddresses')
11231120
->willReturn([$address]);
1124-
11251121
$this->customerRepository->expects($this->once())
11261122
->method('get')
11271123
->willReturn($customer);
@@ -1132,7 +1128,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
11321128
$addressModel->expects($this->once())
11331129
->method('setShouldIgnoreValidation')
11341130
->with(true);
1135-
11361131
$this->customerRepository->expects($this->once())
11371132
->method('get')
11381133
->with($email, $websiteId)
@@ -1141,16 +1136,13 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
11411136
->method('save')
11421137
->with($customer)
11431138
->willReturnSelf();
1144-
11451139
$this->random->expects($this->once())
11461140
->method('getUniqueHash')
11471141
->willReturn($hash);
1148-
11491142
$this->customerViewHelper->expects($this->any())
11501143
->method('getCustomerName')
11511144
->with($customer)
11521145
->willReturn($customerName);
1153-
11541146
$this->customerSecure->expects($this->any())
11551147
->method('setRpToken')
11561148
->with($hash)
@@ -1167,12 +1159,10 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
11671159
->method('setData')
11681160
->with('name', $customerName)
11691161
->willReturnSelf();
1170-
11711162
$this->customerRegistry->expects($this->any())
11721163
->method('retrieveSecureData')
11731164
->with($customerId)
11741165
->willReturn($this->customerSecure);
1175-
11761166
$this->dataObjectProcessor->expects($this->any())
11771167
->method('buildOutputDataArray')
11781168
->with($customer, \Magento\Customer\Api\Data\CustomerInterface::class)

0 commit comments

Comments
 (0)