[CodeFactor] Apply fixes to commit 148109d

[ci skip] [skip ci]
This commit is contained in:
codefactor-io 2020-05-07 12:38:30 +00:00
parent 148109d980
commit 0d9a1dd3a6
8 changed files with 31 additions and 33 deletions

View file

@ -432,7 +432,7 @@ class MainWP_Child_Back_WP_Up {
echo '<tr title=""><td>' . __( 'WP-Cron url:', 'mainwp-child' ) . '</td><td>' . esc_html( site_url( 'wp-cron.php' ) ) . '</td></tr>';
echo '<tr><td>' . __( 'Server self connect:', 'mainwp-child' ) . '</td><td>';
$raw_response =\BackWPup_Job::get_jobrun_url( 'test' );
$raw_response = \BackWPup_Job::get_jobrun_url( 'test' );
$test_result = '';
if ( is_wp_error( $raw_response ) ) {
$test_result .= sprintf( __( 'The HTTP response test get an error "%s"', 'mainwp-child' ), esc_html( $raw_response->get_error_message() ) );

View file

@ -2,7 +2,6 @@
namespace MainWP\Child;
class MainWP_Child_DB {
// phpcs:disable WordPress.DB.RestrictedFunctions, WordPress.DB.PreparedSQL.NotPrepared -- unprepared SQL ok, accessing the database directly to custom database functions.
// Support old & new versions of WordPress (3.9+).

View file

@ -112,7 +112,6 @@ if ( ! function_exists( 'mainwp_child_helper' ) ) {
* Get MainWP Child helper instance.
*
* @return mixed MainWP\Child\MainWP_Helper
*
*/
function mainwp_child_helper() {
return MainWP\Child\MainWP_Helper::instance();