Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit e945ba0

Browse files
committed
Fix static tests.
1 parent cf383a9 commit e945ba0

File tree

1 file changed

+12
-4
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab

1 file changed

+12
-4
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab/Inventory.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Inventory extends \Magento\Backend\Block\Widget implements \Magento\Backen
4141
* @param \Magento\CatalogInventory\Model\Source\Backorders $backorders
4242
* @param \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration
4343
* @param array $data
44+
* @param \Magento\Framework\Serialize\SerializerInterface|null $serializer
4445
*/
4546
public function __construct(
4647
\Magento\Backend\Block\Template\Context $context,
@@ -80,11 +81,13 @@ public function getFieldSuffix()
8081
* Retrieve current store id
8182
*
8283
* @return int
84+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
8385
*/
8486
public function getStoreId()
8587
{
86-
$storeId = $this->getRequest()->getParam('store');
87-
return (int) $storeId;
88+
$storeId = (int)$this->getRequest()->getParam('store');
89+
90+
return $storeId;
8891
}
8992

9093
/**
@@ -100,6 +103,7 @@ public function getDefaultConfigValue($field)
100103

101104
/**
102105
* Returns min_sale_qty configuration for the ALL Customer Group
106+
*
103107
* @return int
104108
*/
105109
public function getDefaultMinSaleQty()
@@ -124,6 +128,8 @@ public function getTabLabel()
124128
}
125129

126130
/**
131+
* Return Tab title.
132+
*
127133
* @return \Magento\Framework\Phrase
128134
*/
129135
public function getTabTitle()
@@ -132,22 +138,24 @@ public function getTabTitle()
132138
}
133139

134140
/**
135-
* @return bool
141+
* @inheritdoc
136142
*/
137143
public function canShowTab()
138144
{
139145
return true;
140146
}
141147

142148
/**
143-
* @return bool
149+
* @inheritdoc
144150
*/
145151
public function isHidden()
146152
{
147153
return false;
148154
}
149155

150156
/**
157+
* Get availability status.
158+
*
151159
* @param string $fieldName
152160
* @return bool
153161
* @SuppressWarnings(PHPMD.UnusedFormalParameter)

0 commit comments

Comments
 (0)