Completed
Push — add/changelog-55 ( a732ca...ae36cd )
by Jeremy
12:00
created

Jetpack_Sync_Module_Protect   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init_listeners() 0 3 1
A name() 0 3 1
1
<?php
2
3
/**
4
 * logs bruteprotect failed logins via sync
5
 */
6
class Jetpack_Sync_Module_Protect extends Jetpack_Sync_Module {
7
8
	function name() {
9
		return 'protect';
10
	}
11
12
	function init_listeners( $callback ) {
13
		add_action( 'jpp_log_failed_attempt', $callback );
14
	}
15
}
16