From 7f84cb5d726befeae9c341bbde58e9455ccbec65 Mon Sep 17 00:00:00 2001 From: Pascal Brouwers Date: Thu, 22 Sep 2016 16:42:24 +0200 Subject: [PATCH] Fix maximum limit of 120 characters per line --- app/code/Magento/Swatches/Model/Plugin/EavAttribute.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Swatches/Model/Plugin/EavAttribute.php b/app/code/Magento/Swatches/Model/Plugin/EavAttribute.php index 5c83ebd6f562e..b8d41884ec448 100644 --- a/app/code/Magento/Swatches/Model/Plugin/EavAttribute.php +++ b/app/code/Magento/Swatches/Model/Plugin/EavAttribute.php @@ -174,7 +174,9 @@ protected function prepareOptionIds(array $optionsArray) { if (isset($optionsArray['value']) && is_array($optionsArray['value'])) { foreach (array_keys($optionsArray['value']) as $optionId) { - if (isset($optionsArray['delete']) && isset($optionsArray['delete'][$optionId]) && $optionsArray['delete'][$optionId] == 1) { + if (isset($optionsArray['delete']) && isset($optionsArray['delete'][$optionId]) + && $optionsArray['delete'][$optionId] == 1 + ) { unset($optionsArray['value'][$optionId]); } }