Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid - Version 1.9.1

Version Description

Release date: Apr 2nd, 2019

  • New feature: Users can now specify a custom folder name for FTP uploads.
  • Update: Increased precision of "Archive file size" value within progress bar to better show a backup is still occurring and didn't freeze.
  • Bug fix: Honor bgbkup-cli method argument.
Download this release

Release Info

Developer boldgrid
Plugin Icon 128x128 Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
Version 1.9.1
Comparing to
See all releases

Code changes from version 1.9.0 to 1.9.1

admin/class-boldgrid-backup-admin-in-progress-data.php CHANGED
@@ -10,7 +10,6 @@
10
  * @package Boldgrid_Backup
11
  * @subpackage Boldgrid_Backup/admin
12
  * @copyright BoldGrid
13
- * @version $Id$
14
  * @author BoldGrid <support@boldgrid.com>
15
  */
16
 
@@ -20,7 +19,6 @@
20
  * @since 1.7.0
21
  */
22
  class Boldgrid_Backup_Admin_In_Progress_Data {
23
-
24
  /**
25
  * Option name in which data is stored.
26
  *
@@ -51,6 +49,7 @@ class Boldgrid_Backup_Admin_In_Progress_Data {
51
  *
52
  * @since 1.7.0
53
  *
 
54
  * @return mixed
55
  */
56
  public static function get_arg( $key ) {
@@ -76,6 +75,8 @@ class Boldgrid_Backup_Admin_In_Progress_Data {
76
  * Generally displayed under a "Backup Now" button.
77
  *
78
  * @since 1.7.0
 
 
79
  */
80
  public static function get_markup( $label = null ) {
81
  $label = ! empty( $label ) ? $label : __( 'Initializing backup...', 'boldgrid-backup' );
10
  * @package Boldgrid_Backup
11
  * @subpackage Boldgrid_Backup/admin
12
  * @copyright BoldGrid
 
13
  * @author BoldGrid <support@boldgrid.com>
14
  */
15
 
19
  * @since 1.7.0
20
  */
21
  class Boldgrid_Backup_Admin_In_Progress_Data {
 
22
  /**
23
  * Option name in which data is stored.
24
  *
49
  *
50
  * @since 1.7.0
51
  *
52
+ * @param string $key Index/key.
53
  * @return mixed
54
  */
55
  public static function get_arg( $key ) {
75
  * Generally displayed under a "Backup Now" button.
76
  *
77
  * @since 1.7.0
78
+ *
79
+ * @param string $label Progress label.
80
  */
81
  public static function get_markup( $label = null ) {
82
  $label = ! empty( $label ) ? $label : __( 'Initializing backup...', 'boldgrid-backup' );
admin/class-boldgrid-backup-admin-in-progress.php CHANGED
@@ -8,7 +8,6 @@
8
  * @package Boldgrid_Backup
9
  * @subpackage Boldgrid_Backup/admin
10
  * @copyright BoldGrid
11
- * @version $Id$
12
  * @author BoldGrid <support@boldgrid.com>
13
  */
14
 
@@ -21,7 +20,7 @@ class Boldgrid_Backup_Admin_In_Progress {
21
  /**
22
  * The core class object.
23
  *
24
- * @since 1.6.0
25
  * @access private
26
  * @var Boldgrid_Backup_Admin_Core
27
  */
@@ -219,7 +218,7 @@ class Boldgrid_Backup_Admin_In_Progress {
219
  $data = array(
220
  'size' => $dirlist[ $tmp_filename ]['size'],
221
  'lastmodunix' => $dirlist[ $tmp_filename ]['lastmodunix'],
222
- 'size_format' => size_format( $dirlist[ $tmp_filename ]['size'] ),
223
  );
224
  }
225
 
8
  * @package Boldgrid_Backup
9
  * @subpackage Boldgrid_Backup/admin
10
  * @copyright BoldGrid
 
11
  * @author BoldGrid <support@boldgrid.com>
12
  */
13
 
20
  /**
21
  * The core class object.
22
  *
23
+ * @since 1.6.0
24
  * @access private
25
  * @var Boldgrid_Backup_Admin_Core
26
  */
218
  $data = array(
219
  'size' => $dirlist[ $tmp_filename ]['size'],
220
  'lastmodunix' => $dirlist[ $tmp_filename ]['lastmodunix'],
221
+ 'size_format' => size_format( $dirlist[ $tmp_filename ]['size'], 2 ),
222
  );
223
  }
224
 
admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php CHANGED
@@ -191,7 +191,7 @@ class Boldgrid_Backup_Admin_Compressor_Php_Zip extends Boldgrid_Backup_Admin_Com
191
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_files_done', $number_files_archived );
192
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'last_files', $last_x_files );
193
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived', $total_size_archived );
194
- Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived_size_format', size_format( $total_size_archived ) );
195
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'step', 2 );
196
  }
197
  }
191
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_files_done', $number_files_archived );
192
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'last_files', $last_x_files );
193
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived', $total_size_archived );
194
+ Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived_size_format', size_format( $total_size_archived, 2 ) );
195
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'step', 2 );
196
  }
197
  }
admin/js/boldgrid-backup-admin-backup-now.js CHANGED
@@ -132,6 +132,9 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
132
  /**
133
  * @summary backupNow success callback.
134
  *
 
 
 
135
  * @since 1.5.3
136
  */
137
  successCallback = function( response ) {
@@ -141,7 +144,7 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
141
  success && data.data !== undefined && data.data.callback !== undefined ?
142
  data.data.callback :
143
  null;
144
-
145
  $( 'body' ).trigger( 'boldgrid_backup_complete' );
146
 
147
  switch ( callback ) {
@@ -212,7 +215,7 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
212
  }
213
  }
214
  } );
215
-
216
  $( 'body' ).trigger( 'boldgrid_backup_initiated' );
217
 
218
  // Prevent default browser action.
132
  /**
133
  * @summary backupNow success callback.
134
  *
135
+ * This is the success callback function for the boldgrid_backup_now ajax call, which is
136
+ * handled by $Boldgrid_Backup_Admin_Core->boldgrid_backup_now_callback().
137
+ *
138
  * @since 1.5.3
139
  */
140
  successCallback = function( response ) {
144
  success && data.data !== undefined && data.data.callback !== undefined ?
145
  data.data.callback :
146
  null;
147
+
148
  $( 'body' ).trigger( 'boldgrid_backup_complete' );
149
 
150
  switch ( callback ) {
215
  }
216
  }
217
  } );
218
+
219
  $( 'body' ).trigger( 'boldgrid_backup_initiated' );
220
 
221
  // Prevent default browser action.
admin/partials/remote/ftp.php CHANGED
@@ -2,7 +2,10 @@
2
  /**
3
  * File: ftp.php
4
  *
5
- * The file handles the rendering of the remove FTP/SFTP options on the settings page.
 
 
 
6
  *
7
  * @link https://www.boldgrid.com
8
  * @since 1.6.0
@@ -62,6 +65,13 @@ $sftp_selected = 'sftp' === $data['type'] ? $selected : '';
62
  <input type="password" name="pass" value="<?php echo esc_attr( $data['pass'] ); ?>" required />
63
  </td>
64
  </tr>
 
 
 
 
 
 
 
65
  <tr>
66
  <td>
67
  <?php esc_html_e( 'Retention (Number of backup archives to retain)', 'boldgrid-backup' ); ?><br />
2
  /**
3
  * File: ftp.php
4
  *
5
+ * This file handles the rendering of the remote FTP/SFTP options on the settings page.
6
+ *
7
+ * The $data array on this page used to fill in the form fields is generated in
8
+ * Boldgrid_Backup_Admin_Ftp_Page->settings().
9
  *
10
  * @link https://www.boldgrid.com
11
  * @since 1.6.0
65
  <input type="password" name="pass" value="<?php echo esc_attr( $data['pass'] ); ?>" required />
66
  </td>
67
  </tr>
68
+ <tr>
69
+ <td colspan="2">
70
+ <?php esc_html_e( 'Folder name', 'boldgrid-backup' ); ?><br />
71
+ <?php esc_html_e( 'A folder in your FTP/SFTP server to store your backups, will be created if it doesn\'t exist. Please only use letters, numbers, dashes, and underscores.', 'boldgrid-backup' ); ?><br />
72
+ <input type="text" name="folder_name" value="<?php echo esc_attr( $data['folder_name'] ); ?>" min="1" required pattern="[A-Za-z0-9-_]+">
73
+ </td>
74
+ </tr>
75
  <tr>
76
  <td>
77
  <?php esc_html_e( 'Retention (Number of backup archives to retain)', 'boldgrid-backup' ); ?><br />
admin/remote/class-boldgrid-backup-admin-ftp-hooks.php CHANGED
@@ -75,7 +75,7 @@ class Boldgrid_Backup_Admin_Ftp_Hooks {
75
  * @since 1.6.0
76
  */
77
  public function filter_get_all() {
78
- $contents = $this->core->ftp->get_contents( true, $this->core->ftp->remote_dir );
79
  $contents = $this->core->ftp->format_raw_contents( $contents );
80
 
81
  foreach ( $contents as $item ) {
75
  * @since 1.6.0
76
  */
77
  public function filter_get_all() {
78
+ $contents = $this->core->ftp->get_contents( true, $this->core->ftp->get_folder_name() );
79
  $contents = $this->core->ftp->format_raw_contents( $contents );
80
 
81
  foreach ( $contents as $item ) {
admin/remote/class-boldgrid-backup-admin-ftp-page.php CHANGED
@@ -92,7 +92,11 @@ class Boldgrid_Backup_Admin_Ftp_Page {
92
  ),
93
  );
94
 
95
- // Blank data, used when deleting settings.
 
 
 
 
96
  $type = $this->core->ftp->default_type;
97
  $blank_data = array(
98
  'type' => $type,
@@ -100,6 +104,7 @@ class Boldgrid_Backup_Admin_Ftp_Page {
100
  'port' => $this->core->ftp->default_port[ $type ],
101
  'user' => null,
102
  'pass' => null,
 
103
  'retention_count' => $this->core->ftp->retention_count,
104
  'nickname' => '',
105
  );
@@ -193,6 +198,7 @@ class Boldgrid_Backup_Admin_Ftp_Page {
193
  $settings['remote'][ $ftp->key ] = array();
194
  }
195
 
 
196
  $data = $ftp->get_from_post();
197
 
198
  $valid_credentials = $ftp->is_valid_credentials( $data['host'], $data['user'], $data['pass'], $data['port'], $data['type'] );
@@ -207,6 +213,7 @@ class Boldgrid_Backup_Admin_Ftp_Page {
207
 
208
  $settings['remote'][ $ftp->key ]['retention_count'] = $data['retention_count'];
209
  $settings['remote'][ $ftp->key ]['nickname'] = $data['nickname'];
 
210
 
211
  if ( ! empty( $ftp->errors ) ) {
212
  do_action( 'boldgrid_backup_notice', implode( '<br /><br />', $ftp->errors ) );
92
  ),
93
  );
94
 
95
+ /*
96
+ * Blank data, used when deleting settings.
97
+ *
98
+ * If we are deleting our settings, this data will be used to repopulate the form.
99
+ */
100
  $type = $this->core->ftp->default_type;
101
  $blank_data = array(
102
  'type' => $type,
104
  'port' => $this->core->ftp->default_port[ $type ],
105
  'user' => null,
106
  'pass' => null,
107
+ 'folder_name' => $this->core->ftp->default_folder_name,
108
  'retention_count' => $this->core->ftp->retention_count,
109
  'nickname' => '',
110
  );
198
  $settings['remote'][ $ftp->key ] = array();
199
  }
200
 
201
+ // This method has default values for each setting and also handles sanitization.
202
  $data = $ftp->get_from_post();
203
 
204
  $valid_credentials = $ftp->is_valid_credentials( $data['host'], $data['user'], $data['pass'], $data['port'], $data['type'] );
213
 
214
  $settings['remote'][ $ftp->key ]['retention_count'] = $data['retention_count'];
215
  $settings['remote'][ $ftp->key ]['nickname'] = $data['nickname'];
216
+ $settings['remote'][ $ftp->key ]['folder_name'] = $data['folder_name'];
217
 
218
  if ( ! empty( $ftp->errors ) ) {
219
  do_action( 'boldgrid_backup_notice', implode( '<br /><br />', $ftp->errors ) );
admin/remote/class-boldgrid-backup-admin-ftp.php CHANGED
@@ -38,6 +38,16 @@ class Boldgrid_Backup_Admin_Ftp {
38
  */
39
  private $core;
40
 
 
 
 
 
 
 
 
 
 
 
41
  /**
42
  * Default port numbers.
43
  *
@@ -68,6 +78,16 @@ class Boldgrid_Backup_Admin_Ftp {
68
  */
69
  public $errors = array();
70
 
 
 
 
 
 
 
 
 
 
 
71
  /**
72
  * Hooks class.
73
  *
@@ -124,15 +144,6 @@ class Boldgrid_Backup_Admin_Ftp {
124
  */
125
  private $pass = null;
126
 
127
- /**
128
- * FTP remote directory.
129
- *
130
- * @since 1.6.0
131
- * @access public
132
- * @var string
133
- */
134
- public $remote_dir = 'boldgrid_backup';
135
-
136
  /**
137
  * Retention count.
138
  *
@@ -222,6 +233,8 @@ class Boldgrid_Backup_Admin_Ftp {
222
  $this->hooks = new Boldgrid_Backup_Admin_Ftp_Hooks( $core );
223
  $this->page = new Boldgrid_Backup_Admin_Ftp_Page( $core );
224
  $this->settings = new Boldgrid_Backup_Admin_Remote_Settings( $this->key );
 
 
225
  }
226
 
227
  /**
@@ -268,16 +281,16 @@ class Boldgrid_Backup_Admin_Ftp {
268
  if ( ! $contents || ! is_array( $contents ) ) {
269
  $this->errors[] = __( 'Unable to get a directory listing from FTP server.', 'boldgrid-backup' );
270
  return false;
271
- } elseif ( in_array( $this->remote_dir, $contents, true ) ) {
272
  return true;
273
  }
274
 
275
  switch ( $this->type ) {
276
  case 'ftp':
277
- $created = ftp_mkdir( $this->connection, $this->remote_dir );
278
  break;
279
  case 'sftp':
280
- $created = $this->connection->mkdir( $this->remote_dir );
281
  break;
282
  }
283
 
@@ -288,7 +301,7 @@ class Boldgrid_Backup_Admin_Ftp {
288
  'Unable to create the following directory on FTP server: %1$s',
289
  'boldgrid-backup'
290
  ),
291
- $this->remote_dir
292
  );
293
  }
294
 
@@ -320,7 +333,7 @@ class Boldgrid_Backup_Admin_Ftp {
320
  $this->connect();
321
 
322
  $local_filepath = $this->core->backup_dir->get_path_to( $filename );
323
- $server_filepath = $this->remote_dir . '/' . $filename;
324
  $success = false;
325
 
326
  $this->log_in();
@@ -351,7 +364,7 @@ class Boldgrid_Backup_Admin_Ftp {
351
  return;
352
  }
353
 
354
- $contents = $this->get_contents( true, $this->remote_dir );
355
  $backups = $this->format_raw_contents( $contents );
356
 
357
  $count_to_delete = count( $backups ) - $this->retention_count;
@@ -368,7 +381,7 @@ class Boldgrid_Backup_Admin_Ftp {
368
 
369
  for ( $x = 0; $x < $count_to_delete; $x++ ) {
370
  $filename = $backups[ $x ]['filename'];
371
- $path = $this->remote_dir . '/' . $filename;
372
 
373
  switch ( $this->type ) {
374
  case 'ftp':
@@ -392,9 +405,48 @@ class Boldgrid_Backup_Admin_Ftp {
392
  }
393
  }
394
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
  /**
396
  * Get our settings from $_POST.
397
  *
 
 
398
  * @since 1.6.0
399
  *
400
  * @return array
@@ -417,6 +469,11 @@ class Boldgrid_Backup_Admin_Ftp {
417
  'key' => 'pass',
418
  'default' => null,
419
  ),
 
 
 
 
 
420
  array(
421
  'key' => 'type',
422
  'default' => $this->default_type,
@@ -886,6 +943,21 @@ class Boldgrid_Backup_Admin_Ftp {
886
  $this->type = $this->default_type;
887
  }
888
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
889
  /**
890
  * Set our ftp password.
891
  *
@@ -905,7 +977,7 @@ class Boldgrid_Backup_Admin_Ftp {
905
  * @param string $filepath File path.
906
  */
907
  public function is_uploaded( $filepath ) {
908
- $contents = $this->get_contents( false, $this->remote_dir );
909
 
910
  return ! is_array( $contents ) ? false : in_array( basename( $filepath ), $contents, true );
911
  }
@@ -919,7 +991,7 @@ class Boldgrid_Backup_Admin_Ftp {
919
  * @return bool
920
  */
921
  public function upload( $filepath ) {
922
- $remote_file = $this->remote_dir . '/' . basename( $filepath );
923
 
924
  $timestamp = filemtime( $filepath );
925
 
38
  */
39
  private $core;
40
 
41
+ /**
42
+ * Default folder name.
43
+ *
44
+ * Set using Boldgrid_Backup_Admin_Ftp->set_default_folder_name(), within the constructor.
45
+ *
46
+ * @since 1.9.1
47
+ * @var string
48
+ */
49
+ public $default_folder_name;
50
+
51
  /**
52
  * Default port numbers.
53
  *
78
  */
79
  public $errors = array();
80
 
81
+ /**
82
+ * The folder on the remote FTP server where backups are stored.
83
+ *
84
+ * Handled by Boldgrid_Backup_Admin_Ftp->get_folder_name().
85
+ *
86
+ * @since 1.9.1
87
+ * @var string
88
+ */
89
+ public $folder_name;
90
+
91
  /**
92
  * Hooks class.
93
  *
144
  */
145
  private $pass = null;
146
 
 
 
 
 
 
 
 
 
 
147
  /**
148
  * Retention count.
149
  *
233
  $this->hooks = new Boldgrid_Backup_Admin_Ftp_Hooks( $core );
234
  $this->page = new Boldgrid_Backup_Admin_Ftp_Page( $core );
235
  $this->settings = new Boldgrid_Backup_Admin_Remote_Settings( $this->key );
236
+
237
+ $this->set_default_folder_name();
238
  }
239
 
240
  /**
281
  if ( ! $contents || ! is_array( $contents ) ) {
282
  $this->errors[] = __( 'Unable to get a directory listing from FTP server.', 'boldgrid-backup' );
283
  return false;
284
+ } elseif ( in_array( $this->get_folder_name(), $contents, true ) ) {
285
  return true;
286
  }
287
 
288
  switch ( $this->type ) {
289
  case 'ftp':
290
+ $created = ftp_mkdir( $this->connection, $this->get_folder_name() );
291
  break;
292
  case 'sftp':
293
+ $created = $this->connection->mkdir( $this->get_folder_name() );
294
  break;
295
  }
296
 
301
  'Unable to create the following directory on FTP server: %1$s',
302
  'boldgrid-backup'
303
  ),
304
+ $this->get_folder_name()
305
  );
306
  }
307
 
333
  $this->connect();
334
 
335
  $local_filepath = $this->core->backup_dir->get_path_to( $filename );
336
+ $server_filepath = $this->get_folder_name() . '/' . $filename;
337
  $success = false;
338
 
339
  $this->log_in();
364
  return;
365
  }
366
 
367
+ $contents = $this->get_contents( true, $this->get_folder_name() );
368
  $backups = $this->format_raw_contents( $contents );
369
 
370
  $count_to_delete = count( $backups ) - $this->retention_count;
381
 
382
  for ( $x = 0; $x < $count_to_delete; $x++ ) {
383
  $filename = $backups[ $x ]['filename'];
384
+ $path = $this->get_folder_name() . '/' . $filename;
385
 
386
  switch ( $this->type ) {
387
  case 'ftp':
405
  }
406
  }
407
 
408
+ /**
409
+ * Get our ftp folder name.
410
+ *
411
+ * @since 1.9.1
412
+ *
413
+ * @return string
414
+ */
415
+ public function get_folder_name() {
416
+ if ( ! empty( $this->folder_name ) ) {
417
+ return $this->folder_name;
418
+ }
419
+
420
+ $settings = $this->core->settings->get_settings();
421
+ $has_settings = isset( $settings['remote'][ $this->key ] );
422
+ $has_folder_set = ! empty( $settings['remote'][ $this->key ]['folder_name'] );
423
+
424
+ /*
425
+ * In version 1, no folder name was configurable by the user and it defaulted to
426
+ * "boldgrid-backup" ($this->remote_dir, which was removed in 1.9.1). In version 2, the user
427
+ * can set a custom folder name.
428
+ *
429
+ * This is for backwards compatibility.
430
+ */
431
+ $version = $has_settings && ! $has_folder_set ? 1 : 2;
432
+
433
+ switch ( $version ) {
434
+ case 1:
435
+ $this->folder_name = 'boldgrid_backup';
436
+ break;
437
+ case 2:
438
+ $this->folder_name = $has_folder_set ? $settings['remote'][ $this->key ]['folder_name'] : $this->default_folder_name;
439
+ break;
440
+ }
441
+
442
+ return $this->folder_name;
443
+ }
444
+
445
  /**
446
  * Get our settings from $_POST.
447
  *
448
+ * For example, if we are saving our FTP settings, get all the data the user set from $_POST.
449
+ *
450
  * @since 1.6.0
451
  *
452
  * @return array
469
  'key' => 'pass',
470
  'default' => null,
471
  ),
472
+ array(
473
+ 'key' => 'folder_name',
474
+ 'default' => $this->get_folder_name(),
475
+ 'callback' => 'sanitize_file_name',
476
+ ),
477
  array(
478
  'key' => 'type',
479
  'default' => $this->default_type,
943
  $this->type = $this->default_type;
944
  }
945
 
946
+ /**
947
+ * Set our default_folder_name.
948
+ *
949
+ * @since 1.9.1
950
+ */
951
+ public function set_default_folder_name() {
952
+ $site_url = get_site_url();
953
+ $site_url = str_replace( 'https://', '', $site_url );
954
+ $site_url = str_replace( 'http://', '', $site_url );
955
+ $site_url = str_replace( '/', '-', $site_url );
956
+ $site_url = str_replace( '.', '-', $site_url );
957
+
958
+ $this->default_folder_name = sanitize_file_name( 'boldgrid-backup-' . $site_url );
959
+ }
960
+
961
  /**
962
  * Set our ftp password.
963
  *
977
  * @param string $filepath File path.
978
  */
979
  public function is_uploaded( $filepath ) {
980
+ $contents = $this->get_contents( false, $this->get_folder_name() );
981
 
982
  return ! is_array( $contents ) ? false : in_array( basename( $filepath ), $contents, true );
983
  }
991
  * @return bool
992
  */
993
  public function upload( $filepath ) {
994
+ $remote_file = $this->get_folder_name() . '/' . basename( $filepath );
995
 
996
  $timestamp = filemtime( $filepath );
997
 
admin/remote/class-boldgrid-backup-admin-sftp.php DELETED
@@ -1,563 +0,0 @@
1
- <?php
2
- /**
3
- * File: class-boldgrid-backup-admin-sftp.php
4
- *
5
- * @link https://www.boldgrid.com
6
- * @since 1.6.0
7
- *
8
- * @package Boldgrid_Backup
9
- * @subpackage Boldgrid_Backup/admin/remote
10
- * @copyright BoldGrid
11
- * @version $Id$
12
- * @author BoldGrid <support@boldgrid.com>
13
- */
14
-
15
- // phpcs:disable WordPress.VIP
16
-
17
- /**
18
- * Class: Boldgrid_Backup_Admin_Sftp
19
- *
20
- * @since 1.6.0
21
- */
22
- class Boldgrid_Backup_Admin_Sftp {
23
- /**
24
- * An SFTP connection.
25
- *
26
- * @since 1.6.0
27
- * @access private
28
- * @var Resource
29
- */
30
- private $connection = null;
31
-
32
- /**
33
- * The core class object.
34
- *
35
- * @since 1.6.0
36
- * @access private
37
- * @var Boldgrid_Backup_Admin_Core
38
- */
39
- private $core;
40
-
41
- /**
42
- * Hooks class.
43
- *
44
- * @since 1.6.0
45
- * @access public
46
- * @var Boldgrid_Backup_Admin_Sftp_Hooks
47
- */
48
- public $hooks;
49
-
50
- /**
51
- * SFTP host.
52
- *
53
- * @since 1.6.0
54
- * @access private
55
- * @var string
56
- */
57
- private $host = null;
58
-
59
- /**
60
- * Whether or not we have logged in.
61
- *
62
- * @since 1.6.0
63
- * @access public
64
- * @var bool
65
- */
66
- public $logged_in = false;
67
-
68
- /**
69
- * Our key / label for sftp.
70
- *
71
- * @since 1.6.0
72
- * @access public
73
- * @var string
74
- */
75
- public $key = 'sftp';
76
-
77
- /**
78
- * SFTP password.
79
- *
80
- * @since 1.6.0
81
- * @access private
82
- * @var string
83
- */
84
- private $pass = null;
85
-
86
- /**
87
- * SFTP port.
88
- *
89
- * @since 1.6.0
90
- * @access public
91
- * @var int
92
- */
93
- public $port = 22;
94
-
95
- /**
96
- * SFTP remote directory.
97
- *
98
- * @since 1.6.0
99
- * @access public
100
- * @var string
101
- */
102
- public $remote_dir = 'boldgrid_backup';
103
-
104
- /**
105
- * Retention count.
106
- *
107
- * @since 1.6.0
108
- * @access public
109
- * @var int $retention_count
110
- */
111
- public $retention_count = 5;
112
-
113
- /**
114
- * Our title / label for sftp.
115
- *
116
- * @since 1.6.0
117
- * @access public
118
- * @var string
119
- */
120
- public $title = 'SFTP';
121
-
122
- /**
123
- * SFTP username.
124
- *
125
- * @since 1.6.0
126
- * @access private
127
- * @var string
128
- */
129
- private $user = null;
130
-
131
- /**
132
- * Constructor.
133
- *
134
- * @since 1.6.0
135
- *
136
- * @param Boldgrid_Backup_Admin_Core $core Core class object.
137
- */
138
- public function __construct( $core ) {
139
- include_once BOLDGRID_BACKUP_PATH . '/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php';
140
-
141
- $this->core = $core;
142
- }
143
-
144
- /**
145
- * Connect to our sftp server.
146
- *
147
- * @since 1.6.0
148
- */
149
- public function connect() {
150
- if ( ! empty( $this->connection ) ) {
151
- return;
152
- }
153
-
154
- $this->init();
155
-
156
- if ( empty( $this->user ) || empty( $this->pass ) || empty( $this->host ) ) {
157
- return;
158
- }
159
-
160
- $this->connection = new phpseclib\Net\SFTP( $this->host, $this->port );
161
- }
162
-
163
- /**
164
- * Create backup directory on remote host.
165
- *
166
- * @since 1.6.0
167
- *
168
- * @return bool False when we were unable to create directory.
169
- */
170
- public function create_backup_dir() {
171
- $this->connect();
172
- $this->log_in();
173
- if ( ! $this->logged_in ) {
174
- return false;
175
- }
176
-
177
- $contents = $this->get_contents();
178
- if ( in_array( $this->remote_dir, $contents, true ) ) {
179
- return true;
180
- }
181
-
182
- return $this->connection->mkdir( $this->remote_dir );
183
- }
184
-
185
- /**
186
- * Disconnect from SFTP server.
187
- *
188
- * @since 1.6.0
189
- */
190
- public function disconnect() {
191
- }
192
-
193
- /**
194
- * Enforce retention.
195
- *
196
- * @since 1.6.0
197
- */
198
- public function enforce_retention() {
199
- if ( empty( $this->retention_count ) ) {
200
- return;
201
- }
202
-
203
- $backups = array();
204
- $contents = $this->get_contents( true, $this->remote_dir );
205
-
206
- // The contents usually include . and .., so remove 2 from list.
207
- $count_to_delete = count( $contents ) - $this->retention_count - 2;
208
-
209
- if ( ! is_array( $contents ) || $count_to_delete <= 0 ) {
210
- return false;
211
- }
212
-
213
- $backups = $this->format_raw_contents( $contents );
214
-
215
- usort(
216
- $backups, function( $a, $b ) {
217
- return $a['time'] < $b['time'] ? -1 : 1;
218
- }
219
- );
220
-
221
- for ( $x = 0; $x < $count_to_delete; $x++ ) {
222
- $filename = $backups[ $x ]['filename'];
223
- $this->connection->delete( $this->remote_dir . '/' . $filename );
224
-
225
- /**
226
- * Remote file deleted due to remote retention settings.
227
- *
228
- * @since 1.6.0
229
- */
230
- do_action(
231
- 'boldgrid_backup_remote_retention_deleted',
232
- $this->title,
233
- $filename
234
- );
235
- }
236
- }
237
-
238
- /**
239
- * Format raw contents.
240
- *
241
- * This method takes in raw contents and returns an array of backups, with
242
- * keys defining timestamp and filename.
243
- *
244
- * @since 1.6.0
245
- *
246
- * @param array $contents Raw contents received from this->get_contents.
247
- * @return array {
248
- * An array of backups.
249
- *
250
- * @type int $time Timestamp file was uploaded to sftp server.
251
- * @type string $filename
252
- * }
253
- */
254
- public function format_raw_contents( $contents ) {
255
- $skips = array( '.', '..' );
256
- $backups = array();
257
-
258
- if ( ! is_array( $contents ) ) {
259
- return array();
260
- }
261
-
262
- foreach ( $contents as $item ) {
263
- $exploded_item = explode( ' ', $item );
264
-
265
- $count = count( $exploded_item );
266
-
267
- $filename = $exploded_item[ $count - 1 ];
268
-
269
- if ( in_array( $filename, $skips, true ) ) {
270
- continue;
271
- }
272
-
273
- // Get the timestamp.
274
- $month = $exploded_item[ $count - 4 ];
275
- $day = $exploded_item[ $count - 3 ];
276
- $time = $exploded_item[ $count - 2 ];
277
- $time = strtotime( $month . ' ' . $day . ' ' . $time );
278
-
279
- $backups[] = array(
280
- 'time' => $time,
281
- 'filename' => $filename,
282
- );
283
- }
284
-
285
- return $backups;
286
- }
287
-
288
- /**
289
- * Get the remote contents / listing.
290
- *
291
- * @since 1.6.0
292
- *
293
- * @param bool $raw Whether to get the raw contents (sftp_rawlist) or not
294
- * (sftp_nlist).
295
- * @param string $dir The directory to get listing of.
296
- * @return mixed
297
- */
298
- public function get_contents( $raw = false, $dir = '.' ) {
299
- $this->connect();
300
- $this->log_in();
301
- if ( ! $this->logged_in ) {
302
- return array();
303
- }
304
-
305
- if ( $raw ) {
306
- return $this->connection->rawlist( $dir );
307
- } else {
308
- return $this->connection->nlist( $dir );
309
- }
310
- }
311
-
312
- /**
313
- * Get settings.
314
- *
315
- * @since 1.6.0
316
- */
317
- public function get_details() {
318
- $settings = $this->core->settings->get_settings();
319
-
320
- return array(
321
- 'title' => $this->title,
322
- 'key' => $this->key,
323
- 'configure' => 'admin.php?page=boldgrid-backup-sftp',
324
- 'is_setup' => $this->is_setup(),
325
- 'enabled' => ! empty( $settings['remote'][ $this->key ]['enabled'] ) && $settings['remote'][ $this->key ]['enabled'] && $this->is_setup(),
326
- );
327
- }
328
-
329
- /**
330
- * Init properties.
331
- *
332
- * @since 1.6.0
333
- */
334
- public function init() {
335
- if ( ! empty( $this->user ) || ! empty( $this->pass ) || ! empty( $this->host ) ) {
336
- return;
337
- }
338
-
339
- $settings = $this->core->settings->get_settings();
340
-
341
- $labels = array( 'user', 'pass', 'host', 'port', 'retention_count' );
342
-
343
- foreach ( $labels as $label ) {
344
- $this->$label = ! empty( $settings['remote'][ $this->key ][ $label ] ) ? $settings['remote'][ $this->key ][ $label ] : null;
345
- }
346
- }
347
-
348
- /**
349
- * Determine whether or not SFTP is setup.
350
- *
351
- * @since 1.6.0
352
- *
353
- * @return bool
354
- */
355
- public function is_setup() {
356
- $this->connect();
357
- $this->log_in();
358
-
359
- return $this->logged_in;
360
- }
361
-
362
- /**
363
- * Determine if a set of SFTP credentials are valid.
364
- *
365
- * @since 1.6.0
366
- *
367
- * @param string $host Hostname.
368
- * @param string $user Username.
369
- * @param string $pass Password.
370
- * @param int $port Port number.
371
- * @return bool
372
- */
373
- public function is_valid_credentials( $host, $user, $pass, $port ) {
374
- $connection = new phpseclib\Net\SFTP( $host, $port );
375
- if ( ! $connection ) {
376
- return false;
377
- }
378
-
379
- $logged_in = @$connection->login( $user, $pass ); // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
380
- if ( ! $logged_in ) {
381
- $this->errors[] = __( 'Unable to connect and log in.', 'boldgrid-backup' );
382
- return false;
383
- }
384
-
385
- return true;
386
- }
387
-
388
- /**
389
- * Log into the SFTP server.
390
- *
391
- * @since 1.6.0
392
- *
393
- * @return bool
394
- */
395
- public function log_in() {
396
- if ( $this->logged_in ) {
397
- return;
398
- }
399
-
400
- $this->connect();
401
- if ( empty( $this->connection ) ) {
402
- return false;
403
- }
404
-
405
- $this->logged_in = $this->connection->login( $this->user, $this->pass );
406
- if ( ! $this->logged_in ) {
407
- $this->disconnect();
408
- }
409
- }
410
-
411
- /**
412
- * Is file uploaded?
413
- *
414
- * @since 1.6.0
415
- *
416
- * @param string $filepath File path.
417
- */
418
- public function is_uploaded( $filepath ) {
419
- $contents = $this->get_contents( false, $this->remote_dir );
420
-
421
- return ! is_array( $contents ) ? false : in_array( basename( $filepath ), $contents, true );
422
- }
423
-
424
- /**
425
- * Generate the submenu page for our SFTP Settings page.
426
- *
427
- * @since 1.6.0
428
- */
429
- public function submenu_page() {
430
- wp_enqueue_style( 'boldgrid-backup-admin-hide-all' );
431
-
432
- $this->submenu_page_save();
433
-
434
- $settings = $this->core->settings->get_settings();
435
-
436
- $host = ! empty( $settings['remote'][ $this->key ]['host'] ) ? $settings['remote'][ $this->key ]['host'] : null;
437
- $user = ! empty( $settings['remote'][ $this->key ]['user'] ) ? $settings['remote'][ $this->key ]['user'] : null;
438
- $pass = ! empty( $settings['remote'][ $this->key ]['pass'] ) ? $settings['remote'][ $this->key ]['pass'] : null;
439
- $port = ! empty( $settings['remote'][ $this->key ]['port'] ) ? $settings['remote'][ $this->key ]['port'] : $this->port;
440
- $retention_count = ! empty( $settings['remote'][ $this->key ]['retention_count'] ) ? $settings['remote'][ $this->key ]['retention_count'] : $this->retention_count;
441
-
442
- include BOLDGRID_BACKUP_PATH . '/admin/partials/remote/sftp.php';
443
- }
444
-
445
- /**
446
- * Process the user's request to update their SFTP settings.
447
- *
448
- * @since 1.6.0
449
- */
450
- public function submenu_page_save() {
451
- if ( ! current_user_can( 'update_plugins' ) ) {
452
- return false;
453
- }
454
-
455
- // phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.NoNonceVerification
456
-
457
- if ( empty( $_POST ) ) {
458
- return false;
459
- }
460
-
461
- $settings = $this->core->settings->get_settings();
462
- if ( ! isset( $settings['remote'][ $this->key ] ) || ! is_array( $settings['remote'][ $this->key ] ) ) {
463
- $settings['remote'][ $this->key ] = array();
464
- }
465
-
466
- /*
467
- * If the user has requested to delete all their settings, do that now
468
- * and return.
469
- */
470
- if ( __( 'Delete settings', 'boldgrid-backup' ) === $_POST['submit'] ) {
471
- $settings['remote'][ $this->key ] = array();
472
- update_site_option( 'boldgrid_backup_settings', $settings );
473
-
474
- $this->host = null;
475
- $this->user = null;
476
- $this->pass = null;
477
- $this->retention_count = null;
478
- $this->disconnect();
479
-
480
- do_action( 'boldgrid_backup_notice', __( 'Settings saved.', 'boldgrid-backup' ), 'notice updated is-dismissible' );
481
- return;
482
- }
483
-
484
- $errors = array();
485
-
486
- // Get and validate our credentials.
487
- $host = ! empty( $_POST['host'] ) ? sanitize_file_name( $_POST['host'] ) : null;
488
- $user = ! empty( $_POST['user'] ) ? sanitize_text_field( $_POST['user'] ) : null;
489
- $pass = ! empty( $_POST['pass'] ) ? $_POST['pass'] : null;
490
- $port = ! empty( $_POST['port'] ) ? (int) $_POST['port'] : $this->port;
491
-
492
- $valid_credentials = $this->is_valid_credentials( $host, $user, $pass, $port );
493
-
494
- if ( $valid_credentials ) {
495
- $settings['remote'][ $this->key ]['host'] = $host;
496
- $settings['remote'][ $this->key ]['user'] = $user;
497
- $settings['remote'][ $this->key ]['pass'] = $pass;
498
- $settings['remote'][ $this->key ]['port'] = $port;
499
- } elseif ( empty( $this->errors ) ) {
500
- $this->errors[] = __( 'Unknown error.', 'boldgrid-backup' );
501
- }
502
-
503
- $retention_count = ! empty( $_POST['retention_count'] ) &&
504
- is_numeric( $_POST['retention_count'] ) ?
505
- (int) $_POST['retention_count'] : $this->retention_count;
506
-
507
- $settings['remote'][ $this->key ]['retention_count'] = $retention_count;
508
-
509
- if ( ! empty( $this->errors ) ) {
510
- do_action( 'boldgrid_backup_notice', implode( '<br /><br />', $this->errors ) );
511
- } else {
512
- update_site_option( 'boldgrid_backup_settings', $settings );
513
- do_action( 'boldgrid_backup_notice', __( 'Settings saved.', 'boldgrid-backup' ), 'notice updated is-dismissible' );
514
- }
515
-
516
- // phpcs:enable WordPress.CSRF.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.NoNonceVerification
517
- }
518
-
519
- /**
520
- * Upload a file.
521
- *
522
- * @since 1.6.0
523
- *
524
- * @param string $filepath File path.
525
- * @return bool
526
- */
527
- public function upload( $filepath ) {
528
- $remote_file = $this->remote_dir . '/' . basename( $filepath );
529
-
530
- $this->connect();
531
- $this->log_in();
532
- if ( ! $this->logged_in ) {
533
- $this->errors[] = __( 'Unable to log in to sftp server.', 'boldgrid-backup' );
534
- return false;
535
- }
536
-
537
- $has_remote_dir = $this->create_backup_dir();
538
- if ( ! $has_remote_dir ) {
539
- $this->errors[] = sprint_f(
540
- // translators: 1: Remote directory path.
541
- __(
542
- 'Unable to create the following directory on SFTP server: %1$s',
543
- 'boldgrid-backup'
544
- ),
545
- $this->remote_dir
546
- );
547
- return false;
548
- }
549
-
550
- $uploaded = $this->connection->put( $remote_file, $filepath, NET_SFTP_LOCAL_FILE );
551
- if ( ! $uploaded ) {
552
- $this->disconnect();
553
- $this->errors[] = __( 'Unable to upload file.', 'boldgrid-backup' );
554
- return false;
555
- }
556
-
557
- $this->enforce_retention();
558
-
559
- $this->disconnect();
560
-
561
- return true;
562
- }
563
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
boldgrid-backup.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: BoldGrid Backup
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: BoldGrid Backup provides WordPress backup and restoration with update protection.
19
- * Version: 1.9.0
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
16
  * Plugin Name: BoldGrid Backup
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: BoldGrid Backup provides WordPress backup and restoration with update protection.
19
+ * Version: 1.9.1
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
coverage.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1553621677">
3
- <project timestamp="1553621677">
4
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-actions.php">
5
  <class name="Boldgrid_Backup_Admin_Archive_Actions" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
6
  <metrics complexity="15" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="110" coveredstatements="2" elements="117" coveredelements="3"/>
@@ -3979,156 +3979,156 @@
3979
  <class name="Boldgrid_Backup_Admin_In_Progress_Data" namespace="global" fullPackage="Boldgrid.Backup.Admin.In.Progress">
3980
  <metrics complexity="9" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="0" elements="35" coveredelements="0"/>
3981
  </class>
3982
- <line num="39" type="method" name="delete_arg" visibility="public" complexity="2" crap="6" count="0"/>
 
3983
  <line num="40" type="stmt" count="0"/>
 
3984
  <line num="42" type="stmt" count="0"/>
3985
- <line num="43" type="stmt" count="0"/>
3986
  <line num="44" type="stmt" count="0"/>
3987
- <line num="46" type="stmt" count="0"/>
3988
- <line num="47" type="stmt" count="0"/>
3989
- <line num="56" type="method" name="get_arg" visibility="public" complexity="2" crap="6" count="0"/>
3990
- <line num="57" type="stmt" count="0"/>
3991
  <line num="59" type="stmt" count="0"/>
3992
- <line num="60" type="stmt" count="0"/>
3993
- <line num="69" type="method" name="get_args" visibility="public" complexity="1" crap="2" count="0"/>
3994
  <line num="70" type="stmt" count="0"/>
3995
- <line num="71" type="stmt" count="0"/>
3996
- <line num="80" type="method" name="get_markup" visibility="public" complexity="2" crap="6" count="0"/>
3997
- <line num="81" type="stmt" count="0"/>
3998
- <line num="83" type="stmt" count="0"/>
3999
  <line num="84" type="stmt" count="0"/>
4000
  <line num="85" type="stmt" count="0"/>
4001
  <line num="86" type="stmt" count="0"/>
4002
  <line num="87" type="stmt" count="0"/>
4003
- <line num="89" type="stmt" count="0"/>
4004
  <line num="90" type="stmt" count="0"/>
4005
  <line num="91" type="stmt" count="0"/>
4006
  <line num="92" type="stmt" count="0"/>
4007
- <line num="94" type="stmt" count="0"/>
4008
  <line num="95" type="stmt" count="0"/>
4009
- <line num="105" type="method" name="set_arg" visibility="public" complexity="1" crap="2" count="0"/>
4010
- <line num="106" type="stmt" count="0"/>
4011
- <line num="108" type="stmt" count="0"/>
4012
- <line num="110" type="stmt" count="0"/>
4013
  <line num="111" type="stmt" count="0"/>
4014
- <line num="120" type="method" name="set_args" visibility="public" complexity="1" crap="2" count="0"/>
4015
- <line num="121" type="stmt" count="0"/>
4016
  <line num="122" type="stmt" count="0"/>
4017
- <metrics loc="123" ncloc="55" classes="1" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="0" elements="35" coveredelements="0"/>
 
4018
  </file>
4019
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress.php">
4020
  <class name="Boldgrid_Backup_Admin_In_Progress" namespace="global" fullPackage="Boldgrid.Backup.Admin.In">
4021
  <metrics complexity="31" methods="13" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="2" elements="97" coveredelements="3"/>
4022
  </class>
4023
- <line num="49" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="12"/>
 
4024
  <line num="50" type="stmt" count="12"/>
4025
- <line num="51" type="stmt" count="12"/>
4026
- <line num="61" type="method" name="add_notice" visibility="public" complexity="4" crap="20" count="0"/>
4027
- <line num="62" type="stmt" count="0"/>
4028
  <line num="64" type="stmt" count="0"/>
4029
- <line num="65" type="stmt" count="0"/>
4030
- <line num="73" type="stmt" count="0"/>
4031
- <line num="75" type="stmt" count="0"/>
4032
  <line num="77" type="stmt" count="0"/>
4033
- <line num="78" type="stmt" count="0"/>
4034
  <line num="80" type="stmt" count="0"/>
4035
  <line num="81" type="stmt" count="0"/>
4036
- <line num="82" type="stmt" count="0"/>
4037
  <line num="89" type="stmt" count="0"/>
4038
  <line num="90" type="stmt" count="0"/>
4039
- <line num="91" type="stmt" count="0"/>
4040
- <line num="93" type="stmt" count="0"/>
4041
  <line num="95" type="stmt" count="0"/>
4042
- <line num="96" type="stmt" count="0"/>
4043
- <line num="98" type="stmt" count="0"/>
4044
- <line num="100" type="stmt" count="0"/>
4045
- <line num="110" type="method" name="end" visibility="public" complexity="2" crap="6" count="0"/>
4046
- <line num="111" type="stmt" count="0"/>
4047
  <line num="113" type="stmt" count="0"/>
4048
  <line num="114" type="stmt" count="0"/>
4049
- <line num="115" type="stmt" count="0"/>
4050
  <line num="117" type="stmt" count="0"/>
4051
- <line num="118" type="stmt" count="0"/>
4052
- <line num="129" type="method" name="get" visibility="public" complexity="2" crap="6" count="0"/>
4053
- <line num="130" type="stmt" count="0"/>
4054
- <line num="132" type="stmt" count="0"/>
4055
- <line num="134" type="stmt" count="0"/>
4056
- <line num="144" type="method" name="get_notice" visibility="public" complexity="2" crap="6" count="0"/>
4057
- <line num="145" type="stmt" count="0"/>
4058
  <line num="147" type="stmt" count="0"/>
4059
- <line num="148" type="stmt" count="0"/>
4060
- <line num="156" type="stmt" count="0"/>
4061
  <line num="158" type="stmt" count="0"/>
4062
- <line num="159" type="stmt" count="0"/>
4063
  <line num="161" type="stmt" count="0"/>
4064
  <line num="162" type="stmt" count="0"/>
4065
  <line num="163" type="stmt" count="0"/>
4066
- <line num="164" type="stmt" count="0"/>
4067
- <line num="166" type="stmt" count="0"/>
4068
- <line num="177" type="method" name="get_notice_markup" visibility="public" complexity="2" crap="6" count="0"/>
4069
  <line num="178" type="stmt" count="0"/>
4070
- <line num="179" type="stmt" count="0"/>
4071
  <line num="181" type="stmt" count="0"/>
4072
  <line num="182" type="stmt" count="0"/>
4073
- <line num="183" type="stmt" count="0"/>
4074
- <line num="185" type="stmt" count="0"/>
4075
- <line num="198" type="method" name="get_tmp" visibility="public" complexity="4" crap="20" count="0"/>
4076
- <line num="199" type="stmt" count="0"/>
4077
- <line num="201" type="stmt" count="0"/>
4078
  <line num="207" type="stmt" count="0"/>
4079
- <line num="208" type="stmt" count="0"/>
4080
- <line num="209" type="method" name="anonymous function" complexity="2" crap="6" count="0"/>
4081
- <line num="210" type="stmt" count="0"/>
4082
  <line num="212" type="stmt" count="0"/>
4083
- <line num="213" type="stmt" count="0"/>
4084
  <line num="215" type="stmt" count="0"/>
4085
  <line num="216" type="stmt" count="0"/>
4086
- <line num="217" type="stmt" count="0"/>
4087
  <line num="220" type="stmt" count="0"/>
4088
  <line num="221" type="stmt" count="0"/>
4089
  <line num="222" type="stmt" count="0"/>
4090
  <line num="223" type="stmt" count="0"/>
4091
- <line num="224" type="stmt" count="0"/>
4092
- <line num="226" type="stmt" count="0"/>
4093
- <line num="241" type="method" name="heartbeat_received" visibility="public" complexity="4" crap="20" count="0"/>
4094
- <line num="242" type="stmt" count="0"/>
4095
  <line num="244" type="stmt" count="0"/>
4096
- <line num="245" type="stmt" count="0"/>
4097
- <line num="249" type="stmt" count="0"/>
4098
- <line num="252" type="stmt" count="0"/>
4099
- <line num="254" type="stmt" count="0"/>
4100
  <line num="257" type="stmt" count="0"/>
4101
  <line num="258" type="stmt" count="0"/>
4102
  <line num="259" type="stmt" count="0"/>
4103
  <line num="260" type="stmt" count="0"/>
4104
  <line num="261" type="stmt" count="0"/>
4105
- <line num="262" type="stmt" count="0"/>
4106
- <line num="264" type="stmt" count="0"/>
4107
- <line num="272" type="method" name="post_dump" visibility="public" complexity="2" crap="6" count="0"/>
4108
  <line num="279" type="stmt" count="0"/>
4109
  <line num="280" type="stmt" count="0"/>
4110
  <line num="281" type="stmt" count="0"/>
4111
- <line num="282" type="stmt" count="0"/>
4112
- <line num="289" type="method" name="pre_dump" visibility="public" complexity="1" crap="2" count="0"/>
4113
  <line num="300" type="stmt" count="0"/>
4114
  <line num="301" type="stmt" count="0"/>
4115
- <line num="302" type="stmt" count="0"/>
4116
- <line num="311" type="method" name="set" visibility="public" complexity="2" crap="6" count="0"/>
4117
- <line num="312" type="stmt" count="0"/>
4118
- <line num="314" type="stmt" count="0"/>
4119
  <line num="316" type="stmt" count="0"/>
4120
- <line num="317" type="stmt" count="0"/>
4121
- <line num="324" type="method" name="wp_ajax_get_progress_notice" visibility="public" complexity="3" crap="12" count="0"/>
4122
  <line num="325" type="stmt" count="0"/>
4123
  <line num="326" type="stmt" count="0"/>
4124
- <line num="327" type="stmt" count="0"/>
4125
  <line num="329" type="stmt" count="0"/>
4126
  <line num="330" type="stmt" count="0"/>
4127
- <line num="331" type="stmt" count="0"/>
4128
- <line num="333" type="stmt" count="0"/>
4129
  <line num="335" type="stmt" count="0"/>
4130
- <line num="336" type="stmt" count="0"/>
4131
- <metrics loc="337" ncloc="171" classes="1" methods="13" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="95" coveredstatements="2" elements="108" coveredelements="3"/>
4132
  </file>
4133
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-jobs.php">
4134
  <class name="Boldgrid_Backup_Admin_Jobs" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -8079,64 +8079,68 @@
8079
  <metrics loc="62" ncloc="32" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="0" elements="21" coveredelements="0"/>
8080
  </file>
8081
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/remote/ftp.php">
8082
- <line num="17" type="stmt" count="0"/>
8083
- <line num="18" type="stmt" count="0"/>
8084
- <line num="19" type="stmt" count="0"/>
8085
  <line num="21" type="stmt" count="0"/>
 
8086
  <line num="24" type="stmt" count="0"/>
8087
- <line num="25" type="stmt" count="0"/>
8088
- <line num="26" type="stmt" count="0"/>
8089
  <line num="27" type="stmt" count="0"/>
 
8090
  <line num="29" type="stmt" count="0"/>
8091
  <line num="30" type="stmt" count="0"/>
8092
- <line num="31" type="stmt" count="0"/>
8093
  <line num="32" type="stmt" count="0"/>
8094
  <line num="33" type="stmt" count="0"/>
8095
  <line num="34" type="stmt" count="0"/>
8096
  <line num="35" type="stmt" count="0"/>
8097
  <line num="36" type="stmt" count="0"/>
8098
  <line num="37" type="stmt" count="0"/>
 
8099
  <line num="39" type="stmt" count="0"/>
8100
  <line num="40" type="stmt" count="0"/>
8101
- <line num="41" type="stmt" count="0"/>
8102
  <line num="42" type="stmt" count="0"/>
8103
  <line num="43" type="stmt" count="0"/>
 
8104
  <line num="45" type="stmt" count="0"/>
 
8105
  <line num="48" type="stmt" count="0"/>
8106
- <line num="49" type="stmt" count="0"/>
8107
- <line num="50" type="stmt" count="0"/>
8108
  <line num="53" type="stmt" count="0"/>
8109
- <line num="54" type="stmt" count="0"/>
8110
- <line num="55" type="stmt" count="0"/>
8111
  <line num="56" type="stmt" count="0"/>
 
 
8112
  <line num="59" type="stmt" count="0"/>
8113
- <line num="60" type="stmt" count="0"/>
8114
  <line num="63" type="stmt" count="0"/>
8115
- <line num="64" type="stmt" count="0"/>
8116
- <line num="65" type="stmt" count="0"/>
8117
  <line num="66" type="stmt" count="0"/>
 
 
8118
  <line num="69" type="stmt" count="0"/>
8119
- <line num="70" type="stmt" count="0"/>
8120
- <line num="71" type="stmt" count="0"/>
8121
- <line num="72" type="stmt" count="0"/>
8122
  <line num="73" type="stmt" count="0"/>
 
 
8123
  <line num="76" type="stmt" count="0"/>
8124
- <line num="77" type="stmt" count="0"/>
8125
- <line num="78" type="stmt" count="0"/>
8126
  <line num="79" type="stmt" count="0"/>
8127
  <line num="80" type="stmt" count="0"/>
 
8128
  <line num="82" type="stmt" count="0"/>
8129
  <line num="83" type="stmt" count="0"/>
8130
- <line num="84" type="stmt" count="0"/>
8131
- <line num="85" type="stmt" count="0"/>
8132
  <line num="86" type="stmt" count="0"/>
 
8133
  <line num="88" type="stmt" count="0"/>
8134
  <line num="89" type="stmt" count="0"/>
8135
  <line num="90" type="stmt" count="0"/>
 
8136
  <line num="93" type="stmt" count="0"/>
8137
  <line num="94" type="stmt" count="0"/>
8138
  <line num="95" type="stmt" count="0"/>
8139
- <metrics loc="95" ncloc="79" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="57" coveredstatements="0" elements="57" coveredelements="0"/>
 
 
 
 
 
 
 
8140
  </file>
8141
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/remote/local.php">
8142
  <line num="21" type="stmt" count="0"/>
@@ -9285,7 +9289,7 @@
9285
  </file>
9286
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php">
9287
  <class name="Boldgrid_Backup_Admin_Ftp_Page" namespace="global" fullPackage="Boldgrid.Backup.Admin.Ftp">
9288
- <metrics complexity="21" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="105" coveredstatements="2" elements="110" coveredelements="3"/>
9289
  </class>
9290
  <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="12"/>
9291
  <line num="40" type="stmt" count="12"/>
@@ -9319,480 +9323,509 @@
9319
  <line num="91" type="stmt" count="0"/>
9320
  <line num="92" type="stmt" count="0"/>
9321
  <line num="93" type="stmt" count="0"/>
9322
- <line num="96" type="stmt" count="0"/>
9323
- <line num="98" type="stmt" count="0"/>
9324
- <line num="99" type="stmt" count="0"/>
9325
  <line num="100" type="stmt" count="0"/>
9326
- <line num="101" type="stmt" count="0"/>
9327
  <line num="102" type="stmt" count="0"/>
9328
  <line num="103" type="stmt" count="0"/>
9329
  <line num="104" type="stmt" count="0"/>
9330
  <line num="105" type="stmt" count="0"/>
 
 
9331
  <line num="108" type="stmt" count="0"/>
 
9332
  <line num="110" type="stmt" count="0"/>
9333
  <line num="113" type="stmt" count="0"/>
9334
- <line num="114" type="stmt" count="0"/>
9335
  <line num="115" type="stmt" count="0"/>
9336
- <line num="116" type="stmt" count="0"/>
9337
- <line num="117" type="stmt" count="0"/>
9338
  <line num="118" type="stmt" count="0"/>
 
9339
  <line num="120" type="stmt" count="0"/>
9340
  <line num="121" type="stmt" count="0"/>
9341
  <line num="122" type="stmt" count="0"/>
9342
  <line num="123" type="stmt" count="0"/>
9343
- <line num="124" type="stmt" count="0"/>
9344
  <line num="125" type="stmt" count="0"/>
9345
  <line num="126" type="stmt" count="0"/>
9346
  <line num="127" type="stmt" count="0"/>
9347
  <line num="128" type="stmt" count="0"/>
9348
  <line num="129" type="stmt" count="0"/>
 
9349
  <line num="131" type="stmt" count="0"/>
9350
  <line num="132" type="stmt" count="0"/>
9351
- <line num="139" type="method" name="settings_delete" visibility="public" complexity="4" crap="20" count="0"/>
9352
- <line num="140" type="stmt" count="0"/>
9353
- <line num="142" type="stmt" count="0"/>
9354
- <line num="143" type="stmt" count="0"/>
9355
- <line num="146" type="stmt" count="0"/>
 
9356
  <line num="147" type="stmt" count="0"/>
9357
  <line num="148" type="stmt" count="0"/>
9358
- <line num="149" type="stmt" count="0"/>
9359
  <line num="151" type="stmt" count="0"/>
9360
  <line num="152" type="stmt" count="0"/>
 
9361
  <line num="154" type="stmt" count="0"/>
9362
- <line num="155" type="stmt" count="0"/>
9363
  <line num="157" type="stmt" count="0"/>
9364
- <line num="158" type="stmt" count="0"/>
9365
- <line num="167" type="method" name="settings_save" visibility="public" complexity="8" crap="72" count="0"/>
9366
- <line num="168" type="stmt" count="0"/>
9367
- <line num="170" type="stmt" count="0"/>
9368
- <line num="171" type="stmt" count="0"/>
9369
- <line num="172" type="stmt" count="0"/>
9370
  <line num="173" type="stmt" count="0"/>
9371
  <line num="175" type="stmt" count="0"/>
 
9372
  <line num="177" type="stmt" count="0"/>
9373
- <line num="181" type="stmt" count="0"/>
9374
- <line num="183" type="stmt" count="0"/>
9375
- <line num="184" type="stmt" count="0"/>
9376
- <line num="187" type="stmt" count="0"/>
9377
  <line num="188" type="stmt" count="0"/>
9378
- <line num="191" type="stmt" count="0"/>
9379
  <line num="192" type="stmt" count="0"/>
9380
  <line num="193" type="stmt" count="0"/>
9381
- <line num="194" type="stmt" count="0"/>
9382
  <line num="196" type="stmt" count="0"/>
 
9383
  <line num="198" type="stmt" count="0"/>
9384
- <line num="200" type="stmt" count="0"/>
9385
- <line num="201" type="stmt" count="0"/>
9386
  <line num="202" type="stmt" count="0"/>
9387
- <line num="203" type="stmt" count="0"/>
9388
  <line num="204" type="stmt" count="0"/>
9389
- <line num="205" type="stmt" count="0"/>
9390
  <line num="206" type="stmt" count="0"/>
 
9391
  <line num="208" type="stmt" count="0"/>
9392
  <line num="209" type="stmt" count="0"/>
 
9393
  <line num="211" type="stmt" count="0"/>
9394
  <line num="212" type="stmt" count="0"/>
9395
- <line num="213" type="stmt" count="0"/>
9396
  <line num="214" type="stmt" count="0"/>
9397
  <line num="215" type="stmt" count="0"/>
9398
  <line num="216" type="stmt" count="0"/>
 
9399
  <line num="219" type="stmt" count="0"/>
9400
- <metrics loc="221" ncloc="156" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="105" coveredstatements="2" elements="110" coveredelements="3"/>
 
 
 
 
 
9401
  </file>
9402
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php">
9403
  <class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
9404
- <metrics complexity="105" methods="20" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="365" coveredstatements="6" elements="385" coveredelements="7"/>
9405
  </class>
9406
- <line num="218" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="12"/>
9407
- <line num="219" type="stmt" count="12"/>
9408
- <line num="221" type="stmt" count="12"/>
9409
- <line num="222" type="stmt" count="12"/>
9410
- <line num="223" type="stmt" count="12"/>
9411
- <line num="224" type="stmt" count="12"/>
9412
- <line num="225" type="stmt" count="12"/>
9413
- <line num="232" type="method" name="connect" visibility="public" complexity="9" crap="90" count="0"/>
9414
- <line num="233" type="stmt" count="0"/>
9415
- <line num="234" type="stmt" count="0"/>
9416
- <line num="237" type="stmt" count="0"/>
9417
- <line num="239" type="stmt" count="0"/>
9418
- <line num="240" type="stmt" count="0"/>
9419
- <line num="243" type="stmt" count="0"/>
9420
- <line num="244" type="stmt" count="0"/>
9421
- <line num="245" type="stmt" count="0"/>
9422
  <line num="246" type="stmt" count="0"/>
9423
  <line num="247" type="stmt" count="0"/>
9424
- <line num="248" type="stmt" count="0"/>
9425
- <line num="249" type="stmt" count="0"/>
9426
  <line num="250" type="stmt" count="0"/>
9427
- <line num="251" type="stmt" count="0"/>
9428
- <line num="260" type="method" name="create_backup_dir" visibility="public" complexity="8" crap="72" count="0"/>
 
 
 
 
 
9429
  <line num="261" type="stmt" count="0"/>
9430
  <line num="262" type="stmt" count="0"/>
9431
  <line num="263" type="stmt" count="0"/>
9432
  <line num="264" type="stmt" count="0"/>
9433
- <line num="267" type="stmt" count="0"/>
9434
- <line num="268" type="stmt" count="0"/>
9435
- <line num="269" type="stmt" count="0"/>
9436
- <line num="270" type="stmt" count="0"/>
9437
- <line num="271" type="stmt" count="0"/>
9438
- <line num="272" type="stmt" count="0"/>
9439
  <line num="275" type="stmt" count="0"/>
9440
  <line num="276" type="stmt" count="0"/>
9441
  <line num="277" type="stmt" count="0"/>
9442
- <line num="278" type="stmt" count="0"/>
9443
- <line num="279" type="stmt" count="0"/>
9444
  <line num="280" type="stmt" count="0"/>
9445
  <line num="281" type="stmt" count="0"/>
9446
  <line num="282" type="stmt" count="0"/>
 
9447
  <line num="284" type="stmt" count="0"/>
9448
  <line num="285" type="stmt" count="0"/>
9449
- <line num="287" type="stmt" count="0"/>
9450
  <line num="288" type="stmt" count="0"/>
 
9451
  <line num="290" type="stmt" count="0"/>
9452
  <line num="291" type="stmt" count="0"/>
9453
  <line num="292" type="stmt" count="0"/>
9454
  <line num="293" type="stmt" count="0"/>
 
9455
  <line num="295" type="stmt" count="0"/>
9456
- <line num="303" type="method" name="disconnect" visibility="public" complexity="3" crap="12" count="0"/>
 
 
 
 
9457
  <line num="304" type="stmt" count="0"/>
9458
  <line num="305" type="stmt" count="0"/>
9459
  <line num="306" type="stmt" count="0"/>
9460
- <line num="307" type="stmt" count="0"/>
9461
  <line num="308" type="stmt" count="0"/>
9462
- <line num="309" type="stmt" count="0"/>
9463
- <line num="319" type="method" name="download" visibility="public" complexity="4" crap="20" count="0"/>
 
 
9464
  <line num="320" type="stmt" count="0"/>
 
9465
  <line num="322" type="stmt" count="0"/>
9466
- <line num="323" type="stmt" count="0"/>
9467
- <line num="324" type="stmt" count="0"/>
9468
- <line num="326" type="stmt" count="0"/>
9469
- <line num="328" type="stmt" count="0"/>
9470
- <line num="329" type="stmt" count="0"/>
9471
- <line num="330" type="stmt" count="0"/>
9472
- <line num="331" type="stmt" count="0"/>
9473
- <line num="332" type="stmt" count="0"/>
9474
  <line num="333" type="stmt" count="0"/>
9475
- <line num="334" type="stmt" count="0"/>
9476
  <line num="335" type="stmt" count="0"/>
 
9477
  <line num="337" type="stmt" count="0"/>
9478
- <line num="338" type="stmt" count="0"/>
9479
  <line num="339" type="stmt" count="0"/>
9480
  <line num="341" type="stmt" count="0"/>
9481
- <line num="349" type="method" name="enforce_retention" visibility="public" complexity="8" crap="72" count="0"/>
 
 
 
 
 
 
9482
  <line num="350" type="stmt" count="0"/>
9483
  <line num="351" type="stmt" count="0"/>
 
9484
  <line num="354" type="stmt" count="0"/>
9485
- <line num="355" type="stmt" count="0"/>
9486
- <line num="357" type="stmt" count="0"/>
9487
- <line num="359" type="stmt" count="0"/>
9488
- <line num="360" type="stmt" count="0"/>
9489
  <line num="363" type="stmt" count="0"/>
9490
- <line num="365" type="stmt" count="0"/>
9491
  <line num="367" type="stmt" count="0"/>
9492
- <line num="369" type="stmt" count="0"/>
9493
  <line num="370" type="stmt" count="0"/>
9494
- <line num="371" type="stmt" count="0"/>
9495
  <line num="373" type="stmt" count="0"/>
9496
- <line num="374" type="stmt" count="0"/>
9497
- <line num="375" type="stmt" count="0"/>
9498
  <line num="376" type="stmt" count="0"/>
9499
- <line num="377" type="stmt" count="0"/>
9500
  <line num="378" type="stmt" count="0"/>
9501
- <line num="379" type="stmt" count="0"/>
9502
  <line num="380" type="stmt" count="0"/>
 
 
 
 
9503
  <line num="387" type="stmt" count="0"/>
9504
  <line num="388" type="stmt" count="0"/>
9505
  <line num="389" type="stmt" count="0"/>
 
9506
  <line num="391" type="stmt" count="0"/>
9507
  <line num="392" type="stmt" count="0"/>
9508
  <line num="393" type="stmt" count="0"/>
9509
- <line num="402" type="method" name="get_from_post" visibility="public" complexity="6" crap="42" count="0"/>
9510
- <line num="403" type="stmt" count="0"/>
9511
- <line num="407" type="stmt" count="0"/>
9512
- <line num="408" type="stmt" count="0"/>
9513
- <line num="409" type="stmt" count="0"/>
9514
- <line num="410" type="stmt" count="0"/>
9515
- <line num="412" type="stmt" count="0"/>
9516
- <line num="413" type="stmt" count="0"/>
9517
- <line num="414" type="stmt" count="0"/>
9518
- <line num="415" type="stmt" count="0"/>
9519
  <line num="417" type="stmt" count="0"/>
9520
- <line num="418" type="stmt" count="0"/>
9521
- <line num="419" type="stmt" count="0"/>
9522
  <line num="421" type="stmt" count="0"/>
9523
  <line num="422" type="stmt" count="0"/>
9524
- <line num="423" type="stmt" count="0"/>
9525
- <line num="424" type="stmt" count="0"/>
9526
- <line num="426" type="stmt" count="0"/>
9527
- <line num="427" type="stmt" count="0"/>
9528
- <line num="428" type="stmt" count="0"/>
9529
- <line num="429" type="stmt" count="0"/>
9530
  <line num="431" type="stmt" count="0"/>
9531
- <line num="432" type="stmt" count="0"/>
9532
- <line num="433" type="stmt" count="0"/>
9533
  <line num="434" type="stmt" count="0"/>
 
9534
  <line num="436" type="stmt" count="0"/>
9535
  <line num="437" type="stmt" count="0"/>
9536
  <line num="438" type="stmt" count="0"/>
9537
  <line num="439" type="stmt" count="0"/>
9538
- <line num="440" type="stmt" count="0"/>
9539
- <line num="444" type="stmt" count="0"/>
9540
- <line num="445" type="stmt" count="0"/>
9541
- <line num="446" type="stmt" count="0"/>
9542
- <line num="448" type="stmt" count="0"/>
9543
- <line num="449" type="stmt" count="0"/>
9544
- <line num="450" type="stmt" count="0"/>
9545
- <line num="451" type="stmt" count="0"/>
9546
- <line num="452" type="stmt" count="0"/>
9547
- <line num="453" type="stmt" count="0"/>
9548
- <line num="457" type="stmt" count="0"/>
9549
- <line num="458" type="stmt" count="0"/>
9550
  <line num="459" type="stmt" count="0"/>
9551
  <line num="460" type="stmt" count="0"/>
 
 
9552
  <line num="464" type="stmt" count="0"/>
9553
- <line num="488" type="method" name="format_raw_contents" visibility="public" complexity="9" crap="90" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9554
  <line num="489" type="stmt" count="0"/>
9555
  <line num="490" type="stmt" count="0"/>
9556
- <line num="492" type="stmt" count="0"/>
9557
  <line num="493" type="stmt" count="0"/>
 
 
9558
  <line num="496" type="stmt" count="0"/>
9559
- <line num="498" type="stmt" count="0"/>
9560
- <line num="499" type="stmt" count="0"/>
9561
- <line num="500" type="stmt" count="0"/>
9562
  <line num="501" type="stmt" count="0"/>
9563
- <line num="504" type="stmt" count="0"/>
 
9564
  <line num="505" type="stmt" count="0"/>
9565
  <line num="506" type="stmt" count="0"/>
9566
  <line num="507" type="stmt" count="0"/>
 
9567
  <line num="509" type="stmt" count="0"/>
9568
- <line num="511" type="stmt" count="0"/>
9569
- <line num="513" type="stmt" count="0"/>
9570
  <line num="514" type="stmt" count="0"/>
 
9571
  <line num="516" type="stmt" count="0"/>
9572
  <line num="517" type="stmt" count="0"/>
9573
- <line num="518" type="stmt" count="0"/>
9574
- <line num="531" type="stmt" count="0"/>
9575
- <line num="533" type="stmt" count="0"/>
9576
- <line num="534" type="stmt" count="0"/>
9577
- <line num="535" type="stmt" count="0"/>
9578
- <line num="536" type="stmt" count="0"/>
9579
- <line num="538" type="stmt" count="0"/>
9580
- <line num="539" type="stmt" count="0"/>
9581
- <line num="540" type="stmt" count="0"/>
9582
- <line num="541" type="stmt" count="0"/>
9583
- <line num="543" type="stmt" count="0"/>
9584
  <line num="546" type="stmt" count="0"/>
9585
  <line num="547" type="stmt" count="0"/>
9586
- <line num="548" type="stmt" count="0"/>
9587
  <line num="549" type="stmt" count="0"/>
9588
- <line num="552" type="stmt" count="0"/>
9589
- <line num="554" type="stmt" count="0"/>
9590
  <line num="555" type="stmt" count="0"/>
9591
  <line num="556" type="stmt" count="0"/>
9592
  <line num="557" type="stmt" count="0"/>
9593
  <line num="558" type="stmt" count="0"/>
9594
- <line num="559" type="stmt" count="0"/>
9595
  <line num="561" type="stmt" count="0"/>
9596
- <line num="577" type="method" name="get_contents" visibility="public" complexity="9" crap="90" count="0"/>
9597
- <line num="578" type="stmt" count="0"/>
9598
- <line num="579" type="stmt" count="0"/>
9599
- <line num="580" type="stmt" count="0"/>
9600
- <line num="581" type="stmt" count="0"/>
9601
- <line num="582" type="stmt" count="0"/>
9602
- <line num="585" type="stmt" count="0"/>
9603
- <line num="586" type="stmt" count="0"/>
9604
- <line num="587" type="stmt" count="0"/>
 
9605
  <line num="588" type="stmt" count="0"/>
9606
- <line num="589" type="stmt" count="0"/>
9607
  <line num="590" type="stmt" count="0"/>
 
9608
  <line num="592" type="stmt" count="0"/>
9609
  <line num="593" type="stmt" count="0"/>
9610
- <line num="594" type="stmt" count="0"/>
9611
  <line num="595" type="stmt" count="0"/>
9612
  <line num="596" type="stmt" count="0"/>
9613
  <line num="597" type="stmt" count="0"/>
9614
- <line num="599" type="stmt" count="0"/>
9615
  <line num="600" type="stmt" count="0"/>
9616
- <line num="607" type="method" name="anonymous function" complexity="2" crap="6" count="0"/>
9617
- <line num="608" type="stmt" count="0"/>
 
 
9618
  <line num="609" type="stmt" count="0"/>
9619
- <line num="610" type="stmt" count="0"/>
9620
  <line num="611" type="stmt" count="0"/>
9621
  <line num="612" type="stmt" count="0"/>
9622
  <line num="613" type="stmt" count="0"/>
9623
  <line num="614" type="stmt" count="0"/>
9624
  <line num="615" type="stmt" count="0"/>
9625
- <line num="617" type="stmt" count="0"/>
9626
- <line num="628" type="method" name="get_details" visibility="public" complexity="3" crap="12" count="0"/>
9627
- <line num="629" type="stmt" count="0"/>
9628
- <line num="631" type="stmt" count="0"/>
9629
- <line num="634" type="stmt" count="0"/>
9630
  <line num="635" type="stmt" count="0"/>
9631
  <line num="636" type="stmt" count="0"/>
9632
  <line num="637" type="stmt" count="0"/>
9633
  <line num="638" type="stmt" count="0"/>
9634
  <line num="639" type="stmt" count="0"/>
9635
- <line num="647" type="method" name="init" visibility="public" complexity="7" crap="56" count="0"/>
9636
- <line num="648" type="stmt" count="0"/>
 
 
 
 
9637
  <line num="649" type="stmt" count="0"/>
 
 
9638
  <line num="652" type="stmt" count="0"/>
 
9639
  <line num="654" type="stmt" count="0"/>
9640
- <line num="658" type="stmt" count="0"/>
9641
- <line num="659" type="stmt" count="0"/>
9642
- <line num="660" type="stmt" count="0"/>
9643
- <line num="662" type="stmt" count="0"/>
9644
- <line num="663" type="stmt" count="0"/>
9645
- <line num="664" type="stmt" count="0"/>
9646
  <line num="666" type="stmt" count="0"/>
9647
  <line num="667" type="stmt" count="0"/>
9648
  <line num="668" type="stmt" count="0"/>
 
9649
  <line num="670" type="stmt" count="0"/>
9650
  <line num="671" type="stmt" count="0"/>
9651
  <line num="672" type="stmt" count="0"/>
9652
  <line num="674" type="stmt" count="0"/>
9653
- <line num="675" type="stmt" count="0"/>
9654
- <line num="676" type="stmt" count="0"/>
9655
- <line num="678" type="stmt" count="0"/>
9656
- <line num="679" type="stmt" count="0"/>
9657
- <line num="680" type="stmt" count="0"/>
9658
- <line num="682" type="stmt" count="0"/>
9659
- <line num="683" type="stmt" count="0"/>
9660
- <line num="684" type="stmt" count="0"/>
9661
- <line num="685" type="stmt" count="0"/>
9662
- <line num="687" type="stmt" count="0"/>
9663
  <line num="688" type="stmt" count="0"/>
9664
- <line num="690" type="stmt" count="0"/>
9665
  <line num="691" type="stmt" count="0"/>
9666
  <line num="692" type="stmt" count="0"/>
9667
  <line num="693" type="stmt" count="0"/>
 
9668
  <line num="695" type="stmt" count="0"/>
9669
- <line num="697" type="stmt" count="0"/>
9670
- <line num="698" type="stmt" count="0"/>
9671
- <line num="699" type="stmt" count="0"/>
9672
- <line num="700" type="stmt" count="0"/>
9673
- <line num="713" type="method" name="is_setup" visibility="public" complexity="3" crap="12" count="0"/>
 
 
9674
  <line num="716" type="stmt" count="0"/>
9675
  <line num="717" type="stmt" count="0"/>
 
9676
  <line num="720" type="stmt" count="0"/>
9677
  <line num="721" type="stmt" count="0"/>
9678
  <line num="723" type="stmt" count="0"/>
 
9679
  <line num="725" type="stmt" count="0"/>
9680
- <line num="740" type="method" name="is_valid_credentials" visibility="public" complexity="11" crap="132" count="0"/>
 
 
 
 
 
 
 
 
 
 
9681
  <line num="741" type="stmt" count="0"/>
9682
  <line num="742" type="stmt" count="0"/>
9683
- <line num="743" type="stmt" count="0"/>
9684
- <line num="746" type="stmt" count="0"/>
9685
  <line num="747" type="stmt" count="0"/>
 
9686
  <line num="749" type="stmt" count="0"/>
9687
  <line num="750" type="stmt" count="0"/>
9688
  <line num="752" type="stmt" count="0"/>
9689
- <line num="753" type="stmt" count="0"/>
9690
  <line num="755" type="stmt" count="0"/>
9691
  <line num="756" type="stmt" count="0"/>
9692
- <line num="760" type="stmt" count="0"/>
9693
- <line num="761" type="stmt" count="0"/>
9694
- <line num="762" type="stmt" count="0"/>
9695
- <line num="763" type="stmt" count="0"/>
9696
- <line num="764" type="stmt" count="0"/>
9697
- <line num="765" type="stmt" count="0"/>
9698
- <line num="767" type="stmt" count="0"/>
9699
- <line num="768" type="stmt" count="0"/>
9700
- <line num="770" type="stmt" count="0"/>
9701
- <line num="771" type="stmt" count="0"/>
9702
  <line num="773" type="stmt" count="0"/>
9703
  <line num="774" type="stmt" count="0"/>
9704
- <line num="776" type="stmt" count="0"/>
9705
  <line num="777" type="stmt" count="0"/>
9706
- <line num="793" type="stmt" count="0"/>
9707
- <line num="795" type="stmt" count="0"/>
 
 
 
9708
  <line num="799" type="stmt" count="0"/>
9709
  <line num="800" type="stmt" count="0"/>
9710
- <line num="801" type="stmt" count="0"/>
9711
- <line num="802" type="stmt" count="0"/>
9712
  <line num="803" type="stmt" count="0"/>
9713
  <line num="804" type="stmt" count="0"/>
9714
- <line num="805" type="stmt" count="0"/>
9715
  <line num="807" type="stmt" count="0"/>
9716
- <line num="808" type="stmt" count="0"/>
9717
  <line num="809" type="stmt" count="0"/>
9718
- <line num="811" type="stmt" count="0"/>
 
9719
  <line num="813" type="stmt" count="0"/>
9720
- <line num="814" type="stmt" count="0"/>
9721
- <line num="815" type="stmt" count="0"/>
9722
  <line num="817" type="stmt" count="0"/>
9723
- <line num="827" type="method" name="log_in" visibility="public" complexity="6" crap="42" count="0"/>
 
 
 
 
 
 
 
9724
  <line num="828" type="stmt" count="0"/>
9725
- <line num="829" type="stmt" count="0"/>
 
9726
  <line num="833" type="stmt" count="0"/>
9727
  <line num="834" type="stmt" count="0"/>
9728
- <line num="835" type="stmt" count="0"/>
9729
- <line num="838" type="stmt" count="0"/>
9730
- <line num="839" type="stmt" count="0"/>
9731
- <line num="840" type="stmt" count="0"/>
9732
- <line num="841" type="stmt" count="0"/>
9733
- <line num="842" type="stmt" count="0"/>
9734
- <line num="843" type="stmt" count="0"/>
9735
- <line num="844" type="stmt" count="0"/>
9736
- <line num="845" type="stmt" count="0"/>
9737
- <line num="847" type="stmt" count="0"/>
9738
- <line num="848" type="stmt" count="0"/>
9739
  <line num="850" type="stmt" count="0"/>
9740
- <line num="851" type="stmt" count="0"/>
9741
  <line num="852" type="stmt" count="0"/>
9742
- <line num="862" type="method" name="maybe_passive" visibility="public" complexity="3" crap="12" count="0"/>
9743
- <line num="863" type="stmt" count="0"/>
 
 
 
 
 
9744
  <line num="864" type="stmt" count="0"/>
 
9745
  <line num="866" type="stmt" count="0"/>
9746
- <line num="867" type="stmt" count="0"/>
9747
  <line num="868" type="stmt" count="0"/>
9748
- <line num="869" type="stmt" count="0"/>
9749
  <line num="870" type="stmt" count="0"/>
9750
- <line num="880" type="method" name="reset" visibility="public" complexity="1" crap="2" count="0"/>
9751
- <line num="881" type="stmt" count="0"/>
9752
- <line num="882" type="stmt" count="0"/>
9753
- <line num="883" type="stmt" count="0"/>
9754
- <line num="884" type="stmt" count="0"/>
9755
  <line num="885" type="stmt" count="0"/>
9756
  <line num="886" type="stmt" count="0"/>
9757
- <line num="887" type="stmt" count="0"/>
9758
- <line num="896" type="method" name="set_pass" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
9759
  <line num="897" type="stmt" count="0"/>
9760
  <line num="898" type="stmt" count="0"/>
9761
- <line num="907" type="method" name="is_uploaded" visibility="public" complexity="2" crap="6" count="0"/>
 
 
 
 
 
 
9762
  <line num="908" type="stmt" count="0"/>
9763
- <line num="910" type="stmt" count="0"/>
9764
- <line num="921" type="method" name="upload" visibility="public" complexity="9" crap="90" count="0"/>
9765
- <line num="922" type="stmt" count="0"/>
 
 
9766
  <line num="924" type="stmt" count="0"/>
 
9767
  <line num="926" type="stmt" count="0"/>
9768
  <line num="927" type="stmt" count="0"/>
9769
- <line num="928" type="stmt" count="0"/>
9770
- <line num="929" type="stmt" count="0"/>
9771
- <line num="930" type="stmt" count="0"/>
9772
- <line num="933" type="stmt" count="0"/>
9773
- <line num="934" type="stmt" count="0"/>
9774
- <line num="935" type="stmt" count="0"/>
9775
  <line num="938" type="stmt" count="0"/>
9776
  <line num="939" type="stmt" count="0"/>
9777
  <line num="940" type="stmt" count="0"/>
9778
- <line num="948" type="stmt" count="0"/>
9779
- <line num="949" type="stmt" count="0"/>
9780
- <line num="950" type="stmt" count="0"/>
9781
- <line num="951" type="stmt" count="0"/>
9782
- <line num="952" type="stmt" count="0"/>
9783
- <line num="955" type="stmt" count="0"/>
9784
- <line num="956" type="stmt" count="0"/>
9785
- <line num="957" type="stmt" count="0"/>
9786
- <line num="959" type="stmt" count="0"/>
9787
- <line num="960" type="stmt" count="0"/>
9788
- <line num="962" type="stmt" count="0"/>
 
 
9789
  <line num="969" type="stmt" count="0"/>
9790
  <line num="970" type="stmt" count="0"/>
9791
- <line num="971" type="stmt" count="0"/>
9792
- <line num="973" type="stmt" count="0"/>
9793
- <line num="976" type="stmt" count="0"/>
9794
- <line num="978" type="stmt" count="0"/>
9795
- <metrics loc="980" ncloc="581" classes="1" methods="20" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="369" coveredstatements="6" elements="389" coveredelements="7"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9796
  </file>
9797
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php">
9798
  <class name="Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin.Remote">
@@ -9830,207 +9863,6 @@
9830
  <line num="188" type="stmt" count="2"/>
9831
  <metrics loc="189" ncloc="63" classes="1" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="21" elements="30" coveredelements="30"/>
9832
  </file>
9833
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-sftp.php">
9834
- <class name="Boldgrid_Backup_Admin_Sftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
9835
- <metrics complexity="69" methods="17" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="168" coveredstatements="0" elements="185" coveredelements="0"/>
9836
- </class>
9837
- <line num="138" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
9838
- <line num="139" type="stmt" count="0"/>
9839
- <line num="141" type="stmt" count="0"/>
9840
- <line num="142" type="stmt" count="0"/>
9841
- <line num="149" type="method" name="connect" visibility="public" complexity="5" crap="30" count="0"/>
9842
- <line num="150" type="stmt" count="0"/>
9843
- <line num="151" type="stmt" count="0"/>
9844
- <line num="154" type="stmt" count="0"/>
9845
- <line num="156" type="stmt" count="0"/>
9846
- <line num="157" type="stmt" count="0"/>
9847
- <line num="160" type="stmt" count="0"/>
9848
- <line num="161" type="stmt" count="0"/>
9849
- <line num="170" type="method" name="create_backup_dir" visibility="public" complexity="3" crap="12" count="0"/>
9850
- <line num="171" type="stmt" count="0"/>
9851
- <line num="172" type="stmt" count="0"/>
9852
- <line num="173" type="stmt" count="0"/>
9853
- <line num="174" type="stmt" count="0"/>
9854
- <line num="177" type="stmt" count="0"/>
9855
- <line num="178" type="stmt" count="0"/>
9856
- <line num="179" type="stmt" count="0"/>
9857
- <line num="182" type="stmt" count="0"/>
9858
- <line num="190" type="method" name="disconnect" visibility="public" complexity="1" crap="2" count="0"/>
9859
- <line num="191" type="stmt" count="0"/>
9860
- <line num="198" type="method" name="enforce_retention" visibility="public" complexity="6" crap="42" count="0"/>
9861
- <line num="199" type="stmt" count="0"/>
9862
- <line num="200" type="stmt" count="0"/>
9863
- <line num="203" type="stmt" count="0"/>
9864
- <line num="204" type="stmt" count="0"/>
9865
- <line num="207" type="stmt" count="0"/>
9866
- <line num="209" type="stmt" count="0"/>
9867
- <line num="210" type="stmt" count="0"/>
9868
- <line num="213" type="stmt" count="0"/>
9869
- <line num="215" type="stmt" count="0"/>
9870
- <line num="216" type="method" name="anonymous function" complexity="2" crap="6" count="0"/>
9871
- <line num="217" type="stmt" count="0"/>
9872
- <line num="219" type="stmt" count="0"/>
9873
- <line num="221" type="stmt" count="0"/>
9874
- <line num="222" type="stmt" count="0"/>
9875
- <line num="223" type="stmt" count="0"/>
9876
- <line num="230" type="stmt" count="0"/>
9877
- <line num="231" type="stmt" count="0"/>
9878
- <line num="232" type="stmt" count="0"/>
9879
- <line num="234" type="stmt" count="0"/>
9880
- <line num="235" type="stmt" count="0"/>
9881
- <line num="236" type="stmt" count="0"/>
9882
- <line num="254" type="method" name="format_raw_contents" visibility="public" complexity="4" crap="20" count="0"/>
9883
- <line num="255" type="stmt" count="0"/>
9884
- <line num="256" type="stmt" count="0"/>
9885
- <line num="258" type="stmt" count="0"/>
9886
- <line num="259" type="stmt" count="0"/>
9887
- <line num="262" type="stmt" count="0"/>
9888
- <line num="263" type="stmt" count="0"/>
9889
- <line num="265" type="stmt" count="0"/>
9890
- <line num="267" type="stmt" count="0"/>
9891
- <line num="269" type="stmt" count="0"/>
9892
- <line num="270" type="stmt" count="0"/>
9893
- <line num="274" type="stmt" count="0"/>
9894
- <line num="275" type="stmt" count="0"/>
9895
- <line num="276" type="stmt" count="0"/>
9896
- <line num="277" type="stmt" count="0"/>
9897
- <line num="279" type="stmt" count="0"/>
9898
- <line num="280" type="stmt" count="0"/>
9899
- <line num="281" type="stmt" count="0"/>
9900
- <line num="283" type="stmt" count="0"/>
9901
- <line num="285" type="stmt" count="0"/>
9902
- <line num="298" type="method" name="get_contents" visibility="public" complexity="3" crap="12" count="0"/>
9903
- <line num="299" type="stmt" count="0"/>
9904
- <line num="300" type="stmt" count="0"/>
9905
- <line num="301" type="stmt" count="0"/>
9906
- <line num="302" type="stmt" count="0"/>
9907
- <line num="305" type="stmt" count="0"/>
9908
- <line num="306" type="stmt" count="0"/>
9909
- <line num="308" type="stmt" count="0"/>
9910
- <line num="317" type="method" name="get_details" visibility="public" complexity="3" crap="12" count="0"/>
9911
- <line num="318" type="stmt" count="0"/>
9912
- <line num="321" type="stmt" count="0"/>
9913
- <line num="322" type="stmt" count="0"/>
9914
- <line num="323" type="stmt" count="0"/>
9915
- <line num="324" type="stmt" count="0"/>
9916
- <line num="325" type="stmt" count="0"/>
9917
- <line num="326" type="stmt" count="0"/>
9918
- <line num="334" type="method" name="init" visibility="public" complexity="6" crap="42" count="0"/>
9919
- <line num="335" type="stmt" count="0"/>
9920
- <line num="336" type="stmt" count="0"/>
9921
- <line num="339" type="stmt" count="0"/>
9922
- <line num="341" type="stmt" count="0"/>
9923
- <line num="343" type="stmt" count="0"/>
9924
- <line num="344" type="stmt" count="0"/>
9925
- <line num="345" type="stmt" count="0"/>
9926
- <line num="346" type="stmt" count="0"/>
9927
- <line num="355" type="method" name="is_setup" visibility="public" complexity="1" crap="2" count="0"/>
9928
- <line num="356" type="stmt" count="0"/>
9929
- <line num="357" type="stmt" count="0"/>
9930
- <line num="359" type="stmt" count="0"/>
9931
- <line num="373" type="method" name="is_valid_credentials" visibility="public" complexity="3" crap="12" count="0"/>
9932
- <line num="374" type="stmt" count="0"/>
9933
- <line num="375" type="stmt" count="0"/>
9934
- <line num="376" type="stmt" count="0"/>
9935
- <line num="379" type="stmt" count="0"/>
9936
- <line num="380" type="stmt" count="0"/>
9937
- <line num="381" type="stmt" count="0"/>
9938
- <line num="382" type="stmt" count="0"/>
9939
- <line num="385" type="stmt" count="0"/>
9940
- <line num="395" type="method" name="log_in" visibility="public" complexity="4" crap="20" count="0"/>
9941
- <line num="396" type="stmt" count="0"/>
9942
- <line num="397" type="stmt" count="0"/>
9943
- <line num="400" type="stmt" count="0"/>
9944
- <line num="401" type="stmt" count="0"/>
9945
- <line num="402" type="stmt" count="0"/>
9946
- <line num="405" type="stmt" count="0"/>
9947
- <line num="406" type="stmt" count="0"/>
9948
- <line num="407" type="stmt" count="0"/>
9949
- <line num="408" type="stmt" count="0"/>
9950
- <line num="409" type="stmt" count="0"/>
9951
- <line num="418" type="method" name="is_uploaded" visibility="public" complexity="2" crap="6" count="0"/>
9952
- <line num="419" type="stmt" count="0"/>
9953
- <line num="421" type="stmt" count="0"/>
9954
- <line num="429" type="method" name="submenu_page" visibility="public" complexity="6" crap="42" count="0"/>
9955
- <line num="430" type="stmt" count="0"/>
9956
- <line num="432" type="stmt" count="0"/>
9957
- <line num="434" type="stmt" count="0"/>
9958
- <line num="436" type="stmt" count="0"/>
9959
- <line num="437" type="stmt" count="0"/>
9960
- <line num="438" type="stmt" count="0"/>
9961
- <line num="439" type="stmt" count="0"/>
9962
- <line num="440" type="stmt" count="0"/>
9963
- <line num="442" type="stmt" count="0"/>
9964
- <line num="443" type="stmt" count="0"/>
9965
- <line num="450" type="method" name="submenu_page_save" visibility="public" complexity="15" crap="240" count="0"/>
9966
- <line num="451" type="stmt" count="0"/>
9967
- <line num="452" type="stmt" count="0"/>
9968
- <line num="457" type="stmt" count="0"/>
9969
- <line num="458" type="stmt" count="0"/>
9970
- <line num="461" type="stmt" count="0"/>
9971
- <line num="462" type="stmt" count="0"/>
9972
- <line num="463" type="stmt" count="0"/>
9973
- <line num="464" type="stmt" count="0"/>
9974
- <line num="470" type="stmt" count="0"/>
9975
- <line num="471" type="stmt" count="0"/>
9976
- <line num="472" type="stmt" count="0"/>
9977
- <line num="474" type="stmt" count="0"/>
9978
- <line num="475" type="stmt" count="0"/>
9979
- <line num="476" type="stmt" count="0"/>
9980
- <line num="477" type="stmt" count="0"/>
9981
- <line num="478" type="stmt" count="0"/>
9982
- <line num="480" type="stmt" count="0"/>
9983
- <line num="481" type="stmt" count="0"/>
9984
- <line num="484" type="stmt" count="0"/>
9985
- <line num="487" type="stmt" count="0"/>
9986
- <line num="488" type="stmt" count="0"/>
9987
- <line num="489" type="stmt" count="0"/>
9988
- <line num="490" type="stmt" count="0"/>
9989
- <line num="492" type="stmt" count="0"/>
9990
- <line num="494" type="stmt" count="0"/>
9991
- <line num="495" type="stmt" count="0"/>
9992
- <line num="496" type="stmt" count="0"/>
9993
- <line num="497" type="stmt" count="0"/>
9994
- <line num="498" type="stmt" count="0"/>
9995
- <line num="499" type="stmt" count="0"/>
9996
- <line num="500" type="stmt" count="0"/>
9997
- <line num="501" type="stmt" count="0"/>
9998
- <line num="503" type="stmt" count="0"/>
9999
- <line num="504" type="stmt" count="0"/>
10000
- <line num="505" type="stmt" count="0"/>
10001
- <line num="507" type="stmt" count="0"/>
10002
- <line num="509" type="stmt" count="0"/>
10003
- <line num="510" type="stmt" count="0"/>
10004
- <line num="511" type="stmt" count="0"/>
10005
- <line num="512" type="stmt" count="0"/>
10006
- <line num="513" type="stmt" count="0"/>
10007
- <line num="517" type="stmt" count="0"/>
10008
- <line num="527" type="method" name="upload" visibility="public" complexity="4" crap="20" count="0"/>
10009
- <line num="528" type="stmt" count="0"/>
10010
- <line num="530" type="stmt" count="0"/>
10011
- <line num="531" type="stmt" count="0"/>
10012
- <line num="532" type="stmt" count="0"/>
10013
- <line num="533" type="stmt" count="0"/>
10014
- <line num="534" type="stmt" count="0"/>
10015
- <line num="537" type="stmt" count="0"/>
10016
- <line num="538" type="stmt" count="0"/>
10017
- <line num="539" type="stmt" count="0"/>
10018
- <line num="541" type="stmt" count="0"/>
10019
- <line num="542" type="stmt" count="0"/>
10020
- <line num="544" type="stmt" count="0"/>
10021
- <line num="545" type="stmt" count="0"/>
10022
- <line num="546" type="stmt" count="0"/>
10023
- <line num="547" type="stmt" count="0"/>
10024
- <line num="550" type="stmt" count="0"/>
10025
- <line num="551" type="stmt" count="0"/>
10026
- <line num="552" type="stmt" count="0"/>
10027
- <line num="553" type="stmt" count="0"/>
10028
- <line num="554" type="stmt" count="0"/>
10029
- <line num="557" type="stmt" count="0"/>
10030
- <line num="559" type="stmt" count="0"/>
10031
- <line num="561" type="stmt" count="0"/>
10032
- <metrics loc="563" ncloc="322" classes="1" methods="17" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="178" coveredstatements="0" elements="195" coveredelements="0"/>
10033
- </file>
10034
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/storage/class-boldgrid-backup-admin-storage-local.php">
10035
  <class name="Boldgrid_Backup_Admin_Storage_Local" namespace="global" fullPackage="Boldgrid.Backup.Admin.Storage">
10036
  <metrics complexity="30" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="119" coveredstatements="2" elements="128" coveredelements="3"/>
@@ -10695,7 +10527,7 @@
10695
  </file>
10696
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/cron/class-site-restore.php">
10697
  <class name="Site_Restore" namespace="Boldgrid\Backup\Cron" fullPackage="Site">
10698
- <metrics complexity="41" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="142" coveredstatements="0" elements="150" coveredelements="0"/>
10699
  </class>
10700
  <line num="35" type="method" name="run" visibility="public" complexity="2" crap="6" count="0"/>
10701
  <line num="36" type="stmt" count="0"/>
@@ -10748,7 +10580,7 @@
10748
  <line num="141" type="stmt" count="0"/>
10749
  <line num="143" type="stmt" count="0"/>
10750
  <line num="144" type="stmt" count="0"/>
10751
- <line num="160" type="method" name="restore_files" visibility="private" complexity="10" crap="110" count="0"/>
10752
  <line num="161" type="stmt" count="0"/>
10753
  <line num="162" type="stmt" count="0"/>
10754
  <line num="163" type="stmt" count="0"/>
@@ -62814,9 +62646,9 @@
62814
  <metrics loc="135" ncloc="76" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
62815
  </file>
62816
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/bootstrap.php">
 
62817
  <line num="97" type="stmt" count="0"/>
62818
- <line num="98" type="stmt" count="0"/>
62819
- <metrics loc="100" ncloc="76" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="0" elements="2" coveredelements="0"/>
62820
  </file>
62821
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/cron/test-class-info.php">
62822
  <class name="Test_Boldgrid_Backup_Cron_Info" namespace="global" fullPackage="Test.Boldgrid.Backup.Cron">
@@ -67422,7 +67254,7 @@
67422
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
67423
  </file>
67424
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
67425
- <class name="ComposerStaticInit813a2de0326c9d8d40ce9568ef9fe8af" namespace="Composer\Autoload">
67426
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
67427
  </class>
67428
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -67514,7 +67346,7 @@
67514
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
67515
  </file>
67516
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
67517
- <class name="ComposerAutoloaderInit813a2de0326c9d8d40ce9568ef9fe8af" namespace="global">
67518
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
67519
  </class>
67520
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -86296,6 +86128,6 @@
86296
  <line num="16" type="stmt" count="0"/>
86297
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
86298
  </file>
86299
- <metrics files="819" loc="171023" ncloc="104965" classes="744" methods="3145" coveredmethods="96" conditionals="0" coveredconditionals="0" statements="78089" coveredstatements="863" elements="81234" coveredelements="959"/>
86300
  </project>
86301
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1554230971">
3
+ <project timestamp="1554230971">
4
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-actions.php">
5
  <class name="Boldgrid_Backup_Admin_Archive_Actions" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
6
  <metrics complexity="15" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="110" coveredstatements="2" elements="117" coveredelements="3"/>
3979
  <class name="Boldgrid_Backup_Admin_In_Progress_Data" namespace="global" fullPackage="Boldgrid.Backup.Admin.In.Progress">
3980
  <metrics complexity="9" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="0" elements="35" coveredelements="0"/>
3981
  </class>
3982
+ <line num="37" type="method" name="delete_arg" visibility="public" complexity="2" crap="6" count="0"/>
3983
+ <line num="38" type="stmt" count="0"/>
3984
  <line num="40" type="stmt" count="0"/>
3985
+ <line num="41" type="stmt" count="0"/>
3986
  <line num="42" type="stmt" count="0"/>
 
3987
  <line num="44" type="stmt" count="0"/>
3988
+ <line num="45" type="stmt" count="0"/>
3989
+ <line num="55" type="method" name="get_arg" visibility="public" complexity="2" crap="6" count="0"/>
3990
+ <line num="56" type="stmt" count="0"/>
3991
+ <line num="58" type="stmt" count="0"/>
3992
  <line num="59" type="stmt" count="0"/>
3993
+ <line num="68" type="method" name="get_args" visibility="public" complexity="1" crap="2" count="0"/>
3994
+ <line num="69" type="stmt" count="0"/>
3995
  <line num="70" type="stmt" count="0"/>
3996
+ <line num="81" type="method" name="get_markup" visibility="public" complexity="2" crap="6" count="0"/>
3997
+ <line num="82" type="stmt" count="0"/>
 
 
3998
  <line num="84" type="stmt" count="0"/>
3999
  <line num="85" type="stmt" count="0"/>
4000
  <line num="86" type="stmt" count="0"/>
4001
  <line num="87" type="stmt" count="0"/>
4002
+ <line num="88" type="stmt" count="0"/>
4003
  <line num="90" type="stmt" count="0"/>
4004
  <line num="91" type="stmt" count="0"/>
4005
  <line num="92" type="stmt" count="0"/>
4006
+ <line num="93" type="stmt" count="0"/>
4007
  <line num="95" type="stmt" count="0"/>
4008
+ <line num="96" type="stmt" count="0"/>
4009
+ <line num="106" type="method" name="set_arg" visibility="public" complexity="1" crap="2" count="0"/>
4010
+ <line num="107" type="stmt" count="0"/>
4011
+ <line num="109" type="stmt" count="0"/>
4012
  <line num="111" type="stmt" count="0"/>
4013
+ <line num="112" type="stmt" count="0"/>
4014
+ <line num="121" type="method" name="set_args" visibility="public" complexity="1" crap="2" count="0"/>
4015
  <line num="122" type="stmt" count="0"/>
4016
+ <line num="123" type="stmt" count="0"/>
4017
+ <metrics loc="124" ncloc="54" classes="1" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="0" elements="35" coveredelements="0"/>
4018
  </file>
4019
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress.php">
4020
  <class name="Boldgrid_Backup_Admin_In_Progress" namespace="global" fullPackage="Boldgrid.Backup.Admin.In">
4021
  <metrics complexity="31" methods="13" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="2" elements="97" coveredelements="3"/>
4022
  </class>
4023
+ <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="12"/>
4024
+ <line num="49" type="stmt" count="12"/>
4025
  <line num="50" type="stmt" count="12"/>
4026
+ <line num="60" type="method" name="add_notice" visibility="public" complexity="4" crap="20" count="0"/>
4027
+ <line num="61" type="stmt" count="0"/>
4028
+ <line num="63" type="stmt" count="0"/>
4029
  <line num="64" type="stmt" count="0"/>
4030
+ <line num="72" type="stmt" count="0"/>
4031
+ <line num="74" type="stmt" count="0"/>
4032
+ <line num="76" type="stmt" count="0"/>
4033
  <line num="77" type="stmt" count="0"/>
4034
+ <line num="79" type="stmt" count="0"/>
4035
  <line num="80" type="stmt" count="0"/>
4036
  <line num="81" type="stmt" count="0"/>
4037
+ <line num="88" type="stmt" count="0"/>
4038
  <line num="89" type="stmt" count="0"/>
4039
  <line num="90" type="stmt" count="0"/>
4040
+ <line num="92" type="stmt" count="0"/>
4041
+ <line num="94" type="stmt" count="0"/>
4042
  <line num="95" type="stmt" count="0"/>
4043
+ <line num="97" type="stmt" count="0"/>
4044
+ <line num="99" type="stmt" count="0"/>
4045
+ <line num="109" type="method" name="end" visibility="public" complexity="2" crap="6" count="0"/>
4046
+ <line num="110" type="stmt" count="0"/>
4047
+ <line num="112" type="stmt" count="0"/>
4048
  <line num="113" type="stmt" count="0"/>
4049
  <line num="114" type="stmt" count="0"/>
4050
+ <line num="116" type="stmt" count="0"/>
4051
  <line num="117" type="stmt" count="0"/>
4052
+ <line num="128" type="method" name="get" visibility="public" complexity="2" crap="6" count="0"/>
4053
+ <line num="129" type="stmt" count="0"/>
4054
+ <line num="131" type="stmt" count="0"/>
4055
+ <line num="133" type="stmt" count="0"/>
4056
+ <line num="143" type="method" name="get_notice" visibility="public" complexity="2" crap="6" count="0"/>
4057
+ <line num="144" type="stmt" count="0"/>
4058
+ <line num="146" type="stmt" count="0"/>
4059
  <line num="147" type="stmt" count="0"/>
4060
+ <line num="155" type="stmt" count="0"/>
4061
+ <line num="157" type="stmt" count="0"/>
4062
  <line num="158" type="stmt" count="0"/>
4063
+ <line num="160" type="stmt" count="0"/>
4064
  <line num="161" type="stmt" count="0"/>
4065
  <line num="162" type="stmt" count="0"/>
4066
  <line num="163" type="stmt" count="0"/>
4067
+ <line num="165" type="stmt" count="0"/>
4068
+ <line num="176" type="method" name="get_notice_markup" visibility="public" complexity="2" crap="6" count="0"/>
4069
+ <line num="177" type="stmt" count="0"/>
4070
  <line num="178" type="stmt" count="0"/>
4071
+ <line num="180" type="stmt" count="0"/>
4072
  <line num="181" type="stmt" count="0"/>
4073
  <line num="182" type="stmt" count="0"/>
4074
+ <line num="184" type="stmt" count="0"/>
4075
+ <line num="197" type="method" name="get_tmp" visibility="public" complexity="4" crap="20" count="0"/>
4076
+ <line num="198" type="stmt" count="0"/>
4077
+ <line num="200" type="stmt" count="0"/>
4078
+ <line num="206" type="stmt" count="0"/>
4079
  <line num="207" type="stmt" count="0"/>
4080
+ <line num="208" type="method" name="anonymous function" complexity="2" crap="6" count="0"/>
4081
+ <line num="209" type="stmt" count="0"/>
4082
+ <line num="211" type="stmt" count="0"/>
4083
  <line num="212" type="stmt" count="0"/>
4084
+ <line num="214" type="stmt" count="0"/>
4085
  <line num="215" type="stmt" count="0"/>
4086
  <line num="216" type="stmt" count="0"/>
4087
+ <line num="219" type="stmt" count="0"/>
4088
  <line num="220" type="stmt" count="0"/>
4089
  <line num="221" type="stmt" count="0"/>
4090
  <line num="222" type="stmt" count="0"/>
4091
  <line num="223" type="stmt" count="0"/>
4092
+ <line num="225" type="stmt" count="0"/>
4093
+ <line num="240" type="method" name="heartbeat_received" visibility="public" complexity="4" crap="20" count="0"/>
4094
+ <line num="241" type="stmt" count="0"/>
4095
+ <line num="243" type="stmt" count="0"/>
4096
  <line num="244" type="stmt" count="0"/>
4097
+ <line num="248" type="stmt" count="0"/>
4098
+ <line num="251" type="stmt" count="0"/>
4099
+ <line num="253" type="stmt" count="0"/>
4100
+ <line num="256" type="stmt" count="0"/>
4101
  <line num="257" type="stmt" count="0"/>
4102
  <line num="258" type="stmt" count="0"/>
4103
  <line num="259" type="stmt" count="0"/>
4104
  <line num="260" type="stmt" count="0"/>
4105
  <line num="261" type="stmt" count="0"/>
4106
+ <line num="263" type="stmt" count="0"/>
4107
+ <line num="271" type="method" name="post_dump" visibility="public" complexity="2" crap="6" count="0"/>
4108
+ <line num="278" type="stmt" count="0"/>
4109
  <line num="279" type="stmt" count="0"/>
4110
  <line num="280" type="stmt" count="0"/>
4111
  <line num="281" type="stmt" count="0"/>
4112
+ <line num="288" type="method" name="pre_dump" visibility="public" complexity="1" crap="2" count="0"/>
4113
+ <line num="299" type="stmt" count="0"/>
4114
  <line num="300" type="stmt" count="0"/>
4115
  <line num="301" type="stmt" count="0"/>
4116
+ <line num="310" type="method" name="set" visibility="public" complexity="2" crap="6" count="0"/>
4117
+ <line num="311" type="stmt" count="0"/>
4118
+ <line num="313" type="stmt" count="0"/>
4119
+ <line num="315" type="stmt" count="0"/>
4120
  <line num="316" type="stmt" count="0"/>
4121
+ <line num="323" type="method" name="wp_ajax_get_progress_notice" visibility="public" complexity="3" crap="12" count="0"/>
4122
+ <line num="324" type="stmt" count="0"/>
4123
  <line num="325" type="stmt" count="0"/>
4124
  <line num="326" type="stmt" count="0"/>
4125
+ <line num="328" type="stmt" count="0"/>
4126
  <line num="329" type="stmt" count="0"/>
4127
  <line num="330" type="stmt" count="0"/>
4128
+ <line num="332" type="stmt" count="0"/>
4129
+ <line num="334" type="stmt" count="0"/>
4130
  <line num="335" type="stmt" count="0"/>
4131
+ <metrics loc="336" ncloc="171" classes="1" methods="13" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="95" coveredstatements="2" elements="108" coveredelements="3"/>
 
4132
  </file>
4133
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-jobs.php">
4134
  <class name="Boldgrid_Backup_Admin_Jobs" namespace="global" fullPackage="Boldgrid.Backup.Admin">
8079
  <metrics loc="62" ncloc="32" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="0" elements="21" coveredelements="0"/>
8080
  </file>
8081
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/remote/ftp.php">
8082
+ <line num="20" type="stmt" count="0"/>
 
 
8083
  <line num="21" type="stmt" count="0"/>
8084
+ <line num="22" type="stmt" count="0"/>
8085
  <line num="24" type="stmt" count="0"/>
 
 
8086
  <line num="27" type="stmt" count="0"/>
8087
+ <line num="28" type="stmt" count="0"/>
8088
  <line num="29" type="stmt" count="0"/>
8089
  <line num="30" type="stmt" count="0"/>
 
8090
  <line num="32" type="stmt" count="0"/>
8091
  <line num="33" type="stmt" count="0"/>
8092
  <line num="34" type="stmt" count="0"/>
8093
  <line num="35" type="stmt" count="0"/>
8094
  <line num="36" type="stmt" count="0"/>
8095
  <line num="37" type="stmt" count="0"/>
8096
+ <line num="38" type="stmt" count="0"/>
8097
  <line num="39" type="stmt" count="0"/>
8098
  <line num="40" type="stmt" count="0"/>
 
8099
  <line num="42" type="stmt" count="0"/>
8100
  <line num="43" type="stmt" count="0"/>
8101
+ <line num="44" type="stmt" count="0"/>
8102
  <line num="45" type="stmt" count="0"/>
8103
+ <line num="46" type="stmt" count="0"/>
8104
  <line num="48" type="stmt" count="0"/>
8105
+ <line num="51" type="stmt" count="0"/>
8106
+ <line num="52" type="stmt" count="0"/>
8107
  <line num="53" type="stmt" count="0"/>
 
 
8108
  <line num="56" type="stmt" count="0"/>
8109
+ <line num="57" type="stmt" count="0"/>
8110
+ <line num="58" type="stmt" count="0"/>
8111
  <line num="59" type="stmt" count="0"/>
8112
+ <line num="62" type="stmt" count="0"/>
8113
  <line num="63" type="stmt" count="0"/>
 
 
8114
  <line num="66" type="stmt" count="0"/>
8115
+ <line num="67" type="stmt" count="0"/>
8116
+ <line num="68" type="stmt" count="0"/>
8117
  <line num="69" type="stmt" count="0"/>
 
 
 
8118
  <line num="73" type="stmt" count="0"/>
8119
+ <line num="74" type="stmt" count="0"/>
8120
+ <line num="75" type="stmt" count="0"/>
8121
  <line num="76" type="stmt" count="0"/>
 
 
8122
  <line num="79" type="stmt" count="0"/>
8123
  <line num="80" type="stmt" count="0"/>
8124
+ <line num="81" type="stmt" count="0"/>
8125
  <line num="82" type="stmt" count="0"/>
8126
  <line num="83" type="stmt" count="0"/>
 
 
8127
  <line num="86" type="stmt" count="0"/>
8128
+ <line num="87" type="stmt" count="0"/>
8129
  <line num="88" type="stmt" count="0"/>
8130
  <line num="89" type="stmt" count="0"/>
8131
  <line num="90" type="stmt" count="0"/>
8132
+ <line num="92" type="stmt" count="0"/>
8133
  <line num="93" type="stmt" count="0"/>
8134
  <line num="94" type="stmt" count="0"/>
8135
  <line num="95" type="stmt" count="0"/>
8136
+ <line num="96" type="stmt" count="0"/>
8137
+ <line num="98" type="stmt" count="0"/>
8138
+ <line num="99" type="stmt" count="0"/>
8139
+ <line num="100" type="stmt" count="0"/>
8140
+ <line num="103" type="stmt" count="0"/>
8141
+ <line num="104" type="stmt" count="0"/>
8142
+ <line num="105" type="stmt" count="0"/>
8143
+ <metrics loc="105" ncloc="86" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="61" coveredstatements="0" elements="61" coveredelements="0"/>
8144
  </file>
8145
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/remote/local.php">
8146
  <line num="21" type="stmt" count="0"/>
9289
  </file>
9290
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php">
9291
  <class name="Boldgrid_Backup_Admin_Ftp_Page" namespace="global" fullPackage="Boldgrid.Backup.Admin.Ftp">
9292
+ <metrics complexity="21" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="107" coveredstatements="2" elements="112" coveredelements="3"/>
9293
  </class>
9294
  <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="12"/>
9295
  <line num="40" type="stmt" count="12"/>
9323
  <line num="91" type="stmt" count="0"/>
9324
  <line num="92" type="stmt" count="0"/>
9325
  <line num="93" type="stmt" count="0"/>
 
 
 
9326
  <line num="100" type="stmt" count="0"/>
 
9327
  <line num="102" type="stmt" count="0"/>
9328
  <line num="103" type="stmt" count="0"/>
9329
  <line num="104" type="stmt" count="0"/>
9330
  <line num="105" type="stmt" count="0"/>
9331
+ <line num="106" type="stmt" count="0"/>
9332
+ <line num="107" type="stmt" count="0"/>
9333
  <line num="108" type="stmt" count="0"/>
9334
+ <line num="109" type="stmt" count="0"/>
9335
  <line num="110" type="stmt" count="0"/>
9336
  <line num="113" type="stmt" count="0"/>
 
9337
  <line num="115" type="stmt" count="0"/>
 
 
9338
  <line num="118" type="stmt" count="0"/>
9339
+ <line num="119" type="stmt" count="0"/>
9340
  <line num="120" type="stmt" count="0"/>
9341
  <line num="121" type="stmt" count="0"/>
9342
  <line num="122" type="stmt" count="0"/>
9343
  <line num="123" type="stmt" count="0"/>
 
9344
  <line num="125" type="stmt" count="0"/>
9345
  <line num="126" type="stmt" count="0"/>
9346
  <line num="127" type="stmt" count="0"/>
9347
  <line num="128" type="stmt" count="0"/>
9348
  <line num="129" type="stmt" count="0"/>
9349
+ <line num="130" type="stmt" count="0"/>
9350
  <line num="131" type="stmt" count="0"/>
9351
  <line num="132" type="stmt" count="0"/>
9352
+ <line num="133" type="stmt" count="0"/>
9353
+ <line num="134" type="stmt" count="0"/>
9354
+ <line num="136" type="stmt" count="0"/>
9355
+ <line num="137" type="stmt" count="0"/>
9356
+ <line num="144" type="method" name="settings_delete" visibility="public" complexity="4" crap="20" count="0"/>
9357
+ <line num="145" type="stmt" count="0"/>
9358
  <line num="147" type="stmt" count="0"/>
9359
  <line num="148" type="stmt" count="0"/>
 
9360
  <line num="151" type="stmt" count="0"/>
9361
  <line num="152" type="stmt" count="0"/>
9362
+ <line num="153" type="stmt" count="0"/>
9363
  <line num="154" type="stmt" count="0"/>
9364
+ <line num="156" type="stmt" count="0"/>
9365
  <line num="157" type="stmt" count="0"/>
9366
+ <line num="159" type="stmt" count="0"/>
9367
+ <line num="160" type="stmt" count="0"/>
9368
+ <line num="162" type="stmt" count="0"/>
9369
+ <line num="163" type="stmt" count="0"/>
9370
+ <line num="172" type="method" name="settings_save" visibility="public" complexity="8" crap="72" count="0"/>
 
9371
  <line num="173" type="stmt" count="0"/>
9372
  <line num="175" type="stmt" count="0"/>
9373
+ <line num="176" type="stmt" count="0"/>
9374
  <line num="177" type="stmt" count="0"/>
9375
+ <line num="178" type="stmt" count="0"/>
9376
+ <line num="180" type="stmt" count="0"/>
9377
+ <line num="182" type="stmt" count="0"/>
9378
+ <line num="186" type="stmt" count="0"/>
9379
  <line num="188" type="stmt" count="0"/>
9380
+ <line num="189" type="stmt" count="0"/>
9381
  <line num="192" type="stmt" count="0"/>
9382
  <line num="193" type="stmt" count="0"/>
 
9383
  <line num="196" type="stmt" count="0"/>
9384
+ <line num="197" type="stmt" count="0"/>
9385
  <line num="198" type="stmt" count="0"/>
9386
+ <line num="199" type="stmt" count="0"/>
 
9387
  <line num="202" type="stmt" count="0"/>
 
9388
  <line num="204" type="stmt" count="0"/>
 
9389
  <line num="206" type="stmt" count="0"/>
9390
+ <line num="207" type="stmt" count="0"/>
9391
  <line num="208" type="stmt" count="0"/>
9392
  <line num="209" type="stmt" count="0"/>
9393
+ <line num="210" type="stmt" count="0"/>
9394
  <line num="211" type="stmt" count="0"/>
9395
  <line num="212" type="stmt" count="0"/>
 
9396
  <line num="214" type="stmt" count="0"/>
9397
  <line num="215" type="stmt" count="0"/>
9398
  <line num="216" type="stmt" count="0"/>
9399
+ <line num="218" type="stmt" count="0"/>
9400
  <line num="219" type="stmt" count="0"/>
9401
+ <line num="220" type="stmt" count="0"/>
9402
+ <line num="221" type="stmt" count="0"/>
9403
+ <line num="222" type="stmt" count="0"/>
9404
+ <line num="223" type="stmt" count="0"/>
9405
+ <line num="226" type="stmt" count="0"/>
9406
+ <metrics loc="228" ncloc="158" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="107" coveredstatements="2" elements="112" coveredelements="3"/>
9407
  </file>
9408
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php">
9409
  <class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
9410
+ <metrics complexity="113" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="390" coveredstatements="14" elements="412" coveredelements="16"/>
9411
  </class>
9412
+ <line num="229" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="12"/>
9413
+ <line num="230" type="stmt" count="12"/>
9414
+ <line num="232" type="stmt" count="12"/>
9415
+ <line num="233" type="stmt" count="12"/>
9416
+ <line num="234" type="stmt" count="12"/>
9417
+ <line num="235" type="stmt" count="12"/>
9418
+ <line num="237" type="stmt" count="12"/>
9419
+ <line num="238" type="stmt" count="12"/>
9420
+ <line num="245" type="method" name="connect" visibility="public" complexity="9" crap="90" count="0"/>
 
 
 
 
 
 
 
9421
  <line num="246" type="stmt" count="0"/>
9422
  <line num="247" type="stmt" count="0"/>
 
 
9423
  <line num="250" type="stmt" count="0"/>
9424
+ <line num="252" type="stmt" count="0"/>
9425
+ <line num="253" type="stmt" count="0"/>
9426
+ <line num="256" type="stmt" count="0"/>
9427
+ <line num="257" type="stmt" count="0"/>
9428
+ <line num="258" type="stmt" count="0"/>
9429
+ <line num="259" type="stmt" count="0"/>
9430
+ <line num="260" type="stmt" count="0"/>
9431
  <line num="261" type="stmt" count="0"/>
9432
  <line num="262" type="stmt" count="0"/>
9433
  <line num="263" type="stmt" count="0"/>
9434
  <line num="264" type="stmt" count="0"/>
9435
+ <line num="273" type="method" name="create_backup_dir" visibility="public" complexity="8" crap="72" count="0"/>
9436
+ <line num="274" type="stmt" count="0"/>
 
 
 
 
9437
  <line num="275" type="stmt" count="0"/>
9438
  <line num="276" type="stmt" count="0"/>
9439
  <line num="277" type="stmt" count="0"/>
 
 
9440
  <line num="280" type="stmt" count="0"/>
9441
  <line num="281" type="stmt" count="0"/>
9442
  <line num="282" type="stmt" count="0"/>
9443
+ <line num="283" type="stmt" count="0"/>
9444
  <line num="284" type="stmt" count="0"/>
9445
  <line num="285" type="stmt" count="0"/>
 
9446
  <line num="288" type="stmt" count="0"/>
9447
+ <line num="289" type="stmt" count="0"/>
9448
  <line num="290" type="stmt" count="0"/>
9449
  <line num="291" type="stmt" count="0"/>
9450
  <line num="292" type="stmt" count="0"/>
9451
  <line num="293" type="stmt" count="0"/>
9452
+ <line num="294" type="stmt" count="0"/>
9453
  <line num="295" type="stmt" count="0"/>
9454
+ <line num="297" type="stmt" count="0"/>
9455
+ <line num="298" type="stmt" count="0"/>
9456
+ <line num="300" type="stmt" count="0"/>
9457
+ <line num="301" type="stmt" count="0"/>
9458
+ <line num="303" type="stmt" count="0"/>
9459
  <line num="304" type="stmt" count="0"/>
9460
  <line num="305" type="stmt" count="0"/>
9461
  <line num="306" type="stmt" count="0"/>
 
9462
  <line num="308" type="stmt" count="0"/>
9463
+ <line num="316" type="method" name="disconnect" visibility="public" complexity="3" crap="12" count="0"/>
9464
+ <line num="317" type="stmt" count="0"/>
9465
+ <line num="318" type="stmt" count="0"/>
9466
+ <line num="319" type="stmt" count="0"/>
9467
  <line num="320" type="stmt" count="0"/>
9468
+ <line num="321" type="stmt" count="0"/>
9469
  <line num="322" type="stmt" count="0"/>
9470
+ <line num="332" type="method" name="download" visibility="public" complexity="4" crap="20" count="0"/>
 
 
 
 
 
 
 
9471
  <line num="333" type="stmt" count="0"/>
 
9472
  <line num="335" type="stmt" count="0"/>
9473
+ <line num="336" type="stmt" count="0"/>
9474
  <line num="337" type="stmt" count="0"/>
 
9475
  <line num="339" type="stmt" count="0"/>
9476
  <line num="341" type="stmt" count="0"/>
9477
+ <line num="342" type="stmt" count="0"/>
9478
+ <line num="343" type="stmt" count="0"/>
9479
+ <line num="344" type="stmt" count="0"/>
9480
+ <line num="345" type="stmt" count="0"/>
9481
+ <line num="346" type="stmt" count="0"/>
9482
+ <line num="347" type="stmt" count="0"/>
9483
+ <line num="348" type="stmt" count="0"/>
9484
  <line num="350" type="stmt" count="0"/>
9485
  <line num="351" type="stmt" count="0"/>
9486
+ <line num="352" type="stmt" count="0"/>
9487
  <line num="354" type="stmt" count="0"/>
9488
+ <line num="362" type="method" name="enforce_retention" visibility="public" complexity="8" crap="72" count="0"/>
 
 
 
9489
  <line num="363" type="stmt" count="0"/>
9490
+ <line num="364" type="stmt" count="0"/>
9491
  <line num="367" type="stmt" count="0"/>
9492
+ <line num="368" type="stmt" count="0"/>
9493
  <line num="370" type="stmt" count="0"/>
9494
+ <line num="372" type="stmt" count="0"/>
9495
  <line num="373" type="stmt" count="0"/>
 
 
9496
  <line num="376" type="stmt" count="0"/>
 
9497
  <line num="378" type="stmt" count="0"/>
 
9498
  <line num="380" type="stmt" count="0"/>
9499
+ <line num="382" type="stmt" count="0"/>
9500
+ <line num="383" type="stmt" count="0"/>
9501
+ <line num="384" type="stmt" count="0"/>
9502
+ <line num="386" type="stmt" count="0"/>
9503
  <line num="387" type="stmt" count="0"/>
9504
  <line num="388" type="stmt" count="0"/>
9505
  <line num="389" type="stmt" count="0"/>
9506
+ <line num="390" type="stmt" count="0"/>
9507
  <line num="391" type="stmt" count="0"/>
9508
  <line num="392" type="stmt" count="0"/>
9509
  <line num="393" type="stmt" count="0"/>
9510
+ <line num="400" type="stmt" count="0"/>
9511
+ <line num="401" type="stmt" count="0"/>
9512
+ <line num="402" type="stmt" count="0"/>
9513
+ <line num="404" type="stmt" count="0"/>
9514
+ <line num="405" type="stmt" count="0"/>
9515
+ <line num="406" type="stmt" count="0"/>
9516
+ <line num="415" type="method" name="get_folder_name" visibility="public" complexity="7" crap="56" count="0"/>
9517
+ <line num="416" type="stmt" count="0"/>
 
 
9518
  <line num="417" type="stmt" count="0"/>
9519
+ <line num="420" type="stmt" count="0"/>
 
9520
  <line num="421" type="stmt" count="0"/>
9521
  <line num="422" type="stmt" count="0"/>
 
 
 
 
 
 
9522
  <line num="431" type="stmt" count="0"/>
 
 
9523
  <line num="434" type="stmt" count="0"/>
9524
+ <line num="435" type="stmt" count="0"/>
9525
  <line num="436" type="stmt" count="0"/>
9526
  <line num="437" type="stmt" count="0"/>
9527
  <line num="438" type="stmt" count="0"/>
9528
  <line num="439" type="stmt" count="0"/>
9529
+ <line num="442" type="stmt" count="0"/>
9530
+ <line num="454" type="method" name="get_from_post" visibility="public" complexity="6" crap="42" count="0"/>
9531
+ <line num="455" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
 
9532
  <line num="459" type="stmt" count="0"/>
9533
  <line num="460" type="stmt" count="0"/>
9534
+ <line num="461" type="stmt" count="0"/>
9535
+ <line num="462" type="stmt" count="0"/>
9536
  <line num="464" type="stmt" count="0"/>
9537
+ <line num="465" type="stmt" count="0"/>
9538
+ <line num="466" type="stmt" count="0"/>
9539
+ <line num="467" type="stmt" count="0"/>
9540
+ <line num="469" type="stmt" count="0"/>
9541
+ <line num="470" type="stmt" count="0"/>
9542
+ <line num="471" type="stmt" count="0"/>
9543
+ <line num="473" type="stmt" count="0"/>
9544
+ <line num="474" type="stmt" count="0"/>
9545
+ <line num="475" type="stmt" count="0"/>
9546
+ <line num="476" type="stmt" count="0"/>
9547
+ <line num="478" type="stmt" count="0"/>
9548
+ <line num="479" type="stmt" count="0"/>
9549
+ <line num="480" type="stmt" count="0"/>
9550
+ <line num="481" type="stmt" count="0"/>
9551
+ <line num="483" type="stmt" count="0"/>
9552
+ <line num="484" type="stmt" count="0"/>
9553
+ <line num="485" type="stmt" count="0"/>
9554
+ <line num="486" type="stmt" count="0"/>
9555
+ <line num="488" type="stmt" count="0"/>
9556
  <line num="489" type="stmt" count="0"/>
9557
  <line num="490" type="stmt" count="0"/>
9558
+ <line num="491" type="stmt" count="0"/>
9559
  <line num="493" type="stmt" count="0"/>
9560
+ <line num="494" type="stmt" count="0"/>
9561
+ <line num="495" type="stmt" count="0"/>
9562
  <line num="496" type="stmt" count="0"/>
9563
+ <line num="497" type="stmt" count="0"/>
 
 
9564
  <line num="501" type="stmt" count="0"/>
9565
+ <line num="502" type="stmt" count="0"/>
9566
+ <line num="503" type="stmt" count="0"/>
9567
  <line num="505" type="stmt" count="0"/>
9568
  <line num="506" type="stmt" count="0"/>
9569
  <line num="507" type="stmt" count="0"/>
9570
+ <line num="508" type="stmt" count="0"/>
9571
  <line num="509" type="stmt" count="0"/>
9572
+ <line num="510" type="stmt" count="0"/>
 
9573
  <line num="514" type="stmt" count="0"/>
9574
+ <line num="515" type="stmt" count="0"/>
9575
  <line num="516" type="stmt" count="0"/>
9576
  <line num="517" type="stmt" count="0"/>
9577
+ <line num="521" type="stmt" count="0"/>
9578
+ <line num="545" type="method" name="format_raw_contents" visibility="public" complexity="9" crap="90" count="0"/>
 
 
 
 
 
 
 
 
 
9579
  <line num="546" type="stmt" count="0"/>
9580
  <line num="547" type="stmt" count="0"/>
 
9581
  <line num="549" type="stmt" count="0"/>
9582
+ <line num="550" type="stmt" count="0"/>
9583
+ <line num="553" type="stmt" count="0"/>
9584
  <line num="555" type="stmt" count="0"/>
9585
  <line num="556" type="stmt" count="0"/>
9586
  <line num="557" type="stmt" count="0"/>
9587
  <line num="558" type="stmt" count="0"/>
 
9588
  <line num="561" type="stmt" count="0"/>
9589
+ <line num="562" type="stmt" count="0"/>
9590
+ <line num="563" type="stmt" count="0"/>
9591
+ <line num="564" type="stmt" count="0"/>
9592
+ <line num="566" type="stmt" count="0"/>
9593
+ <line num="568" type="stmt" count="0"/>
9594
+ <line num="570" type="stmt" count="0"/>
9595
+ <line num="571" type="stmt" count="0"/>
9596
+ <line num="573" type="stmt" count="0"/>
9597
+ <line num="574" type="stmt" count="0"/>
9598
+ <line num="575" type="stmt" count="0"/>
9599
  <line num="588" type="stmt" count="0"/>
 
9600
  <line num="590" type="stmt" count="0"/>
9601
+ <line num="591" type="stmt" count="0"/>
9602
  <line num="592" type="stmt" count="0"/>
9603
  <line num="593" type="stmt" count="0"/>
 
9604
  <line num="595" type="stmt" count="0"/>
9605
  <line num="596" type="stmt" count="0"/>
9606
  <line num="597" type="stmt" count="0"/>
9607
+ <line num="598" type="stmt" count="0"/>
9608
  <line num="600" type="stmt" count="0"/>
9609
+ <line num="603" type="stmt" count="0"/>
9610
+ <line num="604" type="stmt" count="0"/>
9611
+ <line num="605" type="stmt" count="0"/>
9612
+ <line num="606" type="stmt" count="0"/>
9613
  <line num="609" type="stmt" count="0"/>
 
9614
  <line num="611" type="stmt" count="0"/>
9615
  <line num="612" type="stmt" count="0"/>
9616
  <line num="613" type="stmt" count="0"/>
9617
  <line num="614" type="stmt" count="0"/>
9618
  <line num="615" type="stmt" count="0"/>
9619
+ <line num="616" type="stmt" count="0"/>
9620
+ <line num="618" type="stmt" count="0"/>
9621
+ <line num="634" type="method" name="get_contents" visibility="public" complexity="9" crap="90" count="0"/>
 
 
9622
  <line num="635" type="stmt" count="0"/>
9623
  <line num="636" type="stmt" count="0"/>
9624
  <line num="637" type="stmt" count="0"/>
9625
  <line num="638" type="stmt" count="0"/>
9626
  <line num="639" type="stmt" count="0"/>
9627
+ <line num="642" type="stmt" count="0"/>
9628
+ <line num="643" type="stmt" count="0"/>
9629
+ <line num="644" type="stmt" count="0"/>
9630
+ <line num="645" type="stmt" count="0"/>
9631
+ <line num="646" type="stmt" count="0"/>
9632
+ <line num="647" type="stmt" count="0"/>
9633
  <line num="649" type="stmt" count="0"/>
9634
+ <line num="650" type="stmt" count="0"/>
9635
+ <line num="651" type="stmt" count="0"/>
9636
  <line num="652" type="stmt" count="0"/>
9637
+ <line num="653" type="stmt" count="0"/>
9638
  <line num="654" type="stmt" count="0"/>
9639
+ <line num="656" type="stmt" count="0"/>
9640
+ <line num="657" type="stmt" count="0"/>
9641
+ <line num="664" type="method" name="anonymous function" complexity="2" crap="6" count="0"/>
9642
+ <line num="665" type="stmt" count="0"/>
 
 
9643
  <line num="666" type="stmt" count="0"/>
9644
  <line num="667" type="stmt" count="0"/>
9645
  <line num="668" type="stmt" count="0"/>
9646
+ <line num="669" type="stmt" count="0"/>
9647
  <line num="670" type="stmt" count="0"/>
9648
  <line num="671" type="stmt" count="0"/>
9649
  <line num="672" type="stmt" count="0"/>
9650
  <line num="674" type="stmt" count="0"/>
9651
+ <line num="685" type="method" name="get_details" visibility="public" complexity="3" crap="12" count="0"/>
9652
+ <line num="686" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
9653
  <line num="688" type="stmt" count="0"/>
 
9654
  <line num="691" type="stmt" count="0"/>
9655
  <line num="692" type="stmt" count="0"/>
9656
  <line num="693" type="stmt" count="0"/>
9657
+ <line num="694" type="stmt" count="0"/>
9658
  <line num="695" type="stmt" count="0"/>
9659
+ <line num="696" type="stmt" count="0"/>
9660
+ <line num="704" type="method" name="init" visibility="public" complexity="7" crap="56" count="0"/>
9661
+ <line num="705" type="stmt" count="0"/>
9662
+ <line num="706" type="stmt" count="0"/>
9663
+ <line num="709" type="stmt" count="0"/>
9664
+ <line num="711" type="stmt" count="0"/>
9665
+ <line num="715" type="stmt" count="0"/>
9666
  <line num="716" type="stmt" count="0"/>
9667
  <line num="717" type="stmt" count="0"/>
9668
+ <line num="719" type="stmt" count="0"/>
9669
  <line num="720" type="stmt" count="0"/>
9670
  <line num="721" type="stmt" count="0"/>
9671
  <line num="723" type="stmt" count="0"/>
9672
+ <line num="724" type="stmt" count="0"/>
9673
  <line num="725" type="stmt" count="0"/>
9674
+ <line num="727" type="stmt" count="0"/>
9675
+ <line num="728" type="stmt" count="0"/>
9676
+ <line num="729" type="stmt" count="0"/>
9677
+ <line num="731" type="stmt" count="0"/>
9678
+ <line num="732" type="stmt" count="0"/>
9679
+ <line num="733" type="stmt" count="0"/>
9680
+ <line num="735" type="stmt" count="0"/>
9681
+ <line num="736" type="stmt" count="0"/>
9682
+ <line num="737" type="stmt" count="0"/>
9683
+ <line num="739" type="stmt" count="0"/>
9684
+ <line num="740" type="stmt" count="0"/>
9685
  <line num="741" type="stmt" count="0"/>
9686
  <line num="742" type="stmt" count="0"/>
9687
+ <line num="744" type="stmt" count="0"/>
9688
+ <line num="745" type="stmt" count="0"/>
9689
  <line num="747" type="stmt" count="0"/>
9690
+ <line num="748" type="stmt" count="0"/>
9691
  <line num="749" type="stmt" count="0"/>
9692
  <line num="750" type="stmt" count="0"/>
9693
  <line num="752" type="stmt" count="0"/>
9694
+ <line num="754" type="stmt" count="0"/>
9695
  <line num="755" type="stmt" count="0"/>
9696
  <line num="756" type="stmt" count="0"/>
9697
+ <line num="757" type="stmt" count="0"/>
9698
+ <line num="770" type="method" name="is_setup" visibility="public" complexity="3" crap="12" count="0"/>
 
 
 
 
 
 
 
 
9699
  <line num="773" type="stmt" count="0"/>
9700
  <line num="774" type="stmt" count="0"/>
 
9701
  <line num="777" type="stmt" count="0"/>
9702
+ <line num="778" type="stmt" count="0"/>
9703
+ <line num="780" type="stmt" count="0"/>
9704
+ <line num="782" type="stmt" count="0"/>
9705
+ <line num="797" type="method" name="is_valid_credentials" visibility="public" complexity="11" crap="132" count="0"/>
9706
+ <line num="798" type="stmt" count="0"/>
9707
  <line num="799" type="stmt" count="0"/>
9708
  <line num="800" type="stmt" count="0"/>
 
 
9709
  <line num="803" type="stmt" count="0"/>
9710
  <line num="804" type="stmt" count="0"/>
9711
+ <line num="806" type="stmt" count="0"/>
9712
  <line num="807" type="stmt" count="0"/>
 
9713
  <line num="809" type="stmt" count="0"/>
9714
+ <line num="810" type="stmt" count="0"/>
9715
+ <line num="812" type="stmt" count="0"/>
9716
  <line num="813" type="stmt" count="0"/>
 
 
9717
  <line num="817" type="stmt" count="0"/>
9718
+ <line num="818" type="stmt" count="0"/>
9719
+ <line num="819" type="stmt" count="0"/>
9720
+ <line num="820" type="stmt" count="0"/>
9721
+ <line num="821" type="stmt" count="0"/>
9722
+ <line num="822" type="stmt" count="0"/>
9723
+ <line num="824" type="stmt" count="0"/>
9724
+ <line num="825" type="stmt" count="0"/>
9725
+ <line num="827" type="stmt" count="0"/>
9726
  <line num="828" type="stmt" count="0"/>
9727
+ <line num="830" type="stmt" count="0"/>
9728
+ <line num="831" type="stmt" count="0"/>
9729
  <line num="833" type="stmt" count="0"/>
9730
  <line num="834" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
9731
  <line num="850" type="stmt" count="0"/>
 
9732
  <line num="852" type="stmt" count="0"/>
9733
+ <line num="856" type="stmt" count="0"/>
9734
+ <line num="857" type="stmt" count="0"/>
9735
+ <line num="858" type="stmt" count="0"/>
9736
+ <line num="859" type="stmt" count="0"/>
9737
+ <line num="860" type="stmt" count="0"/>
9738
+ <line num="861" type="stmt" count="0"/>
9739
+ <line num="862" type="stmt" count="0"/>
9740
  <line num="864" type="stmt" count="0"/>
9741
+ <line num="865" type="stmt" count="0"/>
9742
  <line num="866" type="stmt" count="0"/>
 
9743
  <line num="868" type="stmt" count="0"/>
 
9744
  <line num="870" type="stmt" count="0"/>
9745
+ <line num="871" type="stmt" count="0"/>
9746
+ <line num="872" type="stmt" count="0"/>
9747
+ <line num="874" type="stmt" count="0"/>
9748
+ <line num="884" type="method" name="log_in" visibility="public" complexity="6" crap="42" count="0"/>
 
9749
  <line num="885" type="stmt" count="0"/>
9750
  <line num="886" type="stmt" count="0"/>
9751
+ <line num="890" type="stmt" count="0"/>
9752
+ <line num="891" type="stmt" count="0"/>
9753
+ <line num="892" type="stmt" count="0"/>
9754
+ <line num="895" type="stmt" count="0"/>
9755
+ <line num="896" type="stmt" count="0"/>
9756
  <line num="897" type="stmt" count="0"/>
9757
  <line num="898" type="stmt" count="0"/>
9758
+ <line num="899" type="stmt" count="0"/>
9759
+ <line num="900" type="stmt" count="0"/>
9760
+ <line num="901" type="stmt" count="0"/>
9761
+ <line num="902" type="stmt" count="0"/>
9762
+ <line num="904" type="stmt" count="0"/>
9763
+ <line num="905" type="stmt" count="0"/>
9764
+ <line num="907" type="stmt" count="0"/>
9765
  <line num="908" type="stmt" count="0"/>
9766
+ <line num="909" type="stmt" count="0"/>
9767
+ <line num="919" type="method" name="maybe_passive" visibility="public" complexity="3" crap="12" count="0"/>
9768
+ <line num="920" type="stmt" count="0"/>
9769
+ <line num="921" type="stmt" count="0"/>
9770
+ <line num="923" type="stmt" count="0"/>
9771
  <line num="924" type="stmt" count="0"/>
9772
+ <line num="925" type="stmt" count="0"/>
9773
  <line num="926" type="stmt" count="0"/>
9774
  <line num="927" type="stmt" count="0"/>
9775
+ <line num="937" type="method" name="reset" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
9776
  <line num="938" type="stmt" count="0"/>
9777
  <line num="939" type="stmt" count="0"/>
9778
  <line num="940" type="stmt" count="0"/>
9779
+ <line num="941" type="stmt" count="0"/>
9780
+ <line num="942" type="stmt" count="0"/>
9781
+ <line num="943" type="stmt" count="0"/>
9782
+ <line num="944" type="stmt" count="0"/>
9783
+ <line num="951" type="method" name="set_default_folder_name" visibility="public" complexity="1" crap="1" count="12"/>
9784
+ <line num="952" type="stmt" count="12"/>
9785
+ <line num="953" type="stmt" count="12"/>
9786
+ <line num="954" type="stmt" count="12"/>
9787
+ <line num="955" type="stmt" count="12"/>
9788
+ <line num="956" type="stmt" count="12"/>
9789
+ <line num="958" type="stmt" count="12"/>
9790
+ <line num="959" type="stmt" count="12"/>
9791
+ <line num="968" type="method" name="set_pass" visibility="public" complexity="1" crap="2" count="0"/>
9792
  <line num="969" type="stmt" count="0"/>
9793
  <line num="970" type="stmt" count="0"/>
9794
+ <line num="979" type="method" name="is_uploaded" visibility="public" complexity="2" crap="6" count="0"/>
9795
+ <line num="980" type="stmt" count="0"/>
9796
+ <line num="982" type="stmt" count="0"/>
9797
+ <line num="993" type="method" name="upload" visibility="public" complexity="9" crap="90" count="0"/>
9798
+ <line num="994" type="stmt" count="0"/>
9799
+ <line num="996" type="stmt" count="0"/>
9800
+ <line num="998" type="stmt" count="0"/>
9801
+ <line num="999" type="stmt" count="0"/>
9802
+ <line num="1000" type="stmt" count="0"/>
9803
+ <line num="1001" type="stmt" count="0"/>
9804
+ <line num="1002" type="stmt" count="0"/>
9805
+ <line num="1005" type="stmt" count="0"/>
9806
+ <line num="1006" type="stmt" count="0"/>
9807
+ <line num="1007" type="stmt" count="0"/>
9808
+ <line num="1010" type="stmt" count="0"/>
9809
+ <line num="1011" type="stmt" count="0"/>
9810
+ <line num="1012" type="stmt" count="0"/>
9811
+ <line num="1020" type="stmt" count="0"/>
9812
+ <line num="1021" type="stmt" count="0"/>
9813
+ <line num="1022" type="stmt" count="0"/>
9814
+ <line num="1023" type="stmt" count="0"/>
9815
+ <line num="1024" type="stmt" count="0"/>
9816
+ <line num="1027" type="stmt" count="0"/>
9817
+ <line num="1028" type="stmt" count="0"/>
9818
+ <line num="1029" type="stmt" count="0"/>
9819
+ <line num="1031" type="stmt" count="0"/>
9820
+ <line num="1032" type="stmt" count="0"/>
9821
+ <line num="1034" type="stmt" count="0"/>
9822
+ <line num="1041" type="stmt" count="0"/>
9823
+ <line num="1042" type="stmt" count="0"/>
9824
+ <line num="1043" type="stmt" count="0"/>
9825
+ <line num="1045" type="stmt" count="0"/>
9826
+ <line num="1048" type="stmt" count="0"/>
9827
+ <line num="1050" type="stmt" count="0"/>
9828
+ <metrics loc="1052" ncloc="623" classes="1" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="394" coveredstatements="14" elements="416" coveredelements="16"/>
9829
  </file>
9830
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php">
9831
  <class name="Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin.Remote">
9863
  <line num="188" type="stmt" count="2"/>
9864
  <metrics loc="189" ncloc="63" classes="1" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="21" elements="30" coveredelements="30"/>
9865
  </file>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9866
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/storage/class-boldgrid-backup-admin-storage-local.php">
9867
  <class name="Boldgrid_Backup_Admin_Storage_Local" namespace="global" fullPackage="Boldgrid.Backup.Admin.Storage">
9868
  <metrics complexity="30" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="119" coveredstatements="2" elements="128" coveredelements="3"/>
10527
  </file>
10528
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/cron/class-site-restore.php">
10529
  <class name="Site_Restore" namespace="Boldgrid\Backup\Cron" fullPackage="Site">
10530
+ <metrics complexity="47" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="142" coveredstatements="0" elements="150" coveredelements="0"/>
10531
  </class>
10532
  <line num="35" type="method" name="run" visibility="public" complexity="2" crap="6" count="0"/>
10533
  <line num="36" type="stmt" count="0"/>
10580
  <line num="141" type="stmt" count="0"/>
10581
  <line num="143" type="stmt" count="0"/>
10582
  <line num="144" type="stmt" count="0"/>
10583
+ <line num="160" type="method" name="restore_files" visibility="private" complexity="16" crap="272" count="0"/>
10584
  <line num="161" type="stmt" count="0"/>
10585
  <line num="162" type="stmt" count="0"/>
10586
  <line num="163" type="stmt" count="0"/>
62646
  <metrics loc="135" ncloc="76" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
62647
  </file>
62648
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/bootstrap.php">
62649
+ <line num="96" type="stmt" count="0"/>
62650
  <line num="97" type="stmt" count="0"/>
62651
+ <metrics loc="99" ncloc="75" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="0" elements="2" coveredelements="0"/>
 
62652
  </file>
62653
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/cron/test-class-info.php">
62654
  <class name="Test_Boldgrid_Backup_Cron_Info" namespace="global" fullPackage="Test.Boldgrid.Backup.Cron">
67254
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
67255
  </file>
67256
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
67257
+ <class name="ComposerStaticInitcca99f5ab3738b16ab0dfcf57cf8b87b" namespace="Composer\Autoload">
67258
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
67259
  </class>
67260
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
67346
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
67347
  </file>
67348
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
67349
+ <class name="ComposerAutoloaderInitcca99f5ab3738b16ab0dfcf57cf8b87b" namespace="global">
67350
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
67351
  </class>
67352
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
86128
  <line num="16" type="stmt" count="0"/>
86129
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
86130
  </file>
86131
+ <metrics files="818" loc="170548" ncloc="104692" classes="743" methods="3130" coveredmethods="97" conditionals="0" coveredconditionals="0" statements="77942" coveredstatements="871" elements="81072" coveredelements="968"/>
86132
  </project>
86133
  </coverage>
cron/class-site-restore.php CHANGED
@@ -163,7 +163,7 @@ class Site_Restore {
163
  $method = Info::choose_method();
164
 
165
  switch ( true ) {
166
- case class_exists( 'ZipArchive' ):
167
  echo 'Attempting file restoration using PHP ZipArchive...' . PHP_EOL;
168
  $archive = new \ZipArchive();
169
  if ( true === $archive->open( $info['filepath'] ) ) {
@@ -172,7 +172,7 @@ class Site_Restore {
172
  }
173
  break;
174
 
175
- case file_exists( $info['ABSPATH'] . 'wp-admin/includes/class-pclzip.php' ):
176
  echo 'Attempting file restoration using PHP PCLZip...' . PHP_EOL;
177
  require $info['ABSPATH'] . 'wp-admin/includes/class-pclzip.php';
178
  $archive = new \PclZip( $info['filepath'] );
@@ -187,7 +187,7 @@ class Site_Restore {
187
  }
188
  break;
189
 
190
- case \Boldgrid_Backup_Admin_Cli::call_command( 'unzip', $success, $return_var ) || $success || 0 === $return_var:
191
  echo 'Attempting file restoration using unzip (CLI)...' . PHP_EOL;
192
  $cmd = 'cd ' . $info['ABSPATH'] . ';unzip -oqq ' . $info['filepath'];
193
  \Boldgrid_Backup_Admin_Cli::call_command(
163
  $method = Info::choose_method();
164
 
165
  switch ( true ) {
166
+ case ( ! $method || 'ziparchive' === $method ) && class_exists( 'ZipArchive' ):
167
  echo 'Attempting file restoration using PHP ZipArchive...' . PHP_EOL;
168
  $archive = new \ZipArchive();
169
  if ( true === $archive->open( $info['filepath'] ) ) {
172
  }
173
  break;
174
 
175
+ case ( ! $method || 'pclzip' === $method ) && file_exists( $info['ABSPATH'] . 'wp-admin/includes/class-pclzip.php' ):
176
  echo 'Attempting file restoration using PHP PCLZip...' . PHP_EOL;
177
  require $info['ABSPATH'] . 'wp-admin/includes/class-pclzip.php';
178
  $archive = new \PclZip( $info['filepath'] );
187
  }
188
  break;
189
 
190
+ case ( ! $method || 'cli' === $method ) && ( \Boldgrid_Backup_Admin_Cli::call_command( 'unzip', $success, $return_var ) || $success || 0 === $return_var ):
191
  echo 'Attempting file restoration using unzip (CLI)...' . PHP_EOL;
192
  $cmd = 'cd ' . $info['ABSPATH'] . ';unzip -oqq ' . $info['filepath'];
193
  \Boldgrid_Backup_Admin_Cli::call_command(
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === BoldGrid Backup ===
2
  Contributors: boldgrid, joemoto, imh_brad, rramo012, timph, bgnicolepaschen
3
- Tags: boldgrid, backup, restore, migrate, migration, update, updates
4
  Requires at least: 4.4
5
  Tested up to: 5.1
6
  Requires PHP: 5.4
7
- Stable tag: 1.9.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -81,6 +81,14 @@ We also suggest joining our [Team Orange User Group community](https://www.faceb
81
 
82
  == Changelog ==
83
 
 
 
 
 
 
 
 
 
84
  = 1.9.0 =
85
 
86
  Release date: Mar 26th, 2019
1
  === BoldGrid Backup ===
2
  Contributors: boldgrid, joemoto, imh_brad, rramo012, timph, bgnicolepaschen
3
+ Tags: boldgrid, backup, restore, restoration, migrate, migration, update, updates
4
  Requires at least: 4.4
5
  Tested up to: 5.1
6
  Requires PHP: 5.4
7
+ Stable tag: 1.9.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
81
 
82
  == Changelog ==
83
 
84
+ = 1.9.1 =
85
+
86
+ Release date: Apr 2nd, 2019
87
+
88
+ * New feature: Users can now specify a custom folder name for FTP uploads.
89
+ * Update: Increased precision of "Archive file size" value within progress bar to better show a backup is still occurring and didn't freeze.
90
+ * Bug fix: Honor bgbkup-cli method argument.
91
+
92
  = 1.9.0 =
93
 
94
  Release date: Mar 26th, 2019
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit813a2de0326c9d8d40ce9568ef9fe8af::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitcca99f5ab3738b16ab0dfcf57cf8b87b::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit813a2de0326c9d8d40ce9568ef9fe8af
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit813a2de0326c9d8d40ce9568ef9fe8af
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit813a2de0326c9d8d40ce9568ef9fe8af', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit813a2de0326c9d8d40ce9568ef9fe8af', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit813a2de0326c9d8d40ce9568ef9fe8af::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit813a2de0326c9d8d40ce9568ef9fe8af
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit813a2de0326c9d8d40ce9568ef9fe8af::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire813a2de0326c9d8d40ce9568ef9fe8af($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire813a2de0326c9d8d40ce9568ef9fe8af($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitcca99f5ab3738b16ab0dfcf57cf8b87b
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitcca99f5ab3738b16ab0dfcf57cf8b87b', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitcca99f5ab3738b16ab0dfcf57cf8b87b', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitcca99f5ab3738b16ab0dfcf57cf8b87b::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInitcca99f5ab3738b16ab0dfcf57cf8b87b::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequirecca99f5ab3738b16ab0dfcf57cf8b87b($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequirecca99f5ab3738b16ab0dfcf57cf8b87b($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit813a2de0326c9d8d40ce9568ef9fe8af
8
  {
9
  public static $files = array (
10
  'f15d016d70663d5e96ccd2b863511eb8' => __DIR__ . '/..' . '/cbschuld/browser.php/lib/Browser.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit813a2de0326c9d8d40ce9568ef9fe8af
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit813a2de0326c9d8d40ce9568ef9fe8af::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit813a2de0326c9d8d40ce9568ef9fe8af::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit813a2de0326c9d8d40ce9568ef9fe8af::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitcca99f5ab3738b16ab0dfcf57cf8b87b
8
  {
9
  public static $files = array (
10
  'f15d016d70663d5e96ccd2b863511eb8' => __DIR__ . '/..' . '/cbschuld/browser.php/lib/Browser.php',
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
+ $loader->prefixLengthsPsr4 = ComposerStaticInitcca99f5ab3738b16ab0dfcf57cf8b87b::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInitcca99f5ab3738b16ab0dfcf57cf8b87b::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInitcca99f5ab3738b16ab0dfcf57cf8b87b::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }