Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Dec 7, 2018
1 parent cf383a9 commit e945ba0
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Inventory extends \Magento\Backend\Block\Widget implements \Magento\Backen
* @param \Magento\CatalogInventory\Model\Source\Backorders $backorders
* @param \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration
* @param array $data
* @param \Magento\Framework\Serialize\SerializerInterface|null $serializer
*/
public function __construct(
\Magento\Backend\Block\Template\Context $context,
Expand Down Expand Up @@ -80,11 +81,13 @@ public function getFieldSuffix()
* Retrieve current store id
*
* @return int
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
*/
public function getStoreId()
{
$storeId = $this->getRequest()->getParam('store');
return (int) $storeId;
$storeId = (int)$this->getRequest()->getParam('store');

return $storeId;
}

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

/**
* Returns min_sale_qty configuration for the ALL Customer Group
*
* @return int
*/
public function getDefaultMinSaleQty()
Expand All @@ -124,6 +128,8 @@ public function getTabLabel()
}

/**
* Return Tab title.
*
* @return \Magento\Framework\Phrase
*/
public function getTabTitle()
Expand All @@ -132,22 +138,24 @@ public function getTabTitle()
}

/**
* @return bool
* @inheritdoc
*/
public function canShowTab()
{
return true;
}

/**
* @return bool
* @inheritdoc
*/
public function isHidden()
{
return false;
}

/**
* Get availability status.
*
* @param string $fieldName
* @return bool
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
Expand Down

0 comments on commit e945ba0

Please sign in to comment.