@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('authentication_log', function (Blueprint $table) { |
|
16 | + Schema::create('authentication_log', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->morphs('authenticatable'); |
19 | 19 | $table->string('ip_address', 45)->nullable(); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @var array |
27 | 27 | */ |
28 | - protected $guarded = ['authenticatable_id', 'authenticatable_type']; |
|
28 | + protected $guarded = [ 'authenticatable_id', 'authenticatable_type' ]; |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * The attributes that should be cast to native types. |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | $user->authentications()->save($authenticationLog); |
52 | 52 | |
53 | - if (! $known && ! $newUser && config('authentication-log.notify')) { |
|
53 | + if (!$known && !$newUser && config('authentication-log.notify')) { |
|
54 | 54 | $user->notify(new NewDevice($authenticationLog)); |
55 | 55 | } |
56 | 56 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | /** @var Carbon $loginAt */ |
52 | 52 | $loginAt = $this->authenticationLog->login_at; |
53 | 53 | $loginAt = $loginAt->setTimezone('UTC'); |
54 | - $subject = trans('authentication-log::new_device.subject', ['app' => config('app.name')]); |
|
54 | + $subject = trans('authentication-log::new_device.subject', [ 'app' => config('app.name') ]); |
|
55 | 55 | if (gettype($subject) !== 'string') { |
56 | 56 | throw new Exception('Translate subject error'); |
57 | 57 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function notifyAuthenticationLogVia(): array |
23 | 23 | { |
24 | - return ['mail']; |
|
24 | + return [ 'mail' ]; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |