Skip to content

Commit 7f77f12

Browse files
committed
style: break long lines
1 parent b1bffb4 commit 7f77f12

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/Models/UserModel.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,22 @@ public function findByCredentials(array $credentials): ?User
179179

180180
// any of the credentials used should be case-insensitive
181181
foreach ($credentials as $key => $value) {
182-
$this->where('LOWER(' . $this->db->protectIdentifiers("users.{$key}") . ')', strtolower($value));
182+
$this->where(
183+
'LOWER(' . $this->db->protectIdentifiers("users.{$key}") . ')',
184+
strtolower($value)
185+
);
183186
}
184187

185188
if (! empty($email)) {
186-
$data = $this->select('users.*, auth_identities.secret as email, auth_identities.secret2 as password_hash')
189+
$data = $this->select(
190+
'users.*, auth_identities.secret as email, auth_identities.secret2 as password_hash'
191+
)
187192
->join('auth_identities', 'auth_identities.user_id = users.id')
188193
->where('auth_identities.type', Session::ID_TYPE_EMAIL_PASSWORD)
189-
->where('LOWER(' . $this->db->protectIdentifiers('auth_identities.secret') . ')', strtolower($email))
194+
->where(
195+
'LOWER(' . $this->db->protectIdentifiers('auth_identities.secret') . ')',
196+
strtolower($email)
197+
)
190198
->asArray()
191199
->first();
192200

0 commit comments

Comments
 (0)