MY_Security::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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