Passed
Pull Request — master (#26)
by Mateusz
04:10
created
database/migrations/2017_09_01_000000_create_authentication_log_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/AuthenticationLog.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Listeners/LogSuccessfulLogin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Notifications/NewDevice.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.