Skip to content

Commit dd0e86e

Browse files
committed
MAGETWO-54361: Configurable variation is displayed on category/product page when is out of stock
- Remove unused variable;
1 parent 30bf9b2 commit dd0e86e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev/tests/functional/tests/app/Magento/CatalogInventoryConfigurableProduct/Test/Constraint/AssertOutOfStockOptionIsAbsentOnOnProductPage.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ public function processAssert(
4848
* @param array $haystack
4949
* @return bool
5050
*/
51-
private function isOptionPresent($needle, array $haystack) {
51+
private function isOptionPresent($needle, array $haystack)
52+
{
5253
foreach ($haystack as $options) {
53-
foreach ($options as $key => $option) {
54+
foreach ($options as $option) {
5455
if ($option['title'] === $needle) {
5556
return false;
5657
}

0 commit comments

Comments
 (0)