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

Variable::initVar()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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
	}