Fixed: CodeFactor issues

This commit is contained in:
Bogdan Rapaić 2020-04-17 18:49:06 +02:00 committed by GitHub
parent b5a3c17d9c
commit dcf4aa7148
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -589,10 +589,20 @@ class MainWP_Child_Server_Information {
self::renderRowSec( 'cURL Timeout', '>=', '300', 'getCurlTimeout', 'seconds', '=', '0' ); self::renderRowSec( 'cURL Timeout', '>=', '300', 'getCurlTimeout', 'seconds', '=', '0' );
if ( function_exists( 'curl_version' ) ) { if ( function_exists( 'curl_version' ) ) {
self::renderRowSec( 'cURL Version', '>=', '7.18.1', 'getCurlVersion', '', '', null ); self::renderRowSec( 'cURL Version', '>=', '7.18.1', 'getCurlVersion', '', '', null );
self::renderRowSec( 'cURL SSL Version', '>=', array( self::renderRowSec(
'cURL SSL Version',
'>=',
array(
'version_number' => 0x009080cf, 'version_number' => 0x009080cf,
'version' => 'OpenSSL/0.9.8l', 'version' => 'OpenSSL/0.9.8l',
), 'getCurlSSLVersion', '', '', null, '', 'curlssl' ); ),
'getCurlSSLVersion',
'',
'',
null,
'',
'curlssl'
);
} }
?> ?>
<tr> <tr>
@ -1148,7 +1158,7 @@ class MainWP_Child_Server_Information {
} }
protected static function getPHPSafeMode() { protected static function getPHPSafeMode() {
if ( version_compare(phpversion(), '5.3.0' ) < 0 && ini_get( 'safe_mode' ) ) { if ( version_compare( phpversion(), '5.3.0' ) < 0 && ini_get( 'safe_mode' ) ) {
$safe_mode = __( 'ON', 'mainwp-child' ); $safe_mode = __( 'ON', 'mainwp-child' );
} else { } else {
$safe_mode = __( 'OFF', 'mainwp-child' ); $safe_mode = __( 'OFF', 'mainwp-child' );
@ -1425,7 +1435,7 @@ class MainWP_Child_Server_Information {
if ( empty( $lines ) ) { if ( empty( $lines ) ) {
$branding_title = MainWP_Child_Branding::Instance()->get_branding_title(); $branding_title = MainWP_Child_Branding::Instance()->get_branding_title();
if ( $branding_title == '' ) { if ( '' == $branding_title ) {
$branding_title = 'MainWP'; $branding_title = 'MainWP';
} }
$msg = esc_html( stripslashes( $branding_title ) ) . ' is unable to find your error logs, please contact your host for server error logs.'; $msg = esc_html( stripslashes( $branding_title ) ) . ' is unable to find your error logs, please contact your host for server error logs.';