Skip to content

Commit

Permalink
ENGCOM-4217: Static test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Feb 12, 2019
1 parent 8bdedc5 commit fde7fb1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/code/Magento/Catalog/Block/Product/View/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@
* See COPYING.txt for license details.
*/

/**
* Product options block
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Catalog\Block\Product\View;

use Magento\Catalog\Model\Product;
use Magento\Catalog\Model\Product\Option\Value;

/**
* Product options block
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @since 100.0.2
Expand Down Expand Up @@ -122,6 +120,8 @@ public function setProduct(Product $product = null)
}

/**
* Get group of option.
*
* @param string $type
* @return string
*/
Expand All @@ -143,6 +143,8 @@ public function getOptions()
}

/**
* Check if block has options.
*
* @return bool
*/
public function hasOptions()
Expand All @@ -162,7 +164,7 @@ public function hasOptions()
protected function _getPriceConfiguration($option)
{
$optionPrice = $option->getPrice(true);
if($option->getPriceType() != Value::TYPE_PERCENT) {
if ($option->getPriceType() !== Value::TYPE_PERCENT) {
$optionPrice = $this->pricingHelper->currency($optionPrice, false, false);
}
$data = [
Expand Down

0 comments on commit fde7fb1

Please sign in to comment.