14
14
15
15
/**
16
16
* Customer repository.
17
+ *
17
18
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18
19
*/
19
20
class CustomerRepository implements \Magento \Customer \Api \CustomerRepositoryInterface
@@ -330,11 +331,11 @@ protected function addFilterGroupToCollection(
330
331
* Update customer addresses.
331
332
*
332
333
* @param \Magento\Framework\Api\CustomAttributesDataInterface $customer
333
- * @param $customerId
334
+ * @param int $customerId
334
335
* @return void
335
336
* @throws \Magento\Framework\Exception\InputException
336
337
*/
337
- private function updateAddresses (\Magento \Framework \Api \CustomAttributesDataInterface $ customer , $ customerId )
338
+ private function updateAddresses (\Magento \Framework \Api \CustomAttributesDataInterface $ customer , int $ customerId )
338
339
{
339
340
if ($ customer ->getAddresses () !== null ) {
340
341
if ($ customer ->getId ()) {
@@ -368,8 +369,9 @@ private function updateAddresses(\Magento\Framework\Api\CustomAttributesDataInte
368
369
* Populate customer model with secure data.
369
370
*
370
371
* @param \Magento\Framework\Api\CustomAttributesDataInterface $customer
371
- * @param $passwordHash
372
- * @param $customerModel
372
+ * @param string $passwordHash
373
+ * @param \Magento\Customer\Model\Customer\Interceptor $customerModel
374
+ * @return void
373
375
*/
374
376
private function populateCustomerModelWithSecureData (
375
377
\Magento \Framework \Api \CustomAttributesDataInterface $ customer ,
@@ -394,12 +396,16 @@ private function populateCustomerModelWithSecureData(
394
396
/**
395
397
* Set default billing.
396
398
*
397
- * @param $customerArr
398
- * @param $prevCustomerDataArr
399
- * @param $customerModel
399
+ * @param array $customerArr
400
+ * @param array $prevCustomerDataArr
401
+ * @param \Magento\Customer\Model\Customer\Interceptor $customerModel
402
+ * @return void
400
403
*/
401
- private function setDefaultBilling ($ customerArr , $ prevCustomerDataArr , $ customerModel )
402
- {
404
+ private function setDefaultBilling (
405
+ $ customerArr ,
406
+ $ prevCustomerDataArr ,
407
+ $ customerModel
408
+ ) {
403
409
if (!array_key_exists ('default_billing ' , $ customerArr ) &&
404
410
null !== $ prevCustomerDataArr &&
405
411
array_key_exists ('default_billing ' , $ prevCustomerDataArr )
@@ -411,12 +417,16 @@ private function setDefaultBilling($customerArr, $prevCustomerDataArr, $customer
411
417
/**
412
418
* Set default shipping.
413
419
*
414
- * @param $customerArr
415
- * @param $prevCustomerDataArr
416
- * @param $customerModel
420
+ * @param array $customerArr
421
+ * @param array $prevCustomerDataArr
422
+ * @param \Magento\Customer\Model\Customer\Interceptor $customerModel
423
+ * @return void
417
424
*/
418
- private function setDefaultShipping ($ customerArr , $ prevCustomerDataArr , $ customerModel )
419
- {
425
+ private function setDefaultShipping (
426
+ $ customerArr ,
427
+ $ prevCustomerDataArr ,
428
+ $ customerModel
429
+ ) {
420
430
if (!array_key_exists ('default_shipping ' , $ customerArr ) &&
421
431
null !== $ prevCustomerDataArr &&
422
432
array_key_exists ('default_shipping ' , $ prevCustomerDataArr )
0 commit comments