Passed
Branch master (a9bd07)
by Yaakov
39:51
created
Category
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('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();
Please login to merge, or discard this patch.
src/Notifications/NewDevice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             ->from(config('app.name'))
73 73
             ->warning()
74 74
             ->content('Your '.config('app.name').' account logged in from a new device.')
75
-            ->attachment(function ($attachment) use ($notifiable) {
75
+            ->attachment(function($attachment) use ($notifiable) {
76 76
                 $attachment->fields([
77 77
                     'Account' => $notifiable->email,
78 78
                     'Time' => $this->authenticationLog->login_at->toCookieString(),
Please login to merge, or discard this patch.
src/Listeners/LogSuccessfulLogout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $userAgent = $this->request->userAgent();
41 41
         $authenticationLog = $user->authentications()->whereIpAddress($ip)->whereUserAgent($userAgent)->first();
42 42
 
43
-        if (! $authenticationLog) {
43
+        if (!$authenticationLog) {
44 44
             $authenticationLog = new AuthenticationLog([
45 45
                 'ip_address' => $ip,
46 46
                 'user_agent' => $userAgent,
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
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
         $user->authentications()->save($authenticationLog);
51 51
 
52
-        if (! $known && config('authentication-log.notify')) {
52
+        if (!$known && config('authentication-log.notify')) {
53 53
             $user->notify(new NewDevice($authenticationLog));
54 54
         }
55 55
     }
Please login to merge, or discard this patch.