Completed
Push — add/bruteprotect-via-sync ( 0736ca )
by
unknown
10:38
created

Jetpack_Sync_Module_Protect   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A init_listeners() 0 3 1
1
<?php
2
3
require dirname( __FILE__ ) . '/../modules/protect.php';
4
5
/** 
6
 * logs bruteprotect failed logins via sync
7
 */
8
class Jetpack_Sync_Module_Protect extends Jetpack_Sync_Module {
9
	private $taxonomy_whitelist;
0 ignored issues
show
Unused Code introduced by
The property $taxonomy_whitelist is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
10
	
11
	function name() {
12
		return "protect";
13
	}
14
15
	function init_listeners( $callback ) {
16
		add_action( 'jpp_log_failed_attempt', $callback );
17
	}
18
}
19