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 = 4-4 lines in 19 locations

lib/Magento/Actions/Checkout/Steps/BillingAddress.php 10 locations

@@ 89-92 (lines=4) @@
86
            return true;
87
        }
88
89
        if ($this->theme->getBillingEmailAddressXpath()) {
90
            $this->testCase->byXpath($this->theme->getBillingEmailAddressXpath())->clear();
91
            $this->testCase->byXpath($this->theme->getBillingEmailAddressXpath())->sendKeys($this->customerIdentity->getEmailAddress());
92
        }
93
        if ($this->theme->getBillingFirstNameXpath()) {
94
            $this->testCase->byXpath($this->theme->getBillingFirstNameXpath())->clear();
95
            $this->testCase->byXpath($this->theme->getBillingFirstNameXpath())->sendKeys($this->customerIdentity->getBillingFirstName());
@@ 93-96 (lines=4) @@
90
            $this->testCase->byXpath($this->theme->getBillingEmailAddressXpath())->clear();
91
            $this->testCase->byXpath($this->theme->getBillingEmailAddressXpath())->sendKeys($this->customerIdentity->getEmailAddress());
92
        }
93
        if ($this->theme->getBillingFirstNameXpath()) {
94
            $this->testCase->byXpath($this->theme->getBillingFirstNameXpath())->clear();
95
            $this->testCase->byXpath($this->theme->getBillingFirstNameXpath())->sendKeys($this->customerIdentity->getBillingFirstName());
96
        }
97
98
        if ($this->theme->getBillingLastNameXpath()) {
99
            $this->testCase->byXpath($this->theme->getBillingLastNameXpath())->clear();
@@ 98-101 (lines=4) @@
95
            $this->testCase->byXpath($this->theme->getBillingFirstNameXpath())->sendKeys($this->customerIdentity->getBillingFirstName());
96
        }
97
98
        if ($this->theme->getBillingLastNameXpath()) {
99
            $this->testCase->byXpath($this->theme->getBillingLastNameXpath())->clear();
100
            $this->testCase->byXpath($this->theme->getBillingLastNameXpath())->sendKeys($this->customerIdentity->getBillingLastName());
101
        }
102
103
        if ($this->theme->getBillingCompanyXpath()) {
104
            $this->testCase->byXpath($this->theme->getBillingCompanyXpath())->clear();
@@ 103-106 (lines=4) @@
100
            $this->testCase->byXpath($this->theme->getBillingLastNameXpath())->sendKeys($this->customerIdentity->getBillingLastName());
101
        }
102
103
        if ($this->theme->getBillingCompanyXpath()) {
104
            $this->testCase->byXpath($this->theme->getBillingCompanyXpath())->clear();
105
            $this->testCase->byXpath($this->theme->getBillingCompanyXpath())->sendKeys($this->customerIdentity->getBillingCompany());
106
        }
107
108
        if ($this->theme->getBillingAddressXpath()) {
109
            $this->testCase->byXpath($this->theme->getBillingAddressXpath())->clear();
@@ 108-111 (lines=4) @@
105
            $this->testCase->byXpath($this->theme->getBillingCompanyXpath())->sendKeys($this->customerIdentity->getBillingCompany());
106
        }
107
108
        if ($this->theme->getBillingAddressXpath()) {
109
            $this->testCase->byXpath($this->theme->getBillingAddressXpath())->clear();
110
            $this->testCase->byXpath($this->theme->getBillingAddressXpath())->sendKeys($this->customerIdentity->getBillingAddress());
111
        }
112
113
        if ($this->theme->getBillingAddress2Xpath()) {
114
            $this->testCase->byXpath($this->theme->getBillingAddress2Xpath())->clear();
@@ 113-116 (lines=4) @@
110
            $this->testCase->byXpath($this->theme->getBillingAddressXpath())->sendKeys($this->customerIdentity->getBillingAddress());
111
        }
112
113
        if ($this->theme->getBillingAddress2Xpath()) {
114
            $this->testCase->byXpath($this->theme->getBillingAddress2Xpath())->clear();
115
            $this->testCase->byXpath($this->theme->getBillingAddress2Xpath())->sendKeys($this->customerIdentity->getBillingAddress2());
116
        }
117
118
        if ($this->theme->getBillingCityXpath()) {
119
            $this->testCase->byXpath($this->theme->getBillingCityXpath())->clear();
@@ 118-121 (lines=4) @@
115
            $this->testCase->byXpath($this->theme->getBillingAddress2Xpath())->sendKeys($this->customerIdentity->getBillingAddress2());
116
        }
117
118
        if ($this->theme->getBillingCityXpath()) {
119
            $this->testCase->byXpath($this->theme->getBillingCityXpath())->clear();
120
            $this->testCase->byXpath($this->theme->getBillingCityXpath())->sendKeys($this->customerIdentity->getBillingCity());
121
        }
122
123
        $regionXpath = $this->theme->getBillingRegionIdXpath($this->customerIdentity->getBillingRegionId());
124
        if ($regionXpath) {
@@ 128-131 (lines=4) @@
125
            $this->testCase->byXpath($regionXpath)->click();
126
        }
127
128
        if ($this->theme->getBillingPostCodeXpath()) {
129
            $this->testCase->byXpath($this->theme->getBillingPostCodeXpath())->clear();
130
            $this->testCase->byXpath($this->theme->getBillingPostCodeXpath())->sendKeys($this->customerIdentity->getBillingPostCode());
131
        }
132
133
        $countryXpath = $this->theme->getBillingCountryIdXpath($this->customerIdentity->getBillingCountryId());
134
        if ($countryXpath) {
@@ 138-141 (lines=4) @@
135
            $this->testCase->byXpath($countryXpath)->click();
136
        }
137
138
        if ($this->theme->getBillingTelephoneXpath()) {
139
            $this->testCase->byXpath($this->theme->getBillingTelephoneXpath())->clear();
140
            $this->testCase->byXpath($this->theme->getBillingTelephoneXpath())->sendKeys($this->customerIdentity->getBillingTelephone());
141
        }
142
143
        if ($this->theme->getBillingFaxXpath()) {
144
            $this->testCase->byXpath($this->theme->getBillingFaxXpath())->clear();
@@ 143-146 (lines=4) @@
140
            $this->testCase->byXpath($this->theme->getBillingTelephoneXpath())->sendKeys($this->customerIdentity->getBillingTelephone());
141
        }
142
143
        if ($this->theme->getBillingFaxXpath()) {
144
            $this->testCase->byXpath($this->theme->getBillingFaxXpath())->clear();
145
            $this->testCase->byXpath($this->theme->getBillingFaxXpath())->sendKeys($this->customerIdentity->getBillingFax());
146
        }
147
148
        return true;
149
    }

lib/Magento/Actions/Checkout/Steps/ShippingAddress.php 9 locations

@@ 71-74 (lines=4) @@
68
            return true;
69
        }
70
71
        if ($this->theme->getShippingFirstNameXpath()) {
72
            $this->testCase->byXpath($this->theme->getShippingFirstNameXpath())->clear();
73
            $this->testCase->byXpath($this->theme->getShippingFirstNameXpath())->sendKeys($this->customerIdentity->getShippingFirstName());
74
        }
75
76
        if ($this->theme->getShippingLastNameXpath()) {
77
            $this->testCase->byXpath($this->theme->getShippingLastNameXpath())->clear();
@@ 76-79 (lines=4) @@
73
            $this->testCase->byXpath($this->theme->getShippingFirstNameXpath())->sendKeys($this->customerIdentity->getShippingFirstName());
74
        }
75
76
        if ($this->theme->getShippingLastNameXpath()) {
77
            $this->testCase->byXpath($this->theme->getShippingLastNameXpath())->clear();
78
            $this->testCase->byXpath($this->theme->getShippingLastNameXpath())->sendKeys($this->customerIdentity->getShippingLastName());
79
        }
80
81
        if ($this->theme->getShippingCompanyXpath()) {
82
            $this->testCase->byXpath($this->theme->getShippingCompanyXpath())->clear();
@@ 81-84 (lines=4) @@
78
            $this->testCase->byXpath($this->theme->getShippingLastNameXpath())->sendKeys($this->customerIdentity->getShippingLastName());
79
        }
80
81
        if ($this->theme->getShippingCompanyXpath()) {
82
            $this->testCase->byXpath($this->theme->getShippingCompanyXpath())->clear();
83
            $this->testCase->byXpath($this->theme->getShippingCompanyXpath())->sendKeys($this->customerIdentity->getShippingCompany());
84
        }
85
86
        if ($this->theme->getShippingAddressXpath()) {
87
            $this->testCase->byXpath($this->theme->getShippingAddressXpath())->clear();
@@ 86-89 (lines=4) @@
83
            $this->testCase->byXpath($this->theme->getShippingCompanyXpath())->sendKeys($this->customerIdentity->getShippingCompany());
84
        }
85
86
        if ($this->theme->getShippingAddressXpath()) {
87
            $this->testCase->byXpath($this->theme->getShippingAddressXpath())->clear();
88
            $this->testCase->byXpath($this->theme->getShippingAddressXpath())->sendKeys($this->customerIdentity->getShippingAddress());
89
        }
90
91
        if ($this->theme->getShippingAddress2Xpath()) {
92
            $this->testCase->byXpath($this->theme->getShippingAddress2Xpath())->clear();
@@ 91-94 (lines=4) @@
88
            $this->testCase->byXpath($this->theme->getShippingAddressXpath())->sendKeys($this->customerIdentity->getShippingAddress());
89
        }
90
91
        if ($this->theme->getShippingAddress2Xpath()) {
92
            $this->testCase->byXpath($this->theme->getShippingAddress2Xpath())->clear();
93
            $this->testCase->byXpath($this->theme->getShippingAddress2Xpath())->sendKeys($this->customerIdentity->getShippingAddress2());
94
        }
95
96
        if ($this->theme->getShippingCityXpath()) {
97
            $this->testCase->byXpath($this->theme->getShippingCityXpath())->clear();
@@ 96-99 (lines=4) @@
93
            $this->testCase->byXpath($this->theme->getShippingAddress2Xpath())->sendKeys($this->customerIdentity->getShippingAddress2());
94
        }
95
96
        if ($this->theme->getShippingCityXpath()) {
97
            $this->testCase->byXpath($this->theme->getShippingCityXpath())->clear();
98
            $this->testCase->byXpath($this->theme->getShippingCityXpath())->sendKeys($this->customerIdentity->getShippingCity());
99
        }
100
101
        $regionXpath = $this->theme->getShippingRegionIdXpath($this->customerIdentity->getShippingRegionId());
102
        if ($regionXpath) {
@@ 106-109 (lines=4) @@
103
            $this->testCase->byXpath($regionXpath)->click();
104
        }
105
106
        if ($this->theme->getShippingPostCodeXpath()) {
107
            $this->testCase->byXpath($this->theme->getShippingPostCodeXpath())->clear();
108
            $this->testCase->byXpath($this->theme->getShippingPostCodeXpath())->sendKeys($this->customerIdentity->getShippingPostCode());
109
        }
110
111
        $countryXpath = $this->theme->getShippingCountryIdXpath($this->customerIdentity->getShippingCountryId());
112
        if ($countryXpath) {
@@ 116-119 (lines=4) @@
113
            $this->testCase->byXpath($countryXpath)->click();
114
        }
115
116
        if ($this->theme->getShippingTelephoneXpath()) {
117
            $this->testCase->byXpath($this->theme->getShippingTelephoneXpath())->clear();
118
            $this->testCase->byXpath($this->theme->getShippingTelephoneXpath())->sendKeys($this->customerIdentity->getShippingTelephone());
119
        }
120
121
        if ($this->theme->getShippingFaxXpath()) {
122
            $this->testCase->byXpath($this->theme->getShippingFaxXpath())->clear();
@@ 121-124 (lines=4) @@
118
            $this->testCase->byXpath($this->theme->getShippingTelephoneXpath())->sendKeys($this->customerIdentity->getShippingTelephone());
119
        }
120
121
        if ($this->theme->getShippingFaxXpath()) {
122
            $this->testCase->byXpath($this->theme->getShippingFaxXpath())->clear();
123
            $this->testCase->byXpath($this->theme->getShippingFaxXpath())->sendKeys($this->customerIdentity->getShippingFax());
124
        }
125
        return true;
126
    }
127