mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-04 07:53:31 +08:00
Fixed: CodeFactor issues
This commit is contained in:
parent
8ff287d71d
commit
a86ab762c9
1 changed files with 5 additions and 2 deletions
|
@ -129,6 +129,10 @@ class Tar_Archiver {
|
|||
/**
|
||||
* Tar_Archiver constructor
|
||||
*
|
||||
* @param object $backup MainWP_Backup class instance.
|
||||
* @param string $type Backup arvhive type.
|
||||
* @param bool $pidFile Request PID file or not.
|
||||
*
|
||||
* Run any time class is called.
|
||||
*/
|
||||
public function __construct( $backup, $type = 'tar', $pidFile = false ) {
|
||||
|
@ -241,7 +245,6 @@ class Tar_Archiver {
|
|||
return false;
|
||||
}
|
||||
|
||||
/** @var $wp_filesystem WP_Filesystem_Base */
|
||||
global $wp_filesystem;
|
||||
|
||||
$wp_filesystem->put_contents( $this->pidFile, $this->pidContent );
|
||||
|
@ -743,7 +746,7 @@ class Tar_Archiver {
|
|||
*
|
||||
* @var int Count number.
|
||||
*/
|
||||
protected $cnt = 0;
|
||||
protected $cnt = 0;
|
||||
|
||||
/**
|
||||
* Add file to the backup archive file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue