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

Commit c3b2190

Browse files
committed
Rename methods to better represent their operation
1 parent 93d7278 commit c3b2190

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Commands/Import.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ protected function findUser()
8888
return $query->where(
8989
Resolver::getDatabaseIdColumn(),
9090
'=',
91-
$this->getObjectGuid()
91+
$this->getUserObjectGuid()
9292
)->orWhere(
9393
Resolver::getDatabaseUsernameColumn(),
9494
'=',
95-
$this->getUsername()
95+
$this->getUserUsername()
9696
)->first();
9797
}
9898

@@ -107,7 +107,7 @@ protected function sync(Model $model)
107107
{
108108
// Set the users LDAP identifier.
109109
$model->setAttribute(
110-
Resolver::getDatabaseIdColumn(), $this->getObjectGuid()
110+
Resolver::getDatabaseIdColumn(), $this->getUserObjectGuid()
111111
);
112112

113113
foreach ($this->getLdapSyncAttributes() as $modelField => $ldapField) {
@@ -137,7 +137,7 @@ protected function sync(Model $model)
137137
*
138138
* @throws UnexpectedValueException
139139
*/
140-
protected function getUsername()
140+
protected function getUserUsername()
141141
{
142142
$attribute = Resolver::getLdapDiscoveryAttribute();
143143

@@ -159,7 +159,7 @@ protected function getUsername()
159159
*
160160
* @throws UnexpectedValueException
161161
*/
162-
protected function getObjectGuid()
162+
protected function getUserObjectGuid()
163163
{
164164
$guid = $this->user->getConvertedGuid();
165165

0 commit comments

Comments
 (0)