Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| Waf_Blocked_Login_Page | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 1 |
| instance | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 | |||
| get_help_url | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * Class used to define WAF Blocked Login Page. |
| 4 | * |
| 5 | * @package automattic/jetpack-waf |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Jetpack\Waf; |
| 9 | |
| 10 | use Automattic\Jetpack\Redirect; |
| 11 | |
| 12 | /** |
| 13 | * WAF Blocked Login Page class. |
| 14 | */ |
| 15 | class Waf_Blocked_Login_Page extends Blocked_Login_Page { |
| 16 | |
| 17 | /** |
| 18 | * Instance of the class. |
| 19 | * |
| 20 | * @var Waf_Blocked_Login_Page |
| 21 | */ |
| 22 | private static $instance; |
| 23 | |
| 24 | /** |
| 25 | * Instance of the class. |
| 26 | * |
| 27 | * @param string $ip_address IP address. |
| 28 | * |
| 29 | * @return Waf_Blocked_Login_Page |
| 30 | */ |
| 31 | public static function instance( $ip_address ) { |
| 32 | if ( ! self::$instance ) { |
| 33 | self::$instance = new self( $ip_address ); |
| 34 | } |
| 35 | |
| 36 | return self::$instance; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Provide the help URL for the WAF. |
| 41 | * |
| 42 | * @return string |
| 43 | */ |
| 44 | public function get_help_url() { |
| 45 | return Redirect::get_url( 'jetpack-support-protect-troubleshooting-protect' ); |
| 46 | } |
| 47 | } |