Skip to content

Commit 5dcd870

Browse files
committed
refactor: run rector and cs-fixer
1 parent 5cd8321 commit 5dcd870

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Authentication/Passwords/NothingPersonalValidator.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ protected function isNotPersonal(string $password, ?Authenticatable $user)
8585

8686
// Get any other "personal" fields defined in config
8787
$personalFields = $this->config->personalFields;
88-
if (! empty($personalFields)) {
89-
foreach ($personalFields as $value) {
90-
if (! empty($user->{$value})) {
91-
$needles[] = \strtolower($user->{$value});
92-
}
88+
89+
foreach ($personalFields as $value) {
90+
if (! empty($user->{$value})) {
91+
$needles[] = \strtolower($user->{$value});
9392
}
9493
}
9594

src/Helpers/email_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function emailer(array $overrides = []): Email
3535
'DSN' => setting('Email.DSN'),
3636
];
3737

38-
if (count($overrides)) {
38+
if ($overrides !== []) {
3939
$config = array_merge($overrides, $config);
4040
}
4141

0 commit comments

Comments
 (0)