* Qual: Fix phan notice
Fix PhanTypeMismatchArgumentNullable: Argument 1 ($stringtosanitize) is $origin of type ?\CommonObject|?\CommonTrigger|?\DolDeprecationHandler|?array{}|?non-empty-array<mixed,mixed>|?non-empty-string|?string but \DoliDB::sanitize() takes string defined at htdocs/core/db/DoliDB.class.php:187 (expected type to be non-nullable)
* Qual: Fix PhanPluginSuspiciousParamPosition
# Qual: Fix PhanPluginSuspiciousParamPosition
Fix notices by using intermediate variable name that matches the parameter of the called function
where the original parameter name matches the name of a parameter in another position
* Qual: Fix PhanTypeMismatchArgument
# Qual: Fix PhanTypeMismatchArgument
Fix PhanTypeMismatchArgument: Argument 1 ($stringtosanitize) is $local of type int but \DoliDB::sanitize() takes string
in get_localtax_by_third($local) where local is an int already.
So use cast to (int) instead.
Also limit typehint of local to 1 and 2 which are the only allowed values
* Qual: Fix PhanTypeMismatchArgument in cloneCategories()
# Qual: Fix PhanTypeMismatchArgument in cloneCategories()
The argument $toId which is already an integer was passed to DoliDB::sanitize() which expects a string.
So casting to (int) instead to fix this.
* Qual: Ignore complex PhanUndeclaredStaticProperty
# Qual: Ignore complex PhanUndeclaredStaticProperty
Accessing static property provided by a trait on some classes - ignore the phan notice
* Qual: Phan ignore PhanUndeclaredMethod for getPossibleLevels
* Qual: Add typing hints for phan
* Qual: Add typehint for phan
* Qual: Remove redundant semicolon in objectonoff.php
# Qual: Remove redundant semicolon in objectonoff.php
Removed an unnecessary semicolon in the error handling loop of objectonoff.php.
* Qual: Fix PhanPossiblyUndeclaredGlobalVariable
* Qual: Ignore PhanPossiblyUndeclaredGlobalVariable
* Qual: Update spelling for pre-select variants
# Qual: Update spelling for pre-select variants
In English, preselect is without the hyphen. Update text and made some translations
related to preselect.
* Qual: Update composant to component and/or adequate translation.
# Qual: Update composant to component and/or adequate translation.
"Composant(s)" was mostly referenced in french file/class comments.
Updated
* Qual: Fix misspellings related to "criteria"
# Qual: Fix misspellings related to "criteria"
* Qual: Fix produt misspellings
# Qual: Fix produt misspellings
Change 'produt' to 'product'.
* Qual: Update French comments with "composants"
#Qual: Update French comments with "composants"
- Translating French comments to English (avoid codespell notice)
* Qual: Fixed typo 'bad practive' to 'bad practice'
# Qual: Fixed typo 'bad practive' to 'bad practice'
* Qual: Update phan.yml to exclude specific files from analysis
- Added file exclusion pattern to match phan configuration
- Added check for empty file list to avoid unnecessary phan execution
* Qual: Update file filtering in phan.yml workflow
The change updates the file filtering process in the phan.yml workflow to correctly redirect the output of the grep command to a temporary file.
* Qual: Ignore $systemfunction always exists
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Set ui tools baseUrl
Set the URL of the UI tools in a variable in the documentation class so that it can be easily reused
* Group index factorization
* Home page and contributing
Update home page and add a page to contribute to this documentation
* Remove blank line
* Remove blank line 2 and indentation
* Add missing translations / remove unused
* remove trailing text
* Remove indentation
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>