diff --git a/class/class-mainwp-child-back-up-wordpress.php b/class/class-mainwp-child-back-up-wordpress.php index 311767b..61b485b 100644 --- a/class/class-mainwp-child-back-up-wordpress.php +++ b/class/class-mainwp-child-back-up-wordpress.php @@ -669,7 +669,7 @@ class MainWP_Child_Back_Up_WordPress { /** * Get the site size text. * - * @param object HM\BackUpWordPress\Scheduled_Backup $schedule Object containing the schedule data. + * @param HM\BackUpWordPress\Scheduled_Backup $schedule Object containing the schedule data. * * @return string Site size text. */ @@ -691,8 +691,8 @@ class MainWP_Child_Back_Up_WordPress { /** * Get the backup table row HTML. * - * @param resource $file Backup file. - * @param object HM\BackUpWordPress\Scheduled_Backup $schedule Object containing the schedule data. + * @param resource $file Backup file. + * @param HM\BackUpWordPress\Scheduled_Backup $schedule Object containing the schedule data. */ public function hmbkp_get_backup_row( $file, HM\BackUpWordPress\Scheduled_Backup $schedule ) { $encoded_file = rawurlencode( base64_encode( $file ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions -- base64_encode function is used for http encode compatible.. diff --git a/class/class-mainwp-child-ithemes-security.php b/class/class-mainwp-child-ithemes-security.php index 0959d42..a1bf48e 100644 --- a/class/class-mainwp-child-ithemes-security.php +++ b/class/class-mainwp-child-ithemes-security.php @@ -1,5 +1,8 @@ is_plugin_installed = true; @@ -43,7 +61,12 @@ class MainWP_Child_IThemes_Security { add_filter( 'mainwp_site_sync_others_data', array( $this, 'sync_others_data' ), 10, 2 ); } - public function sync_others_data( $information, $data = array() ) { + /** + * @param $information + * @param array $data + * @return mixed + */ + public function sync_others_data($information, $data = array() ) { if ( is_array( $data ) && isset( $data['ithemeExtActivated'] ) && ( 'yes' === $data['ithemeExtActivated'] ) ) { try { $information['syncIThemeData'] = array( @@ -56,7 +79,10 @@ class MainWP_Child_IThemes_Security { return $information; } - public function action() { + /** + * + */ + public function action() { $information = array(); if ( ! class_exists( 'ITSEC_Core' ) || ! class_exists( 'ITSEC_Modules' ) ) { $information['error'] = 'NO_ITHEME'; @@ -125,7 +151,10 @@ class MainWP_Child_IThemes_Security { MainWP_Helper::write( $information ); } - public function set_showhide() { + /** + * @return mixed + */ + public function set_showhide() { $hide = isset( $_POST['showhide'] ) && ( 'hide' === $_POST['showhide'] ) ? 'hide' : ''; MainWP_Helper::update_option( 'mainwp_ithemes_hide_plugin', $hide ); $information['result'] = 'success'; @@ -133,7 +162,10 @@ class MainWP_Child_IThemes_Security { return $information; } - public function ithemes_init() { + /** + * + */ + public function ithemes_init() { if ( ! $this->is_plugin_installed ) { return; } @@ -150,11 +182,18 @@ class MainWP_Child_IThemes_Security { } } - public function admin_init() { + /** + * + */ + public function admin_init() { remove_meta_box( 'itsec-dashboard-widget', 'dashboard', 'normal' ); } - public function all_plugins( $plugins ) { + /** + * @param $plugins + * @return mixed + */ + public function all_plugins($plugins ) { foreach ( $plugins as $key => $value ) { $plugin_slug = basename( $key, '.php' ); if ( 'better-wp-security' === $plugin_slug || 'ithemes-security-pro' === $plugin_slug ) { @@ -165,11 +204,17 @@ class MainWP_Child_IThemes_Security { return $plugins; } - public function remove_menu() { + /** + * + */ + public function remove_menu() { remove_menu_page( 'itsec' ); } - public function custom_admin_css() { + /** + * + */ + public function custom_admin_css() { ?>