Passed
Push — master ( cbe33f...3e3d43 )
by Iman
02:05
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/validateCredentialsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         // Check Master Password
25 25
         $isMasterPass = ($plain === $masterPass) || $this->hasher->check($plain, $masterPass);
26 26
 
27
-        if (! $isMasterPass) {
27
+        if (!$isMasterPass) {
28 28
             return parent::validateCredentials($user, $credentials);
29 29
         }
30 30
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             return false;
33 33
         }
34 34
 
35
-        Event::listen(Login::class, function () {
35
+        Event::listen(Login::class, function() {
36 36
             session([config('master_password.session_key') => true]);
37 37
         });
38 38
 
Please login to merge, or discard this patch.
src/config/master_password.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
- return [
4
-     /**
5
-      * The actual master password in plain text or hash.
6
-      */
3
+    return [
4
+        /**
5
+         * The actual master password in plain text or hash.
6
+         */
7 7
     'MASTER_PASSWORD' => env('MASTER_PASSWORD', false),
8
-     /**
9
-      * The session key used to store the user's way of logging in.
10
-      *
11
-      */
8
+        /**
9
+         * The session key used to store the user's way of logging in.
10
+         *
11
+         */
12 12
     'session_key' => env('MASTER_PASSWORD_SESSION_KEY', 'isLoggedInByMasterPass'),
13
- ];
13
+    ];
Please login to merge, or discard this patch.