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

Version Description

Release date: September 17th, 2019

  • Update: Allow activation notice to be filtered.
  • Update: Reworked much of the js for "Backup site now" and "In progress".
Download this release

Release Info

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

Code changes from version 1.11.1 to 1.11.2

admin/class-boldgrid-backup-admin-auto-rollback.php CHANGED
@@ -225,25 +225,7 @@ class Boldgrid_Backup_Admin_Auto_Rollback {
225
  false
226
  );
227
 
228
- $access_type = get_filesystem_method();
229
- $archive_nonce = wp_create_nonce( 'archive_auth' );
230
- $localize_script_data = array(
231
- 'archiveNonce' => $archive_nonce,
232
- 'accessType' => $access_type,
233
- 'updateProtectionActivated' => $this->core->elements['update_protection_activated'],
234
- 'backupCreated' => $this->core->lang['backup_created'],
235
- 'errorText' => esc_html__(
236
- 'There was an error processing your request. Please reload the page and try again.',
237
- 'boldgrid-backup'
238
- ),
239
- );
240
- wp_localize_script( $handle, 'localizeScriptData', $localize_script_data );
241
-
242
  wp_enqueue_script( $handle );
243
-
244
- // Scripts required for showing backup in progress bar.
245
- wp_enqueue_script( 'heartbeat' );
246
- wp_enqueue_script( 'jquery-ui-progressbar' );
247
  }
248
 
249
  /**
@@ -875,8 +857,9 @@ class Boldgrid_Backup_Admin_Auto_Rollback {
875
  * 1.6.0 so that we can uniquely identify this notice on the page.
876
  */
877
  $backup_button = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-button.php';
 
878
  $notice = $this->notice_backup_get();
879
- do_action( 'boldgrid_backup_notice', $notice . $backup_button, 'notice notice-warning is-dismissible boldgrid-backup-protect-now' );
880
  }
881
 
882
  /**
@@ -1143,7 +1126,8 @@ class Boldgrid_Backup_Admin_Auto_Rollback {
1143
  // You're not protected, make a backup first.
1144
  $notice = $this->notice_backup_get();
1145
  $backup_button = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-button.php';
1146
- $notice = '<div class="notice notice-warning is-dismissible boldgrid-backup-protect-now">' . $notice . $backup_button . '</div>';
 
1147
  }
1148
 
1149
  wp_send_json_success( $notice );
225
  false
226
  );
227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  wp_enqueue_script( $handle );
 
 
 
 
229
  }
230
 
231
  /**
857
  * 1.6.0 so that we can uniquely identify this notice on the page.
858
  */
859
  $backup_button = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-button.php';
860
+ $in_progress = Boldgrid_Backup_Admin_In_Progress_Data::get_markup();
861
  $notice = $this->notice_backup_get();
862
+ do_action( 'boldgrid_backup_notice', $notice . $backup_button . $in_progress, 'notice notice-warning is-dismissible boldgrid-backup-protect-now' );
863
  }
864
 
865
  /**
1126
  // You're not protected, make a backup first.
1127
  $notice = $this->notice_backup_get();
1128
  $backup_button = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-button.php';
1129
+ $in_progress = Boldgrid_Backup_Admin_In_Progress_Data::get_markup();
1130
+ $notice = '<div class="notice notice-warning is-dismissible boldgrid-backup-protect-now">' . $notice . $backup_button . $in_progress . '</div>';
1131
  }
1132
 
1133
  wp_send_json_success( $notice );
admin/class-boldgrid-backup-admin-core.php CHANGED
@@ -2352,22 +2352,23 @@ class Boldgrid_Backup_Admin_Core {
2352
 
2353
  $archive_info = $this->archive_files( true );
2354
 
2355
- if ( ! $this->is_archiving_update_protection ) {
2356
- $message = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup.php';
2357
- $this->notice->add_user_notice( $message['message'], $message['class'] );
2358
- wp_send_json_success(
2359
- array(
2360
- 'callback' => 'reload',
2361
- )
2362
- );
2363
- } else {
2364
  update_site_option( 'boldgrid_backup_pending_rollback', $archive_info );
2365
- wp_send_json_success(
2366
- array(
2367
- 'callback' => 'updateProtectionEnabled',
2368
- )
2369
- );
2370
  }
 
 
 
 
 
 
 
 
 
2371
  }
2372
 
2373
  /**
@@ -2555,6 +2556,15 @@ class Boldgrid_Backup_Admin_Core {
2555
  'backup_created' => __( 'Backup created successfully!', 'boldgrid-backup' ),
2556
  'Checking_credentials' => __( 'Checking credentials', 'boldgrid-backup' ),
2557
  'checkmark' => '&#10003;',
 
 
 
 
 
 
 
 
 
2558
  'icon_success' => '<span class="dashicons dashicons-yes green"></span> ',
2559
  'icon_warning' => '<span class="dashicons dashicons-warning yellow"></span> ',
2560
  'heading_update_protection' => __( 'BoldGrid Backup - Update Protection', 'boldgrid-backup' ),
2352
 
2353
  $archive_info = $this->archive_files( true );
2354
 
2355
+ // If there were any errors encountered during the backup, save them to the In Progress data.
2356
+ if ( ! empty( $archive_info['error'] ) ) {
2357
+ Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'error', $archive_info['error'] );
2358
+ }
2359
+
2360
+ if ( $this->is_archiving_update_protection ) {
 
 
 
2361
  update_site_option( 'boldgrid_backup_pending_rollback', $archive_info );
 
 
 
 
 
2362
  }
2363
+
2364
+ /*
2365
+ * Finish.
2366
+ *
2367
+ * Normally we'd give the user a notice that the backup has been completed. However, since
2368
+ * 1.11.2, we are no longer waiting for this ajax call to complete. The "in progress" bar
2369
+ * will give the user any updates they need.
2370
+ */
2371
+ wp_send_json_success();
2372
  }
2373
 
2374
  /**
2556
  'backup_created' => __( 'Backup created successfully!', 'boldgrid-backup' ),
2557
  'Checking_credentials' => __( 'Checking credentials', 'boldgrid-backup' ),
2558
  'checkmark' => '&#10003;',
2559
+ 'get_support' => wp_kses(
2560
+ sprintf(
2561
+ // translators: 1 The opening anchor tag to the support tab, 2 its closing anchor tag.
2562
+ __( 'Please try again. If you continue to experience problems, please %1$scontact us for additional support%2$s.', 'boldgrid-backup' ),
2563
+ '<a href="' . esc_url( admin_url( 'admin.php?page=boldgrid-backup-support' ) ) . '">',
2564
+ '</a>'
2565
+ ),
2566
+ [ 'a' => [ 'href' => [] ] ]
2567
+ ),
2568
  'icon_success' => '<span class="dashicons dashicons-yes green"></span> ',
2569
  'icon_warning' => '<span class="dashicons dashicons-warning yellow"></span> ',
2570
  'heading_update_protection' => __( 'BoldGrid Backup - Update Protection', 'boldgrid-backup' ),
admin/class-boldgrid-backup-admin-in-progress.php CHANGED
@@ -133,6 +133,32 @@ class Boldgrid_Backup_Admin_In_Progress {
133
  return $in_progress;
134
  }
135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  /**
137
  * Get our in progress notice.
138
  *
@@ -252,6 +278,12 @@ class Boldgrid_Backup_Admin_In_Progress {
252
 
253
  $response['in_progress_data'] = Boldgrid_Backup_Admin_In_Progress_Data::get_args();
254
 
 
 
 
 
 
 
255
  // Steps to take if we're on the last step, step 3, closing the archive.
256
  if ( 3 === Boldgrid_Backup_Admin_In_Progress_Data::get_arg( 'step' ) ) {
257
  $tmp = $this->get_tmp();
133
  return $in_progress;
134
  }
135
 
136
+ /**
137
+ * Get the markup of an error message.
138
+ *
139
+ * This method is similar to self::get_notice() and self::get_notice_markup(), except those methods
140
+ * are for success and this one for errors.
141
+ *
142
+ * @since 1.11.2
143
+ *
144
+ * @return string
145
+ */
146
+ public function get_error_markup() {
147
+ $error = Boldgrid_Backup_Admin_In_Progress_Data::get_arg( 'error' );
148
+
149
+ $notice = array(
150
+ 'class' => 'notice notice-error boldgrid-backup-in-progress',
151
+ 'message' => '<div class="notice"><p><strong>' . __( 'Error:', 'boldgrid-backup' ) . '</strong><br />' .
152
+ '<em>' . esc_html( $error ) . '</em></p></div>' .
153
+ '<p>' . $this->core->lang['get_support'] . '</p>',
154
+ 'heading' => __( 'BoldGrid Backup - Error creating backup', 'boldgrid-backup' ),
155
+ );
156
+
157
+ $markup = $this->core->notice->get_notice_markup( $notice['class'], $notice['message'], $notice['heading'] );
158
+
159
+ return $markup;
160
+ }
161
+
162
  /**
163
  * Get our in progress notice.
164
  *
278
 
279
  $response['in_progress_data'] = Boldgrid_Backup_Admin_In_Progress_Data::get_args();
280
 
281
+ // If we have an error message, add an "error message notice".
282
+ $response['boldgrid_backup_error'] = '';
283
+ if ( ! empty( $response['in_progress_data']['error'] ) ) {
284
+ $response['boldgrid_backup_error'] = $this->get_error_markup();
285
+ }
286
+
287
  // Steps to take if we're on the last step, step 3, closing the archive.
288
  if ( 3 === Boldgrid_Backup_Admin_In_Progress_Data::get_arg( 'step' ) ) {
289
  $tmp = $this->get_tmp();
admin/class-boldgrid-backup-admin.php CHANGED
@@ -92,6 +92,8 @@ class Boldgrid_Backup_Admin {
92
  * @since 1.0
93
  */
94
  public function enqueue_styles() {
 
 
95
  /*
96
  * An instance of this class should be passed to the run() function
97
  * defined in Boldgrid_Backup_Loader as all of the hooks are defined
@@ -139,14 +141,25 @@ class Boldgrid_Backup_Admin {
139
  false
140
  );
141
  $translation = array(
142
- 'archive_file_size' => __( 'Archive file size: ', 'boldgrid_backup' ),
143
- 'size_before_compression' => __( 'File size before compression: ', 'boldgrid-backup' ),
144
- 'adding_tables' => __( 'Adding tables.', 'boldgrid-backup' ),
145
- 'completing_database' => __( 'Completing database backup...', 'boldgrid-backup' ),
 
 
 
 
 
146
  );
147
  wp_localize_script( $handle, 'BoldGridBackupAdminInProgress', $translation );
148
  wp_enqueue_script( $handle );
149
 
 
 
 
 
 
 
150
  // Used by admin.js to highlight / bounce elements.
151
  wp_enqueue_script( 'jquery-effects-core' );
152
  wp_enqueue_script( 'jquery-effects-bounce' );
92
  * @since 1.0
93
  */
94
  public function enqueue_styles() {
95
+ $core = apply_filters( 'boldgrid_backup_get_core', null );
96
+
97
  /*
98
  * An instance of this class should be passed to the run() function
99
  * defined in Boldgrid_Backup_Loader as all of the hooks are defined
141
  false
142
  );
143
  $translation = array(
144
+ 'archive_file_size' => __( 'Archive file size: ', 'boldgrid_backup' ),
145
+ 'size_before_compression' => __( 'File size before compression: ', 'boldgrid-backup' ),
146
+ 'adding_tables' => __( 'Adding tables.', 'boldgrid-backup' ),
147
+ 'completing_database' => __( 'Completing database backup...', 'boldgrid-backup' ),
148
+ 'update_protection_activated' => $core->elements['update_protection_activated'],
149
+ 'backup_created' => $core->lang['backup_created'],
150
+ 'backup_error' => '<span class="dashicons dashicons-no red"></span>' . esc_html__( 'Unfortunately there was an error creating your backup. Update protection is not available.', 'boldgrid-backup' ),
151
+ 'error' => esc_html__( 'Error:', 'boldgrid-backup' ),
152
+ 'get_support' => $core->lang['get_support'],
153
  );
154
  wp_localize_script( $handle, 'BoldGridBackupAdminInProgress', $translation );
155
  wp_enqueue_script( $handle );
156
 
157
+ // The "In Progress" script relies on the heartbeat.
158
+ wp_enqueue_script( 'heartbeat' );
159
+
160
+ // The "In Progress" script needs this progressbar script.
161
+ wp_enqueue_script( 'jquery-ui-progressbar' );
162
+
163
  // Used by admin.js to highlight / bounce elements.
164
  wp_enqueue_script( 'jquery-effects-core' );
165
  wp_enqueue_script( 'jquery-effects-bounce' );
admin/css/boldgrid-backup-admin-folder-exclude.css CHANGED
@@ -94,7 +94,6 @@
94
  left: 0px;
95
  right: 0px;
96
  padding: 0px 10px;
97
- text-align: right;
98
  }
99
  .plugin-card-bottom #you_may_leave {
100
  float: left;
94
  left: 0px;
95
  right: 0px;
96
  padding: 0px 10px;
 
97
  }
98
  .plugin-card-bottom #you_may_leave {
99
  float: left;
admin/css/boldgrid-backup-admin.css CHANGED
@@ -48,7 +48,7 @@ a[disabled] {
48
  cursor: wait !important;
49
  }
50
 
51
- .dashicons-warning.red {
52
  color: #dc3232;
53
  }
54
 
48
  cursor: wait !important;
49
  }
50
 
51
+ .dashicons.red {
52
  color: #dc3232;
53
  }
54
 
admin/js/boldgrid-backup-admin-backup-now.js CHANGED
@@ -9,7 +9,7 @@
9
  * @param $ The jQuery object.
10
  */
11
 
12
- /* global ajaxurl,jQuery,localizeScriptData */
13
 
14
  var BOLDGRID = BOLDGRID || {};
15
  BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
@@ -18,14 +18,11 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
18
  'use strict';
19
 
20
  var self = this,
21
- lang = localizeScriptData,
22
  $backupNowType = $( '[name="folder_exclusion_type"]' ),
23
  $tablesType = $( '[name="table_inclusion_type"]' );
24
 
25
  $( function() {
26
  $( 'body' ).on( 'click', '#backup-site-now', self.backupNow );
27
-
28
- $( 'body' ).on( 'boldgrid_backup_complete', self.updateProtectionEnabled );
29
  } );
30
 
31
  /**
@@ -38,14 +35,10 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
38
  // Declare variables.
39
  var $this,
40
  $backupSiteSection,
41
- $backupSiteResults,
42
  backupNonce,
43
  wpHttpReferer,
44
  isUpdating,
45
- errorCallback,
46
- successCallback,
47
  data,
48
- markup,
49
  $folderExclude = $( '[name="folder_exclusion_exclude"]' ),
50
  $folderInclude = $( '[name="folder_exclusion_include"]' ),
51
  $tableInclude = $( '[name="include_tables[]"]' ),
@@ -74,9 +67,6 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
74
  // Create a context selector for the Backup Site Now section.
75
  $backupSiteSection = $( '#backup-site-now-section' );
76
 
77
- // Create a context selector for the Backup Site Now results.
78
- $backupSiteResults = $( '#backup-site-now-results' );
79
-
80
  $( '#TB_ajaxContent' )
81
  .find( 'input' )
82
  .attr( 'disabled', true )
@@ -97,66 +87,6 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
97
 
98
  $backupSiteSection.find( '.spinner' ).addClass( 'inline' );
99
 
100
- /**
101
- * @summary backupNow error callback.
102
- *
103
- * @since 1.0
104
- *
105
- * @param object jqXHR
106
- * @param string textStatus
107
- * @param string errorThrown
108
- */
109
- errorCallback = function( jqXHR, textStatus, errorThrown ) {
110
- var data,
111
- errorText = lang.errorText;
112
-
113
- /*
114
- * As of 1.5.2, we are hooking into the shutdown and checking for
115
- * errors. If a fatal error is found, we will return that, rather
116
- * than the generic errorText defined above.
117
- */
118
- if ( jqXHR.responseText !== undefined && '{' === jqXHR.responseText.charAt( 0 ) ) {
119
- data = JSON.parse( jqXHR.responseText );
120
-
121
- if ( data !== undefined && data.data !== undefined && data.data.errorText !== undefined ) {
122
- errorText = data.data.errorText;
123
- }
124
- }
125
-
126
- // Show error message.
127
- markup = '<div class="notice notice-error"><p>' + errorText + '</p></div>';
128
-
129
- $backupSiteResults.html( markup );
130
- };
131
-
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 ) {
141
- var data = JSON.parse( response ),
142
- success = data.success !== undefined && true === data.success,
143
- callback =
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 ) {
151
- case 'updateProtectionEnabled':
152
- self.updateProtectionEnabled();
153
- break;
154
- case 'reload':
155
- location.reload();
156
- break;
157
- }
158
- };
159
-
160
  // Generate the data array.
161
  data = {
162
  action: 'boldgrid_backup_now',
@@ -197,49 +127,39 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
197
  BOLDGRID.BACKUP.UpdateSelectors.disable();
198
  }
199
 
200
- // Make the call.
 
 
 
 
 
201
  $.ajax( {
202
  url: ajaxurl,
203
  data: data,
204
- type: 'post',
205
- dataType: 'text',
206
- success: successCallback,
207
- error: errorCallback,
208
- complete: function() {
209
-
210
- // Hide the spinner.
211
- $backupSiteSection.find( '.spinner' ).removeClass( 'is-active' );
212
-
213
- if ( undefined !== BOLDGRID.BACKUP.UpdateSelectors ) {
214
- BOLDGRID.BACKUP.UpdateSelectors.enable();
215
- }
216
- }
217
  } );
218
 
219
- $( 'body' ).trigger( 'boldgrid_backup_initiated' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
 
221
  // Prevent default browser action.
222
  e.preventDefault();
223
  };
224
-
225
- /**
226
- * @summary Show notice after backup and upgrade protection now enabled.
227
- *
228
- * This updates the current notice rather than generates a new one.
229
- *
230
- * @since 1.5.3
231
- */
232
- self.updateProtectionEnabled = function() {
233
- var $notice = $( '#backup-site-now-results' ).closest( '.notice' ),
234
- $status = $notice.find( '#protection_enabled' ),
235
- $backupNow = $( '#backup-site-now-section' );
236
-
237
- $notice.removeClass( 'notice-warning' ).addClass( 'notice-success' );
238
-
239
- $status.html( lang.updateProtectionActivated );
240
-
241
- $backupNow.html( '<p>' + lang.backupCreated + '</p>' );
242
- };
243
  };
244
 
245
  BOLDGRID.BACKUP.BackupNow( jQuery );
9
  * @param $ The jQuery object.
10
  */
11
 
12
+ /* global ajaxurl,jQuery,localizeScriptData,pagenow */
13
 
14
  var BOLDGRID = BOLDGRID || {};
15
  BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
18
  'use strict';
19
 
20
  var self = this,
 
21
  $backupNowType = $( '[name="folder_exclusion_type"]' ),
22
  $tablesType = $( '[name="table_inclusion_type"]' );
23
 
24
  $( function() {
25
  $( 'body' ).on( 'click', '#backup-site-now', self.backupNow );
 
 
26
  } );
27
 
28
  /**
35
  // Declare variables.
36
  var $this,
37
  $backupSiteSection,
 
38
  backupNonce,
39
  wpHttpReferer,
40
  isUpdating,
 
 
41
  data,
 
42
  $folderExclude = $( '[name="folder_exclusion_exclude"]' ),
43
  $folderInclude = $( '[name="folder_exclusion_include"]' ),
44
  $tableInclude = $( '[name="include_tables[]"]' ),
67
  // Create a context selector for the Backup Site Now section.
68
  $backupSiteSection = $( '#backup-site-now-section' );
69
 
 
 
 
70
  $( '#TB_ajaxContent' )
71
  .find( 'input' )
72
  .attr( 'disabled', true )
87
 
88
  $backupSiteSection.find( '.spinner' ).addClass( 'inline' );
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  // Generate the data array.
91
  data = {
92
  action: 'boldgrid_backup_now',
127
  BOLDGRID.BACKUP.UpdateSelectors.disable();
128
  }
129
 
130
+ /*
131
+ * Make the ajax call to "Backup Site Now".
132
+ *
133
+ * No success, error, or complete callback is passed to the ajax call. Successes will be
134
+ * handled by "in progress".
135
+ */
136
  $.ajax( {
137
  url: ajaxurl,
138
  data: data,
139
+ type: 'post'
 
 
 
 
 
 
 
 
 
 
 
 
140
  } );
141
 
142
+ /*
143
+ * Take action now that the ajax call to create a backup has been triggered.
144
+ *
145
+ * If we're on the Backup Archive's page page, wait 3 seconds and reload the page. Within the
146
+ * "Backup Site Now" modal, the user will be given a notice that their backup has started, and
147
+ * that the page will refresh and display a progress bar.
148
+ *
149
+ * Else, trigger 'boldgrid_backup_initiated'. The only listener is in-progress.js. When a
150
+ * backup has been initiated, it starts the WordPress Heartbeat and shows the in progress container.
151
+ */
152
+ if ( 'boldgrid-backup_page_boldgrid-backup' === pagenow ) {
153
+ setTimeout( function() {
154
+ location.reload();
155
+ }, 3000 );
156
+ } else {
157
+ $( 'body' ).trigger( 'boldgrid_backup_initiated' );
158
+ }
159
 
160
  // Prevent default browser action.
161
  e.preventDefault();
162
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  };
164
 
165
  BOLDGRID.BACKUP.BackupNow( jQuery );
admin/js/boldgrid-backup-admin-in-progress.js CHANGED
@@ -24,6 +24,24 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
24
  */
25
  BOLDGRID.BACKUP.InProgress = {
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  /**
28
  * Label.
29
  *
@@ -52,6 +70,15 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
52
  */
53
  i18n: window.BoldGridBackupAdminInProgress || {},
54
 
 
 
 
 
 
 
 
 
 
55
  /**
56
  * Init.
57
  *
@@ -85,9 +112,22 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
85
  */
86
  $( document ).on( 'boldgrid_backup_progress_notice_added', 'body', self.onInProgress );
87
 
 
 
 
 
 
88
  $( document ).on( 'boldgrid_backup_initiated', 'body', self.onBackupInitiated );
89
 
90
  $( document ).on( 'boldgrid_backup_complete', 'body', self.onComplete );
 
 
 
 
 
 
 
 
91
  }
92
  } );
93
  },
@@ -125,23 +165,157 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
125
  /**
126
  * Action to take when a backup is completed.
127
  *
128
- * This function is called on the body's "boldgrid_backup_complete" event, which is trigger
129
- * in the following scenarios:
130
- * # We make an ajax call to backup now, and that call is successful.
131
- * # We are using the wp.heartbeat to check on the status of a in progress backup and we're
132
- * notified the backup is complete.
133
  *
134
  * @since 1.7.0
 
 
135
  */
136
- onComplete: function() {
 
137
 
138
- // Hide "in progress" notices.
139
- self.$inProgressNotice.slideUp();
140
- $( '#boldgrid_backup_in_progress_container' ).slideUp();
141
 
142
  // Bail out of the heartbeat.
143
  $( document ).off( 'heartbeat-tick', self.onHeartbeatTick );
144
  $( document ).off( 'heartbeat-send', self.heartbeatModify );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  },
146
 
147
  /**
@@ -150,7 +324,6 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
150
  * @since 1.7.0
151
  */
152
  onHeartbeatTick: function( e, data ) {
153
- var $notice;
154
 
155
  /*
156
  * This class deals with backups in progress. If our in progress class didn't give us
@@ -189,18 +362,13 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
189
  self.setSubText();
190
  }
191
 
192
- // Steps to take when we no longer have a backup in progress.
 
 
 
 
193
  if ( null === data.boldgrid_backup_in_progress ) {
194
-
195
- // Create our success notice and show it.
196
- $notice = $( data.boldgrid_backup_complete );
197
- $notice
198
- .css( 'display', 'none' )
199
- .insertBefore( self.$inProgressNotice )
200
- .slideDown();
201
-
202
- $( 'body' ).trigger( 'make_notices_dismissible' );
203
- $( 'body' ).trigger( 'boldgrid_backup_complete' );
204
  }
205
  },
206
 
@@ -216,7 +384,9 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
216
  onInProgress: function() {
217
  self.$inProgressNotice = $( '.boldgrid-backup-in-progress' );
218
 
219
- if ( 1 === self.$inProgressNotice.length ) {
 
 
220
  self.onBackupInitiated();
221
  }
222
  },
24
  */
25
  BOLDGRID.BACKUP.InProgress = {
26
 
27
+ /**
28
+ * Whether or not there's an "In progress" notice on the page.
29
+ *
30
+ * @since 1.11.2
31
+ *
32
+ * @type bool
33
+ */
34
+ hasProgressNotice: false,
35
+
36
+ /**
37
+ * Whether or not there's an "Update Protection" notice on the page.
38
+ *
39
+ * @since 1.11.2
40
+ *
41
+ * @type bool
42
+ */
43
+ hasProtectionNotice: false,
44
+
45
  /**
46
  * Label.
47
  *
70
  */
71
  i18n: window.BoldGridBackupAdminInProgress || {},
72
 
73
+ /**
74
+ * The Update Protection notice.
75
+ *
76
+ * This is the notice that says, "BoldGrid Backup - Update Protection".
77
+ *
78
+ * @since 1.11.2
79
+ */
80
+ $protectionNotice: null,
81
+
82
  /**
83
  * Init.
84
  *
112
  */
113
  $( document ).on( 'boldgrid_backup_progress_notice_added', 'body', self.onInProgress );
114
 
115
+ /*
116
+ * Take action when a backup is started.
117
+ *
118
+ * The only script triggering this event is backup-now.js.
119
+ */
120
  $( document ).on( 'boldgrid_backup_initiated', 'body', self.onBackupInitiated );
121
 
122
  $( document ).on( 'boldgrid_backup_complete', 'body', self.onComplete );
123
+
124
+ // Configure our "Update Protection" values.
125
+ self.$protectionNotice = $( '.boldgrid-backup-protect-now' );
126
+ self.hasProtectionNotice = 1 === self.$protectionNotice.length;
127
+ } else {
128
+
129
+ // Something's gone wrong.
130
+ console.log( 'BoldGrid Backup: Error, progress bar needs heartbeat enqueued.' );
131
  }
132
  } );
133
  },
165
  /**
166
  * Action to take when a backup is completed.
167
  *
168
+ * This function is called within this file's onHeartbeatTick listener.
 
 
 
 
169
  *
170
  * @since 1.7.0
171
+ *
172
+ * @param object data The data object received from the WordPress Heartbeat.
173
  */
174
+ onComplete: function( data ) {
175
+ var success;
176
 
177
+ // If we don't have any error messages, backup was a success.
178
+ success = '' === data.boldgrid_backup_error;
 
179
 
180
  // Bail out of the heartbeat.
181
  $( document ).off( 'heartbeat-tick', self.onHeartbeatTick );
182
  $( document ).off( 'heartbeat-send', self.heartbeatModify );
183
+
184
+ /*
185
+ * Enable buttons again.
186
+ *
187
+ * We disabled certain buttons during the backup, like "Update now" and "Backup site now".
188
+ * Enable those buttons now.
189
+ */
190
+ if ( undefined !== BOLDGRID.BACKUP.UpdateSelectors ) {
191
+ BOLDGRID.BACKUP.UpdateSelectors.enable();
192
+ } else {
193
+ console.log( 'BoldGrid Backup: Error, BOLDGRID.BACKUP.UpdateSelectors class not available.' );
194
+ }
195
+
196
+ $( 'body' ).trigger( 'make_notices_dismissible' );
197
+
198
+ /*
199
+ * Hide "in progress" notices.
200
+ *
201
+ * There's no longer a backup in progress, so hide the progress bar.
202
+ *
203
+ * The notice is either:
204
+ * 1: Inside of its own .notice container, represented by self.$inProgressNotice. This
205
+ * is the admin notice added on page load when a backup is in progress.
206
+ * 2: Inside the "Update protection" notice, represented by #boldgrid_backup_in_progress_container.
207
+ * This is hidden on page load, and shown dynamically when a backup is initiated.
208
+ */
209
+ self.$inProgressNotice.slideUp();
210
+ $( '#boldgrid_backup_in_progress_container' ).slideUp();
211
+
212
+ success ? self.onSuccess( data ) : self.onError( data );
213
+ },
214
+
215
+ /**
216
+ * Steps to take when an error has occurred.
217
+ *
218
+ * @since 1.11.2
219
+ *
220
+ * @param object Heartbeat data.
221
+ */
222
+ onError: function( data ) {
223
+ var $notice;
224
+
225
+ if ( self.hasProtectionNotice ) {
226
+ self.$protectionNotice
227
+
228
+ // Change the notice from a warning to an error.
229
+ .removeClass( 'notice-warning' )
230
+ .addClass( 'notice-error' )
231
+
232
+ // Clean up the existing markup of the notice.
233
+ .find( '#protection_enabled' )
234
+ .nextAll()
235
+ .remove()
236
+ .end()
237
+ .remove()
238
+ .end()
239
+
240
+ // Break the news and tell the user an error occurred.
241
+ .append( '<p>' + self.i18n.backup_error + '</p>' )
242
+ .append(
243
+ '<div class="notice"><p><strong>' +
244
+ self.i18n.error +
245
+ '</strong><br /><em>' +
246
+ data.in_progress_data.error +
247
+ '</em></p></div>'
248
+ )
249
+ .append( '<p>' + self.i18n.get_support + '</p>' );
250
+ } else {
251
+ $notice = $( data.boldgrid_backup_error );
252
+ $notice
253
+
254
+ // Hide the notice before inserting it so that we can display it using slide down.
255
+ .css( 'display', 'none' )
256
+ .insertBefore( self.$inProgressNotice )
257
+ .slideDown();
258
+ }
259
+ },
260
+
261
+ /**
262
+ * Steps to take when our backup was successful.
263
+ *
264
+ * @since 1.11.2
265
+ *
266
+ * @param object Heartbeat data.
267
+ */
268
+ onSuccess: function( data ) {
269
+ var $notice;
270
+
271
+ if ( self.hasProgressNotice ) {
272
+
273
+ /*
274
+ * Display our notice.
275
+ *
276
+ * The backup is complete, and we either have a success notice or an error notice. Figure
277
+ * out which it is, and then display it.
278
+ *
279
+ * The markup for the actual notice is given to us via the heartbeat call.
280
+ */
281
+ $notice = $( data.boldgrid_backup_complete );
282
+ $notice
283
+
284
+ // Hide the notice before inserting it so that we can display it using slide down.
285
+ .css( 'display', 'none' )
286
+ .insertBefore( self.$inProgressNotice )
287
+ .slideDown();
288
+ }
289
+
290
+ /*
291
+ * Show a notice that upgrade protection is now enabled. This updates the current notice
292
+ * rather than generate a new one.
293
+ *
294
+ * This logic was originally introduced in 1.5.3 within backup-now.js. As of 1.11.2 it
295
+ * has been moved here so that backup-now.js can focus soley on triggering the ajax call
296
+ * to generate the backup and nothing else.
297
+ */
298
+ $( '#backup-site-now-results' )
299
+ .closest( '.notice' )
300
+
301
+ // Change it from warning to success.
302
+ .removeClass( 'notice-warning' )
303
+ .addClass( 'notice-success' )
304
+
305
+ // Find the protection enabled and change the html.
306
+ .find( '#protection_enabled' )
307
+ .html( self.i18n.update_protection_activated );
308
+
309
+ /*
310
+ * When a backup is completed, replace the "Backup Site Now" button with a "Backup Created
311
+ * Successfully" message.
312
+ *
313
+ * The .backup-site-now-section is the container for the "Backup Site Now" <form>.
314
+ *
315
+ * We're targeting the "visible" section so that the non-visible section, the one in the
316
+ * modal, does not get overwritten.
317
+ */
318
+ $( '#backup-site-now-section:visible' ).html( '<p>' + self.i18n.backup_created + '</p>' );
319
  },
320
 
321
  /**
324
  * @since 1.7.0
325
  */
326
  onHeartbeatTick: function( e, data ) {
 
327
 
328
  /*
329
  * This class deals with backups in progress. If our in progress class didn't give us
362
  self.setSubText();
363
  }
364
 
365
+ /*
366
+ * Steps to take when we no longer have a backup in progress.
367
+ *
368
+ * @todo This logic to determine when a backup has been completed needs to be improved.
369
+ */
370
  if ( null === data.boldgrid_backup_in_progress ) {
371
+ self.onComplete( data );
 
 
 
 
 
 
 
 
 
372
  }
373
  },
374
 
384
  onInProgress: function() {
385
  self.$inProgressNotice = $( '.boldgrid-backup-in-progress' );
386
 
387
+ self.hasProgressNotice = 1 === self.$inProgressNotice.length;
388
+
389
+ if ( self.hasProgressNotice ) {
390
  self.onBackupInitiated();
391
  }
392
  },
admin/partials/boldgrid-backup-admin-backup-button.php CHANGED
@@ -18,34 +18,55 @@
18
 
19
  defined( 'WPINC' ) || die;
20
 
21
- $core = isset( $this->core ) ? $this->core : $this;
22
 
23
- // Are we loading the "protect now" form via ajax?
24
- $update_protection_ajax = ! empty( $_POST['action'] ) &&
25
- 'boldgrid_backup_get_protect_notice' === $_POST['action'] &&
26
- ! empty( $_POST['update_protection'] );
27
 
28
- return sprintf(
29
- '<div id="backup-site-now-section">
30
- <form action="#" id="backup-site-now-form" method="POST">
31
- %1$s
32
- <p id="you_may_leave" class="hidden">
33
- %4$s
34
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  <p>
36
- <a id="backup-site-now" class="button button-primary" %3$s >
37
- %2$s
38
- </a>
39
  <span class="spinner"></span>
40
- </p>
 
 
 
41
  </form>
42
  </div>
43
- <div id="backup-site-now-results"></div>
44
- %5$s
45
- ',
46
- wp_nonce_field( 'boldgrid_backup_now', 'backup_auth', true, false ),
47
- esc_html( 'Backup Site Now', 'boldgrid-backup' ),
48
- $update_protection_ajax || $core->auto_rollback->on_update_page ? 'data-updating="true"' : '',
49
- /* 4 */ __( 'You may leave this page, doing so will not stop your backup.', 'boldgrid-backup' ),
50
- Boldgrid_Backup_Admin_In_Progress_Data::get_markup()
51
- );
18
 
19
  defined( 'WPINC' ) || die;
20
 
21
+ $page = empty( $_GET['page'] ) ? '' : $_GET['page'];
22
 
23
+ $backup_button = '
24
+ <div id="backup-site-now-section">
25
+ <form action="#" id="backup-site-now-form" method="POST">' .
26
+ wp_nonce_field( 'boldgrid_backup_now', 'backup_auth', true, false );
27
 
28
+ /*
29
+ * Create the "beef" of the backup button.
30
+ *
31
+ * The backup button is displayed in two ways:
32
+ * 1. Within the "Backup Site Now" modal
33
+ * 2. In an admin notice for Update protection.
34
+ *
35
+ * If the page is 'boldgrid-backup', then you're in the modal. The buttons will generally be the same,
36
+ * but the formatting will be slightly different, hence the conditional below.
37
+ */
38
+ if ( 'boldgrid-backup' === $page ) {
39
+ // The first div in the grid is needed so the grid fills out properly.
40
+ $backup_button .= '
41
+ <div style="display:grid; grid-gap:2em; grid-template-columns: 5fr 2fr;">
42
+ <div>
43
+ <p id="you_may_leave" class="hidden">' .
44
+ esc_html__( 'Your backup is starting. This page will refresh and display the progress of the backup.', 'boldgrid-backup' ) .
45
+ '</p>
46
+ </div>
47
+ <p style="text-align:right;">
48
+ <a id="backup-site-now" class="button button-primary">' .
49
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) .
50
+ '</a>
51
+ <span class="spinner"></span>
52
+ </p>
53
+ </div>';
54
+ } else {
55
+ $backup_button .= '
56
+ <p id="you_may_leave" class="hidden">' .
57
+ __( 'You may leave this page, doing so will not stop your backup.', 'boldgrid-backup' ) .
58
+ '</p>
59
  <p>
60
+ <a id="backup-site-now" class="button button-primary" data-updating="true" >' .
61
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) .
62
+ '</a>
63
  <span class="spinner"></span>
64
+ </p>';
65
+ }
66
+
67
+ $backup_button .= '
68
  </form>
69
  </div>
70
+ <div id="backup-site-now-results"></div>';
71
+
72
+ return $backup_button;
 
 
 
 
 
 
boldgrid-backup.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: BoldGrid Backup
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. BoldGrid Backup is the backup solution you need.
19
- * Version: 1.11.1
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: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. BoldGrid Backup is the backup solution you need.
19
+ * Version: 1.11.2
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="1568140656">
3
- <project timestamp="1568140656">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-backups.php">
6
  <class name="Backups" namespace="Boldgrid\Backup\Admin\Card">
@@ -1217,7 +1217,7 @@
1217
  </file>
1218
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-auto-rollback.php">
1219
  <class name="Boldgrid_Backup_Admin_Auto_Rollback" namespace="global" fullPackage="Boldgrid.Backup.Admin.Auto">
1220
- <metrics complexity="109" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="424" coveredstatements="29" elements="450" coveredelements="31"/>
1221
  </class>
1222
  <line num="139" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="17"/>
1223
  <line num="140" type="stmt" count="17"/>
@@ -1260,416 +1260,405 @@
1260
  <line num="226" type="stmt" count="0"/>
1261
  <line num="228" type="stmt" count="0"/>
1262
  <line num="229" type="stmt" count="0"/>
1263
- <line num="231" type="stmt" count="0"/>
1264
- <line num="232" type="stmt" count="0"/>
1265
- <line num="233" type="stmt" count="0"/>
1266
- <line num="234" type="stmt" count="0"/>
1267
- <line num="235" type="stmt" count="0"/>
1268
- <line num="236" type="stmt" count="0"/>
1269
- <line num="238" type="stmt" count="0"/>
1270
- <line num="239" type="stmt" count="0"/>
1271
  <line num="240" type="stmt" count="0"/>
1272
  <line num="242" type="stmt" count="0"/>
 
 
1273
  <line num="245" type="stmt" count="0"/>
1274
- <line num="246" type="stmt" count="0"/>
1275
  <line num="247" type="stmt" count="0"/>
1276
- <line num="257" type="method" name="enqueue_customize_controls" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
1277
  <line num="258" type="stmt" count="0"/>
 
1278
  <line num="260" type="stmt" count="0"/>
1279
  <line num="261" type="stmt" count="0"/>
1280
  <line num="262" type="stmt" count="0"/>
1281
  <line num="263" type="stmt" count="0"/>
1282
- <line num="265" type="stmt" count="0"/>
1283
- <line num="267" type="stmt" count="0"/>
1284
  <line num="268" type="stmt" count="0"/>
1285
- <line num="269" type="stmt" count="0"/>
1286
  <line num="270" type="stmt" count="0"/>
1287
  <line num="271" type="stmt" count="0"/>
1288
- <line num="273" type="stmt" count="0"/>
1289
- <line num="276" type="stmt" count="0"/>
1290
- <line num="277" type="stmt" count="0"/>
1291
- <line num="278" type="stmt" count="0"/>
1292
  <line num="279" type="stmt" count="0"/>
1293
- <line num="280" type="stmt" count="0"/>
1294
  <line num="281" type="stmt" count="0"/>
1295
  <line num="282" type="stmt" count="0"/>
 
1296
  <line num="284" type="stmt" count="0"/>
1297
- <line num="286" type="stmt" count="0"/>
1298
- <line num="288" type="stmt" count="0"/>
1299
- <line num="289" type="stmt" count="0"/>
1300
- <line num="296" type="method" name="enqueue_home_scripts" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
1301
  <line num="297" type="stmt" count="0"/>
1302
- <line num="299" type="stmt" count="0"/>
1303
  <line num="300" type="stmt" count="0"/>
1304
  <line num="301" type="stmt" count="0"/>
1305
  <line num="302" type="stmt" count="0"/>
1306
- <line num="303" type="stmt" count="0"/>
1307
- <line num="305" type="stmt" count="0"/>
1308
- <line num="308" type="stmt" count="0"/>
1309
- <line num="309" type="stmt" count="0"/>
1310
- <line num="310" type="stmt" count="0"/>
1311
- <line num="311" type="stmt" count="0"/>
1312
- <line num="312" type="stmt" count="0"/>
1313
- <line num="313" type="stmt" count="0"/>
1314
- <line num="314" type="stmt" count="0"/>
1315
- <line num="315" type="stmt" count="0"/>
1316
- <line num="316" type="stmt" count="0"/>
1317
- <line num="318" type="stmt" count="0"/>
1318
- <line num="319" type="stmt" count="0"/>
1319
- <line num="320" type="stmt" count="0"/>
1320
- <line num="339" type="method" name="enqueue_rollback_scripts" visibility="public" complexity="2" crap="6" count="0"/>
1321
  <line num="340" type="stmt" count="0"/>
1322
- <line num="342" type="stmt" count="0"/>
1323
- <line num="343" type="stmt" count="0"/>
1324
- <line num="344" type="stmt" count="0"/>
1325
- <line num="345" type="stmt" count="0"/>
1326
  <line num="346" type="stmt" count="0"/>
1327
- <line num="348" type="stmt" count="0"/>
1328
- <line num="350" type="stmt" count="0"/>
1329
- <line num="353" type="stmt" count="0"/>
1330
- <line num="354" type="stmt" count="0"/>
1331
- <line num="355" type="stmt" count="0"/>
1332
- <line num="356" type="stmt" count="0"/>
1333
- <line num="358" type="stmt" count="0"/>
1334
  <line num="364" type="stmt" count="0"/>
1335
  <line num="365" type="stmt" count="0"/>
1336
- <line num="378" type="method" name="enqueue_update_selectors" visibility="public" complexity="3" crap="12" count="0"/>
1337
- <line num="379" type="stmt" count="0"/>
 
 
 
 
 
 
1338
  <line num="380" type="stmt" count="0"/>
 
1339
  <line num="382" type="stmt" count="0"/>
1340
- <line num="383" type="stmt" count="0"/>
1341
- <line num="384" type="stmt" count="0"/>
1342
- <line num="385" type="stmt" count="0"/>
1343
- <line num="386" type="stmt" count="0"/>
1344
- <line num="388" type="stmt" count="0"/>
1345
- <line num="392" type="stmt" count="0"/>
1346
- <line num="393" type="stmt" count="0"/>
1347
- <line num="394" type="stmt" count="0"/>
1348
- <line num="396" type="stmt" count="0"/>
1349
  <line num="398" type="stmt" count="0"/>
1350
- <line num="399" type="stmt" count="0"/>
1351
  <line num="400" type="stmt" count="0"/>
1352
- <line num="413" type="method" name="notice_countdown_show" visibility="public" complexity="13" crap="182" count="0"/>
1353
- <line num="415" type="stmt" count="0"/>
1354
- <line num="416" type="stmt" count="0"/>
1355
- <line num="418" type="stmt" count="0"/>
1356
- <line num="419" type="stmt" count="0"/>
1357
- <line num="420" type="stmt" count="0"/>
1358
- <line num="422" type="stmt" count="0"/>
1359
- <line num="423" type="stmt" count="0"/>
1360
- <line num="424" type="stmt" count="0"/>
1361
- <line num="450" type="stmt" count="0"/>
 
 
 
 
1362
  <line num="453" type="stmt" count="0"/>
1363
- <line num="454" type="stmt" count="0"/>
1364
- <line num="458" type="stmt" count="0"/>
1365
- <line num="459" type="stmt" count="0"/>
1366
- <line num="462" type="stmt" count="0"/>
1367
- <line num="463" type="stmt" count="0"/>
1368
- <line num="469" type="stmt" count="0"/>
1369
  <line num="470" type="stmt" count="0"/>
1370
  <line num="471" type="stmt" count="0"/>
1371
- <line num="484" type="stmt" count="0"/>
 
 
 
1372
  <line num="485" type="stmt" count="0"/>
1373
- <line num="488" type="stmt" count="0"/>
1374
- <line num="489" type="stmt" count="0"/>
1375
- <line num="490" type="stmt" count="0"/>
1376
- <line num="491" type="stmt" count="0"/>
1377
- <line num="493" type="stmt" count="0"/>
1378
- <line num="495" type="stmt" count="0"/>
1379
- <line num="503" type="stmt" count="0"/>
1380
- <line num="504" type="stmt" count="0"/>
1381
- <line num="505" type="stmt" count="0"/>
1382
- <line num="523" type="method" name="notice_countdown_get" visibility="public" complexity="5" crap="30" count="0"/>
 
 
 
 
 
1383
  <line num="526" type="stmt" count="0"/>
1384
  <line num="527" type="stmt" count="0"/>
1385
  <line num="528" type="stmt" count="0"/>
1386
  <line num="530" type="stmt" count="0"/>
1387
  <line num="531" type="stmt" count="0"/>
1388
- <line num="532" type="stmt" count="0"/>
1389
- <line num="533" type="stmt" count="0"/>
1390
  <line num="535" type="stmt" count="0"/>
1391
- <line num="536" type="stmt" count="0"/>
1392
  <line num="538" type="stmt" count="0"/>
1393
- <line num="539" type="stmt" count="0"/>
1394
  <line num="541" type="stmt" count="0"/>
1395
  <line num="544" type="stmt" count="0"/>
1396
- <line num="545" type="stmt" count="0"/>
1397
- <line num="546" type="stmt" count="0"/>
1398
  <line num="548" type="stmt" count="0"/>
1399
  <line num="549" type="stmt" count="0"/>
1400
- <line num="553" type="stmt" count="0"/>
 
 
 
1401
  <line num="556" type="stmt" count="0"/>
1402
- <line num="559" type="stmt" count="0"/>
1403
- <line num="562" type="stmt" count="0"/>
1404
- <line num="566" type="stmt" count="0"/>
1405
- <line num="567" type="stmt" count="0"/>
1406
- <line num="569" type="stmt" count="0"/>
1407
  <line num="570" type="stmt" count="0"/>
1408
- <line num="572" type="stmt" count="0"/>
1409
- <line num="573" type="stmt" count="0"/>
1410
- <line num="574" type="stmt" count="0"/>
1411
  <line num="578" type="stmt" count="0"/>
1412
- <line num="582" type="stmt" count="0"/>
1413
- <line num="586" type="stmt" count="0"/>
1414
- <line num="588" type="stmt" count="0"/>
1415
- <line num="593" type="stmt" count="0"/>
1416
  <line num="596" type="stmt" count="0"/>
1417
  <line num="598" type="stmt" count="0"/>
1418
- <line num="608" type="method" name="get_deadline" visibility="public" complexity="2" crap="6" count="0"/>
1419
- <line num="610" type="stmt" count="0"/>
1420
- <line num="613" type="stmt" count="0"/>
1421
- <line num="614" type="stmt" count="0"/>
1422
- <line num="616" type="stmt" count="0"/>
1423
- <line num="630" type="method" name="get_time_data" visibility="public" complexity="6" crap="6.26" count="2"/>
1424
- <line num="631" type="stmt" count="2"/>
1425
- <line num="632" type="stmt" count="2"/>
 
 
 
 
 
 
1426
  <line num="635" type="stmt" count="1"/>
1427
  <line num="638" type="stmt" count="1"/>
1428
- <line num="641" type="stmt" count="1"/>
1429
- <line num="642" type="stmt" count="1"/>
1430
  <line num="643" type="stmt" count="1"/>
1431
- <line num="646" type="stmt" count="1"/>
 
1432
  <line num="648" type="stmt" count="1"/>
1433
  <line num="649" type="stmt" count="1"/>
1434
  <line num="650" type="stmt" count="1"/>
1435
- <line num="651" type="stmt" count="1"/>
1436
- <line num="652" type="stmt" count="1"/>
1437
- <line num="653" type="stmt" count="1"/>
1438
  <line num="656" type="stmt" count="1"/>
1439
- <line num="657" type="stmt" count="0"/>
1440
- <line num="658" type="stmt" count="0"/>
1441
- <line num="661" type="stmt" count="1"/>
1442
- <line num="662" type="stmt" count="0"/>
1443
- <line num="663" type="stmt" count="0"/>
1444
- <line num="666" type="stmt" count="1"/>
1445
- <line num="667" type="stmt" count="1"/>
1446
- <line num="668" type="stmt" count="1"/>
1447
  <line num="669" type="stmt" count="0"/>
1448
- <line num="672" type="stmt" count="1"/>
1449
- <line num="674" type="stmt" count="1"/>
1450
- <line num="684" type="method" name="is_enabled" visibility="public" complexity="2" crap="6" count="0"/>
 
 
1451
  <line num="685" type="stmt" count="0"/>
1452
- <line num="687" type="stmt" count="0"/>
1453
- <line num="697" type="method" name="notice_trigger_get" visibility="public" complexity="9" crap="90" count="0"/>
1454
- <line num="698" type="stmt" count="0"/>
 
 
 
 
1455
  <line num="699" type="stmt" count="0"/>
1456
  <line num="700" type="stmt" count="0"/>
1457
  <line num="702" type="stmt" count="0"/>
1458
- <line num="703" type="stmt" count="0"/>
 
1459
  <line num="706" type="stmt" count="0"/>
 
1460
  <line num="708" type="stmt" count="0"/>
1461
  <line num="709" type="stmt" count="0"/>
 
 
1462
  <line num="712" type="stmt" count="0"/>
1463
  <line num="713" type="stmt" count="0"/>
1464
  <line num="714" type="stmt" count="0"/>
1465
  <line num="715" type="stmt" count="0"/>
1466
  <line num="717" type="stmt" count="0"/>
1467
  <line num="718" type="stmt" count="0"/>
 
1468
  <line num="720" type="stmt" count="0"/>
 
1469
  <line num="722" type="stmt" count="0"/>
1470
  <line num="723" type="stmt" count="0"/>
1471
  <line num="724" type="stmt" count="0"/>
1472
- <line num="725" type="stmt" count="0"/>
1473
  <line num="726" type="stmt" count="0"/>
1474
- <line num="727" type="stmt" count="0"/>
1475
- <line num="728" type="stmt" count="0"/>
1476
- <line num="729" type="stmt" count="0"/>
1477
- <line num="730" type="stmt" count="0"/>
1478
- <line num="731" type="stmt" count="0"/>
1479
- <line num="732" type="stmt" count="0"/>
1480
- <line num="733" type="stmt" count="0"/>
1481
- <line num="735" type="stmt" count="0"/>
1482
- <line num="736" type="stmt" count="0"/>
1483
  <line num="737" type="stmt" count="0"/>
1484
- <line num="738" type="stmt" count="0"/>
1485
  <line num="739" type="stmt" count="0"/>
1486
- <line num="740" type="stmt" count="0"/>
1487
  <line num="741" type="stmt" count="0"/>
1488
  <line num="742" type="stmt" count="0"/>
 
1489
  <line num="744" type="stmt" count="0"/>
1490
- <line num="754" type="method" name="notice_backup_get" visibility="public" complexity="3" crap="12" count="0"/>
 
 
 
 
 
 
1491
  <line num="755" type="stmt" count="0"/>
 
1492
  <line num="757" type="stmt" count="0"/>
1493
- <line num="759" type="stmt" count="0"/>
1494
  <line num="760" type="stmt" count="0"/>
1495
- <line num="761" type="stmt" count="0"/>
1496
- <line num="762" type="stmt" count="0"/>
1497
- <line num="763" type="stmt" count="0"/>
1498
- <line num="764" type="stmt" count="0"/>
1499
- <line num="765" type="stmt" count="0"/>
1500
- <line num="766" type="stmt" count="0"/>
1501
- <line num="768" type="stmt" count="0"/>
1502
- <line num="770" type="stmt" count="0"/>
1503
- <line num="772" type="stmt" count="0"/>
1504
- <line num="773" type="stmt" count="0"/>
1505
- <line num="774" type="stmt" count="0"/>
1506
- <line num="775" type="stmt" count="0"/>
1507
- <line num="776" type="stmt" count="0"/>
1508
  <line num="778" type="stmt" count="0"/>
1509
- <line num="790" type="method" name="notice_backup_show" visibility="public" complexity="11" crap="132" count="0"/>
 
 
 
 
1510
  <line num="795" type="stmt" count="0"/>
1511
- <line num="796" type="stmt" count="0"/>
 
 
 
 
1512
  <line num="803" type="stmt" count="0"/>
1513
  <line num="804" type="stmt" count="0"/>
1514
- <line num="807" type="stmt" count="0"/>
1515
- <line num="811" type="stmt" count="0"/>
1516
- <line num="812" type="stmt" count="0"/>
1517
  <line num="813" type="stmt" count="0"/>
1518
- <line num="815" type="stmt" count="0"/>
1519
- <line num="816" type="stmt" count="0"/>
1520
- <line num="817" type="stmt" count="0"/>
1521
- <line num="819" type="stmt" count="0"/>
1522
- <line num="820" type="stmt" count="0"/>
1523
- <line num="821" type="stmt" count="0"/>
1524
  <line num="822" type="stmt" count="0"/>
1525
- <line num="831" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
 
1526
  <line num="840" type="stmt" count="0"/>
1527
  <line num="841" type="stmt" count="0"/>
1528
- <line num="842" type="stmt" count="0"/>
1529
- <line num="843" type="stmt" count="0"/>
1530
- <line num="844" type="stmt" count="0"/>
1531
  <line num="845" type="stmt" count="0"/>
1532
- <line num="847" type="stmt" count="0"/>
1533
  <line num="848" type="stmt" count="0"/>
1534
- <line num="850" type="stmt" count="0"/>
1535
  <line num="851" type="stmt" count="0"/>
1536
- <line num="855" type="stmt" count="0"/>
1537
- <line num="858" type="stmt" count="0"/>
1538
  <line num="859" type="stmt" count="0"/>
 
 
 
1539
  <line num="863" type="stmt" count="0"/>
1540
- <line num="864" type="stmt" count="0"/>
1541
- <line num="866" type="stmt" count="0"/>
1542
- <line num="869" type="stmt" count="0"/>
1543
- <line num="877" type="stmt" count="0"/>
1544
- <line num="878" type="stmt" count="0"/>
1545
- <line num="879" type="stmt" count="0"/>
1546
- <line num="880" type="stmt" count="0"/>
1547
- <line num="896" type="method" name="notice_deadline_show" visibility="public" complexity="5" crap="30" count="0"/>
1548
- <line num="904" type="stmt" count="0"/>
1549
  <line num="905" type="stmt" count="0"/>
1550
- <line num="909" type="stmt" count="0"/>
1551
- <line num="911" type="stmt" count="0"/>
1552
- <line num="914" type="stmt" count="0"/>
1553
- <line num="915" type="stmt" count="0"/>
1554
- <line num="919" type="stmt" count="0"/>
1555
- <line num="922" type="stmt" count="0"/>
1556
- <line num="923" type="stmt" count="0"/>
1557
- <line num="930" type="stmt" count="0"/>
1558
- <line num="941" type="method" name="set_update_trigger" visibility="public" complexity="5" crap="30" count="0"/>
1559
- <line num="942" type="stmt" count="0"/>
1560
- <line num="943" type="stmt" count="0"/>
1561
- <line num="946" type="stmt" count="0"/>
1562
- <line num="948" type="stmt" count="0"/>
1563
- <line num="949" type="stmt" count="0"/>
1564
- <line num="952" type="stmt" count="0"/>
1565
- <line num="954" type="stmt" count="0"/>
1566
  <line num="955" type="stmt" count="0"/>
1567
- <line num="966" type="method" name="notice_activated_get" visibility="public" complexity="7" crap="56" count="0"/>
 
 
 
 
 
 
1568
  <line num="968" type="stmt" count="0"/>
 
1569
  <line num="970" type="stmt" count="0"/>
 
1570
  <line num="972" type="stmt" count="0"/>
 
1571
  <line num="974" type="stmt" count="0"/>
 
1572
  <line num="976" type="stmt" count="0"/>
1573
- <line num="978" type="stmt" count="0"/>
1574
  <line num="980" type="stmt" count="0"/>
1575
- <line num="981" type="stmt" count="0"/>
1576
  <line num="982" type="stmt" count="0"/>
 
1577
  <line num="984" type="stmt" count="0"/>
1578
- <line num="985" type="stmt" count="0"/>
1579
  <line num="986" type="stmt" count="0"/>
1580
- <line num="987" type="stmt" count="0"/>
1581
- <line num="988" type="stmt" count="0"/>
1582
  <line num="989" type="stmt" count="0"/>
1583
  <line num="990" type="stmt" count="0"/>
1584
  <line num="991" type="stmt" count="0"/>
1585
- <line num="992" type="stmt" count="0"/>
1586
  <line num="993" type="stmt" count="0"/>
1587
- <line num="994" type="stmt" count="0"/>
1588
- <line num="997" type="stmt" count="0"/>
1589
- <line num="999" type="stmt" count="0"/>
1590
- <line num="1000" type="stmt" count="0"/>
1591
- <line num="1001" type="stmt" count="0"/>
1592
- <line num="1003" type="stmt" count="0"/>
1593
- <line num="1006" type="stmt" count="0"/>
1594
- <line num="1007" type="stmt" count="0"/>
1595
- <line num="1008" type="stmt" count="0"/>
1596
- <line num="1010" type="stmt" count="0"/>
1597
- <line num="1024" type="method" name="notice_activated_show" visibility="public" complexity="2" crap="6" count="0"/>
1598
- <line num="1030" type="stmt" count="0"/>
1599
  <line num="1031" type="stmt" count="0"/>
 
1600
  <line num="1034" type="stmt" count="0"/>
1601
  <line num="1036" type="stmt" count="0"/>
1602
  <line num="1037" type="stmt" count="0"/>
1603
- <line num="1046" type="method" name="wp_ajax_cancel" visibility="public" complexity="4" crap="20" count="0"/>
1604
- <line num="1048" type="stmt" count="0"/>
1605
- <line num="1049" type="stmt" count="0"/>
1606
- <line num="1051" type="stmt" count="0"/>
 
 
 
1607
  <line num="1053" type="stmt" count="0"/>
1608
- <line num="1054" type="stmt" count="0"/>
1609
  <line num="1057" type="stmt" count="0"/>
1610
- <line num="1058" type="stmt" count="0"/>
1611
- <line num="1059" type="stmt" count="0"/>
1612
- <line num="1061" type="stmt" count="0"/>
1613
- <line num="1063" type="stmt" count="0"/>
1614
- <line num="1064" type="stmt" count="0"/>
1615
- <line num="1067" type="stmt" count="0"/>
1616
  <line num="1070" type="stmt" count="0"/>
1617
  <line num="1073" type="stmt" count="0"/>
1618
- <line num="1074" type="stmt" count="0"/>
1619
- <line num="1083" type="method" name="wp_ajax_get_deadline" visibility="public" complexity="3" crap="12" count="0"/>
1620
- <line num="1085" type="stmt" count="0"/>
1621
- <line num="1086" type="stmt" count="0"/>
1622
- <line num="1087" type="stmt" count="0"/>
1623
- <line num="1090" type="stmt" count="0"/>
1624
  <line num="1093" type="stmt" count="0"/>
1625
  <line num="1094" type="stmt" count="0"/>
1626
  <line num="1095" type="stmt" count="0"/>
 
1627
  <line num="1098" type="stmt" count="0"/>
1628
  <line num="1099" type="stmt" count="0"/>
1629
- <line num="1109" type="method" name="wp_ajax_get_countdown_notice" visibility="public" complexity="3" crap="12" count="0"/>
1630
- <line num="1110" type="stmt" count="0"/>
1631
- <line num="1111" type="stmt" count="0"/>
1632
- <line num="1112" type="stmt" count="0"/>
1633
- <line num="1114" type="stmt" count="0"/>
1634
- <line num="1115" type="stmt" count="0"/>
1635
  <line num="1116" type="stmt" count="0"/>
1636
  <line num="1117" type="stmt" count="0"/>
1637
- <line num="1119" type="stmt" count="0"/>
1638
  <line num="1120" type="stmt" count="0"/>
1639
- <line num="1122" type="stmt" count="0"/>
1640
  <line num="1123" type="stmt" count="0"/>
1641
- <line num="1132" type="method" name="wp_ajax_get_protect_notice" visibility="public" complexity="4" crap="20" count="0"/>
 
 
 
 
 
1642
  <line num="1133" type="stmt" count="0"/>
1643
  <line num="1134" type="stmt" count="0"/>
1644
- <line num="1135" type="stmt" count="0"/>
1645
- <line num="1137" type="stmt" count="0"/>
1646
- <line num="1138" type="stmt" count="0"/>
1647
- <line num="1140" type="stmt" count="0"/>
1648
- <line num="1141" type="stmt" count="0"/>
1649
- <line num="1142" type="stmt" count="0"/>
1650
- <line num="1144" type="stmt" count="0"/>
1651
- <line num="1145" type="stmt" count="0"/>
1652
  <line num="1146" type="stmt" count="0"/>
1653
- <line num="1149" type="stmt" count="0"/>
 
1654
  <line num="1150" type="stmt" count="0"/>
1655
- <line num="1161" type="method" name="validate_rollback_option" visibility="public" complexity="4" crap="20" count="0"/>
1656
- <line num="1162" type="stmt" count="0"/>
1657
- <line num="1163" type="stmt" count="0"/>
1658
- <line num="1164" type="stmt" count="0"/>
1659
- <line num="1166" type="stmt" count="0"/>
1660
- <line num="1167" type="stmt" count="0"/>
1661
  <line num="1168" type="stmt" count="0"/>
1662
- <line num="1169" type="stmt" count="0"/>
1663
  <line num="1171" type="stmt" count="0"/>
1664
- <line num="1183" type="method" name="wp_ajax_cli_cancel" visibility="public" complexity="3" crap="12" count="0"/>
1665
- <line num="1184" type="stmt" count="0"/>
1666
- <line num="1186" type="stmt" count="0"/>
1667
- <line num="1187" type="stmt" count="0"/>
1668
- <line num="1188" type="stmt" count="0"/>
1669
- <line num="1189" type="stmt" count="0"/>
1670
- <line num="1190" type="stmt" count="0"/>
1671
- <line num="1192" type="stmt" count="0"/>
1672
- <metrics loc="1193" ncloc="662" classes="1" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="424" coveredstatements="29" elements="450" coveredelements="31"/>
1673
  </file>
1674
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-backup-dir.php">
1675
  <class name="Boldgrid_Backup_Admin_Backup_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Backup">
@@ -2171,7 +2160,7 @@
2171
  </file>
2172
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php">
2173
  <class name="Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2174
- <metrics complexity="221" methods="28" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="954" coveredstatements="424" elements="982" coveredelements="428"/>
2175
  </class>
2176
  <line num="532" type="method" name="__construct" visibility="public" complexity="7" crap="7.03" count="17"/>
2177
  <line num="533" type="stmt" count="17"/>
@@ -2960,7 +2949,7 @@
2960
  <line num="2311" type="stmt" count="0"/>
2961
  <line num="2314" type="stmt" count="0"/>
2962
  <line num="2315" type="stmt" count="0"/>
2963
- <line num="2324" type="method" name="boldgrid_backup_now_callback" visibility="public" complexity="9" crap="90" count="0"/>
2964
  <line num="2327" type="stmt" count="0"/>
2965
  <line num="2328" type="stmt" count="0"/>
2966
  <line num="2329" type="stmt" count="0"/>
@@ -2980,77 +2969,72 @@
2980
  <line num="2350" type="stmt" count="0"/>
2981
  <line num="2351" type="stmt" count="0"/>
2982
  <line num="2353" type="stmt" count="0"/>
2983
- <line num="2355" type="stmt" count="0"/>
2984
  <line num="2356" type="stmt" count="0"/>
2985
  <line num="2357" type="stmt" count="0"/>
2986
  <line num="2358" type="stmt" count="0"/>
2987
  <line num="2360" type="stmt" count="0"/>
 
2988
  <line num="2362" type="stmt" count="0"/>
2989
- <line num="2363" type="stmt" count="0"/>
2990
- <line num="2364" type="stmt" count="0"/>
2991
- <line num="2365" type="stmt" count="0"/>
2992
- <line num="2367" type="stmt" count="0"/>
2993
- <line num="2369" type="stmt" count="0"/>
2994
  <line num="2371" type="stmt" count="0"/>
2995
- <line num="2383" type="method" name="download_archive_file_callback" visibility="public" complexity="10" crap="110" count="0"/>
2996
- <line num="2385" type="stmt" count="0"/>
2997
- <line num="2388" type="stmt" count="0"/>
2998
  <line num="2389" type="stmt" count="0"/>
2999
  <line num="2390" type="stmt" count="0"/>
3000
  <line num="2391" type="stmt" count="0"/>
3001
- <line num="2394" type="stmt" count="0"/>
3002
  <line num="2395" type="stmt" count="0"/>
3003
  <line num="2396" type="stmt" count="0"/>
3004
  <line num="2397" type="stmt" count="0"/>
3005
  <line num="2398" type="stmt" count="0"/>
3006
- <line num="2402" type="stmt" count="0"/>
3007
  <line num="2403" type="stmt" count="0"/>
3008
  <line num="2404" type="stmt" count="0"/>
3009
  <line num="2405" type="stmt" count="0"/>
3010
  <line num="2406" type="stmt" count="0"/>
3011
- <line num="2410" type="stmt" count="0"/>
3012
- <line num="2413" type="stmt" count="0"/>
3013
  <line num="2414" type="stmt" count="0"/>
3014
  <line num="2415" type="stmt" count="0"/>
3015
  <line num="2416" type="stmt" count="0"/>
3016
- <line num="2419" type="stmt" count="0"/>
3017
- <line num="2422" type="stmt" count="0"/>
3018
  <line num="2423" type="stmt" count="0"/>
3019
  <line num="2424" type="stmt" count="0"/>
3020
  <line num="2425" type="stmt" count="0"/>
3021
- <line num="2429" type="stmt" count="0"/>
3022
  <line num="2430" type="stmt" count="0"/>
3023
  <line num="2431" type="stmt" count="0"/>
3024
- <line num="2434" type="stmt" count="0"/>
3025
  <line num="2435" type="stmt" count="0"/>
3026
  <line num="2436" type="stmt" count="0"/>
3027
  <line num="2437" type="stmt" count="0"/>
3028
- <line num="2439" type="stmt" count="0"/>
3029
- <line num="2441" type="stmt" count="0"/>
3030
- <line num="2443" type="stmt" count="0"/>
3031
  <line num="2444" type="stmt" count="0"/>
3032
  <line num="2445" type="stmt" count="0"/>
3033
- <line num="2448" type="stmt" count="0"/>
3034
  <line num="2449" type="stmt" count="0"/>
3035
- <line num="2459" type="method" name="page_backup_test" visibility="public" complexity="6" crap="42" count="0"/>
3036
- <line num="2461" type="stmt" count="0"/>
3037
- <line num="2464" type="stmt" count="0"/>
3038
- <line num="2467" type="stmt" count="0"/>
3039
- <line num="2470" type="stmt" count="0"/>
3040
- <line num="2473" type="stmt" count="0"/>
3041
- <line num="2475" type="stmt" count="0"/>
3042
- <line num="2478" type="stmt" count="0"/>
3043
- <line num="2481" type="stmt" count="0"/>
3044
- <line num="2484" type="stmt" count="0"/>
3045
- <line num="2487" type="stmt" count="0"/>
3046
- <line num="2490" type="stmt" count="0"/>
3047
- <line num="2492" type="stmt" count="0"/>
3048
- <line num="2500" type="stmt" count="0"/>
3049
  <line num="2501" type="stmt" count="0"/>
3050
  <line num="2502" type="stmt" count="0"/>
3051
  <line num="2503" type="stmt" count="0"/>
3052
  <line num="2504" type="stmt" count="0"/>
3053
- <line num="2507" type="stmt" count="0"/>
3054
  <line num="2508" type="stmt" count="0"/>
3055
  <line num="2509" type="stmt" count="0"/>
3056
  <line num="2510" type="stmt" count="0"/>
@@ -3058,20 +3042,20 @@
3058
  <line num="2512" type="stmt" count="0"/>
3059
  <line num="2513" type="stmt" count="0"/>
3060
  <line num="2514" type="stmt" count="0"/>
3061
- <line num="2516" type="stmt" count="0"/>
3062
- <line num="2519" type="stmt" count="0"/>
3063
  <line num="2520" type="stmt" count="0"/>
3064
  <line num="2521" type="stmt" count="0"/>
3065
  <line num="2522" type="stmt" count="0"/>
3066
  <line num="2523" type="stmt" count="0"/>
3067
- <line num="2526" type="stmt" count="0"/>
3068
  <line num="2527" type="stmt" count="0"/>
3069
- <line num="2542" type="method" name="set_doing_cron" visibility="public" complexity="3" crap="3" count="17"/>
3070
- <line num="2543" type="stmt" count="17"/>
3071
  <line num="2544" type="stmt" count="17"/>
3072
- <line num="2551" type="method" name="set_lang" visibility="public" complexity="1" crap="1" count="17"/>
3073
- <line num="2552" type="stmt" count="17"/>
3074
- <line num="2554" type="stmt" count="17"/>
3075
  <line num="2555" type="stmt" count="17"/>
3076
  <line num="2556" type="stmt" count="17"/>
3077
  <line num="2557" type="stmt" count="17"/>
@@ -3080,89 +3064,97 @@
3080
  <line num="2560" type="stmt" count="17"/>
3081
  <line num="2562" type="stmt" count="17"/>
3082
  <line num="2563" type="stmt" count="17"/>
3083
- <line num="2564" type="stmt" count="17"/>
 
 
 
3084
  <line num="2569" type="stmt" count="17"/>
3085
- <line num="2571" type="stmt" count="17"/>
3086
  <line num="2572" type="stmt" count="17"/>
 
3087
  <line num="2574" type="stmt" count="17"/>
3088
- <line num="2576" type="stmt" count="17"/>
3089
  <line num="2579" type="stmt" count="17"/>
3090
- <line num="2580" type="stmt" count="17"/>
3091
  <line num="2582" type="stmt" count="17"/>
3092
  <line num="2584" type="stmt" count="17"/>
3093
- <line num="2596" type="method" name="set_time_limit" visibility="public" complexity="2" crap="2" count="3"/>
3094
- <line num="2597" type="stmt" count="3"/>
3095
- <line num="2599" type="stmt" count="3"/>
3096
- <line num="2600" type="stmt" count="3"/>
3097
- <line num="2607" type="method" name="wp_ajax_restore" visibility="public" complexity="6" crap="42" count="0"/>
3098
- <line num="2608" type="stmt" count="0"/>
3099
- <line num="2609" type="stmt" count="0"/>
3100
- <line num="2612" type="stmt" count="0"/>
3101
- <line num="2613" type="stmt" count="0"/>
3102
- <line num="2614" type="stmt" count="0"/>
3103
- <line num="2616" type="stmt" count="0"/>
3104
- <line num="2617" type="stmt" count="0"/>
3105
  <line num="2618" type="stmt" count="0"/>
3106
- <line num="2621" type="stmt" count="0"/>
3107
  <line num="2622" type="stmt" count="0"/>
3108
  <line num="2623" type="stmt" count="0"/>
3109
- <line num="2625" type="stmt" count="0"/>
3110
  <line num="2626" type="stmt" count="0"/>
3111
  <line num="2627" type="stmt" count="0"/>
3112
- <line num="2629" type="stmt" count="0"/>
3113
- <line num="2642" type="stmt" count="0"/>
3114
- <line num="2643" type="stmt" count="0"/>
3115
- <line num="2645" type="stmt" count="0"/>
3116
- <line num="2646" type="stmt" count="0"/>
3117
- <line num="2647" type="stmt" count="0"/>
3118
- <line num="2648" type="stmt" count="0"/>
3119
- <line num="2649" type="stmt" count="0"/>
3120
- <line num="2651" type="stmt" count="0"/>
3121
  <line num="2652" type="stmt" count="0"/>
3122
  <line num="2653" type="stmt" count="0"/>
3123
- <line num="2654" type="stmt" count="0"/>
3124
  <line num="2656" type="stmt" count="0"/>
 
3125
  <line num="2658" type="stmt" count="0"/>
3126
- <line num="2660" type="stmt" count="0"/>
 
3127
  <line num="2662" type="stmt" count="0"/>
3128
  <line num="2663" type="stmt" count="0"/>
3129
- <line num="2679" type="method" name="boldgrid_backup_now_auto" visibility="public" complexity="4" crap="20" count="0"/>
3130
- <line num="2681" type="stmt" count="0"/>
3131
- <line num="2684" type="stmt" count="0"/>
3132
- <line num="2685" type="stmt" count="0"/>
3133
- <line num="2689" type="stmt" count="0"/>
3134
- <line num="2692" type="stmt" count="0"/>
3135
- <line num="2693" type="stmt" count="0"/>
3136
- <line num="2697" type="stmt" count="0"/>
3137
- <line num="2698" type="stmt" count="0"/>
3138
- <line num="2709" type="method" name="enforce_retention" visibility="public" complexity="8" crap="22.91" count="3"/>
3139
- <line num="2711" type="stmt" count="3"/>
3140
- <line num="2713" type="stmt" count="3"/>
3141
- <line num="2716" type="stmt" count="3"/>
3142
- <line num="2717" type="stmt" count="3"/>
3143
- <line num="2718" type="stmt" count="3"/>
3144
- <line num="2719" type="stmt" count="0"/>
3145
- <line num="2720" type="stmt" count="0"/>
3146
  <line num="2721" type="stmt" count="3"/>
3147
- <line num="2722" type="stmt" count="3"/>
3148
- <line num="2725" type="stmt" count="3"/>
 
3149
  <line num="2728" type="stmt" count="3"/>
3150
- <line num="2729" type="stmt" count="3"/>
3151
- <line num="2733" type="stmt" count="0"/>
3152
- <line num="2736" type="stmt" count="0"/>
3153
- <line num="2739" type="stmt" count="0"/>
3154
- <line num="2742" type="stmt" count="0"/>
 
 
3155
  <line num="2743" type="stmt" count="0"/>
3156
- <line num="2744" type="stmt" count="0"/>
3157
- <line num="2747" type="stmt" count="0"/>
3158
- <line num="2748" type="stmt" count="0"/>
3159
- <line num="2750" type="stmt" count="0"/>
 
 
 
3160
  <line num="2760" type="stmt" count="0"/>
3161
- <line num="2763" type="stmt" count="0"/>
3162
- <line num="2766" type="stmt" count="0"/>
3163
- <line num="2767" type="stmt" count="0"/>
3164
- <line num="2768" type="stmt" count="0"/>
3165
- <metrics loc="2769" ncloc="1409" classes="1" methods="28" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="961" coveredstatements="424" elements="989" coveredelements="428"/>
 
3166
  </file>
3167
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cron-log.php">
3168
  <class name="Boldgrid_Backup_Admin_Cron_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin.Cron">
@@ -4539,7 +4531,7 @@
4539
  </file>
4540
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress.php">
4541
  <class name="Boldgrid_Backup_Admin_In_Progress" namespace="global" fullPackage="Boldgrid.Backup.Admin.In">
4542
- <metrics complexity="31" methods="13" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="6" elements="97" coveredelements="8"/>
4543
  </class>
4544
  <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="17"/>
4545
  <line num="49" type="stmt" count="17"/>
@@ -4574,82 +4566,96 @@
4574
  <line num="129" type="stmt" count="0"/>
4575
  <line num="131" type="stmt" count="0"/>
4576
  <line num="133" type="stmt" count="0"/>
4577
- <line num="143" type="method" name="get_notice" visibility="public" complexity="2" crap="6" count="0"/>
4578
- <line num="144" type="stmt" count="0"/>
4579
- <line num="146" type="stmt" count="0"/>
4580
  <line num="147" type="stmt" count="0"/>
 
 
 
 
 
4581
  <line num="155" type="stmt" count="0"/>
4582
  <line num="157" type="stmt" count="0"/>
4583
- <line num="158" type="stmt" count="0"/>
4584
- <line num="160" type="stmt" count="0"/>
4585
- <line num="161" type="stmt" count="0"/>
4586
- <line num="162" type="stmt" count="0"/>
4587
- <line num="163" type="stmt" count="0"/>
4588
- <line num="165" type="stmt" count="0"/>
4589
- <line num="176" type="method" name="get_notice_markup" visibility="public" complexity="2" crap="6" count="0"/>
4590
- <line num="177" type="stmt" count="0"/>
4591
- <line num="178" type="stmt" count="0"/>
4592
- <line num="180" type="stmt" count="0"/>
4593
  <line num="181" type="stmt" count="0"/>
4594
- <line num="182" type="stmt" count="0"/>
4595
  <line num="184" type="stmt" count="0"/>
4596
- <line num="197" type="method" name="get_tmp" visibility="public" complexity="4" crap="20" count="0"/>
4597
- <line num="198" type="stmt" count="0"/>
4598
- <line num="200" type="stmt" count="0"/>
 
 
 
 
 
4599
  <line num="206" type="stmt" count="0"/>
4600
  <line num="207" type="stmt" count="0"/>
4601
- <line num="208" type="method" name="anonymous function" complexity="2" crap="6" count="0"/>
4602
- <line num="209" type="stmt" count="0"/>
4603
- <line num="211" type="stmt" count="0"/>
4604
- <line num="212" type="stmt" count="0"/>
4605
- <line num="214" type="stmt" count="0"/>
4606
- <line num="215" type="stmt" count="0"/>
4607
- <line num="216" type="stmt" count="0"/>
4608
- <line num="219" type="stmt" count="0"/>
4609
- <line num="220" type="stmt" count="0"/>
4610
- <line num="221" type="stmt" count="0"/>
4611
- <line num="222" type="stmt" count="0"/>
4612
- <line num="223" type="stmt" count="0"/>
4613
- <line num="225" type="stmt" count="0"/>
4614
- <line num="240" type="method" name="heartbeat_received" visibility="public" complexity="4" crap="20" count="0"/>
4615
  <line num="241" type="stmt" count="0"/>
4616
- <line num="243" type="stmt" count="0"/>
4617
- <line num="244" type="stmt" count="0"/>
 
 
4618
  <line num="248" type="stmt" count="0"/>
 
4619
  <line num="251" type="stmt" count="0"/>
4620
- <line num="253" type="stmt" count="0"/>
4621
- <line num="256" type="stmt" count="0"/>
4622
- <line num="257" type="stmt" count="0"/>
4623
- <line num="258" type="stmt" count="0"/>
4624
- <line num="259" type="stmt" count="0"/>
4625
- <line num="260" type="stmt" count="0"/>
4626
- <line num="261" type="stmt" count="0"/>
4627
- <line num="263" type="stmt" count="0"/>
4628
- <line num="271" type="method" name="post_dump" visibility="public" complexity="2" crap="6" count="0"/>
4629
- <line num="278" type="stmt" count="0"/>
4630
  <line num="279" type="stmt" count="0"/>
4631
- <line num="280" type="stmt" count="0"/>
4632
- <line num="281" type="stmt" count="0"/>
4633
- <line num="288" type="method" name="pre_dump" visibility="public" complexity="1" crap="2" count="0"/>
4634
- <line num="299" type="stmt" count="0"/>
4635
- <line num="300" type="stmt" count="0"/>
4636
- <line num="301" type="stmt" count="0"/>
4637
- <line num="310" type="method" name="set" visibility="public" complexity="2" crap="2" count="3"/>
4638
- <line num="311" type="stmt" count="3"/>
4639
- <line num="313" type="stmt" count="3"/>
4640
- <line num="315" type="stmt" count="3"/>
4641
- <line num="316" type="stmt" count="3"/>
4642
- <line num="323" type="method" name="wp_ajax_get_progress_notice" visibility="public" complexity="3" crap="12" count="0"/>
4643
- <line num="324" type="stmt" count="0"/>
4644
- <line num="325" type="stmt" count="0"/>
4645
- <line num="326" type="stmt" count="0"/>
4646
- <line num="328" type="stmt" count="0"/>
4647
- <line num="329" type="stmt" count="0"/>
4648
- <line num="330" type="stmt" count="0"/>
4649
  <line num="332" type="stmt" count="0"/>
4650
- <line num="334" type="stmt" count="0"/>
4651
- <line num="335" type="stmt" count="0"/>
4652
- <metrics loc="336" ncloc="171" classes="1" methods="13" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="95" coveredstatements="6" elements="108" coveredelements="8"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4653
  </file>
4654
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-jobs.php">
4655
  <class name="Boldgrid_Backup_Admin_Jobs" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -6857,7 +6863,7 @@
6857
  </file>
6858
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin.php">
6859
  <class name="Boldgrid_Backup_Admin" namespace="global" fullPackage="Boldgrid.Backup">
6860
- <metrics complexity="12" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="76" coveredstatements="18" elements="79" coveredelements="18"/>
6861
  </class>
6862
  <line num="73" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
6863
  <line num="74" type="stmt" count="0"/>
@@ -6870,75 +6876,83 @@
6870
  <line num="86" type="stmt" count="0"/>
6871
  <line num="87" type="stmt" count="0"/>
6872
  <line num="94" type="method" name="enqueue_styles" visibility="public" complexity="4" crap="20" count="0"/>
6873
- <line num="104" type="stmt" count="0"/>
6874
- <line num="105" type="stmt" count="0"/>
6875
  <line num="106" type="stmt" count="0"/>
6876
  <line num="107" type="stmt" count="0"/>
6877
- <line num="110" type="stmt" count="0"/>
6878
- <line num="111" type="stmt" count="0"/>
6879
  <line num="112" type="stmt" count="0"/>
6880
  <line num="113" type="stmt" count="0"/>
6881
  <line num="114" type="stmt" count="0"/>
 
6882
  <line num="116" type="stmt" count="0"/>
6883
  <line num="118" type="stmt" count="0"/>
6884
- <line num="119" type="stmt" count="0"/>
6885
  <line num="121" type="stmt" count="0"/>
6886
- <line num="122" type="stmt" count="0"/>
6887
  <line num="123" type="stmt" count="0"/>
6888
  <line num="124" type="stmt" count="0"/>
6889
  <line num="125" type="stmt" count="0"/>
6890
  <line num="126" type="stmt" count="0"/>
 
6891
  <line num="128" type="stmt" count="0"/>
6892
  <line num="130" type="stmt" count="0"/>
6893
- <line num="133" type="stmt" count="0"/>
6894
- <line num="134" type="stmt" count="0"/>
6895
  <line num="135" type="stmt" count="0"/>
6896
  <line num="136" type="stmt" count="0"/>
6897
  <line num="137" type="stmt" count="0"/>
6898
  <line num="138" type="stmt" count="0"/>
 
6899
  <line num="140" type="stmt" count="0"/>
6900
  <line num="142" type="stmt" count="0"/>
6901
- <line num="143" type="stmt" count="0"/>
6902
  <line num="144" type="stmt" count="0"/>
6903
  <line num="145" type="stmt" count="0"/>
6904
  <line num="146" type="stmt" count="0"/>
6905
  <line num="147" type="stmt" count="0"/>
6906
  <line num="148" type="stmt" count="0"/>
 
 
6907
  <line num="151" type="stmt" count="0"/>
6908
  <line num="152" type="stmt" count="0"/>
 
 
6909
  <line num="155" type="stmt" count="0"/>
6910
- <line num="156" type="stmt" count="0"/>
6911
- <line num="157" type="stmt" count="0"/>
6912
  <line num="158" type="stmt" count="0"/>
6913
- <line num="160" type="stmt" count="0"/>
6914
  <line num="161" type="stmt" count="0"/>
6915
- <line num="162" type="stmt" count="0"/>
6916
- <line num="173" type="method" name="get_configs" visibility="public" complexity="6" crap="6.56" count="17"/>
6917
- <line num="175" type="stmt" count="17"/>
6918
- <line num="176" type="stmt" count="17"/>
6919
- <line num="180" type="stmt" count="1"/>
6920
- <line num="183" type="stmt" count="1"/>
6921
- <line num="184" type="stmt" count="1"/>
6922
- <line num="187" type="stmt" count="1"/>
6923
- <line num="190" type="stmt" count="1"/>
6924
- <line num="191" type="stmt" count="1"/>
6925
- <line num="192" type="stmt" count="1"/>
6926
- <line num="195" type="stmt" count="1"/>
6927
- <line num="198" type="stmt" count="1"/>
6928
- <line num="199" type="stmt" count="0"/>
6929
- <line num="200" type="stmt" count="0"/>
 
6930
  <line num="203" type="stmt" count="1"/>
 
6931
  <line num="205" type="stmt" count="1"/>
6932
- <line num="206" type="stmt" count="0"/>
6933
- <line num="207" type="stmt" count="0"/>
6934
- <line num="210" type="stmt" count="1"/>
6935
- <line num="213" type="stmt" count="1"/>
6936
- <line num="214" type="stmt" count="0"/>
6937
- <line num="215" type="stmt" count="0"/>
6938
  <line num="216" type="stmt" count="1"/>
6939
- <line num="220" type="stmt" count="1"/>
 
 
6940
  <line num="223" type="stmt" count="1"/>
6941
- <metrics loc="225" ncloc="103" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="76" coveredstatements="18" elements="79" coveredelements="18"/>
 
 
 
 
 
 
6942
  </file>
6943
  <package name="Boldgrid\Backup\Admin">
6944
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-cron.php">
@@ -8111,21 +8125,11 @@
8111
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-backup-button.php">
8112
  <line num="19" type="stmt" count="0"/>
8113
  <line num="21" type="stmt" count="0"/>
 
8114
  <line num="24" type="stmt" count="0"/>
8115
  <line num="25" type="stmt" count="0"/>
8116
  <line num="26" type="stmt" count="0"/>
8117
- <line num="28" type="stmt" count="0"/>
8118
- <line num="29" type="stmt" count="0"/>
8119
- <line num="30" type="stmt" count="0"/>
8120
- <line num="31" type="stmt" count="0"/>
8121
- <line num="32" type="stmt" count="0"/>
8122
- <line num="33" type="stmt" count="0"/>
8123
- <line num="34" type="stmt" count="0"/>
8124
- <line num="35" type="stmt" count="0"/>
8125
- <line num="36" type="stmt" count="0"/>
8126
- <line num="37" type="stmt" count="0"/>
8127
  <line num="38" type="stmt" count="0"/>
8128
- <line num="39" type="stmt" count="0"/>
8129
  <line num="40" type="stmt" count="0"/>
8130
  <line num="41" type="stmt" count="0"/>
8131
  <line num="42" type="stmt" count="0"/>
@@ -8138,7 +8142,26 @@
8138
  <line num="49" type="stmt" count="0"/>
8139
  <line num="50" type="stmt" count="0"/>
8140
  <line num="51" type="stmt" count="0"/>
8141
- <metrics loc="51" ncloc="32" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="0" elements="29" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8142
  </file>
8143
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-backup-modal.php">
8144
  <line num="17" type="stmt" count="0"/>
@@ -12304,7 +12327,7 @@
12304
  </file>
12305
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-activator.php">
12306
  <class name="Boldgrid_Backup_Activator" namespace="global" fullPackage="Boldgrid.Backup">
12307
- <metrics complexity="11" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="0" elements="41" coveredelements="0"/>
12308
  </class>
12309
  <line num="59" type="method" name="activate" visibility="public" complexity="5" crap="30" count="0"/>
12310
  <line num="61" type="stmt" count="0"/>
@@ -12326,28 +12349,47 @@
12326
  <line num="101" type="method" name="post_activate_notice" visibility="public" complexity="2" crap="6" count="0"/>
12327
  <line num="102" type="stmt" count="0"/>
12328
  <line num="103" type="stmt" count="0"/>
 
12329
  <line num="105" type="stmt" count="0"/>
12330
- <line num="106" type="stmt" count="0"/>
12331
  <line num="107" type="stmt" count="0"/>
12332
  <line num="108" type="stmt" count="0"/>
12333
- <line num="109" type="stmt" count="0"/>
12334
  <line num="111" type="stmt" count="0"/>
12335
  <line num="112" type="stmt" count="0"/>
12336
  <line num="113" type="stmt" count="0"/>
12337
  <line num="114" type="stmt" count="0"/>
12338
  <line num="115" type="stmt" count="0"/>
12339
- <line num="116" type="stmt" count="0"/>
12340
  <line num="117" type="stmt" count="0"/>
12341
  <line num="118" type="stmt" count="0"/>
12342
  <line num="119" type="stmt" count="0"/>
12343
- <line num="120" type="stmt" count="0"/>
12344
- <line num="121" type="stmt" count="0"/>
12345
- <line num="128" type="method" name="shutdown" visibility="public" complexity="2" crap="6" count="0"/>
12346
  <line num="130" type="stmt" count="0"/>
12347
- <line num="131" type="stmt" count="0"/>
12348
  <line num="132" type="stmt" count="0"/>
12349
  <line num="133" type="stmt" count="0"/>
12350
- <metrics loc="134" ncloc="52" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="0" elements="41" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12351
  </file>
12352
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-authentication.php">
12353
  <class name="Boldgrid_Backup_Authentication" namespace="global" fullPackage="Boldgrid.Backup">
@@ -68995,7 +69037,7 @@
68995
  </file>
68996
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Plugin.php">
68997
  <class name="Plugin" namespace="Boldgrid\Library\Library\Plugin">
68998
- <metrics complexity="31" methods="19" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="73" coveredstatements="0" elements="92" coveredelements="0"/>
68999
  </class>
69000
  <line num="99" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
69001
  <line num="100" type="stmt" count="0"/>
@@ -69004,92 +69046,104 @@
69004
  <line num="106" type="stmt" count="0"/>
69005
  <line num="108" type="stmt" count="0"/>
69006
  <line num="109" type="stmt" count="0"/>
69007
- <line num="118" type="method" name="getIcons" visibility="public" complexity="3" crap="12" count="0"/>
69008
  <line num="119" type="stmt" count="0"/>
 
69009
  <line num="121" type="stmt" count="0"/>
69010
  <line num="122" type="stmt" count="0"/>
69011
  <line num="123" type="stmt" count="0"/>
69012
- <line num="125" type="stmt" count="0"/>
69013
- <line num="126" type="stmt" count="0"/>
69014
- <line num="135" type="method" name="getChildPlugins" visibility="public" complexity="1" crap="2" count="0"/>
69015
  <line num="136" type="stmt" count="0"/>
69016
  <line num="137" type="stmt" count="0"/>
69017
- <line num="149" type="method" name="getConfig" visibility="public" complexity="3" crap="12" count="0"/>
 
 
69018
  <line num="150" type="stmt" count="0"/>
69019
- <line num="152" type="stmt" count="0"/>
69020
- <line num="154" type="stmt" count="0"/>
69021
- <line num="155" type="stmt" count="0"/>
69022
- <line num="156" type="stmt" count="0"/>
69023
- <line num="157" type="stmt" count="0"/>
69024
- <line num="158" type="stmt" count="0"/>
69025
- <line num="160" type="stmt" count="0"/>
69026
- <line num="161" type="stmt" count="0"/>
69027
- <line num="173" type="method" name="getData" visibility="public" complexity="2" crap="6" count="0"/>
69028
  <line num="174" type="stmt" count="0"/>
69029
- <line num="176" type="stmt" count="0"/>
69030
- <line num="177" type="stmt" count="0"/>
69031
- <line num="188" type="method" name="getDownloadUrl" visibility="public" complexity="1" crap="2" count="0"/>
69032
- <line num="189" type="stmt" count="0"/>
69033
  <line num="191" type="stmt" count="0"/>
69034
- <line num="193" type="stmt" count="0"/>
69035
- <line num="194" type="stmt" count="0"/>
69036
- <line num="203" type="method" name="getIsInstalled" visibility="public" complexity="1" crap="2" count="0"/>
69037
- <line num="204" type="stmt" count="0"/>
69038
  <line num="205" type="stmt" count="0"/>
69039
- <line num="214" type="method" name="getFile" visibility="public" complexity="1" crap="2" count="0"/>
69040
- <line num="215" type="stmt" count="0"/>
69041
- <line num="216" type="stmt" count="0"/>
69042
- <line num="231" type="method" name="getFileSlug" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
69043
  <line num="232" type="stmt" count="0"/>
69044
- <line num="234" type="stmt" count="0"/>
69045
- <line num="235" type="stmt" count="0"/>
69046
- <line num="244" type="method" name="getNewVersion" visibility="public" complexity="2" crap="6" count="0"/>
69047
- <line num="245" type="stmt" count="0"/>
69048
- <line num="247" type="stmt" count="0"/>
69049
- <line num="248" type="stmt" count="0"/>
69050
- <line num="257" type="method" name="getPluginData" visibility="public" complexity="3" crap="12" count="0"/>
69051
- <line num="258" type="stmt" count="0"/>
69052
- <line num="259" type="stmt" count="0"/>
69053
  <line num="260" type="stmt" count="0"/>
69054
  <line num="262" type="stmt" count="0"/>
69055
  <line num="263" type="stmt" count="0"/>
69056
- <line num="272" type="method" name="getSlug" visibility="public" complexity="1" crap="2" count="0"/>
69057
  <line num="273" type="stmt" count="0"/>
69058
- <line num="274" type="stmt" count="0"/>
69059
- <line num="281" type="method" name="setChildPlugins" visibility="public" complexity="3" crap="12" count="0"/>
69060
- <line num="282" type="stmt" count="0"/>
69061
- <line num="284" type="stmt" count="0"/>
69062
- <line num="285" type="stmt" count="0"/>
69063
  <line num="286" type="stmt" count="0"/>
 
69064
  <line num="288" type="stmt" count="0"/>
69065
- <line num="289" type="stmt" count="0"/>
69066
  <line num="291" type="stmt" count="0"/>
69067
- <line num="292" type="stmt" count="0"/>
69068
- <line num="293" type="stmt" count="0"/>
69069
- <line num="302" type="method" name="setFile" visibility="public" complexity="2" crap="6" count="0"/>
69070
- <line num="303" type="stmt" count="0"/>
69071
- <line num="304" type="stmt" count="0"/>
69072
- <line num="311" type="method" name="setIsInstalled" visibility="public" complexity="1" crap="2" count="0"/>
69073
  <line num="312" type="stmt" count="0"/>
 
69074
  <line num="314" type="stmt" count="0"/>
69075
- <line num="315" type="stmt" count="0"/>
69076
- <line num="322" type="method" name="setPath" visibility="public" complexity="1" crap="2" count="0"/>
69077
- <line num="323" type="stmt" count="0"/>
69078
- <line num="324" type="stmt" count="0"/>
69079
- <line num="333" type="method" name="getUpdatePlugins" visibility="public" complexity="2" crap="6" count="0"/>
69080
- <line num="334" type="stmt" count="0"/>
69081
- <line num="335" type="stmt" count="0"/>
69082
- <line num="336" type="stmt" count="0"/>
69083
- <line num="338" type="stmt" count="0"/>
69084
- <line num="339" type="stmt" count="0"/>
69085
- <line num="348" type="method" name="hasUpdate" visibility="public" complexity="1" crap="2" count="0"/>
69086
- <line num="349" type="stmt" count="0"/>
 
69087
  <line num="351" type="stmt" count="0"/>
69088
  <line num="352" type="stmt" count="0"/>
69089
- <line num="361" type="method" name="isActive" visibility="public" complexity="1" crap="2" count="0"/>
69090
  <line num="362" type="stmt" count="0"/>
69091
  <line num="363" type="stmt" count="0"/>
69092
- <metrics loc="364" ncloc="153" classes="1" methods="19" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="73" coveredstatements="0" elements="92" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
69093
  </file>
69094
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Plugins.php">
69095
  <class name="Plugins" namespace="Boldgrid\Library\Library\Plugin">
@@ -71315,7 +71369,7 @@
71315
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
71316
  </file>
71317
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
71318
- <class name="ComposerStaticInitdd7ba928bf25bf952f1a37101017f527" namespace="Composer\Autoload">
71319
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
71320
  </class>
71321
  <line num="90" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -71406,7 +71460,7 @@
71406
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
71407
  </file>
71408
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
71409
- <class name="ComposerAutoloaderInitdd7ba928bf25bf952f1a37101017f527" namespace="global">
71410
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
71411
  </class>
71412
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -78976,7 +79030,7 @@
78976
  </file>
78977
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/phpseclib/phpseclib/phpseclib/File/ASN1.php">
78978
  <class name="ASN1" namespace="phpseclib\File" fullPackage="ASN1" package="ASN1">
78979
- <metrics complexity="286" methods="14" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="815" coveredstatements="0" elements="829" coveredelements="0"/>
78980
  </class>
78981
  <line num="209" type="method" name="decodeBER" complexity="2" crap="6" count="0"/>
78982
  <line num="210" type="stmt" count="0"/>
@@ -79152,7 +79206,7 @@
79152
  <line num="475" type="stmt" count="0"/>
79153
  <line num="478" type="stmt" count="0"/>
79154
  <line num="479" type="stmt" count="0"/>
79155
- <line num="494" type="method" name="asn1map" complexity="103" crap="10712" count="0"/>
79156
  <line num="495" type="stmt" count="0"/>
79157
  <line num="496" type="stmt" count="0"/>
79158
  <line num="497" type="stmt" count="0"/>
@@ -79326,21 +79380,17 @@
79326
  <line num="702" type="stmt" count="0"/>
79327
  <line num="703" type="stmt" count="0"/>
79328
  <line num="704" type="stmt" count="0"/>
79329
- <line num="705" type="stmt" count="0"/>
79330
  <line num="706" type="stmt" count="0"/>
79331
  <line num="707" type="stmt" count="0"/>
79332
  <line num="708" type="stmt" count="0"/>
79333
- <line num="709" type="stmt" count="0"/>
79334
- <line num="710" type="stmt" count="0"/>
79335
- <line num="711" type="stmt" count="0"/>
79336
  <line num="712" type="stmt" count="0"/>
79337
- <line num="721" type="stmt" count="0"/>
79338
- <line num="722" type="stmt" count="0"/>
79339
- <line num="723" type="stmt" count="0"/>
79340
- <line num="724" type="stmt" count="0"/>
79341
- <line num="725" type="stmt" count="0"/>
79342
- <line num="726" type="stmt" count="0"/>
79343
- <line num="727" type="stmt" count="0"/>
79344
  <line num="728" type="stmt" count="0"/>
79345
  <line num="729" type="stmt" count="0"/>
79346
  <line num="730" type="stmt" count="0"/>
@@ -79384,110 +79434,110 @@
79384
  <line num="768" type="stmt" count="0"/>
79385
  <line num="769" type="stmt" count="0"/>
79386
  <line num="770" type="stmt" count="0"/>
79387
- <line num="786" type="method" name="encodeDER" complexity="1" crap="2" count="0"/>
79388
- <line num="787" type="stmt" count="0"/>
79389
- <line num="788" type="stmt" count="0"/>
79390
- <line num="789" type="stmt" count="0"/>
79391
- <line num="790" type="stmt" count="0"/>
79392
- <line num="801" type="method" name="_encode_der" complexity="84" crap="7140" count="0"/>
79393
- <line num="802" type="stmt" count="0"/>
79394
- <line num="803" type="stmt" count="0"/>
79395
- <line num="804" type="stmt" count="0"/>
79396
- <line num="805" type="stmt" count="0"/>
79397
- <line num="808" type="stmt" count="0"/>
 
 
79398
  <line num="809" type="stmt" count="0"/>
79399
  <line num="810" type="stmt" count="0"/>
 
79400
  <line num="812" type="stmt" count="0"/>
79401
- <line num="813" type="stmt" count="0"/>
79402
- <line num="814" type="stmt" count="0"/>
79403
  <line num="815" type="stmt" count="0"/>
79404
  <line num="816" type="stmt" count="0"/>
79405
  <line num="817" type="stmt" count="0"/>
79406