File tree 2 files changed +14
-14
lines changed
app/code/Magento/Sales/Model/Order
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -439,14 +439,14 @@ public function canVoid()
439
439
*/
440
440
public static function getStates ()
441
441
{
442
- if (is_null (self ::$ _states )) {
443
- self ::$ _states = [
442
+ if (is_null (static ::$ _states )) {
443
+ static ::$ _states = [
444
444
self ::STATE_OPEN => __ ('Pending ' ),
445
445
self ::STATE_REFUNDED => __ ('Refunded ' ),
446
446
self ::STATE_CANCELED => __ ('Canceled ' ),
447
447
];
448
448
}
449
- return self ::$ _states ;
449
+ return static ::$ _states ;
450
450
}
451
451
452
452
/**
@@ -461,11 +461,11 @@ public function getStateName($stateId = null)
461
461
$ stateId = $ this ->getState ();
462
462
}
463
463
464
- if (is_null (self ::$ _states )) {
465
- self ::getStates ();
464
+ if (is_null (static ::$ _states )) {
465
+ static ::getStates ();
466
466
}
467
- if (isset (self ::$ _states [$ stateId ])) {
468
- return self ::$ _states [$ stateId ];
467
+ if (isset (static ::$ _states [$ stateId ])) {
468
+ return static ::$ _states [$ stateId ];
469
469
}
470
470
return __ ('Unknown State ' );
471
471
}
Original file line number Diff line number Diff line change @@ -543,14 +543,14 @@ public function addItem(\Magento\Sales\Model\Order\Invoice\Item $item)
543
543
*/
544
544
public static function getStates ()
545
545
{
546
- if (null === self ::$ _states ) {
547
- self ::$ _states = [
546
+ if (null === static ::$ _states ) {
547
+ static ::$ _states = [
548
548
self ::STATE_OPEN => __ ('Pending ' ),
549
549
self ::STATE_PAID => __ ('Paid ' ),
550
550
self ::STATE_CANCELED => __ ('Canceled ' ),
551
551
];
552
552
}
553
- return self ::$ _states ;
553
+ return static ::$ _states ;
554
554
}
555
555
556
556
/**
@@ -565,11 +565,11 @@ public function getStateName($stateId = null)
565
565
$ stateId = $ this ->getState ();
566
566
}
567
567
568
- if (null === self ::$ _states ) {
569
- self ::getStates ();
568
+ if (null === static ::$ _states ) {
569
+ static ::getStates ();
570
570
}
571
- if (isset (self ::$ _states [$ stateId ])) {
572
- return self ::$ _states [$ stateId ];
571
+ if (isset (static ::$ _states [$ stateId ])) {
572
+ return static ::$ _states [$ stateId ];
573
573
}
574
574
return __ ('Unknown State ' );
575
575
}
You can’t perform that action at this time.
0 commit comments