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

Jetpack_Sync_Module_Protect::name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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