WordPress_Security_Txt_Deactivator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A deactivate() 0 4 1
1
<?php
2
3
/**
4
 * Fired during plugin deactivation
5
 *
6
 * @link       https://github.com/austinheap/wordpress-security-txt
7
 * @since      1.0.0
8
 *
9
 * @package    WordPress_Security_Txt
10
 * @subpackage WordPress_Security_Txt/includes
11
 */
12
13
/**
14
 * Fired during plugin deactivation.
15
 *
16
 * This class defines all code necessary to run during the plugin's deactivation.
17
 *
18
 * @since      1.0.0
19
 * @package    WordPress_Security_Txt
20
 * @subpackage WordPress_Security_Txt/includes
21
 * @author     Austin Heap <[email protected]>
22
 */
23
class WordPress_Security_Txt_Deactivator
24
{
25
26
    /**
27
     * Short Description. (use period)
28
     *
29
     * Long Description.
30
     *
31
     * @since    1.0.0
32
     */
33
    public static function deactivate()
34
    {
35
        WordPress_Security_Txt_Public::cache_clear();
36
        WordPress_Security_Txt::event('wordpress-security-txt', __FUNCTION__);
37
    }
38
}
39