Skip to content

Commit 7b653f3

Browse files
committed
#544: Configurable Page Builder Full Screen Mode
- Fixing Static Test(s)
1 parent c4250cc commit 7b653f3

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/PageBuilder/Component/Form/Element

1 file changed

+3
-1
lines changed

app/code/Magento/PageBuilder/Component/Form/Element/Wysiwyg.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class Wysiwyg extends \Magento\Ui\Component\Form\Element\Wysiwyg
3939
* @param array $config
4040
* @param PageBuilderConfig|null $pageBuilderConfig
4141
* @param bool $overrideSnapshot
42+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
4243
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
44+
* @throws \Magento\Framework\Exception\NoSuchEntityException
4345
*/
4446
public function __construct(
4547
ContextInterface $context,
@@ -65,7 +67,7 @@ public function __construct(
6567
$config['wysiwyg'] = (bool)$attribute->getIsWysiwygEnabled();
6668
}
6769
} catch (NoSuchEntityException $e) {
68-
// This model is used by non product attributes
70+
throw new NoSuchEntityException();
6971
}
7072
}
7173

0 commit comments

Comments
 (0)