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.
Completed
Pull Request — master (#70)
by Kevin
03:25
created

getShippingEmailAddressXpath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Magium\Magento\Themes\OnePageCheckout;
4
5
6
use Magium\AbstractConfigurableElement;
7
use Magium\Themes\ThemeConfigurationInterface;
8
9
abstract class AbstractThemeConfiguration extends AbstractConfigurableElement implements ThemeConfigurationInterface // ThemeConfigurationInterface is here simply for compatibility for extractors
10
{
11
12
    /**
13
     * @var string The continue button when choosing the checkout type
14
     */
15
16
    public $continueButtonXpath;
17
18
    /**
19
     * @var string The checkbox (typically) that sets the guest checkout
20
     */
21
22
    public $guestCheckoutButtonXpath;
23
24
    /**
25
     * @var string The checkbox (typically) that sets the new customer checkout
26
     */
27
28
    public $registerNewCustomerCheckoutButtonXpath;
29
30
    public $billingAddressDropdownXpath;
31
32
    public $customerEmailInputXpath;
33
    public $customerPasswordInputXpath;
34
    public $customerButtonXpath;
35
36
    public $billingFirstNameXpath;
37
    public $billingLastNameXpath;
38
    public $billingCompanyXpath;
39
    public $billingEmailAddressXpath;
40
    public $billingAddressXpath;
41
    public $billingAddress2Xpath;
42
    public $billingCityXpath;
43
    /**
44
     * @var string The Xpath string for the region_id OPTION to click.  Must be sprintf() compatible
45
     */
46
    public $billingRegionIdXpath;
47
    public $billingPostCodeXpath;
48
    /**
49
     * @var string The Xpath string for the country OPTION to click.  Must be sprintf() compatible
50
     */
51
    public $billingCountryIdXpath;
52
    public $billingTelephoneXpath;
53
    public $billingFaxXpath;
54
55
    public $useBillingAddressForShipping;
56
    public $doNotUseBillingAddressForShipping;
57
58
    public $billingContinueButtonXpath;
59
    public $billingContinueCompletedXpath;
60
61
62
    public $shippingFirstNameXpath;
63
    public $shippingLastNameXpath;
64
    public $shippingCompanyXpath;
65
    public $shippingEmailAddressXpath;
66
    public $shippingAddressXpath;
67
    public $shippingAddress2Xpath;
68
    public $shippingCityXpath;
69
    /**
70
     * @var string The Xpath string for the region_id OPTION to click.  Must be sprintf() compatible
71
     */
72
    public $shippingRegionIdXpath;
73
    public $shippingPostCodeXpath;
74
    /**
75
     * @var string The Xpath string for the country OPTION to click.  Must be sprintf() compatible
76
     */
77
    public $shippingCountryIdXpath;
78
    public $shippingTelephoneXpath;
79
    public $shippingFaxXpath;
80
    public $shippingContinueButtonXpath;
81
    public $shippingContinueCompletedXpath;
82
    public $shippingMethodContinueCompletedXpath;
83
84
    public $shippingMethodContinueButtonXpath;
85
    public $defaultShippingXpath;
86
87
    public $paymentMethodContinueCompleteXpath;
88
89
    public $paymentMethodContinueButtonXpath;
90
91
    public $placeOrderButtonXpath;
92
93
    public $orderReceivedCompleteXpath;
94
95
    public $shippingMethodFormXpath;
96
97
    public $passwordInputXpath;
98
    public $confirmPasswordInputXpath;
99
100
    /**
101
     * This is a hard one.  Each of the summary checkout products will be iterated over until they cannot be found. Having
102
     * this work in a manner that gets all of the products, in all languages, in all themes, is quite difficult and
103
     * so the Xpath selector needs to be one that can find each individual column with an incrementing iterator.
104
     *
105
     * @see Magium\Magento\Actions\Checkout\Extractors\CartSummary for an example on how this is done
106
     *
107
     * @var string
108
     */
109
110
    public $cartSummaryCheckoutProductLoopPriceXpath;
111
    public $cartSummaryCheckoutProductLoopNameXpath;
112
    public $cartSummaryCheckoutProductLoopQtyXpath;
113
    public $cartSummaryCheckoutProductLoopSubtotalXpath;
114
115
    public $cartSummaryCheckoutSubTotal;
116
    public $cartSummaryCheckoutTax;
117
    public $cartSummaryCheckoutGrandTotal;
118
    public $cartSummaryCheckoutShippingTotal;
119
120
    public $billingNewAddressXpath;
121
    public $shippingNewAddressXpath;
122
123
    public $guaranteedPageLoadedElementDisplayedXpath = '//*[contains(concat(" ",normalize-space(@class)," ")," footer ")]';
124
125
    public $orderNumberExtractorXpath;
126
127
    public $termsAndConditionsSelectorXpath;
128
129
130
    /**
131
     * @return mixed
132
     */
133
    public function getTermsAndConditionsSelectorXpath($term)
134
    {
135
        $return = sprintf($this->termsAndConditionsSelectorXpath, $term);
136
        return $this->translatePlaceholders($return);
137
    }
138
139
    public function getOrderNumberExtractorXpath()
140
    {
141
        return $this->translatePlaceholders($this->orderNumberExtractorXpath);
142
    }
143
144
    public function getGuaranteedPageLoadedElementDisplayedXpath()
145
    {
146
        return $this->translatePlaceholders($this->guaranteedPageLoadedElementDisplayedXpath);
147
    }
148
149
    /**
150
     * @param mixed $guaranteedPageLoadedElementDisplayedXpath
151
     */
152
    public function setGuaranteedPageLoadedElementDisplayedXpath($guaranteedPageLoadedElementDisplayedXpath)
153
    {
154
        $this->guaranteedPageLoadedElementDisplayedXpath = $guaranteedPageLoadedElementDisplayedXpath;
155
    }
156
157
    /**
158
     * @return string
159
     */
160
    public function getBillingNewAddressXpath()
161
    {
162
        return $this->translatePlaceholders($this->billingNewAddressXpath);
163
    }
164
165
    /**
166
     * @return string
167
     */
168
    public function getShippingNewAddressXpath()
169
    {
170
        return $this->translatePlaceholders($this->shippingNewAddressXpath);
171
    }
172
173
    /**
174
     * @return mixed
175
     */
176
    public function getDoNotUseBillingAddressForShipping()
177
    {
178
        return $this->doNotUseBillingAddressForShipping;
179
    }
180
181
    /**
182
     * @return mixed
183
     */
184
    public function getUseBillingAddressForShipping()
185
    {
186
        return $this->useBillingAddressForShipping;
187
    }
188
189
    /**
190
     * @return string
191
     */
192
    public function getBillingAddressDropdownXpath()
193
    {
194
        return $this->translatePlaceholders($this->billingAddressDropdownXpath);
195
    }
196
197
    /**
198
     * @return string
199
     */
200
    public function getPasswordInputXpath()
201
    {
202
        return $this->translatePlaceholders($this->passwordInputXpath);
203
    }
204
205
    /**
206
     * @return string
207
     */
208
    public function getConfirmPasswordInputXpath()
209
    {
210
        return $this->translatePlaceholders($this->confirmPasswordInputXpath);
211
    }
212
213
214
215
    /**
216
     * @return string
217
     */
218
    public function getRegisterNewCustomerCheckoutButtonXpath()
219
    {
220
        return $this->translatePlaceholders($this->registerNewCustomerCheckoutButtonXpath);
221
    }
222
223
    /**
224
     * @return string
225
     */
226
    public function getCustomerEmailInputXpath()
227
    {
228
        return $this->translatePlaceholders($this->customerEmailInputXpath);
229
    }
230
231
    /**
232
     * @return string
233
     */
234
    public function getCustomerPasswordInputXpath()
235
    {
236
        return $this->translatePlaceholders($this->customerPasswordInputXpath);
237
    }
238
239
    /**
240
     * @return string
241
     */
242
    public function getCustomerButtonXpath()
243
    {
244
        return $this->translatePlaceholders($this->customerButtonXpath);
245
    }
246
247
248
249
    /**
250
     * @return string
251
     */
252
    public function getShippingMethodFormXpath()
253
    {
254
        return $this->translatePlaceholders($this->shippingMethodFormXpath);
255
    }
256
257
    /**
258
     * @return string
259
     */
260
    public function getOrderReceivedCompleteXpath()
261
    {
262
        return $this->translatePlaceholders($this->orderReceivedCompleteXpath);
263
    }
264
265
266
    /**
267
     * @return string
268
     */
269
    public function getPaymentMethodContinueButtonXpath()
270
    {
271
        return $this->translatePlaceholders($this->paymentMethodContinueButtonXpath);
272
    }
273
274
    /**
275
     * @return string
276
     */
277
    public function getShippingMethodContinueButtonXpath()
278
    {
279
        return $this->translatePlaceholders($this->shippingMethodContinueButtonXpath);
280
    }
281
282
     /**
283
      * @return string
284
     */
285
    public function getPlaceOrderButtonXpath()
286
    {
287
        return $this->translatePlaceholders($this->placeOrderButtonXpath);
288
    }
289
290
291
    /**
292
     * @return string
293
     */
294
    public function getPaymentMethodContinueCompleteXpath()
295
    {
296
        return $this->translatePlaceholders($this->paymentMethodContinueCompleteXpath);
297
    }
298
299
300
    public function getDefaultShippingXpath()
301
    {
302
        return $this->translatePlaceholders($this->defaultShippingXpath);
303
    }
304
305
    /**
306
     * @return string
307
     */
308
    public function getShippingMethodContinueCompletedXpath()
309
    {
310
        return $this->translatePlaceholders($this->shippingMethodContinueCompletedXpath);
311
    }
312
313
    /**
314
     * @return string
315
     */
316
    public function getShippingFirstNameXpath()
317
    {
318
        return $this->translatePlaceholders($this->shippingFirstNameXpath);
319
    }
320
321
    /**
322
     * @param string $shippinFirstNameXpath
0 ignored issues
show
Documentation introduced by
There is no parameter named $shippinFirstNameXpath. Did you maybe mean $shippingFirstNameXpath?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
323
     */
324
    public function setShippingFirstNameXpath($shippingFirstNameXpath)
325
    {
326
        $this->shippingFirstNameXpath = $shippingFirstNameXpath;
327
    }
328
329
    /**
330
     * @return string
331
     */
332
    public function getShippingLastNameXpath()
333
    {
334
        return $this->translatePlaceholders($this->shippingLastNameXpath);
335
    }
336
337
    /**
338
     * @param string $shippingLastNameXpath
339
     */
340
    public function setShippingLastNameXpath($shippingLastNameXpath)
341
    {
342
        $this->shippingLastNameXpath = $shippingLastNameXpath;
343
    }
344
345
    /**
346
     * @return string
347
     */
348
    public function getShippingCompanyXpath()
349
    {
350
        return $this->translatePlaceholders($this->shippingCompanyXpath);
351
    }
352
353
    /**
354
     * @param string $shippingCompanyXpath
355
     */
356
    public function setShippingCompanyXpath($shippingCompanyXpath)
357
    {
358
        $this->shippingCompanyXpath = $shippingCompanyXpath;
359
    }
360
361
    /**
362
     * @return string
363
     */
364
    public function getShippingEmailAddressXpath()
365
    {
366
        return $this->translatePlaceholders($this->shippingEmailAddressXpath);
367
    }
368
369
    /**
370
     * @param string $shippingEmailAddressXpath
371
     */
372
    public function setShippingEmailAddressXpath($shippingEmailAddressXpath)
373
    {
374
        $this->shippingEmailAddressXpath = $shippingEmailAddressXpath;
375
    }
376
377
    /**
378
     * @return string
379
     */
380
    public function getShippingAddressXpath()
381
    {
382
        return $this->translatePlaceholders($this->shippingAddressXpath);
383
    }
384
385
    /**
386
     * @param string $shippingAddressXpath
387
     */
388
    public function setShippingAddressXpath($shippingAddressXpath)
389
    {
390
        $this->shippingAddressXpath = $shippingAddressXpath;
391
    }
392
393
    /**
394
     * @return string
395
     */
396
    public function getShippingAddress2Xpath()
397
    {
398
        return $this->translatePlaceholders($this->shippingAddress2Xpath);
399
    }
400
401
    /**
402
     * @param string $shippingAddress2Xpath
403
     */
404
    public function setShippingAddress2Xpath($shippingAddress2Xpath)
405
    {
406
        $this->shippingAddress2Xpath = $shippingAddress2Xpath;
407
    }
408
409
    /**
410
     * @return string
411
     */
412
    public function getShippingCityXpath()
413
    {
414
        return $this->translatePlaceholders($this->shippingCityXpath);
415
    }
416
417
    /**
418
     * @param string $shippingCityXpath
419
     */
420
    public function setShippingCityXpath($shippingCityXpath)
421
    {
422
        $this->shippingCityXpath = $shippingCityXpath;
423
    }
424
425
    /**
426
     * @return string
427
     */
428
    public function getShippingRegionIdXpath($region)
429
    {
430
        $return = sprintf($this->shippingRegionIdXpath, $region);
431
        return $this->translatePlaceholders($return);
432
    }
433
434
    /**
435
     * @param string $shippingRegionIdXpath
436
     */
437
    public function setShippingRegionIdXpath($shippingRegionIdXpath)
438
    {
439
        $this->shippingRegionIdXpath = $shippingRegionIdXpath;
440
    }
441
442
    /**
443
     * @return string
444
     */
445
    public function getShippingPostCodeXpath()
446
    {
447
        return $this->translatePlaceholders($this->shippingPostCodeXpath);
448
    }
449
450
    /**
451
     * @param string $shippingPostCodeXpath
452
     */
453
    public function setShippingPostCodeXpath($shippingPostCodeXpath)
454
    {
455
        $this->shippingPostCodeXpath = $shippingPostCodeXpath;
456
    }
457
458
    /**
459
     * @return string
460
     */
461
    public function getShippingCountryIdXpath($country)
462
    {
463
        $return = sprintf($this->shippingCountryIdXpath, $country);
464
        return $this->translatePlaceholders($return);
465
    }
466
467
    /**
468
     * @param string $shippingCountryIdXpath
469
     */
470
    public function setShippingCountryIdXpath($shippingCountryIdXpath)
471
    {
472
        $this->shippingCountryIdXpath = $shippingCountryIdXpath;
473
    }
474
475
    /**
476
     * @return string
477
     */
478
    public function getShippingTelephoneXpath()
479
    {
480
        return $this->translatePlaceholders($this->shippingTelephoneXpath);
481
    }
482
483
    /**
484
     * @param string $shippingTelephoneXpath
485
     */
486
    public function setShippingTelephoneXpath($shippingTelephoneXpath)
487
    {
488
        $this->shippingTelephoneXpath = $shippingTelephoneXpath;
489
    }
490
491
    /**
492
     * @return string
493
     */
494
    public function getShippingFaxXpath()
495
    {
496
        return $this->translatePlaceholders($this->shippingFaxXpath);
497
    }
498
499
    /**
500
     * @param string $shippingFaxXpath
501
     */
502
    public function setShippingFaxXpath($shippingFaxXpath)
503
    {
504
        $this->shippingFaxXpath = $shippingFaxXpath;
505
    }
506
507
    /**
508
     * @return string
509
     */
510
    public function getShippingContinueButtonXpath()
511
    {
512
        return $this->translatePlaceholders($this->shippingContinueButtonXpath);
513
    }
514
515
    /**
516
     * @param string $shippingContinueButtonXpath
517
     */
518
    public function setShippingContinueButtonXpath($shippingContinueButtonXpath)
519
    {
520
        $this->shippingContinueButtonXpath = $shippingContinueButtonXpath;
521
    }
522
523
    /**
524
     * @return string
525
     */
526
    public function getShippingContinueCompletedXpath()
527
    {
528
        return $this->translatePlaceholders($this->shippingContinueCompletedXpath);
529
    }
530
531
    /**
532
     * @param string $shippingContinueCompletedXpath
533
     */
534
    public function setShippingContinueCompletedXpath($shippingContinueCompletedXpath)
535
    {
536
        $this->shippingContinueCompletedXpath = $shippingContinueCompletedXpath;
537
    }
538
539
    public function getBillingContinueCompletedXpath()
540
    {
541
        return $this->translatePlaceholders($this->billingContinueCompletedXpath);
542
    }
543
544
    public function getContinueButtonXpath()
545
    {
546
        return $this->translatePlaceholders($this->continueButtonXpath);
547
    }
548
549
    public function getGuestCheckoutButtonXpath()
550
    {
551
        return $this->translatePlaceholders($this->guestCheckoutButtonXpath);
552
    }
553
554
    /**
555
     * @return string
556
     */
557
    public function getBillingFirstNameXpath()
558
    {
559
        return $this->translatePlaceholders($this->billingFirstNameXpath);
560
    }
561
562
    /**
563
     * @return string
564
     */
565
    public function getBillingLastNameXpath()
566
    {
567
        return $this->translatePlaceholders($this->billingLastNameXpath);
568
    }
569
570
    /**
571
     * @return string
572
     */
573
    public function getBillingCompanyXpath()
574
    {
575
        return $this->translatePlaceholders($this->billingCompanyXpath);
576
    }
577
578
    /**
579
     * @return string
580
     */
581
    public function getBillingEmailAddressXpath()
582
    {
583
        return $this->translatePlaceholders($this->billingEmailAddressXpath);
584
    }
585
586
    /**
587
     * @return string
588
     */
589
    public function getBillingAddressXpath()
590
    {
591
        return$this->translatePlaceholders( $this->billingAddressXpath);
592
    }
593
594
    /**
595
     * @return string
596
     */
597
    public function getBillingAddress2Xpath()
598
    {
599
        return $this->translatePlaceholders($this->billingAddress2Xpath);
600
    }
601
602
    /**
603
     * @return string
604
     */
605
    public function getBillingCityXpath()
606
    {
607
        return $this->translatePlaceholders($this->billingCityXpath);
608
    }
609
610
    /**
611
     * @return string
612
     */
613
    public function getBillingRegionIdXpath($region)
614
    {
615
        $return = sprintf($this->billingRegionIdXpath, $region);
616
        return $this->translatePlaceholders($return);
617
    }
618
619
    /**
620
     * @return string
621
     */
622
    public function getBillingPostCodeXpath()
623
    {
624
        return $this->translatePlaceholders($this->billingPostCodeXpath);
625
    }
626
627
    /**
628
     * @return string
629
     */
630
    public function getBillingCountryIdXpath($country)
631
    {
632
        $return = sprintf($this->billingCountryIdXpath, $country);
633
        return $this->translatePlaceholders($return);
634
    }
635
636
    /**
637
     * @return string
638
     */
639
    public function getBillingTelephoneXpath()
640
    {
641
        return $this->translatePlaceholders($this->billingTelephoneXpath);
642
    }
643
644
    /**
645
     * @return string
646
     */
647
    public function getBillingFaxXpath()
648
    {
649
        return $this->translatePlaceholders($this->billingFaxXpath);
650
    }
651
652
    /**
653
     * @return string
654
     */
655
    public function getBillingContinueButtonXpath()
656
    {
657
        return $this->translatePlaceholders($this->billingContinueButtonXpath);
658
    }
659
660
    /**
661
     * @return string
662
     */
663
    public function getCartSummaryCheckoutSubTotal()
664
    {
665
        return $this->translatePlaceholders($this->cartSummaryCheckoutSubTotal);
666
    }
667
668
    /**
669
     * @return string
670
     */
671
    public function getCartSummaryCheckoutTax()
672
    {
673
        return $this->translatePlaceholders($this->cartSummaryCheckoutTax);
674
    }
675
676
    /**
677
     * @return string
678
     */
679
    public function getCartSummaryCheckoutGrandTotal()
680
    {
681
        return $this->translatePlaceholders($this->cartSummaryCheckoutGrandTotal);
682
    }
683
684
    /**
685
     * @return string
686
     */
687
    public function getCartSummaryCheckoutShippingTotal()
688
    {
689
        return $this->translatePlaceholders($this->cartSummaryCheckoutShippingTotal);
690
    }
691
692
693
694
    /**
695
     * @return string
696
     */
697
    public function getCartSummaryCheckoutProductLoopPriceXpath($itemCount)
698
    {
699
        $return = sprintf($this->cartSummaryCheckoutProductLoopPriceXpath , $itemCount);
700
        return $this->translatePlaceholders($return);
701
    }
702
703
    /**
704
     * @return string
705
     */
706
    public function getCartSummaryCheckoutProductLoopNameXpath($itemCount)
707
    {
708
        $return = sprintf($this->cartSummaryCheckoutProductLoopNameXpath , $itemCount);
709
        return $this->translatePlaceholders($return);
710
    }
711
712
    /**
713
     * @return string
714
     */
715
    public function getCartSummaryCheckoutProductLoopQtyXpath($itemCount)
716
    {
717
        $return = sprintf($this->cartSummaryCheckoutProductLoopQtyXpath , $itemCount);
718
        return $this->translatePlaceholders($return);
719
    }
720
721
    /**
722
     * @return string
723
     */
724
    public function getCartSummaryCheckoutProductLoopSubtotalXpath($itemCount)
725
    {
726
        $return = sprintf($this->cartSummaryCheckoutProductLoopSubtotalXpath , $itemCount);
727
        return $this->translatePlaceholders($return);
728
    }
729
730
}