* Fix sonar warning in wg.

This commit is contained in:
朱金勇
2023-05-29 02:11:32 +00:00
parent aa7bd7868a
commit 35d87cfea8
2 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -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()
+8 -2
View File
@@ -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
(