@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create(config('authentication-log.table_name'), function (Blueprint $table) { |
|
16 | + Schema::create(config('authentication-log.table_name'), function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->morphs('auth'); |
19 | 19 | $table->string('ip_address', 45)->nullable(); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * |
12 | 12 | * @var string |
13 | 13 | */ |
14 | - public function __construct(array $attributes = []) |
|
14 | + public function __construct(array $attributes = [ ]) |
|
15 | 15 | { |
16 | 16 | parent::__construct($attributes); |
17 | 17 | $this->table = config('authentication-log.table_name'); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * |
30 | 30 | * @var array |
31 | 31 | */ |
32 | - protected $guarded = ['auth_id', 'auth_type']; |
|
32 | + protected $guarded = [ 'auth_id', 'auth_type' ]; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * 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 && config('authentication-log.notify') && auth()->user()->notificationLogin ) { |
|
53 | + if (!$known && config('authentication-log.notify') && auth()->user()->notificationLogin) { |
|
54 | 54 | $user->notify(new NewDevice($authenticationLog)); |
55 | 55 | } |
56 | 56 | } |
@@ -72,8 +72,8 @@ |
||
72 | 72 | return (new SlackMessage) |
73 | 73 | ->from(config('app.name')) |
74 | 74 | ->warning() |
75 | - ->content(trans('authentication-log::messages.content', ['app' => config('app.name')])) |
|
76 | - ->attachment(function ($attachment) use ($notifiable) { |
|
75 | + ->content(trans('authentication-log::messages.content', [ 'app' => config('app.name') ])) |
|
76 | + ->attachment(function($attachment) use ($notifiable) { |
|
77 | 77 | $attachment->fields([ |
78 | 78 | 'Account' => $notifiable->email, |
79 | 79 | 'Time' => $this->authenticationLog->login_at->toCookieString(), |