Completed
Branch master (f308d6)
by Sudar
02:43
created
include/class-email-log-list-table.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 	 * To field
180 180
 	 *
181 181
 	 * @param unknown $item
182
-	 * @return unknown
182
+	 * @return string
183 183
 	 */
184 184
 	function column_to( $item ) {
185 185
 		return stripslashes( $item->to_email );
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	 * Subject field
190 190
 	 *
191 191
 	 * @param unknown $item
192
-	 * @return unknown
192
+	 * @return string
193 193
 	 */
194 194
 	function column_subject( $item ) {
195 195
 		return stripslashes( $item->subject );
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	 * Markup for action column
200 200
 	 *
201 201
 	 * @param unknown $item
202
-	 * @return unknown
202
+	 * @return string
203 203
 	 */
204 204
 	function column_cb( $item ) {
205 205
 		return sprintf(
Please login to merge, or discard this patch.
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.