[CodeFactor] Apply fixes to commit e31db72

[ci skip] [skip ci]
This commit is contained in:
codefactor-io 2020-05-12 13:21:04 +00:00
parent e31db72607
commit e0862d574b
8 changed files with 163 additions and 166 deletions

View file

@ -89,7 +89,6 @@ class MainWP_Child_Callable {
}
public function __construct() {
}
public static function get_instance() {
@ -100,14 +99,16 @@ class MainWP_Child_Callable {
}
public function is_callable_function( $func ) {
if ( isset( $this->callableFunctions[ $func ] ) )
if ( isset( $this->callableFunctions[ $func ] ) ) {
return true;
}
return false;
}
public function is_callable_function_no_auth( $func ) {
if ( isset( $this->callableFunctionsNoAuth[ $func ] ) )
if ( isset( $this->callableFunctionsNoAuth[ $func ] ) ) {
return true;
}
return false;
}

View file

@ -360,7 +360,6 @@ class MainWP_Child_Stats {
}
$information['categories'] = $categories;
$get_file_size = apply_filters_deprecated( 'mainwp-child-get-total-size', array( true ), '4.0.7.1', 'mainwp_child_get_total_size' );
$get_file_size = apply_filters( 'mainwp_child_get_total_size', $get_file_size );
@ -375,7 +374,6 @@ class MainWP_Child_Stats {
global $mainWPChild;
$max_his = $mainWPChild->get_max_history();
$auths = get_option( 'mainwp_child_auth' );
$information['extauth'] = ( $auths && isset( $auths[ $max_his ] ) ? $auths[ $max_his ] : null );

View file

@ -17,7 +17,6 @@ class MainWP_Child_Users {
}
public function __construct() {
}
public static function get_instance() {

View file

@ -1315,7 +1315,6 @@ class MainWP_Child {
}
}
// Call the function required.
if ( $auth && isset( $_POST['function'] ) && $callable ) {
define( 'DOING_CRON', true );

View file

@ -519,7 +519,7 @@ class MainWP_Helper {
$new_post['post_content'] = str_replace( $lnkToReplace, $linkToReplaceWith, $new_post['post_content'] );
}
} catch ( \Exception $e ) {
MainWP_Helper::log_debug( $e->getMessage() );
self::log_debug( $e->getMessage() );
}
}
}