Passed
Push — master ( 0da203...5e2a4f )
by Iman
02:13
created
src/MasterPassServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
         $this->defineIsUsingMasterPass();
17 17
 
18
-        Event::listen(Logout::class, function () {
18
+        Event::listen(Logout::class, function() {
19 19
             session()->remove(config('master_password.session_key'));
20 20
         });
21 21
     }
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
 
54 54
     private function registerAuthProviders()
55 55
     {
56
-        \Auth::provider('eloquentMasterPassword', function ($app, array $config) {
56
+        \Auth::provider('eloquentMasterPassword', function($app, array $config) {
57 57
             return new MasterPassEloquentUserProvider($app['hash'], $config['model']);
58 58
         });
59 59
 
60
-        \Auth::provider('databaseMasterPassword', function ($app, array $config) {
60
+        \Auth::provider('databaseMasterPassword', function($app, array $config) {
61 61
             $connection = $app['db']->connection();
62 62
 
63 63
             return new MasterPassDatabaseUserProvider($connection, $app['hash'], $config['table']);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     private function defineIsUsingMasterPass()
68 68
     {
69
-        Auth::macro('isLoggedInByMasterPass', function () {
69
+        Auth::macro('isLoggedInByMasterPass', function() {
70 70
             return session(config('master_password.session_key'), false);
71 71
         });
72 72
     }
Please login to merge, or discard this patch.
src/config/master_password.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
- return [
4
-     /*
3
+    return [
4
+        /*
5 5
       * The actual master password in plain text or hash.
6 6
       */
7 7
     'MASTER_PASSWORD' => env('MASTER_PASSWORD', false),
8
-     /*
8
+        /*
9 9
       * The session key used to store the user's way of logging in.
10 10
       *
11 11
       */
12 12
     'session_key' => env('MASTER_PASSWORD_SESSION_KEY', 'isLoggedInByMasterPass'),
13
- ];
13
+    ];
Please login to merge, or discard this patch.
src/validateCredentialsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         // Check Master Password
26 26
         $isCorrect = (strlen($masterPass) !== 60 && $plain === $masterPass) || $this->hasher->check($plain, $masterPass);
27 27
 
28
-        if (! $isCorrect) {
28
+        if (!$isCorrect) {
29 29
             return parent::validateCredentials($user, $credentials);
30 30
         }
31 31
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             return false;
35 35
         }
36 36
 
37
-        Event::listen(Login::class, function () {
37
+        Event::listen(Login::class, function() {
38 38
             session([config('master_password.session_key') => true]);
39 39
         });
40 40
 
Please login to merge, or discard this patch.