Completed
Push — master ( 1d5a87...674f5d )
by Sudar
02:43
created
include/install.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	 *
70 70
 	 * @global object $wpdb
71 71
 	 * @param  array  $tables List of tables to be deleted
72
-	 * @return array  $tables Modified list of tables to be deleted
72
+	 * @return string[]  $tables Modified list of tables to be deleted
73 73
 	 */
74 74
 	public static function on_delete_blog( $tables ) {
75 75
 		global $wpdb;
Please login to merge, or discard this patch.
uninstall.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -8,24 +8,24 @@  discard block
 block discarded – undo
8 8
 */
9 9
 // uninstall page for Email Log Plugin to clean up db.
10 10
 if( !defined( 'ABSPATH' ) && !defined( 'WP_UNINSTALL_PLUGIN' ) )
11
-    exit();
11
+	exit();
12 12
 
13 13
 if ( is_multisite() ) {
14
-    global $wpdb;
14
+	global $wpdb;
15 15
 
16
-    $original_blog_id = get_current_blog_id();
16
+	$original_blog_id = get_current_blog_id();
17 17
 
18
-    $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
18
+	$blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
19 19
 
20
-    foreach ( $blog_ids as $blog_id ) {
21
-        switch_to_blog( $blog_id );
22
-        email_log_delete_table();
23
-    }
20
+	foreach ( $blog_ids as $blog_id ) {
21
+		switch_to_blog( $blog_id );
22
+		email_log_delete_table();
23
+	}
24 24
 
25
-    switch_to_blog( $original_blog_id );
25
+	switch_to_blog( $original_blog_id );
26 26
 
27 27
 } else {
28
-    email_log_delete_table();
28
+	email_log_delete_table();
29 29
 }
30 30
 
31 31
 /**
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
  * @global object $wpdb
37 37
  */
38 38
 function email_log_delete_table() {
39
-    global $wpdb;
40
-    $table_name = $wpdb->prefix . "email_log"; // This is hardcoded on purpose
39
+	global $wpdb;
40
+	$table_name = $wpdb->prefix . "email_log"; // This is hardcoded on purpose
41 41
 
42
-    if( $wpdb->get_var( "SHOW TABLES LIKE '{$table_name}'" ) == $table_name ) {
43
-        // If table is present, drop it
44
-        $wpdb->query( "DROP TABLE $table_name" );
45
-    }
42
+	if( $wpdb->get_var( "SHOW TABLES LIKE '{$table_name}'" ) == $table_name ) {
43
+		// If table is present, drop it
44
+		$wpdb->query( "DROP TABLE $table_name" );
45
+	}
46 46
 
47
-    // Delete the option
48
-    delete_option('email-log-db');
47
+	// Delete the option
48
+	delete_option('email-log-db');
49 49
 }
50 50
 ?>
Please login to merge, or discard this patch.
include/util/helper.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
  *
31 31
  * @since 1.9
32 32
  *
33
- * @param $string $email Email string to be sanitized.
34 33
  *
35 34
  * @return string Sanitized email.
36 35
  */
Please login to merge, or discard this patch.