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

Commit e7a88e0

Browse files
authored
Merge pull request #752 from Adldap2/analysis-XlpaoW
Apply fixes from StyleCI
2 parents 442815b + 13d15f3 commit e7a88e0

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

src/AdldapAuthServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use RuntimeException;
66
use Adldap\AdldapInterface;
7-
use Illuminate\Auth\Events\Login;
87
use Illuminate\Support\Arr;
8+
use Illuminate\Auth\Events\Login;
99
use Illuminate\Support\Facades\Auth;
1010
use Illuminate\Support\Facades\Event;
1111
use Illuminate\Support\Facades\Config;

src/Commands/Console/Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Exception;
66
use RuntimeException;
77
use Adldap\Models\User;
8-
use UnexpectedValueException;
98
use Illuminate\Support\Arr;
9+
use UnexpectedValueException;
1010
use Illuminate\Console\Command;
1111
use Adldap\Laravel\Events\Imported;
1212
use Illuminate\Support\Facades\Bus;

src/Commands/SyncPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Adldap\Laravel\Commands;
44

5-
use Illuminate\Support\Str;
65
use Illuminate\Support\Arr;
6+
use Illuminate\Support\Str;
77
use Illuminate\Support\Facades\Hash;
88
use Illuminate\Support\Facades\Config;
99
use Illuminate\Database\Eloquent\Model;

tests/Console/ImportTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Adldap\Laravel\Tests\Console;
44

55
use Mockery as m;
6-
use Adldap\Models\User;
76
use Adldap\Query\Builder;
87
use Adldap\Laravel\Facades\Resolver;
98
use Illuminate\Support\Facades\Hash;

tests/WindowsAuthenticateTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public function middleware_authenticates_users()
3737
->shouldReceive('getLdapDiscoveryAttribute')->once()->andReturn('userprincipalname')
3838
->shouldReceive('byModel')->once()->andReturn($user);
3939

40-
app(WindowsAuthenticate::class)->handle($request, function () {});
40+
app(WindowsAuthenticate::class)->handle($request, function () {
41+
});
4142

4243
$authenticated = auth()->user();
4344

@@ -62,7 +63,8 @@ public function middleware_continues_request_when_user_is_not_found()
6263

6364
Resolver::shouldReceive('query')->once()->andReturn($query);
6465

65-
app(WindowsAuthenticate::class)->handle($request, function () {});
66+
app(WindowsAuthenticate::class)->handle($request, function () {
67+
});
6668

6769
$this->assertNull(auth()->user());
6870
}
@@ -105,7 +107,8 @@ public function middleware_validates_authenticating_users()
105107
->shouldReceive('getDatabaseUsernameColumn')->once()->andReturn('email')
106108
->shouldReceive('getLdapDiscoveryAttribute')->once()->andReturn('userprincipalname');
107109

108-
app(WindowsAuthenticate::class)->handle($request, function () {});
110+
app(WindowsAuthenticate::class)->handle($request, function () {
111+
});
109112

110113
$this->assertNull(auth()->user());
111114
}

0 commit comments

Comments
 (0)