From 5e079536c9c0ce866290c88796e1dd1181471ba3 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 31 Mar 2019 10:31:43 +0200 Subject: [PATCH] [LDAP] fixed typos and CS --- .../Component/Ldap/Adapter/EntryManagerInterface.php | 1 + src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php b/src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php index 34b879a6f0..06ef4ddeec 100644 --- a/src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php +++ b/src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php @@ -22,6 +22,7 @@ use Symfony\Component\Ldap\Exception\NotBoundException; * @author Bob van de Vijver * @author Kevin Schuurmans * + * The move() methods must be added to the interface in Symfony 5.0 * @method void move(Entry $entry, string $newParent) Moves an entry on the Ldap server */ interface EntryManagerInterface diff --git a/src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php b/src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php index 68778cb42d..31559ec824 100644 --- a/src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php +++ b/src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php @@ -114,7 +114,7 @@ class EntryManager implements EntryManagerInterface * Moves an entry on the Ldap server. * * @throws NotBoundException if the connection has not been previously bound. - * @throws LdapException if an error is thrown during the rename operation. + * @throws LdapException if an error is thrown during the rename operation. */ public function move(Entry $entry, string $newParent) { @@ -156,10 +156,10 @@ class EntryManager implements EntryManagerInterface } } - private function parseRdnFromEntry(Entry $entry) + private function parseRdnFromEntry(Entry $entry) { if (!preg_match('/^([^,]+),/', $entry->getDn(), $matches)) { - throw new LdapException(sprintf('Entry "%s" malformed, could not parse RDN', $entry->getDn())); + throw new LdapException(sprintf('Entry "%s" malformed, could not parse RDN.', $entry->getDn())); } return $matches[1];