diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
index 1bbd13d9022..e6bcc7ad12e 100644
--- a/.php-cs-fixer.dist.php
+++ b/.php-cs-fixer.dist.php
@@ -8,6 +8,8 @@ $finder = (new PhpCsFixer\Finder())
'custom',
'documents',
'doctemplates',
+ 'vendor',
+ 'install/doctemplates',
'htdocs/custom',
'htdocs/includes',
'htdocs/install/doctemplates',
diff --git a/dev/tools/php-cs-fixer/run-php-cs-fixer.sh b/dev/tools/php-cs-fixer/run-php-cs-fixer.sh
index b62befcf011..d8c9d4ae6bb 100755
--- a/dev/tools/php-cs-fixer/run-php-cs-fixer.sh
+++ b/dev/tools/php-cs-fixer/run-php-cs-fixer.sh
@@ -36,7 +36,7 @@ MINPHPVERSION="7.0"
echo "***** run-php-cs-fixer.sh *****"
if [ "x$1" = "x" ]; then
- echo "Syntax: run-php-cs-fixer.sh check|fix [path]"
+ echo "Syntax: run-php-cs-fixer.sh check|fix [path_from_root_project]"
exit 1;
fi
diff --git a/htdocs/adherents/type_translation.php b/htdocs/adherents/type_translation.php
index 55ee3bbd697..f28198d94b1 100644
--- a/htdocs/adherents/type_translation.php
+++ b/htdocs/adherents/type_translation.php
@@ -82,7 +82,7 @@ if ($action == 'vadd' && $cancel != $langs->trans("Cancel") && $user->hasRight('
if ($forcelangprod == $current_lang) {
$object->label = GETPOST("libelle", 'alphanohtml');
$object->description = dol_htmlcleanlastbr(GETPOST("desc", 'restricthtml'));
- //$object->other = dol_htmlcleanlastbr(GETPOST("other", 'restricthtml'));
+ //$object->other = dol_htmlcleanlastbr(GETPOST("other", 'restricthtml'));
} else {
$object->multilangs[$forcelangprod]["label"] = GETPOST("libelle", 'alphanohtml');
$object->multilangs[$forcelangprod]["description"] = dol_htmlcleanlastbr(GETPOST("desc", 'restricthtml'));
diff --git a/htdocs/admin/emailcollector_card.php b/htdocs/admin/emailcollector_card.php
index a6ff78a0ba0..1f5ce168fa5 100644
--- a/htdocs/admin/emailcollector_card.php
+++ b/htdocs/admin/emailcollector_card.php
@@ -560,7 +560,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
$morehtml .= '
'.imap_last_error();
}
dol_syslog("Error ".$morehtml, LOG_WARNING);
- //var_dump(imap_errors())
+ //var_dump(imap_errors())
} else {
dol_syslog("Imap connected. Now we call imap_num_msg()");
$morehtml .= imap_num_msg($connection);
diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index 78fed9249ea..cf8c1ef77aa 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -918,7 +918,7 @@ if ($mode == 'common' || $mode == 'commonkanban') {
$urlpage = $page;
if ($i++) {
$codetoconfig .= ''.img_picto(ucfirst($page), "setup").'';
- // print ''.ucfirst($page).' ';
+ // print ''.ucfirst($page).' ';
} else {
if (preg_match('/^([^@]+)@([^@]+)$/i', $urlpage, $regs)) {
$urltouse = dol_buildpath('/'.$regs[2].'/admin/'.$regs[1], 1);
diff --git a/htdocs/admin/multicurrency.php b/htdocs/admin/multicurrency.php
index 5afd1ce8c85..39f0d3c0108 100644
--- a/htdocs/admin/multicurrency.php
+++ b/htdocs/admin/multicurrency.php
@@ -132,7 +132,7 @@ if ($action == 'add_currency') {
if (GETPOSTISSET('modify_apilayer')) {
dolibarr_set_const($db, 'MULTICURRENCY_APP_ID', GETPOST('MULTICURRENCY_APP_ID', 'alpha'));
dolibarr_set_const($db, 'MULTICURRENCY_APP_SOURCE', GETPOST('MULTICURRENCY_APP_SOURCE', 'alpha'));
- //dolibarr_set_const($db, 'MULTICURRENCY_ALTERNATE_SOURCE', GETPOST('MULTICURRENCY_ALTERNATE_SOURCE', 'alpha'));
+ //dolibarr_set_const($db, 'MULTICURRENCY_ALTERNATE_SOURCE', GETPOST('MULTICURRENCY_ALTERNATE_SOURCE', 'alpha'));
} else {
$multiurrency = new MultiCurrency($db);
$result = $multiurrency->syncRates(getDolGlobalString('MULTICURRENCY_APP_ID'));
diff --git a/htdocs/admin/notification.php b/htdocs/admin/notification.php
index 78765aae04e..741633bf678 100644
--- a/htdocs/admin/notification.php
+++ b/htdocs/admin/notification.php
@@ -137,7 +137,7 @@ if ($action == 'setfixednotif' && $user->admin) {
$newkey = 'NOTIFICATION_FIXEDEMAIL_'.$reg[1].'_THRESHOLD_HIGHER_'.((int) GETPOST($shortkey.'_amount'));
$newval = GETPOST($shortkey.'_key');
- //print $newkey.' - '.$newval.'
';
+ //print $newkey.' - '.$newval.'
';
} elseif (preg_match('/^NOTIF_(.*)_new_key/', $key, $reg)) {
// Add a new entry
$newkey = 'NOTIFICATION_FIXEDEMAIL_'.$reg[1].'_THRESHOLD_HIGHER_'.((int) GETPOST($shortkey.'_amount'));
@@ -304,7 +304,7 @@ foreach ($listofnotifiedevents as $notifiedevent) {
$model = 'expensereport_send';
} elseif ($notifiedevent['elementtype'] == 'order_supplier') {
$model = 'order_supplier_send';
- // } elseif ($notifiedevent['elementtype'] == 'invoice_supplier') $model = 'invoice_supplier_send';
+ // } elseif ($notifiedevent['elementtype'] == 'invoice_supplier') $model = 'invoice_supplier_send';
} elseif ($notifiedevent['elementtype'] == 'member') {
$model = 'member';
}
diff --git a/htdocs/admin/system/security.php b/htdocs/admin/system/security.php
index e45d581c35f..58a94b273bb 100644
--- a/htdocs/admin/system/security.php
+++ b/htdocs/admin/system/security.php
@@ -313,7 +313,7 @@ print '
';
print '$dolibarr_main_restrict_ip: ';
if (empty($dolibarr_main_restrict_ip)) {
print ''.$langs->trans("None").'';
- //print ' ('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("IPsOfUsers")).')';
+//print ' ('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("IPsOfUsers")).')';
} else {
print $dolibarr_main_restrict_ip;
}
@@ -332,7 +332,7 @@ if (!getDolGlobalString('SECURITY_DISABLE_TEST_ON_OBFUSCATED_CONF')) {
print '$dolibarr_main_db_pass: ';
if (!empty($dolibarr_main_db_pass) && empty($dolibarr_main_db_encrypted_pass)) {
print img_picto('', 'warning').' '.$langs->trans("DatabasePasswordNotObfuscated").' ('.$langs->trans("Recommended").': '.$langs->trans("SetOptionTo", $langs->transnoentitiesnoconv("MainDbPasswordFileConfEncrypted"), yn(1)).')';
- //print ' ('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("IPsOfUsers")).')';
+ //print ' ('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("IPsOfUsers")).')';
} else {
print img_picto('', 'tick').' '.$langs->trans("DatabasePasswordObfuscated");
}
@@ -350,7 +350,7 @@ print ' -> PHP streams allowed = ';
$arrayofstreams = stream_get_wrappers();
if (!empty($arrayofstreams)) {
sort($arrayofstreams);
- print (join(',', $arrayofstreams)).' ('.$langs->trans("Recommended").': '.$langs->trans("TryToKeepOnly", 'file,http,https,php').')'."\n";
+ print(join(',', $arrayofstreams)).' ('.$langs->trans("Recommended").': '.$langs->trans("TryToKeepOnly", 'file,http,https,php').')'."\n";
}
print '
';
diff --git a/htdocs/admin/tools/dolibarr_import.php b/htdocs/admin/tools/dolibarr_import.php
index 9789527d024..1165e66d7e3 100644
--- a/htdocs/admin/tools/dolibarr_import.php
+++ b/htdocs/admin/tools/dolibarr_import.php
@@ -144,76 +144,76 @@ if (in_array($type, array('mysql', 'mysqli'))) {
print '
'.$langs->trans("ErrorPHPDoesNotSupport", "MBString")."
'.$langs->trans("PHPSupport", "MBString")."
'.$langs->trans("ErrorPHPDoesNotSupport", "JSON")."
'.$langs->trans("PHPSupport", "JSON")."
'.$langs->trans("ErrorPHPDoesNotSupport", "GD")."
'.$langs->trans("PHPSupport", "GD")."
'.$langs->trans("ErrorPHPDoesNotSupport", "Curl")."
'.$langs->trans("PHPSupport", "Curl")."
'.$langs->trans("ErrorPHPDoesNotSupport", "Xml")."
'.$langs->trans("PHPSupport", "Xml")."
'.$langs->trans("ErrorPHPDoesNotSupport", "UTF8")."
'.$langs->trans("PHPSupport", "UTF8")."
'.$langs->trans("ErrorPHPDoesNotSupport", "Intl")."
'.$langs->trans("PHPSupport", "Intl")."
'.$langs->trans("ErrorPHPDoesNotSupport", "IMAP")."
'.$langs->trans("PHPSupport", "IMAP")."
'.$langs->trans("ErrorPHPDoesNotSupport", "ZIP")."
'.$langs->trans("PHPSupport", "ZIP")."