Skip to content

Commit

Permalink
magento2/issues/12087: Fix static test.
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Kilo committed Jul 7, 2020
1 parent e0eb4b0 commit cb0b3d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Widget/Block/Adminhtml/Widget/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public function addFields()
* @return \Magento\Framework\Data\Form\Element\AbstractElement
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
protected function _addField($parameter)
{
Expand Down
7 changes: 7 additions & 0 deletions app/code/Magento/Widget/Model/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ public function getWidgetsArray($filters = [])
* @param array $params Pre-configured Widget Params
* @param bool $asIs Return result as widget directive(true) or as placeholder image(false)
* @return string Widget directive ready to parse
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
public function getWidgetDeclaration($type, $params = [], $asIs = true)
{
Expand Down Expand Up @@ -460,6 +461,8 @@ protected function sortParameters($firstElement, $secondElement)
}

/**
* Encode reserved chars
*
* @param $string
* @return string|string[]
*/
Expand All @@ -478,6 +481,8 @@ private function encodeReservedChars($string)
}

/**
* Decode reserved chars
*
* @param $string
* @return array
*/
Expand All @@ -496,6 +501,8 @@ public function decodeReservedChars($string)
}

/**
* Is text type Widget parameter
*
* @param $widget
* @param $name
* @return bool
Expand Down

0 comments on commit cb0b3d4

Please sign in to comment.