2
0
forked from Wavyzz/dolibarr

try to fix doc (#35036)

* try to fix doc

* try to fix doc

* try to fix doc

* try to fix doc

* try to fix doc

* try to fix doc

* try to fix doc

* try to fix doc

* try to fix doc
This commit is contained in:
Frédéric FRANCE
2025-08-21 23:13:00 +02:00
committed by GitHub
parent c95ecef559
commit cd5df0bd68
3 changed files with 11 additions and 41 deletions

View File

@@ -6810,18 +6810,6 @@ parameters:
count: 1
path: ../../../htdocs/core/class/CMailFile.class.php
-
message: '#^Method CMailFile\:\:getValidAddress\(\) has parameter \$encode with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: ../../../htdocs/core/class/CMailFile.class.php
-
message: '#^Method CMailFile\:\:getValidAddress\(\) has parameter \$maxnumberofemail with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: ../../../htdocs/core/class/CMailFile.class.php
-
message: '#^Property CMailFile\:\:\$addr_bcc \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@@ -8730,24 +8718,6 @@ parameters:
count: 2
path: ../../../htdocs/core/lib/agenda.lib.php
-
message: '#^Function ajax_constantonoff\(\) has parameter \$entity with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: ../../../htdocs/core/lib/ajax.lib.php
-
message: '#^Function ajax_constantonoff\(\) has parameter \$revertonoff with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: ../../../htdocs/core/lib/ajax.lib.php
-
message: '#^Function ajax_constantonoff\(\) has parameter \$strict with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: ../../../htdocs/core/lib/ajax.lib.php
-
message: '#^Left side of && is always true\.$#'
identifier: booleanAnd.leftAlwaysTrue

View File

@@ -2218,9 +2218,9 @@ class CMailFile
* Return a formatted address string for SMTP protocol
*
* @param string $address Example: 'John Doe <john@doe.com>, Alan Smith <alan@smith.com>' or 'john@doe.com, alan@smith.com'
* @param int $format 0=auto, 1=emails with <>, 2=emails without <>, 3=auto + label between ", 4 label or email, 5 mailto link
* @param int $encode 0=No encode name, 1=Encode name to RFC2822
* @param int $maxnumberofemail 0=No limit. Otherwise, maximum number of emails returned ($address may contains several email separated with ','). Add '...' if there is more.
* @param int $format Set to 0 = auto, 1 = emails with <>, 2 = emails without <>, 3 = auto + label between "", 4 label or email, 5 mailto link
* @param int $encode Set to 0 = No encode name, 1 = Encode name to RFC2822
* @param int $maxnumberofemail Set to 0 = No limit. Otherwise, maximum number of emails returned ($address may contains several email separated with ','). Add '...' if there is more.
* @return string If format 0: '<john@doe.com>' or 'John Doe <john@doe.com>' or '=?UTF-8?B?Sm9obiBEb2U=?= <john@doe.com>'
* If format 1: '<john@doe.com>'
* If format 2: 'john@doe.com'

View File

@@ -1,9 +1,9 @@
<?php
/* Copyright (C) 2007-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2007-2015 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
/* Copyright (C) 2007-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2007-2015 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -663,10 +663,10 @@ function ajax_event($htmlname, $events)
* On/off button for constant
*
* @param string $code Name of constant
* @param array<string,string[]> $input Array of complementary actions to do if success ("disabled"|"enabled'|'set'|'del') => CSS element to switch, 'alert' => message to show, ... Example: array('disabled'=>array(0=>'cssid'))
* @param array<string,string[]> $input It's array of complementary actions to do if success ("disabled"|"enabled'|'set'|'del') => CSS element to switch, 'alert' => message to show, ... Example: array('disabled'=>array(0=>'cssid'))
* @param ?int $entity Entity. Current entity is used if null.
* @param int<0,1> $revertonoff 1=Revert on/off
* @param int<0,1> $strict 0=Default, 1=Only the complementary actions "disabled and "enabled" (found into $input) are processed. Use only "disabled" with delConstant and "enabled" with setConstant.
* @param int<0,1> $revertonoff 1 = Revert on/off
* @param int<0,1> $strict 0 = Default, 1=Only the complementary actions "disabled and "enabled" (found into $input) are processed. Use only "disabled" with delConstant and "enabled" with setConstant.
* @param int $forcereload Force to reload page if we click/change value (this is supported only when there is no 'alert' option in input)
* @param int<0,2> $marginleftonlyshort 1 = Add a short left margin on picto, 2 = Add a larger left margin on picto, 0 = No left margin.
* @param int<0,1> $forcenoajax 1 = Force to use a ahref link instead of ajax code.