@@ -41,6 +41,7 @@ class Inventory extends \Magento\Backend\Block\Widget implements \Magento\Backen
41
41
* @param \Magento\CatalogInventory\Model\Source\Backorders $backorders
42
42
* @param \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration
43
43
* @param array $data
44
+ * @param \Magento\Framework\Serialize\SerializerInterface|null $serializer
44
45
*/
45
46
public function __construct (
46
47
\Magento \Backend \Block \Template \Context $ context ,
@@ -80,11 +81,13 @@ public function getFieldSuffix()
80
81
* Retrieve current store id
81
82
*
82
83
* @return int
84
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
83
85
*/
84
86
public function getStoreId ()
85
87
{
86
- $ storeId = $ this ->getRequest ()->getParam ('store ' );
87
- return (int ) $ storeId ;
88
+ $ storeId = (int )$ this ->getRequest ()->getParam ('store ' );
89
+
90
+ return $ storeId ;
88
91
}
89
92
90
93
/**
@@ -100,6 +103,7 @@ public function getDefaultConfigValue($field)
100
103
101
104
/**
102
105
* Returns min_sale_qty configuration for the ALL Customer Group
106
+ *
103
107
* @return int
104
108
*/
105
109
public function getDefaultMinSaleQty ()
@@ -124,6 +128,8 @@ public function getTabLabel()
124
128
}
125
129
126
130
/**
131
+ * Return Tab title.
132
+ *
127
133
* @return \Magento\Framework\Phrase
128
134
*/
129
135
public function getTabTitle ()
@@ -132,22 +138,24 @@ public function getTabTitle()
132
138
}
133
139
134
140
/**
135
- * @return bool
141
+ * @inheritdoc
136
142
*/
137
143
public function canShowTab ()
138
144
{
139
145
return true ;
140
146
}
141
147
142
148
/**
143
- * @return bool
149
+ * @inheritdoc
144
150
*/
145
151
public function isHidden ()
146
152
{
147
153
return false ;
148
154
}
149
155
150
156
/**
157
+ * Get availability status.
158
+ *
151
159
* @param string $fieldName
152
160
* @return bool
153
161
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
0 commit comments