Skip to content

Commit fde7fb1

Browse files
committed
ENGCOM-4217: Static test fix.
1 parent 8bdedc5 commit fde7fb1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

app/code/Magento/Catalog/Block/Product/View/Options.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Product options block
9-
*
10-
* @author Magento Core Team <[email protected]>
11-
*/
127
namespace Magento\Catalog\Block\Product\View;
138

149
use Magento\Catalog\Model\Product;
1510
use Magento\Catalog\Model\Product\Option\Value;
1611

1712
/**
13+
* Product options block
14+
*
15+
* @author Magento Core Team <[email protected]>
1816
* @api
1917
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2018
* @since 100.0.2
@@ -122,6 +120,8 @@ public function setProduct(Product $product = null)
122120
}
123121

124122
/**
123+
* Get group of option.
124+
*
125125
* @param string $type
126126
* @return string
127127
*/
@@ -143,6 +143,8 @@ public function getOptions()
143143
}
144144

145145
/**
146+
* Check if block has options.
147+
*
146148
* @return bool
147149
*/
148150
public function hasOptions()
@@ -162,7 +164,7 @@ public function hasOptions()
162164
protected function _getPriceConfiguration($option)
163165
{
164166
$optionPrice = $option->getPrice(true);
165-
if($option->getPriceType() != Value::TYPE_PERCENT) {
167+
if ($option->getPriceType() !== Value::TYPE_PERCENT) {
166168
$optionPrice = $this->pricingHelper->currency($optionPrice, false, false);
167169
}
168170
$data = [

0 commit comments

Comments
 (0)