Passed
Push — master ( 8d229b...ad0e9b )
by IRFA
04:33
created

Variable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initVar() 0 5 1
1
<?php
2
namespace Irfa\Lockout\Initializing;
3
4
use Illuminate\Support\Facades\Request;
5
6
class Variable {
7
8
		protected $ip;
9
	    protected $input;
10
	    protected $dir;
11
	    protected $path;
12
	    protected $permission_code;
13
14
	    /**
15
		 * Initializing variable.
16
		 *
17
		 * @return void
18
		 */
19
		protected function initVar(){
20
	        $this->ip = Request::ip();
21
	        $this->input = Request::input(config('irfa.lockout.input_name'));
22
	        $this->dir = config('irfa.lockout.lockout_file_path');
23
	        $this->path = $this->dir.md5($this->input);
24
    	}
25
	
26
	}