Skip to content

Commit

Permalink
[GraphQl] clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
LuongNgoDoan committed Oct 29, 2020
1 parent 943bf46 commit 93a5528
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
2 changes: 0 additions & 2 deletions Model/Resolver/AbstractAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
namespace Mageplaza\CustomerAttributesGraphQl\Model\Resolver;

use Magento\Framework\Api\SearchResultsInterface;
use Magento\Framework\GraphQl\Config\Element\Field;
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
use Magento\Framework\GraphQl\Query\ResolverInterface;
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;

/**
* Class AbstractAttributes
Expand Down
11 changes: 1 addition & 10 deletions Model/Resolver/Attribute/CustomerAddressAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
use Magento\Framework\GraphQl\Config\Element\Field;
use Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\Builder as SearchCriteriaBuilder;
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
use Mageplaza\CustomerAttributes\Helper\Data;
use Mageplaza\CustomerAttributes\Model\AddressMetadata;
use \Mageplaza\CustomerAttributesGraphQl\Model\Resolver\AbstractAttributes;

Expand All @@ -46,26 +45,18 @@ class CustomerAddressAttributes extends AbstractAttributes
*/
protected $customerAddressMetadata;

/**
* @var Data
*/
protected $helperData;

/**
* Attributes constructor.
*
* @param SearchCriteriaBuilder $searchCriteriaBuilder
* @param AddressMetadata $customerAddressMetadata
* @param Data $helperData
*/
public function __construct(
SearchCriteriaBuilder $searchCriteriaBuilder,
AddressMetadata $customerAddressMetadata,
Data $helperData
AddressMetadata $customerAddressMetadata
) {
$this->searchCriteriaBuilder = $searchCriteriaBuilder;
$this->customerAddressMetadata = $customerAddressMetadata;
$this->helperData = $helperData;
}

/**
Expand Down
11 changes: 1 addition & 10 deletions Model/Resolver/Attribute/CustomerAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
use Magento\Framework\GraphQl\Config\Element\Field;
use Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\Builder as SearchCriteriaBuilder;
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
use Mageplaza\CustomerAttributes\Helper\Data;
use Mageplaza\CustomerAttributes\Model\CustomerMetadata;
use \Mageplaza\CustomerAttributesGraphQl\Model\Resolver\AbstractAttributes;

Expand All @@ -46,26 +45,18 @@ class CustomerAttributes extends AbstractAttributes
*/
protected $customerAttributeMetadata;

/**
* @var Data
*/
protected $helperData;

/**
* Attributes constructor.
*
* @param SearchCriteriaBuilder $searchCriteriaBuilder
* @param CustomerMetadata $customerAttributeMetadata
* @param Data $helperData
*/
public function __construct(
SearchCriteriaBuilder $searchCriteriaBuilder,
CustomerMetadata $customerAttributeMetadata,
Data $helperData
CustomerMetadata $customerAttributeMetadata
) {
$this->searchCriteriaBuilder = $searchCriteriaBuilder;
$this->customerAttributeMetadata = $customerAttributeMetadata;
$this->helperData = $helperData;
}

/**
Expand Down

0 comments on commit 93a5528

Please sign in to comment.