Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 13, 2019
1 parent 7e6c443 commit 5e87f2d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Queue\SerializesModels;

class LogoutOtherDevices
class OtherDeviceLogout
{
use SerializesModels;

Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Auth/SessionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public function logoutOtherDevices($password, $attribute = 'password')

$this->queueRecallerCookie($this->user());

$this->fireLogoutOtherDevicesEvent($this->user());
$this->fireOtherDeviceLogoutEvent($this->user());

return $result;
}
Expand Down Expand Up @@ -618,15 +618,15 @@ protected function fireAuthenticatedEvent($user)
}

/**
* Fire the logout other devices event if the dispatcher is set.
* Fire the other device logout event if the dispatcher is set.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return void
*/
protected function fireLogoutOtherDevicesEvent($user)
protected function fireOtherDeviceLogoutEvent($user)
{
if (isset($this->events)) {
$this->events->dispatch(new Events\LogoutOtherDevices(
$this->events->dispatch(new Events\OtherDeviceLogout(
$this->name, $user
));
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Auth/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Illuminate\Auth\EloquentUserProvider;
use Illuminate\Auth\Events\Authenticated;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Auth\Events\LogoutOtherDevices;
use Illuminate\Auth\Events\OtherDeviceLogout;
use Illuminate\Tests\Integration\Auth\Fixtures\AuthenticationTestUser;

/**
Expand Down Expand Up @@ -199,7 +199,7 @@ public function test_logging_out_other_devices()
$this->app['auth']->logoutOtherDevices('adifferentpassword');
$this->assertEquals(1, $user->id);

Event::assertDispatched(LogoutOtherDevices::class, function ($event) {
Event::assertDispatched(OtherDeviceLogout::class, function ($event) {
$this->assertEquals('web', $event->guard);
$this->assertEquals(1, $event->user->id);

Expand Down

0 comments on commit 5e87f2d

Please sign in to comment.