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.

getAccountSectionHeaderXpath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Magium\Magento\Themes\Customer;
4
5
6
use Magium\AbstractConfigurableElement;
7
use Magium\Themes\ThemeConfigurationInterface;
8
9
abstract class AbstractThemeConfiguration extends AbstractConfigurableElement implements ThemeConfigurationInterface
10
{
11
12
    public $accountNavigationXpath;
13
    public $accountSectionHeaderXpath;
14
15
    public $orderPageName;
16
17
    public $viewOrderLinkXpath;
18
19
    public $orderPageTitleContainsText;
20
21
    /**
22
     * @var string Xpath for the customer email form element
23
     */
24
25
    public $loginUsernameField;
26
27
    /**
28
     * @var string Xpath for the customer password form element
29
     */
30
31
    public $loginPasswordField;
32
33
34
    /**
35
     * @var string Xpath for the customer login "submit" button
36
     */
37
38
    public $loginSubmitButton;
39
40
    public $orderShippingAddressBaseXpath;
41
42
    public $orderBillingAddressBaseXpath;
43
44
    public $orderItemNameXpath;
45
    public $orderItemSkuXpath;
46
    public $orderItemPriceXpath;
47
    public $orderItemQtyXpath;
48
    public $orderItemQtyOrderedRegex;
49
    public $orderItemQtyShippedRegex;
50
    public $orderItemSubtotalXpath;
51
    public $orderSubtotalXpath;
52
    public $orderShippingAndHandlingXpath;
53
    public $orderTaxXpath;
54
    public $orderGrandTotalXpath;
55
56
    public $orderDateXpath;
57
    public $orderStatusXpath;
58
    public $orderStatusRegex;
59
60
    public $orderShippingMethod;
61
    public $orderPaymentMethod;
62
63
    public $guaranteedPageLoadedElementDisplayedXpath = '//*[contains(concat(" ",normalize-space(@class)," ")," footer ")]';
64
65
    public function getGuaranteedPageLoadedElementDisplayedXpath()
66
    {
67
        return $this->translatePlaceholders($this->guaranteedPageLoadedElementDisplayedXpath);
68
    }
69
70
    /**
71
     * @param mixed $guaranteedPageLoadedElementDisplayedXpath
72
     */
73
    public function setGuaranteedPageLoadedElementDisplayedXpath($guaranteedPageLoadedElementDisplayedXpath)
74
    {
75
        $this->guaranteedPageLoadedElementDisplayedXpath = $guaranteedPageLoadedElementDisplayedXpath;
76
    }
77
78
    /**
79
     * @return mixed
80
     */
81
    public function getOrderItemQtyOrderedRegex()
82
    {
83
        return $this->translatePlaceholders($this->orderItemQtyOrderedRegex);
84
    }
85
86
    /**
87
     * @return mixed
88
     */
89
    public function getOrderItemQtyShippedRegex()
90
    {
91
        return $this->translatePlaceholders($this->orderItemQtyShippedRegex);
92
    }
93
94
95
96
    /**
97
     * @return mixed
98
     */
99
    public function getOrderStatusRegex()
100
    {
101
        return $this->translatePlaceholders($this->orderStatusRegex);
102
    }
103
104
    /**
105
     * @return mixed
106
     */
107
    public function getOrderStatusXpath()
108
    {
109
        return $this->translatePlaceholders($this->orderStatusXpath);
110
    }
111
112
    /**
113
     * @return mixed
114
     */
115
    public function getOrderDateXpath()
116
    {
117
        return $this->orderDateXpath;
118
    }
119
120
    /**
121
     * @return mixed
122
     */
123
    public function getOrderPaymentMethod()
124
    {
125
        return $this->translatePlaceholders($this->orderPaymentMethod);
126
    }
127
128
    /**
129
     * @return mixed
130
     */
131
    public function getOrderShippingMethod()
132
    {
133
        return $this->translatePlaceholders($this->orderShippingMethod);
134
    }
135
136
137
138
    /**
139
     * @return mixed
140
     */
141
    public function getOrderGrandTotalXpath()
142
    {
143
        return $this->orderGrandTotalXpath;
144
    }
145
146
    /**
147
     * @return mixed
148
     */
149
    public function getOrderItemSubtotalXpath($count)
150
    {
151
        $xpath = sprintf($this->orderItemSubtotalXpath, $count);
152
        return $this->translatePlaceholders($xpath);
153
    }
154
155
    /**
156
     * @return mixed
157
     */
158
    public function getOrderItemNameXpath($count)
159
    {
160
        $xpath = sprintf($this->orderItemNameXpath, $count);
161
        return $this->translatePlaceholders($xpath);
162
    }
163
164
    /**
165
     * @return mixed
166
     */
167
    public function getOrderItemPriceXpath($count)
168
    {
169
        $xpath = sprintf($this->orderItemPriceXpath, $count);
170
        return $this->translatePlaceholders($xpath);
171
    }
172
173
    /**
174
     * @return mixed
175
     */
176
    public function getOrderItemQtyXpath($count)
177
    {
178
        $xpath = sprintf($this->orderItemQtyXpath, $count);
179
        return $this->translatePlaceholders($xpath);
180
    }
181
182
183
    /**
184
     * @return mixed
185
     */
186
    public function getOrderItemSkuXpath($count)
187
    {
188
        $xpath = sprintf($this->orderItemSkuXpath, $count);
189
        return $this->translatePlaceholders($xpath);
190
    }
191
192
    /**
193
     * @return mixed
194
     */
195
    public function getOrderShippingAndHandlingXpath()
196
    {
197
        return $this->translatePlaceholders($this->orderShippingAndHandlingXpath);
198
    }
199
200
    /**
201
     * @return mixed
202
     */
203
    public function getOrderSubtotalXpath()
204
    {
205
        return $this->translatePlaceholders($this->orderSubtotalXpath);
206
    }
207
208
    /**
209
     * @return mixed
210
     */
211
    public function getOrderTaxXpath()
212
    {
213
        return $this->translatePlaceholders($this->orderTaxXpath);
214
    }
215
216
    /**
217
     * @return mixed
218
     */
219
    public function getOrderBillingAddressBaseXpath()
220
    {
221
        return $this->translatePlaceholders($this->orderBillingAddressBaseXpath);
222
    }
223
224
    /**
225
     * @return mixed
226
     */
227
    public function getOrderShippingAddressBaseXpath()
228
    {
229
        return $this->translatePlaceholders($this->orderShippingAddressBaseXpath);
230
    }
231
232
    /**
233
     * @return string
234
     */
235
    public function getOrderPageTitleContainsText()
236
    {
237
        return $this->translatePlaceholders($this->orderPageTitleContainsText);
238
    }
239
240
    /**
241
     * @return string
242
     */
243
    public function getAccountNavigationXpath($section)
244
    {
245
        $return = sprintf($this->accountNavigationXpath, $section);
246
        return $this->translatePlaceholders($return);
247
    }
248
249
    /**
250
     * @return string
251
     */
252
    public function getAccountSectionHeaderXpath($header)
253
    {
254
        $return = sprintf($this->accountSectionHeaderXpath, $header);
255
        return $this->translatePlaceholders($return);
256
    }
257
258
    /**
259
     * @return string
260
     */
261
    public function getOrderPageName()
262
    {
263
        return $this->translatePlaceholders($this->orderPageName);
264
    }
265
266
    /**
267
     * @return string
268
     */
269
    public function getViewOrderLinkXpath($order)
270
    {
271
        $return = sprintf($this->viewOrderLinkXpath, $order);
272
        return $this->translatePlaceholders($return);
273
    }
274
275
276
    public function getLoginUsernameField()
277
    {
278
        return $this->loginUsernameField;
279
    }
280
281
    public function getLoginPasswordField()
282
    {
283
        return $this->loginPasswordField;
284
    }
285
286
    public function getLoginSubmitButton()
287
    {
288
        return $this->loginSubmitButton;
289
    }
290
291
}
292