-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
DRY:
phpopenldaper/src/PHPOpenLDAPer/LDAPEntry.php
Lines 311 to 312 in 8518116
| $attr = strtolower($attr); | |
| $this->write([$attr => $this->convertToArray($value)]); |
phpopenldaper/src/PHPOpenLDAPer/LDAPEntry.php
Lines 323 to 325 in 8518116
| $attr = strtolower($attr); | |
| $old_value = $this->getAttribute($attr); | |
| $this->write([$attr => array_merge($old_value, $this->convertToArray($value))]); |
phpopenldaper/src/PHPOpenLDAPer/LDAPEntry.php
Line 335 in 8518116
| $this->write(array_map([$this, "convertToArray"], array_change_key_case($arr, CASE_LOWER))); |
phpopenldaper/src/PHPOpenLDAPer/LDAPEntry.php
Lines 397 to 402 in 8518116
| $attr = strtolower($attr); | |
| if (!$this->exists()) { | |
| throw new RuntimeException("cannot get attribute from nonexistent entry"); | |
| } | |
| if (array_key_exists($attr, $this->object)) { | |
| return $this->convertToArray($this->object[$attr]); |
phpopenldaper/src/PHPOpenLDAPer/LDAPEntry.php
Lines 422 to 423 in 8518116
| $key = strtolower($key); | |
| $output[$key] = $this->convertToArray($val); |
Metadata
Metadata
Assignees
Labels
No labels