diff --git a/htdocs/admin/ldap_contacts.php b/htdocs/admin/ldap_contacts.php
index c515f7a06d2..f97b35f1968 100644
--- a/htdocs/admin/ldap_contacts.php
+++ b/htdocs/admin/ldap_contacts.php
@@ -323,7 +323,7 @@ if (function_exists("ldap_connect")) {
print "
\n";
print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn, $info));
+ print nl2br($ldap->dumpContent($dn, $info));
print "\n
";
} else {
print img_picto('', 'error').' ';
diff --git a/htdocs/admin/ldap_groups.php b/htdocs/admin/ldap_groups.php
index e746027b8e4..c3021c2c2c2 100644
--- a/htdocs/admin/ldap_groups.php
+++ b/htdocs/admin/ldap_groups.php
@@ -272,7 +272,7 @@ if (function_exists("ldap_connect")) {
print "
\n";
print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn, $info));
+ print nl2br($ldap->dumpContent($dn, $info));
print "\n
";
} else {
print img_picto('', 'error').' ';
diff --git a/htdocs/admin/ldap_members.php b/htdocs/admin/ldap_members.php
index c151bcae9f3..fda38fe67b8 100644
--- a/htdocs/admin/ldap_members.php
+++ b/htdocs/admin/ldap_members.php
@@ -474,7 +474,7 @@ if (function_exists("ldap_connect")) {
print "
\n";
print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn, $info));
+ print nl2br($ldap->dumpContent($dn, $info));
print "\n
";
} else {
print img_picto('', 'error').' ';
diff --git a/htdocs/admin/ldap_members_types.php b/htdocs/admin/ldap_members_types.php
index 11ffa2de41e..277cac9a8fc 100644
--- a/htdocs/admin/ldap_members_types.php
+++ b/htdocs/admin/ldap_members_types.php
@@ -235,7 +235,7 @@ if (function_exists("ldap_connect")) {
print "
\n";
print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn, $info));
+ print nl2br($ldap->dumpContent($dn, $info));
print "\n
";
} else {
print img_picto('', 'error').' ';
diff --git a/htdocs/admin/ldap_users.php b/htdocs/admin/ldap_users.php
index 50b8656abed..e6a07f122e1 100644
--- a/htdocs/admin/ldap_users.php
+++ b/htdocs/admin/ldap_users.php
@@ -446,7 +446,7 @@ if (function_exists("ldap_connect")) {
print "
\n";
print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn, $info));
+ print nl2br($ldap->dumpContent($dn, $info));
print "\n
";
} else {
print img_picto('', 'error').' ';
diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php
index b477cb35632..d8eacddccb8 100644
--- a/htdocs/core/class/ldap.class.php
+++ b/htdocs/core/class/ldap.class.php
@@ -804,7 +804,6 @@ class Ldap
return -1;
}
- // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Build an LDAP message
*
@@ -812,9 +811,8 @@ class Ldap
* @param array $info Attributes array
* @return string Content of file
*/
- public function dump_content($dn, $info)
+ public function dumpContent($dn, $info)
{
- // phpcs:enable
$content = '';
// Create file content
@@ -854,7 +852,7 @@ class Ldap
global $conf;
$ldapDirTemp = $conf->ldap->dir_temp;
// Create content
- $content = $this->dump_content($dn, $info);
+ $content = $this->dumpContent($dn, $info);
//Create directory & file
$result = dol_mkdir($ldapDirTemp);