Skip to content

Commit

Permalink
Fix phpcs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kawsarahmedr committed Aug 14, 2024
1 parent 916ad68 commit b01f27e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
*/

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
$wpcp_settings = get_option( 'wpcp_settings_misc', [] );
if ( isset( $wpcp_settings['uninstall_on_delete'] ) && $wpcp_settings['uninstall_on_delete'] == 'on' ) {
$wpcp_settings = get_option( 'wpcp_settings_misc', array() );
if ( isset( $wpcp_settings['uninstall_on_delete'] ) && 'on' === $wpcp_settings['uninstall_on_delete'] ) {
global $wpdb;
// Remove all database tables
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "wpcp_links" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "wpcp_logs" );
// Remove all database tables.
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . 'wpcp_links' );

Check failure on line 16 in uninstall.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer

String "DROP TABLE IF EXISTS " does not require double quotes; use single quotes instead
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . 'wpcp_logs' );

Check failure on line 17 in uninstall.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer

String "DROP TABLE IF EXISTS " does not require double quotes; use single quotes instead

/** Cleanup Cron Events */
wp_clear_scheduled_hook( 'wpcp_per_minute_scheduled_events' );
Expand Down

0 comments on commit b01f27e

Please sign in to comment.