[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

@ -4,15 +4,15 @@ namespace MainWP\Child;
class MainWP_Helper {
public static $instance = null;
public static $instance = null;
public static function instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
public function write( $val ) {
if ( isset( $_REQUEST['json_result'] ) && true == $_REQUEST['json_result'] ) :
$output = self::safe_json_encode( $val );
@ -1129,7 +1129,7 @@ class MainWP_Helper {
break;
case 'k':
$val *= 1024;
break;
break;
}
return $val;