mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 11:10:43 +08:00
Fixed: CodeFactor issues
This commit is contained in:
parent
5404274b3d
commit
d38605b3f2
1 changed files with 11 additions and 6 deletions
|
@ -6,6 +6,8 @@
|
||||||
*
|
*
|
||||||
* @link https://mainwp.com/extension/staging/
|
* @link https://mainwp.com/extension/staging/
|
||||||
*
|
*
|
||||||
|
* @package MainWP\Child
|
||||||
|
*
|
||||||
* Credits
|
* Credits
|
||||||
*
|
*
|
||||||
* Plugin-Name: WP Staging
|
* Plugin-Name: WP Staging
|
||||||
|
@ -21,23 +23,26 @@
|
||||||
use MainWP\Child\MainWP_Child_Callable;
|
use MainWP\Child\MainWP_Child_Callable;
|
||||||
use MainWP\Child\MainWP_Helper;
|
use MainWP\Child\MainWP_Helper;
|
||||||
|
|
||||||
// phpcs:disable PSR1.Classes.ClassDeclaration, WordPress.WP.AlternativeFunctions -- to use external code, third party credit.
|
// phpcs:disable PSR1.Classes.ClassDeclaration, WordPress.WP.AlternativeFunctions -- Required to achieve desired results. Pull requests appreciated.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class MainWP_Child_Staging
|
* Class MainWP_Child_Staging
|
||||||
*
|
*
|
||||||
* @package MainWP\Child
|
* MainWP Staging Extension handler.
|
||||||
*/
|
*/
|
||||||
class MainWP_Child_Staging {
|
class MainWP_Child_Staging {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @static
|
* Public static variable to hold the single instance of the class.
|
||||||
* @var null Holds the Public static instance of MainWP_Child_Staging.
|
*
|
||||||
|
* @var mixed Default null
|
||||||
*/
|
*/
|
||||||
public static $instance = null;
|
public static $instance = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var bool Whether or not the WP Staging Plugin is installed or not. Default: false.
|
* Public variable to hold the information if the WP Staging plugin is installed on the child site.
|
||||||
|
*
|
||||||
|
* @var bool If WP Staging intalled, return true, if not, return false.
|
||||||
*/
|
*/
|
||||||
public $is_plugin_installed = false;
|
public $is_plugin_installed = false;
|
||||||
|
|
||||||
|
@ -543,7 +548,7 @@ class MainWP_Child_Staging {
|
||||||
/**
|
/**
|
||||||
* Get size of directory & subdirectories.
|
* Get size of directory & subdirectories.
|
||||||
*
|
*
|
||||||
* @param $dir Directory to size.
|
* @param string $dir Directory to size.
|
||||||
*
|
*
|
||||||
* @return false|int FALSE on failure, int $size Directory size,
|
* @return false|int FALSE on failure, int $size Directory size,
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue