10000 Rename internal vars · symfony/symfony@8e2e96f · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e2e96f

Browse files
committed
Rename internal vars
1 parent ed180f4 commit 8e2e96f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,19 @@ private function getConnectionResource()
124124
}
125125

126126
/**
127-
* @param string $dn Distinguished name to batch modify
128-
* @param iterable|UpdateOperation[] $modifications An array or iterable of Modification instances
127+
* @param string $dn Distinguished name to apply operations on
128+
* @param iterable|UpdateOperation[] $operations An array or iterable of Modification instances
129129
*
130130
* @throws UpdateOperationException in case of an error
131131
*/
132-
public function applyOperations(string $dn, iterable $modifications): void
132+
public function applyOperations(string $dn, iterable $operations): void
133133
{
134-
$modificationsMapped = array();
135-
foreach ($modifications as $modification) {
136-
$modificationsMapped[] = $modification->toArray();
134+
$operationsMapped = array();
135+
foreach ($operations as $modification) {
136+
$operationsMapped[] = $modification->toArray();
137137
}
138138

139-
if (!@ldap_modify_batch($this->getConnectionResource(), $dn, $modificationsMapped)) {
139+
if (!@ldap_modify_batch($this->getConnectionResource(), $dn, $operationsMapped)) {
140140
throw new UpdateOperationException(sprintf('Error executing batch modification on "%s": "%s".', $dn, ldap_error($this->getConnectionResource())));
141141
}
142142
}

0 commit comments

Comments
 (0)
0