Skip to content

Commit cb0b3d4

Browse files
committed
magento2/issues/12087: Fix static test.
1 parent e0eb4b0 commit cb0b3d4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/code/Magento/Widget/Block/Adminhtml/Widget/Options.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public function addFields()
136136
* @return \Magento\Framework\Data\Form\Element\AbstractElement
137137
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
138138
* @SuppressWarnings(PHPMD.NPathComplexity)
139+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
139140
*/
140141
protected function _addField($parameter)
141142
{

app/code/Magento/Widget/Model/Widget.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ public function getWidgetsArray($filters = [])
293293
* @param array $params Pre-configured Widget Params
294294
* @param bool $asIs Return result as widget directive(true) or as placeholder image(false)
295295
* @return string Widget directive ready to parse
296+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
296297
*/
297298
public function getWidgetDeclaration($type, $params = [], $asIs = true)
298299
{
@@ -460,6 +461,8 @@ protected function sortParameters($firstElement, $secondElement)
460461
}
461462

462463
/**
464+
* Encode reserved chars
465+
*
463466
* @param $string
464467
* @return string|string[]
465468
*/
@@ -478,6 +481,8 @@ private function encodeReservedChars($string)
478481
}
479482

480483
/**
484+
* Decode reserved chars
485+
*
481486
* @param $string
482487
* @return array
483488
*/
@@ -496,6 +501,8 @@ public function decodeReservedChars($string)
496501
}
497502

498503
/**
504+
* Is text type Widget parameter
505+
*
499506
* @param $widget
500507
* @param $name
501508
* @return bool

0 commit comments

Comments
 (0)