Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nuzil committed Sep 14, 2018
1 parent d0dd90f commit b691d84
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ class CustomerDataProvider
protected $encryptor;

/**
* CustomerDataProvider constructor.
*
* @param CustomerRepositoryInterface $customerRepository
* @param ServiceOutputProcessor $serviceOutputProcessor
* @param SerializerInterface $jsonSerializer
* @param CustomerRegistry $customerRegistry
* @param Encryptor $encryptor
*/
public function __construct(
CustomerRepositoryInterface $customerRepository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ class CustomerDataUpdater

/**
* CustomerDataUpdater constructor.
*
* @param CustomerRepositoryInterface $customerRepository
* @param StoreResolverInterface $storeResolver
* @param CustomerDataProvider $customerDataProvider
* @param SubscriberFactory $subscriberFactory
*/
public function __construct(
CustomerRepositoryInterface $customerRepository,
Expand All @@ -61,7 +64,7 @@ public function __construct(
* Manage customer subscription. Subscribe OR unsubscribe if required. Return new subscription status
*
* @param int $customerId
* @param $newSubscriptionStatus
* @param bool $newSubscriptionStatus
* @return bool
*/
public function manageSubscription(int $customerId, bool $newSubscriptionStatus): bool
Expand All @@ -78,6 +81,8 @@ public function manageSubscription(int $customerId, bool $newSubscriptionStatus)
}

/**
* Update account information related to
*
* @param int $customerId
* @param array $customerData
* @return CustomerInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ class CustomerUpdate implements ResolverInterface
protected $customerRegistry;

/**
* CustomerUpdate constructor.
*
* @param CustomerDataProvider $customerResolver
* @param CustomerDataUpdater $customerUpdater
* @param ValueFactory $valueFactory
* @param \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory
*/
public function __construct(
CustomerDataProvider $customerResolver,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
declare(strict_types=1);
namespace Magento\GraphQl\Customer;

use Magento\Customer\Api\AccountManagementInterface;
use Magento\Integration\Api\CustomerTokenServiceInterface;
use Magento\TestFramework\ObjectManager;
Expand Down Expand Up @@ -88,7 +89,7 @@ public function testCustomerCheckSubscription()
$query = $this->getSubscriptionQuery($isSubscribed);
$headerMap = $this->getCustomerAuthHeaders($customerEmail, $customerPassword);

$response = $this->graphQlQuery($query, [], '', $headerMap);
$this->graphQlQuery($query, [], '', $headerMap);

$subscriberModel = ObjectManager::getInstance()->get(Subscriber::class);
$subscriber = $subscriberModel->loadByEmail($customerEmail);
Expand Down Expand Up @@ -154,4 +155,4 @@ protected function setUp()
\Magento\Framework\Api\FilterBuilder::class
);
}
}
}

0 comments on commit b691d84

Please sign in to comment.