Fixed: CodeFactor issues

This commit is contained in:
Bogdan Rapaić 2020-06-05 20:31:09 +02:00 committed by GitHub
parent 5404274b3d
commit d38605b3f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
*/ */