Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid - Version branch.issue-376.202010021533

Version Description

Download this release

Release Info

Developer boldgrid
Plugin Icon 128x128 Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
Version branch.issue-376.202010021533
Comparing to
See all releases

Code changes from version branch.issue-376.202009290725 to branch.issue-376.202010021533

admin/remote/class-boldgrid-backup-admin-ftp.php CHANGED
@@ -301,7 +301,7 @@ class Boldgrid_Backup_Admin_Ftp {
301
  }
302
 
303
  $contents = $this->get_contents();
304
- if ( ! $contents || ! is_array( $contents ) ) {
305
  $this->errors[] = __( 'Unable to get a directory listing from FTP server.', 'boldgrid-backup' );
306
  return false;
307
  } elseif ( in_array( $this->get_folder_name(), $contents, true ) ) {
301
  }
302
 
303
  $contents = $this->get_contents();
304
+ if ( ! is_array( $contents ) ) {
305
  $this->errors[] = __( 'Unable to get a directory listing from FTP server.', 'boldgrid-backup' );
306
  return false;
307
  } elseif ( in_array( $this->get_folder_name(), $contents, true ) ) {
coverage.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1601378784">
3
- <project timestamp="1601378784">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
@@ -13340,7 +13340,7 @@
13340
  </file>
13341
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php">
13342
  <class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
13343
- <metrics complexity="135" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="495" coveredstatements="14" elements="517" coveredelements="16"/>
13344
  </class>
13345
  <line num="247" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
13346
  <line num="248" type="stmt" count="29"/>
@@ -13370,7 +13370,7 @@
13370
  <line num="285" type="stmt" count="0"/>
13371
  <line num="286" type="stmt" count="0"/>
13372
  <line num="287" type="stmt" count="0"/>
13373
- <line num="296" type="method" name="create_backup_dir" visibility="public" complexity="9" crap="90" count="0"/>
13374
  <line num="297" type="stmt" count="0"/>
13375
  <line num="298" type="stmt" count="0"/>
13376
  <line num="299" type="stmt" count="0"/>
@@ -76864,7 +76864,7 @@
76864
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76865
  </file>
76866
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76867
- <class name="ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7" namespace="Composer\Autoload">
76868
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76869
  </class>
76870
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -76956,7 +76956,7 @@
76956
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76957
  </file>
76958
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76959
- <class name="ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7" namespace="global">
76960
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76961
  </class>
76962
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1601667251">
3
+ <project timestamp="1601667251">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
13340
  </file>
13341
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php">
13342
  <class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
13343
+ <metrics complexity="134" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="495" coveredstatements="14" elements="517" coveredelements="16"/>
13344
  </class>
13345
  <line num="247" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
13346
  <line num="248" type="stmt" count="29"/>
13370
  <line num="285" type="stmt" count="0"/>
13371
  <line num="286" type="stmt" count="0"/>
13372
  <line num="287" type="stmt" count="0"/>
13373
+ <line num="296" type="method" name="create_backup_dir" visibility="public" complexity="8" crap="72" count="0"/>
13374
  <line num="297" type="stmt" count="0"/>
13375
  <line num="298" type="stmt" count="0"/>
13376
  <line num="299" type="stmt" count="0"/>
76864
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76865
  </file>
76866
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76867
+ <class name="ComposerStaticInitaa57980f65a7bf44848036d096fa3307" namespace="Composer\Autoload">
76868
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76869
  </class>
76870
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
76956
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76957
  </file>
76958
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76959
+ <class name="ComposerAutoloaderInitaa57980f65a7bf44848036d096fa3307" namespace="global">
76960
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76961
  </class>
76962
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitaa57980f65a7bf44848036d096fa3307::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire63610e2ffa1898ca7b84f2a9fcfa97f7($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire63610e2ffa1898ca7b84f2a9fcfa97f7($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitaa57980f65a7bf44848036d096fa3307
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitaa57980f65a7bf44848036d096fa3307', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitaa57980f65a7bf44848036d096fa3307', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitaa57980f65a7bf44848036d096fa3307::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitaa57980f65a7bf44848036d096fa3307::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequireaa57980f65a7bf44848036d096fa3307($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequireaa57980f65a7bf44848036d096fa3307($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitaa57980f65a7bf44848036d096fa3307
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
+ $loader->prefixLengthsPsr4 = ComposerStaticInitaa57980f65a7bf44848036d096fa3307::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInitaa57980f65a7bf44848036d096fa3307::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInitaa57980f65a7bf44848036d096fa3307::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }