MyStrategy   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A extendsRegister() 0 3 1
A extendsValidate() 0 3 1
1
<?php
2
	
3
	namespace StrategysAuth;
4
5
	class MyStrategy {
6
7
		// Table mysql using
8
		const table = "login";
9
10
		// Route logout
11
		const logout = "../login";
12
13
		// Ignore key init session
14
		const ignoreSession = ["password"];
15
16
		const login = [
17
			// fields POST and COLUMNS
18
			"email", "password"
19
		];
20
21
		const register = [
22
			// fields POST and COLUMNS
23
			"email", "password", "name", "icone"
24
		];
25
26
		public static function extendsRegister($data){
27
			// event
28
			return $data;
29
		}
30
31
		public static function extendsValidate($data){
32
			// event
33
			return $data;
34
		}
35
36
	}
37