GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 38-38 lines in 2 locations

src/eBayEnterprise/RetailOrderManagement/Payload/Inventory/InStorePickUpItem.php 1 location

@@ 57-94 (lines=38) @@
54
     * @param IPayload
55
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
56
     */
57
    public function __construct(
58
        IValidatorIterator $validators,
59
        ISchemaValidator $schemaValidator,
60
        IPayloadMap $payloadMap,
61
        LoggerInterface $logger,
62
        IPayload $parentPayload = null
63
    ) {
64
        $this->logger = $logger;
65
        $this->validators = $validators;
66
        $this->schemaValidator = $schemaValidator;
67
        $this->payloadMap = $payloadMap;
68
        $this->parentPayload = $parentPayload;
69
        $this->payloadFactory = new PayloadFactory;
70
71
        $this->extractionPaths = [
72
            'itemId' => 'string(@itemId)',
73
            'id' => 'string(@lineId)',
74
            'quantity' => 'string(x:Quantity)',
75
            'storeFrontId' => 'string(x:InStorePickupDetails/x:StoreFrontId)',
76
            'storeFrontName' => 'string(x:InStorePickupDetails/x:StoreFrontName)',
77
            'city' => 'string(x:InStorePickupDetails/x:StoreFrontAddress/x:City)',
78
            'countryCode' => 'string(x:InStorePickupDetails/x:StoreFrontAddress/x:CountryCode)',
79
            'shippingMethodCarrierType' => 'string(x:InStorePickupDetails/x:StoreFrontAddress)',
80
        ];
81
        $this->optionalExtractionPaths = [
82
            'mainDivision' => 'x:InStorePickupDetails/x:StoreFrontAddress/x:MainDivision',
83
            'postalCode' => 'x:InStorePickupDetails/x:StoreFrontAddress/x:PostalCode',
84
        ];
85
        $this->booleanExtractionPaths = [
86
            'giftWrapRequested' => 'string(x:GiftwrapRequested)',
87
        ];
88
        $this->addressLinesExtractionMap = [
89
            [
90
                'property' => 'lines',
91
                'xPath' => 'x:InStorePickupDetails/x:StoreFrontAddress/*[starts-with(name(), "Line")]'
92
            ],
93
        ];
94
    }
95
96
    /**
97
     * This is the identifier of the store in which the line item will be picked up.

src/eBayEnterprise/RetailOrderManagement/Payload/Inventory/ShippingItem.php 1 location

@@ 64-101 (lines=38) @@
61
     * @param IPayload
62
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
63
     */
64
    public function __construct(
65
        IValidatorIterator $validators,
66
        ISchemaValidator $schemaValidator,
67
        IPayloadMap $payloadMap,
68
        LoggerInterface $logger,
69
        IPayload $parentPayload = null
70
    ) {
71
        $this->logger = $logger;
72
        $this->validators = $validators;
73
        $this->schemaValidator = $schemaValidator;
74
        $this->payloadMap = $payloadMap;
75
        $this->parentPayload = $parentPayload;
76
        $this->payloadFactory = new PayloadFactory;
77
78
        $this->extractionPaths = [
79
            'itemId' => 'string(@itemId)',
80
            'id' => 'string(@lineId)',
81
            'quantity' => 'string(x:Quantity)',
82
            'city' => 'string(x:ShipmentDetails/x:ShipToAddress/x:City)',
83
            'countryCode' => 'string(x:ShipmentDetails/x:ShipToAddress/x:CountryCode)',
84
            'shippingMethod' => 'string(x:ShipmentDetails/x:ShippingMethod)',
85
        ];
86
        $this->optionalExtractionPaths = [
87
            'mainDivision' => 'x:ShipmentDetails/x:ShipToAddress/x:MainDivision',
88
            'postalCode' => 'x:ShipmentDetails/x:ShipToAddress/x:PostalCode',
89
            'shippingMethodMode' => 'x:ShipmentDetails/x:ShippingMethod/@mode',
90
            'shippingMethodDisplayText' => 'x:ShipmentDetails/x:ShippingMethod/@displayText',
91
        ];
92
        $this->booleanExtractionPaths = [
93
            'giftWrapRequested' => 'string(x:GiftwrapRequested)',
94
        ];
95
        $this->addressLinesExtractionMap = [
96
            [
97
                'property' => 'lines',
98
                'xPath' => 'x:ShipmentDetails/x:ShipToAddress/*[starts-with(name(), "Line")]'
99
            ],
100
        ];
101
    }
102
103
    /**
104
     * Shipping Carrier such as "UPS" or "FEDEX"