Skip to content

Commit 7304c35

Browse files
committed
code quality
1 parent ff04940 commit 7304c35

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

app/Http/Controllers/Auth/LoginController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public function username()
6363
*/
6464
protected function ldapBindAndGetUser(string $appUsername, string $password): ?LdapEntry
6565
{
66-
6766
try {
6867
$query = LdapEntry::query();
6968

@@ -86,12 +85,12 @@ protected function ldapBindAndGetUser(string $appUsername, string $password): ?L
8685
}
8786
}
8887

89-
\Log::debug("LDAP dn: " . $query->getDn() . " query: " . $query->getQuery());
88+
\Log::debug('LDAP dn: ' . $query->getDn() . ' query: ' . $query->getQuery());
9089

9190
/** @var LdapEntry|null $ldapUser */
9291
$ldapUser = $query->first();
9392
if (! $ldapUser) {
94-
\Log::debug("LDAP user not found !");
93+
\Log::debug('LDAP user not found !');
9594
return null;
9695
}
9796

app/Models/Control.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44

55
use App\Traits\Auditable;
66
use Illuminate\Database\Eloquent\Model;
7+
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
8+
use Illuminate\Database\Eloquent\Relations\HasMany;
79
use Illuminate\Support\Facades\Auth;
810
use Illuminate\Support\Facades\DB;
911
use Illuminate\Support\Facades\File;
10-
use Illuminate\Database\Eloquent\Relations\BelongsTo;
11-
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
12-
use Illuminate\Database\Eloquent\Relations\HasMany;
13-
class Control extends Model
1412

13+
class Control extends Model
1514
{
1615
use Auditable;
1716

0 commit comments

Comments
 (0)