Skip to content

Commit 627e166

Browse files
committed
fix for static test failures
1 parent 7e3f224 commit 627e166

File tree

7 files changed

+25
-11
lines changed

7 files changed

+25
-11
lines changed

app/code/Magento/Sales/Block/Items/AbstractItems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AbstractItems extends \Magento\Framework\View\Element\Template
1717
/**
1818
* Block alias fallback
1919
*/
20-
const DEFAULT_TYPE = 'default';
20+
public const DEFAULT_TYPE = 'default';
2121

2222
/**
2323
* Retrieve item renderer block

app/code/Magento/Sales/Block/Order/Creditmemo.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public function __construct(
5151
}
5252

5353
/**
54+
* Prepare Layout
55+
*
5456
* @return void
5557
*/
5658
protected function _prepareLayout()
@@ -61,6 +63,8 @@ protected function _prepareLayout()
6163
}
6264

6365
/**
66+
* Get payment info html
67+
*
6468
* @return string
6569
*/
6670
public function getPaymentInfoHtml()
@@ -105,6 +109,8 @@ public function getBackTitle()
105109
}
106110

107111
/**
112+
* Invoice URL getter
113+
*
108114
* @param object $order
109115
* @return string
110116
*/
@@ -114,6 +120,8 @@ public function getInvoiceUrl($order)
114120
}
115121

116122
/**
123+
* Shipment URL getter
124+
*
117125
* @param object $order
118126
* @return string
119127
*/
@@ -123,6 +131,8 @@ public function getShipmentUrl($order)
123131
}
124132

125133
/**
134+
* Get order view URL
135+
*
126136
* @param object $order
127137
* @return string
128138
*/
@@ -132,6 +142,8 @@ public function getViewUrl($order)
132142
}
133143

134144
/**
145+
* Get CreditMemo Print Url
146+
*
135147
* @param object $creditmemo
136148
* @return string
137149
*/
@@ -141,6 +153,8 @@ public function getPrintCreditmemoUrl($creditmemo)
141153
}
142154

143155
/**
156+
* Get PrintAll CreditMemos Url
157+
*
144158
* @param object $order
145159
* @return string
146160
*/

app/code/Magento/Sales/Block/Order/Info.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
*/
66
namespace Magento\Sales\Block\Order;
77

8-
use Magento\Sales\Model\Order\Address;
9-
use Magento\Framework\View\Element\Template\Context as TemplateContext;
108
use Magento\Framework\Registry;
9+
use Magento\Framework\View\Element\Template\Context as TemplateContext;
1110
use Magento\Payment\Helper\Data as PaymentHelper;
11+
use Magento\Sales\Model\Order\Address;
1212
use Magento\Sales\Model\Order\Address\Renderer as AddressRenderer;
1313

1414
/**
@@ -25,8 +25,6 @@ class Info extends \Magento\Framework\View\Element\Template
2525
protected $_template = 'Magento_Sales::order/info.phtml';
2626

2727
/**
28-
* Core registry
29-
*
3028
* @var \Magento\Framework\Registry
3129
*/
3230
protected $coreRegistry = null;
@@ -63,6 +61,8 @@ public function __construct(
6361
}
6462

6563
/**
64+
* Prepare Layout
65+
*
6666
* @return void
6767
*/
6868
protected function _prepareLayout()
@@ -73,6 +73,8 @@ protected function _prepareLayout()
7373
}
7474

7575
/**
76+
* Get payment info html
77+
*
7678
* @return string
7779
*/
7880
public function getPaymentInfoHtml()

app/code/Magento/Sales/Block/Order/Invoice/Items.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
class Items extends \Magento\Sales\Block\Items\AbstractItems
1919
{
2020
/**
21-
* Core registry
22-
*
2321
* @var \Magento\Framework\Registry
2422
*/
2523
protected $_coreRegistry = null;

app/code/Magento/Sales/Controller/Adminhtml/Order/View/Giftmessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ abstract class Giftmessage extends \Magento\Backend\App\Action
1515
*
1616
* @see _isAllowed()
1717
*/
18-
const ADMIN_RESOURCE = 'Magento_Sales::sales_order';
18+
public const ADMIN_RESOURCE = 'Magento_Sales::sales_order';
1919

2020
/**
2121
* Retrieve gift message save model

app/code/Magento/Sales/Controller/Adminhtml/Transactions.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ abstract class Transactions extends \Magento\Backend\App\Action
2121
*
2222
* @see _isAllowed()
2323
*/
24-
const ADMIN_RESOURCE = 'Magento_Sales::transactions';
24+
public const ADMIN_RESOURCE = 'Magento_Sales::transactions';
2525

2626
/**
27-
* Core registry
28-
*
2927
* @var Registry
3028
*/
3129
protected $_coreRegistry = null;

app/code/Magento/Sales/Model/AdminOrder/Product/Quote/Initializer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public function __construct(
2626
}
2727

2828
/**
29+
* Initializing quote product
30+
*
2931
* @param \Magento\Quote\Model\Quote $quote
3032
* @param \Magento\Catalog\Model\Product $product
3133
* @param \Magento\Framework\DataObject $config

0 commit comments

Comments
 (0)