Scrutinizer Auto-Fixes

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/eldy/dolibarr/inspections/128b4bb3-f689-4974-8fd7-a7b93d012d3f

Enabled analysis tools:
 - PHP Analyzer
Merge pull request #1 from eldy/scrutinizer-patch-1

Scrutinizer Auto-Fixes
Scrutinizer Auto-Fixes

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/eldy/dolibarr/inspections/dce98b05-0037-4277-b1e9-7fd6405a6cd6

Enabled analysis tools:
 - PHP Analyzer
Merge pull request #2 from eldy/scrutinizer-patch-2

Scrutinizer Auto-Fixes
Revert "Scrutinizer Auto-Fixes"
Merge pull request #3 from eldy/revert-1-scrutinizer-patch-1

Revert "Scrutinizer Auto-Fixes"
Merge pull request #1762 from eldy/develop

A smaller PR from scrutinizer with good advices on doc