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
8ff287d71d
commit
a86ab762c9
1 changed files with 5 additions and 2 deletions
|
@ -129,6 +129,10 @@ class Tar_Archiver {
|
||||||
/**
|
/**
|
||||||
* Tar_Archiver constructor
|
* 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.
|
* Run any time class is called.
|
||||||
*/
|
*/
|
||||||
public function __construct( $backup, $type = 'tar', $pidFile = false ) {
|
public function __construct( $backup, $type = 'tar', $pidFile = false ) {
|
||||||
|
@ -241,7 +245,6 @@ class Tar_Archiver {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var $wp_filesystem WP_Filesystem_Base */
|
|
||||||
global $wp_filesystem;
|
global $wp_filesystem;
|
||||||
|
|
||||||
$wp_filesystem->put_contents( $this->pidFile, $this->pidContent );
|
$wp_filesystem->put_contents( $this->pidFile, $this->pidContent );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue