mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-09 13:19:50 +08:00
Merge pull request #144 from mainwp/bogdan01-cf-autofix
Apply fixes from CodeFactor
This commit is contained in:
commit
aaf1fa3333
9 changed files with 44 additions and 45 deletions
|
@ -1015,7 +1015,7 @@ class MainWP_Helper {
|
|||
}
|
||||
}
|
||||
|
||||
public static function set_limit( $timeout, $mem = false ){
|
||||
public static function set_limit( $timeout, $mem = false ) {
|
||||
// phpcs:disable
|
||||
if ( ! empty( $mem ) ) {
|
||||
ini_set( 'memory_limit', $mem );
|
||||
|
|
|
@ -23,7 +23,6 @@ class MainWP_Pages {
|
|||
}
|
||||
|
||||
public function __construct() {
|
||||
|
||||
}
|
||||
|
||||
public static function get_instance() {
|
||||
|
@ -34,7 +33,7 @@ class MainWP_Pages {
|
|||
return self::$instance;
|
||||
}
|
||||
|
||||
public function init(){
|
||||
public function init() {
|
||||
add_action( 'admin_menu', array( &$this, 'admin_menu' ) );
|
||||
add_action( 'admin_head', array( &$this, 'admin_head' ) );
|
||||
add_action( 'admin_notices', array( &$this, 'admin_notice' ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue