Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 535b717

Browse files
committed
Small tweak.
1 parent fe59330 commit 535b717

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Traits/ImportsUsers.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,9 @@ protected function bindAdldapToModel(User $user, Model $model)
8989
protected function syncModelFromAdldap(User $user, Model $model)
9090
{
9191
foreach ($this->getSyncAttributes() as $modelField => $adField) {
92-
if ($this->isAttributeCallback($adField)) {
93-
$value = $this->handleAttributeCallback($user, $adField);
94-
} else {
95-
$value = $this->handleAttributeRetrieval($user, $adField);
96-
}
92+
$value = $this->isAttributeCallback($adField) ?
93+
$this->handleAttributeCallback($user, $adField) :
94+
$this->handleAttributeRetrieval($user, $adField);
9795

9896
$model->{$modelField} = $value;
9997
}

0 commit comments

Comments
 (0)