clean baseline

This commit is contained in:
Frédéric France 2024-11-23 12:50:49 +01:00
parent 649051be6f
commit 4a300cfdf0
No known key found for this signature in database
GPG Key ID: CE25B0B7B53B9177
2 changed files with 3 additions and 9 deletions

View File

@ -2010,12 +2010,6 @@ parameters:
count: 2
path: ../../htdocs/admin/tools/ui/components/buttons.php
-
message: '#^Parameter \#7 \$params of function dolGetButtonAction expects array\{confirm\?\: array\{url\?\: string, title\?\: string, content\?\: string, action\-btn\-label\?\: string, cancel\-btn\-label\?\: string, modal\?\: bool\}, attr\?\: array\<string, mixed\>, areDropdownButtons\?\: bool, backtopage\?\: string, lang\?\: string, enabled\?\: bool, perm\?\: int\<0, 1\>, label\?\: string, \.\.\.\}, array\{confirm\: true\} given\.$#'
identifier: argument.type
count: 2
path: ../../htdocs/admin/tools/ui/components/test_buttons.php
-
message: '#^Variable \$massactionbutton in empty\(\) always exists and is always falsy\.$#'
identifier: empty.variable

View File

@ -154,7 +154,7 @@ llxHeader('', 'Documentation and examples for theme');
$url = '#'.$id;
$userRight = 1;
$params = array(
'confirm' => true
'confirm' => [],
);
print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight, $params);
@ -172,7 +172,7 @@ llxHeader('', 'Documentation and examples for theme');
'title' => 'Your title to display',
'action-btn-label' => 'Your confirm label',
'cancel-btn-label' => 'Your cancel label',
'content' => 'Content to display with <strong>HTML</strong> compatible <ul><li>test 01</li><li>test 02</li><li>test 03</li></ul>'
'content' => 'Content to display with <strong>HTML</strong> compatible <ul><li>test 01</li><li>test 02</li><li>test 03</li></ul>',
)
);
@ -193,7 +193,7 @@ llxHeader('', 'Documentation and examples for theme');
$url = '#'.$id;
$userRight = 0;
$params = array(
'confirm' => true,
'confirm' => [],
);
print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight, $params);