* Fix sonar warning in wg.
This commit is contained in:
@@ -559,12 +559,12 @@ class wg
|
||||
|
||||
public static function getPageCSS(): string|false
|
||||
{
|
||||
return false;
|
||||
return false; // No css
|
||||
}
|
||||
|
||||
public static function getPageJS(): string|false
|
||||
{
|
||||
return false;
|
||||
return false; // No js
|
||||
}
|
||||
|
||||
protected static function checkPageResources()
|
||||
|
||||
@@ -53,8 +53,14 @@ class actionItem extends wg
|
||||
{
|
||||
list($dropdown, $items, $icon, $text, $trailingIcon, $active, $disabled, $badge, $props, $caret) = $this->prop(array('dropdown', 'items', 'icon', 'text', 'trailingIcon', 'active', 'disabled', 'badge', 'props', 'caret'));
|
||||
|
||||
if(is_string($badge)) $badge = label($badge);
|
||||
else if(is_array($badge)) $badge = label(set($badge));
|
||||
if(is_string($badge))
|
||||
{
|
||||
$badge = label($badge);
|
||||
}
|
||||
elseif(is_array($badge))
|
||||
{
|
||||
$badge = label(set($badge));
|
||||
}
|
||||
|
||||
$dropdown = new dropdown
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user