Skip to content

Commit

Permalink
magento#271: [My Account] Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
furseyev committed May 26, 2019
1 parent b4db736 commit 4b7acdc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ class CreateCustomerAccount
private $validateCustomerData;

/**
* CreateCustomerAccount constructor.
*
* @param DataObjectHelper $dataObjectHelper
* @param CustomerInterfaceFactory $customerFactory
* @param StoreManagerInterface $storeManager
* @param AccountManagementInterface $accountManagement
* @param ChangeSubscriptionStatus $changeSubscriptionStatus
* @param GetAllowedCustomerAttributes $getAllowedCustomerAttributes
* @param ValidateCustomerData $validateCustomerData
*/
public function __construct(
DataObjectHelper $dataObjectHelper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public function __construct(
}

/**
* Update customer account
*
* @param CustomerInterface $customer
* @param array $data
* @throws GraphQlAlreadyExistsException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@

use Magento\Framework\GraphQl\Exception\GraphQlInputException;

/**
* Class ValidateCustomerData
*/
class ValidateCustomerData
{
/**
* Get allowed/required customer attributes
*
* @var GetAllowedCustomerAttributes
*/
private $getAllowedCustomerAttributes;
Expand All @@ -27,6 +32,8 @@ public function __construct(GetAllowedCustomerAttributes $getAllowedCustomerAttr
}

/**
* Validate customer data
*
* @param array $customerData
* @return void
* @throws GraphQlInputException
Expand All @@ -48,4 +55,4 @@ public function execute(array $customerData): void
);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,4 @@ public function tearDown()
$this->registry->register('isSecureArea', false);
parent::tearDown();
}


}

0 comments on commit 4b7acdc

Please sign in to comment.