Passed
Push — master ( 8d2f81...55ddea )
by IRFA
03:50
created
src/Func/Testing.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
     public function testConfig(){
13 13
         $this->ret=[];
14
-         $this->ret['err'] = 0;
14
+            $this->ret['err'] = 0;
15 15
         
16 16
 
17 17
         if(!empty(config('irfa.lockout'))){
@@ -31,30 +31,30 @@  discard block
 block discarded – undo
31 31
 
32 32
         return $this->ret;
33 33
     }
34
-	public function testWriteEventFailedLogin($username){
34
+    public function testWriteEventFailedLogin($username){
35 35
 
36
-    	$this->eventFailedLogin($username);
36
+        $this->eventFailedLogin($username);
37 37
 
38
-		$input = $username;
39
-		$dir = config('irfa.lockout.lockout_file_path');
40
-		$path = $dir.md5($input);
38
+        $input = $username;
39
+        $dir = config('irfa.lockout.lockout_file_path');
40
+        $path = $dir.md5($input);
41 41
 
42
-    	if(File::exists($path))
42
+        if(File::exists($path))
43 43
         {
44
-        	return true;
44
+            return true;
45 45
         } 
46
-    		return false;
46
+            return false;
47 47
     }
48 48
     public function testWritable($username){
49
-		$input = $username;
50
-		$dir = config('irfa.lockout.lockout_file_path');
51
-		$path = $dir.md5($input);
49
+        $input = $username;
50
+        $dir = config('irfa.lockout.lockout_file_path');
51
+        $path = $dir.md5($input);
52 52
 
53
-    	if(is_writable($path))
53
+        if(is_writable($path))
54 54
         {
55
-        	return true;
55
+            return true;
56 56
         } 
57
-    		return false;
57
+            return false;
58 58
     }
59 59
 
60 60
     public function testManualLocking($username){
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     private function confLogging(){
105
-       if(is_bool(config('irfa.lockout.logging'))){
106
-               $this->ret['logging'] = '<fg=green>OK';
105
+        if(is_bool(config('irfa.lockout.logging'))){
106
+                $this->ret['logging'] = '<fg=green>OK';
107 107
             } else{
108 108
 
109 109
                 $this->ret['err'] +=1;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 $this->ret['input_name'] = '<fg=yellow>Must be a String'; 
121 121
             }
122 122
     }
123
-     private function confFilePath(){
123
+        private function confFilePath(){
124 124
        
125 125
             
126 126
             if(is_writable(config('irfa.lockout.lockout_file_path'))){
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
                 if(!empty(config('irfa.lockout.protected_middleware_group'))){
154 154
                     $this->ret['protected_middleware_group'] = '<fg=green>OK';
155 155
                 } else{
156
-                     $this->ret['err'] +=1;
157
-                     $this->ret['protected_middleware_group'] = '<fg=yellow>Must be provided'; 
156
+                        $this->ret['err'] +=1;
157
+                        $this->ret['protected_middleware_group'] = '<fg=yellow>Must be provided'; 
158 158
                 }
159 159
             } else{
160 160
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
     }
166 166
     private function confMessage(){
167
-         if(is_string(config('irfa.lockout.message_name'))){
167
+            if(is_string(config('irfa.lockout.message_name'))){
168 168
                 $this->ret['message_name'] = '<fg=green>OK';
169 169
             } else{
170 170
 
Please login to merge, or discard this patch.