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

Commit 59b9f0a

Browse files
committed
Small PR tweaks
1 parent 5cb0853 commit 59b9f0a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Listeners/BindsLdapUserModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BindsLdapUserModel
2020
*/
2121
public function handle(Authenticated $event)
2222
{
23-
if ($this->usesAdldapProvider() && $this->canBind($event->user)) {
23+
if ($this->isUsingAdldapProvider() && $this->canBind($event->user)) {
2424
$event->user->setLdapUser(
2525
Resolver::byModel($event->user)
2626
);
@@ -32,7 +32,7 @@ public function handle(Authenticated $event)
3232
*
3333
* @return bool
3434
*/
35-
protected function usesAdldapProvider() : bool
35+
protected function isUsingAdldapProvider() : bool
3636
{
3737
return Auth::getProvider() instanceof Provider;
3838
}

tests/DatabaseTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Adldap\Laravel\Tests;
44

55
use Adldap\Connections\Ldap;
6-
use Adldap\Laravel\Auth\DatabaseUserProvider;
7-
use Adldap\Laravel\Tests\Models\User;
86
use Adldap\Schemas\ActiveDirectory;
7+
use Adldap\Laravel\Tests\Models\User;
8+
use Adldap\Laravel\Auth\DatabaseUserProvider;
99
use Illuminate\Support\Facades\Schema;
1010

1111
class DatabaseTestCase extends TestCase

tests/EloquentAuthenticateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class EloquentAuthenticateTest extends DatabaseTestCase
1111
{
1212
/** @test */
13-
public function it_doenst_set_the_ldap_user_if_the_auth_provider_is_not_ldap()
13+
public function it_does_not_set_the_ldap_user_if_the_auth_provider_is_not_adldap()
1414
{
1515
$this->app['config']->set('auth.guards.web.provider', 'users');
1616

0 commit comments

Comments
 (0)