MY_Security   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 3
cts 6
cp 0.5
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php defined('BASEPATH') OR exit('No direct script access allowed');
2
3
class MY_Security extends CI_Security {
4
	public $verified = TRUE;
5
6 96
	public function __construct() {
7 96
		parent::__construct();
8 96
	}
9
10
	public function csrf_show_error() : void {
11
		$this->verified = FALSE;
12
		//CHECK: We handle the other half of this in MY_Form_Validation, does this cause any issues?
13
		//header('Location: ' . htmlspecialchars($_SERVER['REQUEST_URI']), TRUE, 200);
14
	}
15
}
16