Passed
Push — master ( 5d7f9f...66d93b )
by Yaakov
01:43 queued 10s
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('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/AuthenticationLog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/AuthenticationLogable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function notifyAuthenticationLogVia()
21 21
     {
22
-        return ['mail'];
22
+        return [ 'mail' ];
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
src/Notifications/NewDevice.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
         return (new SlackMessage)
72 72
             ->from(config('app.name'))
73 73
             ->warning()
74
-            ->content(trans('authentication-log::messages.content', ['app' => config('app.name')]))
75
-            ->attachment(function ($attachment) use ($notifiable) {
74
+            ->content(trans('authentication-log::messages.content', [ 'app' => config('app.name') ]))
75
+            ->attachment(function($attachment) use ($notifiable) {
76 76
                 $attachment->fields([
77 77
                     'Account' => $notifiable->email,
78 78
                     'Time' => $this->authenticationLog->login_at->toCookieString(),
@@ -91,6 +91,6 @@  discard block
 block discarded – undo
91 91
     public function toNexmo($notifiable)
92 92
     {
93 93
         return (new NexmoMessage)
94
-            ->content(trans('authentication-log::messages.content', ['app' => config('app.name')]));
94
+            ->content(trans('authentication-log::messages.content', [ 'app' => config('app.name') ]));
95 95
     }
96 96
 }
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
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $userAgent = $this->request->userAgent();
42 42
             $authenticationLog = $user->authentications()->whereIpAddress($ip)->whereUserAgent($userAgent)->first();
43 43
 
44
-            if (! $authenticationLog) {
44
+            if (!$authenticationLog) {
45 45
                 $authenticationLog = new AuthenticationLog([
46 46
                     'ip_address' => $ip,
47 47
                     '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
@@ -50,7 +50,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.