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

Commit f1e61a6

Browse files
committed
Formatting.
1 parent f967607 commit f1e61a6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Auth/Importer.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ public function run(User $user, Model $model, array $credentials = [])
2222
// We'll check if we've been given a password and that
2323
// syncing password is enabled. Otherwise we'll
2424
// use a random 16 character string.
25-
if (array_key_exists('password', $credentials) && $this->isSyncingPasswords()) {
25+
if (
26+
array_key_exists('password', $credentials) &&
27+
$this->isSyncingPasswords()
28+
) {
2629
$password = $credentials['password'];
2730
} else {
2831
$password = str_random();
@@ -31,7 +34,8 @@ public function run(User $user, Model $model, array $credentials = [])
3134
// If the model has a set mutator for the password then we'll
3235
// assume that we're using a custom encryption method for
3336
// passwords. Otherwise we'll bcrypt it normally.
34-
$model->password = ($model->hasSetMutator('password') ? $password : bcrypt($password));
37+
$model->password = $model->hasSetMutator('password') ?
38+
$password : bcrypt($password);
3539

3640
// Synchronize other LDAP attributes on the model.
3741
$this->syncModelAttributes($user, $model);

0 commit comments

Comments
 (0)