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

Version Description

Release date: July 7th, 2020

  • New feature: Timely Auto Updates - auto update WordPress, Plugins, and Themes after a set number of days.
  • New feature: SystemZip Compression ratio - Modify System Zip process to address issues with exceeding php memory_limit and add option to set compression ratio.
  • New feature: Added 'Backup Now' and 'Upload Backup' buttons to each Total Upkeep page.
  • New feature: Added video guides to Premium Features page.
  • Bug fix: Non Backup files should not be uploaded.
  • Bug fix: Ensure user can CREATE VIEWS before restoring views.
Download this release

Release Info

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

Code changes from version 1.13.12 to 1.14.0

Files changed (109) hide show
  1. admin/card/class-amazon-s3.php +10 -5
  2. admin/card/class-backups.php +4 -4
  3. admin/card/class-database-encryption.php +9 -4
  4. admin/card/class-dream-objects.php +10 -5
  5. admin/card/class-find-modified-files.php +10 -2
  6. admin/card/class-google-drive.php +10 -5
  7. admin/card/class-historical-versions.php +10 -5
  8. admin/card/class-history.php +10 -5
  9. admin/card/class-one-click-restoration.php +10 -5
  10. admin/card/class-plugin-editor-tools.php +10 -5
  11. admin/card/class-premium.php +1 -1
  12. admin/card/class-timely-auto-updates.php +50 -0
  13. admin/card/class-updates.php +6 -0
  14. admin/card/feature/class-database-encryption.php +1 -1
  15. admin/card/feature/class-remote-storage.php +1 -1
  16. admin/card/feature/class-scheduled-backups.php +1 -1
  17. admin/card/feature/class-timely-auto-updates.php +57 -0
  18. admin/class-boldgrid-backup-admin-archive-browser.php +10 -6
  19. admin/class-boldgrid-backup-admin-archive-details.php +30 -0
  20. admin/class-boldgrid-backup-admin-auto-rollback.php +16 -18
  21. admin/class-boldgrid-backup-admin-auto-updates.php +233 -0
  22. admin/class-boldgrid-backup-admin-core.php +84 -10
  23. admin/class-boldgrid-backup-admin-dashboard.php +36 -0
  24. admin/class-boldgrid-backup-admin-db-dump.php +15 -1
  25. admin/class-boldgrid-backup-admin-db-import.php +217 -13
  26. admin/class-boldgrid-backup-admin-go-pro.php +1 -1
  27. admin/class-boldgrid-backup-admin-in-progress-tmp.php +12 -13
  28. admin/class-boldgrid-backup-admin-log.php +4 -3
  29. admin/class-boldgrid-backup-admin-notice.php +43 -3
  30. admin/class-boldgrid-backup-admin-premium-features.php +39 -0
  31. admin/class-boldgrid-backup-admin-settings.php +69 -3
  32. admin/class-boldgrid-backup-admin-support.php +35 -0
  33. admin/class-boldgrid-backup-admin-tools.php +36 -2
  34. admin/class-boldgrid-backup-admin-transfers.php +35 -0
  35. admin/class-boldgrid-backup-admin-upload.php +23 -0
  36. admin/class-boldgrid-backup-admin.php +29 -0
  37. admin/compressor/class-boldgrid-backup-admin-compressor-system-zip.php +141 -7
  38. admin/css/boldgrid-backup-admin-premium.css +13 -0
  39. admin/css/boldgrid-backup-admin-settings.css +31 -0
  40. admin/css/boldgrid-backup-admin.css +67 -0
  41. admin/image/icon-128x128.png +0 -0
  42. admin/js/boldgrid-backup-admin-backup-now.js +1 -1
  43. admin/js/boldgrid-backup-admin-folder-exclude.js +82 -17
  44. admin/js/boldgrid-backup-admin-home.js +30 -34
  45. admin/js/boldgrid-backup-admin-in-progress.js +9 -3
  46. admin/js/boldgrid-backup-admin-settings-autoupdate.js +64 -21
  47. admin/js/boldgrid-backup-admin-settings.js +18 -0
  48. admin/js/boldgrid-backup-admin-table-includes.js +46 -9
  49. admin/orphan/class-cleanup.php +1 -1
  50. admin/partials/archives/add-new.php +17 -6
  51. admin/partials/boldgrid-backup-admin-archive-details.php +24 -19
  52. admin/partials/boldgrid-backup-admin-backup-button.php +2 -3
  53. admin/partials/boldgrid-backup-admin-dashboard.php +3 -8
  54. admin/partials/boldgrid-backup-admin-home.php +36 -31
  55. admin/partials/boldgrid-backup-admin-premium.php +10 -13
  56. admin/partials/boldgrid-backup-admin-settings.php +29 -34
  57. admin/partials/boldgrid-backup-admin-support.php +49 -54
  58. admin/partials/boldgrid-backup-admin-test.php +3 -4
  59. admin/partials/boldgrid-backup-admin-tools.php +3 -7
  60. admin/partials/boldgrid-backup-admin-transfers.php +7 -5
  61. admin/partials/settings/auto-backup.php +52 -30
  62. admin/partials/settings/auto-update.php +458 -0
  63. admin/partials/settings/backup-security.php +8 -3
  64. admin/partials/settings/compressor.php +32 -0
  65. admin/partials/settings/storage.php +1 -1
  66. admin/partials/tools/local-remote.php +8 -12
  67. admin/partials/transfers/destination.php +4 -2
  68. boldgrid-backup.php +1 -1
  69. coverage.xml +6086 -4565
  70. includes/class-boldgrid-backup.php +14 -2
  71. includes/config/config.plugin.php +5 -0
  72. readme.txt +12 -1
  73. vendor/autoload.php +1 -1
  74. vendor/boldgrid/library/.gitignore +1 -1
  75. vendor/boldgrid/library/README.md +14 -1
  76. vendor/boldgrid/library/phpunit.xml +1 -1
  77. vendor/boldgrid/library/src/Library/Configs.php +3 -5
  78. vendor/boldgrid/library/src/Library/Plugin/Checker.php +8 -4
  79. vendor/boldgrid/library/src/Library/Plugin/Factory.php +222 -0
  80. vendor/boldgrid/library/src/Library/Plugin/Notice.php +31 -28
  81. vendor/boldgrid/library/src/Library/Plugin/Notices.php +5 -4
  82. vendor/boldgrid/library/src/Library/Plugin/Page.php +18 -10
  83. vendor/boldgrid/library/src/Library/Plugin/Plugin.php +76 -111
  84. vendor/boldgrid/library/src/Library/Plugin/Plugins.php +48 -5
  85. vendor/boldgrid/library/src/Library/Plugin/UpdateData.php +340 -0
  86. vendor/boldgrid/library/src/Library/Start.php +0 -3
  87. vendor/boldgrid/library/src/Library/Theme/Theme.php +155 -0
  88. vendor/boldgrid/library/src/Library/Theme/Themes.php +85 -0
  89. vendor/boldgrid/library/src/Library/Theme/UpdateData.php +270 -0
  90. vendor/boldgrid/library/src/Library/Ui/Page.php +38 -0
  91. vendor/boldgrid/library/src/Library/Update.php +0 -202
  92. vendor/boldgrid/library/src/assets/css/admin.css +1 -1
  93. vendor/boldgrid/library/src/assets/css/dashboard.css +5 -3
  94. vendor/boldgrid/library/src/assets/css/page.css +60 -0
  95. vendor/boldgrid/library/src/library.global.php +2 -1
  96. vendor/boldgrid/library/tests/Library/Library/test-activity.php +0 -25
  97. vendor/boldgrid/library/tests/Library/Library/test-rating-prompt.php +0 -47
  98. vendor/boldgrid/library/tests/Library/Plugin/test-factory.php +82 -0
  99. vendor/boldgrid/library/tests/Library/Plugin/test-notice.php +137 -365
  100. vendor/boldgrid/library/tests/Library/Plugin/test-page.php +60 -163
  101. vendor/boldgrid/library/tests/Library/Plugin/test-plugin.php +182 -191
  102. vendor/boldgrid/library/tests/Library/Plugin/test-plugins.php +100 -0
  103. vendor/boldgrid/library/tests/Library/Theme/test-theme.php +50 -0
  104. vendor/boldgrid/library/tests/Library/Theme/test-themes.php +84 -0
  105. vendor/boldgrid/library/tests/Library/Theme/test-update-data.php +65 -0
  106. vendor/boldgrid/library/tests/bootstrap.php +6 -0
  107. vendor/composer/autoload_real.php +7 -7
  108. vendor/composer/autoload_static.php +4 -4
  109. vendor/composer/installed.json +6 -20
admin/card/class-amazon-s3.php CHANGED
@@ -14,7 +14,7 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: Amazon_S3
18
  *
19
  * This class is responsible for rendering the "Amazon S3" card on this plugin's Premium Features page.
20
  *
@@ -35,14 +35,19 @@ class Amazon_S3 extends \Boldgrid\Library\Library\Ui\Card {
35
  <p>' .
36
  esc_html__(
37
  'Safely store backups in the cloud via Amazon S3. Compatible with automated remote backups feature.',
38
- 'boldgrid-backup' ) .
 
39
  '</p>';
40
 
41
- $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/backup-wordpress-to-amazon-s3/?source=amazon-s3' );
 
 
42
 
43
  $this->links = '
44
- <a target="_blank" href="' . $url . '">' .
45
- esc_html__( 'Setup Guide' ) . '
 
 
46
  </a>';
47
 
48
  $this->icon = '<img src="' . plugin_dir_url( __FILE__ ) . '../image/remote/amazon-s3-logo.png"></img>';
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: Amazon_S3.
18
  *
19
  * This class is responsible for rendering the "Amazon S3" card on this plugin's Premium Features page.
20
  *
35
  <p>' .
36
  esc_html__(
37
  'Safely store backups in the cloud via Amazon S3. Compatible with automated remote backups feature.',
38
+ 'boldgrid-backup'
39
+ ) .
40
  '</p>';
41
 
42
+ $url = 'https://www.boldgrid.com/support/total-upkeep/backup-wordpress-to-amazon-s3/?source=amazon-s3';
43
+
44
+ $video = 'https://www.youtube.com/embed/ZN0lab5ndhE?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
45
 
46
  $this->links = '
47
+ <a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Store Backups on Amazon S3"><span class="dashicons dashicons-video-alt3"></span>' .
48
+ esc_html__( 'Learn More' ) .
49
+ '<a target="_blank" href="' . esc_url( $url ) . '">' .
50
+ esc_html__( 'Setup Guide' ) . '
51
  </a>';
52
 
53
  $this->icon = '<img src="' . plugin_dir_url( __FILE__ ) . '../image/remote/amazon-s3-logo.png"></img>';
admin/card/class-backups.php CHANGED
@@ -14,7 +14,7 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: Backups
18
  *
19
  * This class is responsible for rendering the "Backups" card on this plugin's dashboard.
20
  *
@@ -31,14 +31,14 @@ class Backups extends \Boldgrid\Library\Library\Ui\Card {
31
 
32
  $this->title = esc_html__( 'Backups', 'boldgrid-backup' );
33
 
34
- $this->subTitle = esc_html__( 'It\'s website insurance. Make sure you have a backup.', 'boldgrid-backup' ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
35
 
36
  $this->icon = '<span class="dashicons dashicons-vault"></span>';
37
 
38
- $this->features = [
39
  new Feature\Scheduled_Backups(),
40
  new Feature\Remote_Storage(),
41
- ];
42
  if ( ! get_option( 'boldgrid_backup_settings' )['encrypt_db'] ) {
43
  $this->features[] = new Feature\Database_Encryption();
44
  }
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: Backups.
18
  *
19
  * This class is responsible for rendering the "Backups" card on this plugin's dashboard.
20
  *
31
 
32
  $this->title = esc_html__( 'Backups', 'boldgrid-backup' );
33
 
34
+ $this->subTitle = esc_html__( 'It\'s website insurance. Make sure you have a backup.', 'boldgrid-backup' ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
35
 
36
  $this->icon = '<span class="dashicons dashicons-vault"></span>';
37
 
38
+ $this->features = array(
39
  new Feature\Scheduled_Backups(),
40
  new Feature\Remote_Storage(),
41
+ );
42
  if ( ! get_option( 'boldgrid_backup_settings' )['encrypt_db'] ) {
43
  $this->features[] = new Feature\Database_Encryption();
44
  }
admin/card/class-database-encryption.php CHANGED
@@ -14,7 +14,7 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: Encryption
18
  *
19
  * This class is responsible for rendering the "Encryption" card on this plugin's Premium Features page.
20
  *
@@ -35,13 +35,18 @@ class Database_Encryption extends \Boldgrid\Library\Library\Ui\Card {
35
  <p>' .
36
  esc_html__(
37
  'Provides another level of protection by preventing unauthorized access to your database backup archives.',
38
- 'boldgrid-backup' ) .
 
39
  '</p>';
40
 
41
- $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/encrypt-database-backups/?source=encrypt-database-backups' );
 
 
42
 
43
  $this->links = '
44
- <a target="_blank" href="' . $url . '">' .
 
 
45
  esc_html__( 'Setup Guide' ) . '
46
  </a>';
47
 
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: Encryption.
18
  *
19
  * This class is responsible for rendering the "Encryption" card on this plugin's Premium Features page.
20
  *
35
  <p>' .
36
  esc_html__(
37
  'Provides another level of protection by preventing unauthorized access to your database backup archives.',
38
+ 'boldgrid-backup'
39
+ ) .
40
  '</p>';
41
 
42
+ $url = 'https://www.boldgrid.com/support/total-upkeep/encrypt-database-backups/?source=encrypt-database-backups';
43
+
44
+ $video = 'https://www.youtube.com/embed/Pwxous6_LKg?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
45
 
46
  $this->links = '
47
+ <a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Encrypt Your Database Backups"><span class="dashicons dashicons-video-alt3"></span>' .
48
+ esc_html__( 'Learn More' ) .
49
+ '<a target="_blank" href="' . esc_url( $url ) . '">' .
50
  esc_html__( 'Setup Guide' ) . '
51
  </a>';
52
 
admin/card/class-dream-objects.php CHANGED
@@ -14,9 +14,9 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: Dream_Objects
18
  *
19
- * This class is responsible for rendering the "Dream Objects" card
20
  * on this plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
@@ -36,13 +36,18 @@ class Dream_Objects extends \Boldgrid\Library\Library\Ui\Card {
36
  <p>' .
37
  esc_html__(
38
  'Safely store backups in the cloud via DreamObjects by DreamHost. Compatible with automated backups feature.',
39
- 'boldgrid-backup' ) .
 
40
  '</p>';
41
 
42
- $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/dreamobjects-storage/?source=dreamobjects' );
 
 
43
 
44
  $this->links = '
45
- <a target="_blank" href="' . $url . '">' .
 
 
46
  esc_html__( 'Setup Guide' ) . '
47
  </a>';
48
 
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: Dream_Objects.
18
  *
19
+ * This class is responsible for rendering the "Dream Objects" card.
20
  * on this plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
36
  <p>' .
37
  esc_html__(
38
  'Safely store backups in the cloud via DreamObjects by DreamHost. Compatible with automated backups feature.',
39
+ 'boldgrid-backup'
40
+ ) .
41
  '</p>';
42
 
43
+ $url = 'https://www.boldgrid.com/support/total-upkeep/dreamobjects-storage/?source=dreamobjects';
44
+
45
+ $video = 'https://www.youtube.com/embed/fJXnMq5JYi8?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
46
 
47
  $this->links = '
48
+ <a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Store Backups on DreamHost DreamObjects"><span class="dashicons dashicons-video-alt3"></span>' .
49
+ esc_html__( 'Learn More' ) .
50
+ '<a target="_blank" href="' . esc_url( $url ) . '">' .
51
  esc_html__( 'Setup Guide' ) . '
52
  </a>';
53
 
admin/card/class-find-modified-files.php CHANGED
@@ -14,7 +14,7 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: Find Modified Files
18
  *
19
  * @since 1.13.1
20
  */
@@ -35,7 +35,15 @@ class Find_Modified_Files extends \Boldgrid\Library\Library\Ui\Card {
35
  <p>' .
36
  esc_html__(
37
  'Search for all files modified within a certain time period. You can also look for other versions of that file within your backups.',
38
- 'boldgrid-backup' ) .
 
39
  '</p>';
 
 
 
 
 
 
 
40
  }
41
  }
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: Find Modified Files.
18
  *
19
  * @since 1.13.1
20
  */
35
  <p>' .
36
  esc_html__(
37
  'Search for all files modified within a certain time period. You can also look for other versions of that file within your backups.',
38
+ 'boldgrid-backup'
39
+ ) .
40
  '</p>';
41
+
42
+ $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/additional-tools/' );
43
+
44
+ $this->links = '
45
+ <a target="_blank" href=" ' . $url . '">' .
46
+ esc_html__( 'Setup Guide' ) . '
47
+ </a>';
48
  }
49
  }
admin/card/class-google-drive.php CHANGED
@@ -14,9 +14,9 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: Google Drive
18
  *
19
- * This class is responsible for rendering the "Google drive" card on this
20
  * plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
@@ -38,13 +38,18 @@ class Google_Drive extends \Boldgrid\Library\Library\Ui\Card {
38
  <p>' .
39
  esc_html__(
40
  'Keep your backup archives safe and secure with remote, automated backups to Google Drive.',
41
- 'boldgrid-backup' ) .
 
42
  '</p>';
43
 
44
- $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/auto-backup-to-google-drive/?source=google-drive' );
 
 
45
 
46
  $this->links = '
47
- <a target="_blank" href=" ' . $url . '">' .
 
 
48
  esc_html__( 'Setup Guide' ) . '
49
  </a>';
50
  }
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: Google Drive.
18
  *
19
+ * This class is responsible for rendering the "Google drive" card on this.
20
  * plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
38
  <p>' .
39
  esc_html__(
40
  'Keep your backup archives safe and secure with remote, automated backups to Google Drive.',
41
+ 'boldgrid-backup'
42
+ ) .
43
  '</p>';
44
 
45
+ $url = 'https://www.boldgrid.com/support/total-upkeep/auto-backup-to-google-drive/?source=google-drive';
46
+
47
+ $video = 'https://www.youtube.com/embed/p6I_xxo4TLo?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
48
 
49
  $this->links = '
50
+ <a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Store Backups on Google Drive" ><span class="dashicons dashicons-video-alt3"></span>' .
51
+ esc_html__( 'Learn More' ) .
52
+ '<a target="_blank" href="' . esc_url( $url ) . '">' .
53
  esc_html__( 'Setup Guide' ) . '
54
  </a>';
55
  }
admin/card/class-historical-versions.php CHANGED
@@ -14,9 +14,9 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: Historical_Versions
18
  *
19
- * This class is responsible for rendering the "Historical Versions" card on this
20
  * plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
@@ -38,13 +38,18 @@ class Historical_Versions extends \Boldgrid\Library\Library\Ui\Card {
38
  <p>' .
39
  esc_html__(
40
  'Search through all backup archives for a particular, individual file and restore it.',
41
- 'boldgrid-backup' ) .
 
42
  '</p>';
43
 
44
- $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/restore-historical-files/?source=historical-versions' );
 
 
45
 
46
  $this->links = '
47
- <a target="_blank" href="' . $url . '">' .
 
 
48
  esc_html__( 'Setup Guide' ) . '
49
  </a>';
50
  }
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: Historical_Versions.
18
  *
19
+ * This class is responsible for rendering the "Historical Versions" card on this.
20
  * plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
38
  <p>' .
39
  esc_html__(
40
  'Search through all backup archives for a particular, individual file and restore it.',
41
+ 'boldgrid-backup'
42
+ ) .
43
  '</p>';
44
 
45
+ $url = 'https://www.boldgrid.com/support/total-upkeep/restore-historical-files/?source=historical-versions';
46
+
47
+ $video = 'https://www.youtube.com/embed/wGda86tdScg?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
48
 
49
  $this->links = '
50
+ <a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Restore Historical Versions of Files"><span class="dashicons dashicons-video-alt3"></span>' .
51
+ esc_html__( 'Learn More' ) .
52
+ '<a target="_blank" href="' . esc_url( $url ) . '">' .
53
  esc_html__( 'Setup Guide' ) . '
54
  </a>';
55
  }
admin/card/class-history.php CHANGED
@@ -14,9 +14,9 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: History
18
  *
19
- * This class is responsible for rendering the "History" card on this plugin's
20
  * Premium Features Page.
21
  *
22
  * @since 1.13.0
@@ -38,13 +38,18 @@ class History extends \Boldgrid\Library\Library\Ui\Card {
38
  <p>' .
39
  esc_html__(
40
  'View a running log of significant actions to your WordPress site, including which users updated a plugin, theme, or WordPress itself.',
41
- 'boldgrid-backup' ) .
 
42
  '</p>';
43
 
44
- $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/backup-changed-files-history/?source=update-history' );
 
 
45
 
46
  $this->links = '
47
- <a target="_blank" href="' . $url . '">' .
 
 
48
  esc_html__( 'Setup Guide' ) . '
49
  </a>';
50
  }
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: History.
18
  *
19
+ * This class is responsible for rendering the "History" card on this plugin's.
20
  * Premium Features Page.
21
  *
22
  * @since 1.13.0
38
  <p>' .
39
  esc_html__(
40
  'View a running log of significant actions to your WordPress site, including which users updated a plugin, theme, or WordPress itself.',
41
+ 'boldgrid-backup'
42
+ ) .
43
  '</p>';
44
 
45
+ $url = 'https://www.boldgrid.com/support/total-upkeep/backup-changed-files-history/?source=update-history';
46
+
47
+ $video = 'https://www.youtube.com/embed/kaeb30pYPYU?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
48
 
49
  $this->links = '
50
+ <a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="View Site Update History"><span class="dashicons dashicons-video-alt3"></span>' .
51
+ esc_html__( 'Learn More' ) .
52
+ '<a target="_blank" href="' . esc_url( $url ) . '">' .
53
  esc_html__( 'Setup Guide' ) . '
54
  </a>';
55
  }
admin/card/class-one-click-restoration.php CHANGED
@@ -14,9 +14,9 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: One_Click_Restoration
18
  *
19
- * This class is responsible for rendering the "One Click Restoration" card
20
  * on this plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
@@ -38,13 +38,18 @@ class One_Click_Restoration extends \Boldgrid\Library\Library\Ui\Card {
38
  <p>' .
39
  esc_html__(
40
  'Restore a single file within the backup browser. Helpful when modifying individual files.',
41
- 'boldgrid-backup' ) .
 
42
  '</p>';
43
 
44
- $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/individual-file-restorations/?source=one-click-restore' );
 
 
45
 
46
  $this->links = '
47
- <a target="_blank" href="' . $url . '">' .
 
 
48
  esc_html__( 'Setup Guide' ) . '
49
  </a>';
50
  }
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: One_Click_Restoration.
18
  *
19
+ * This class is responsible for rendering the "One Click Restoration" card.
20
  * on this plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
38
  <p>' .
39
  esc_html__(
40
  'Restore a single file within the backup browser. Helpful when modifying individual files.',
41
+ 'boldgrid-backup'
42
+ ) .
43
  '</p>';
44
 
45
+ $url = 'https://www.boldgrid.com/support/total-upkeep/individual-file-restorations/?source=one-click-restore';
46
+
47
+ $video = 'https://www.youtube.com/embed/r2VCQ-9fQP8?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
48
 
49
  $this->links = '
50
+ <a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Restore Files with One Click"><span class="dashicons dashicons-video-alt3"></span>' .
51
+ esc_html__( 'Learn More' ) .
52
+ '<a target="_blank" href="' . esc_url( $url ) . '">' .
53
  esc_html__( 'Setup Guide' ) . '
54
  </a>';
55
  }
admin/card/class-plugin-editor-tools.php CHANGED
@@ -14,9 +14,9 @@
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
- * Class: Plugin_Editor_Tools
18
  *
19
- * This class is responsible for rendering the "Plugin Editor Tools"
20
  * card on this plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
@@ -38,13 +38,18 @@ class Plugin_Editor_Tools extends \Boldgrid\Library\Library\Ui\Card {
38
  <p>' .
39
  esc_html__(
40
  'When using the WordPress Plugin Editor, Total Upkeep Premium will save a copy of the file in case you need to undo any changes.',
41
- 'boldgrid-backup' ) .
 
42
  '</p>';
43
 
44
- $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/plugin-editor-backup/?source=plugin-editor-tools' );
 
 
45
 
46
  $this->links = '
47
- <a target="_blank" href="' . $url . '">' .
 
 
48
  esc_html__( 'Setup Guide' ) . '
49
  </a>';
50
  }
14
  namespace Boldgrid\Backup\Admin\Card;
15
 
16
  /**
17
+ * Class: Plugin_Editor_Tools.
18
  *
19
+ * This class is responsible for rendering the "Plugin Editor Tools".
20
  * card on this plugin's Premium Features Page.
21
  *
22
  * @since 1.13.0
38
  <p>' .
39
  esc_html__(
40
  'When using the WordPress Plugin Editor, Total Upkeep Premium will save a copy of the file in case you need to undo any changes.',
41
+ 'boldgrid-backup'
42
+ ) .
43
  '</p>';
44
 
45
+ $url = 'https://www.boldgrid.com/support/total-upkeep/plugin-editor-backup/?source=plugin-editor-tools';
46
+
47
+ $video = 'https://www.youtube.com/embed/Nb0AFEXpE00?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
48
 
49
  $this->links = '
50
+ <a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Save copies of Plugin Files from the Plugin Editor"><span class="dashicons dashicons-video-alt3"></span>' .
51
+ esc_html__( 'Learn More' ) .
52
+ '<a target="_blank" href="' . esc_url( $url ) . '">' .
53
  esc_html__( 'Setup Guide' ) . '
54
  </a>';
55
  }
admin/card/class-premium.php CHANGED
@@ -38,7 +38,7 @@ class Premium extends \Boldgrid\Library\Library\Ui\Card {
38
  $features = [];
39
 
40
  if ( empty( $api_key ) ) {
41
- $this->title = esc_html__( 'Build Better Websites With BoldGrid Central', 'boldgrid-backup' );
42
 
43
  $this->subTitle = esc_html__( 'All the tools and services you need to succeed.', 'boldgrid-backup' ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
44
 
38
  $features = [];
39
 
40
  if ( empty( $api_key ) ) {
41
+ $this->title = esc_html__( 'BoldGrid Central', 'boldgrid-backup' );
42
 
43
  $this->subTitle = esc_html__( 'All the tools and services you need to succeed.', 'boldgrid-backup' ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
44
 
admin/card/class-timely-auto-updates.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Timely Auto Updates class.
4
+ *
5
+ * @link https://www.boldgrid.com
6
+ * @since 1.14.0
7
+ *
8
+ * @package Boldgrid\Backup
9
+ * @subpackage Boldgrid\Backup\Card
10
+ * @copyright BoldGrid
11
+ * @author BoldGrid <support@boldgrid.com>
12
+ */
13
+
14
+ namespace Boldgrid\Backup\Admin\Card;
15
+
16
+ /**
17
+ * Class: Timely Auto Updates
18
+ *
19
+ * This class is responsible for rendering the "Timely Auto Updates" card on this plugin's Premium Features page.
20
+ *
21
+ * @since 1.14.0
22
+ */
23
+ class Timely_Auto_Updates extends \Boldgrid\Library\Library\Ui\Card {
24
+ /**
25
+ * Init.
26
+ *
27
+ * @since 1.14.0
28
+ */
29
+ public function init() {
30
+ $this->id = 'bgbkup_timely_auto_updates';
31
+
32
+ $this->title = esc_html__( 'Timely Auto Updates', 'boldgrid-backup' );
33
+
34
+ $this->footer = '
35
+ <p>' .
36
+ esc_html__(
37
+ 'Gives you more control over when new updates are installed by WordPress\' Automatic Updates.',
38
+ 'boldgrid-backup' ) .
39
+ '</p>';
40
+
41
+ $url = esc_url( 'https://www.boldgrid.com/support/total-upkeep/timely-auto-updates/' );
42
+
43
+ $this->links = '
44
+ <a target="_blank" href="' . $url . '">' .
45
+ esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
46
+ </a>';
47
+
48
+ $this->icon = '<span class="dashicons dashicons-clock"></span>';
49
+ }
50
+ }
admin/card/class-updates.php CHANGED
@@ -27,6 +27,9 @@ class Updates extends \Boldgrid\Library\Library\Ui\Card {
27
  * @since 1.11.0
28
  */
29
  public function init() {
 
 
 
30
  $this->id = 'bgbkup_updates';
31
 
32
  $this->title = esc_html__( 'Update Management', 'boldgrid-backup' );
@@ -40,5 +43,8 @@ class Updates extends \Boldgrid\Library\Library\Ui\Card {
40
  new Feature\Auto_Rollback(),
41
  new Feature\Auto_Update_Backup(),
42
  ];
 
 
 
43
  }
44
  }
27
  * @since 1.11.0
28
  */
29
  public function init() {
30
+
31
+ $core = apply_filters( 'boldgrid_backup_get_core', null );
32
+
33
  $this->id = 'bgbkup_updates';
34
 
35
  $this->title = esc_html__( 'Update Management', 'boldgrid-backup' );
43
  new Feature\Auto_Rollback(),
44
  new Feature\Auto_Update_Backup(),
45
  ];
46
+ if ( $core->config->get_is_premium() ) {
47
+ $this->features[] = new Feature\Timely_Auto_Updates();
48
+ }
49
  }
50
  }
admin/card/feature/class-database-encryption.php CHANGED
@@ -31,7 +31,7 @@ class Database_Encryption extends \Boldgrid\Library\Library\Ui\Feature {
31
 
32
  $this->title = esc_html__( 'Database Encryption', 'boldgrid-backup' );
33
 
34
- $this->content = '<p>' . esc_html__( 'Secure your sensitive data with database encryption.', 'boldgrid-backup' ) . '</p>';
35
  $this->content .= '<div class="notice notice-warning inline"><p>' . wp_kses(
36
  sprintf(
37
  // translators: 1 An opening anchor tag to the Remote Storage settings, 2 its closing anchor tag.
31
 
32
  $this->title = esc_html__( 'Database Encryption', 'boldgrid-backup' );
33
 
34
+ $this->content = '<p>' . esc_html__( 'Secure your sensitive data with Database Encryption.', 'boldgrid-backup' ) . '</p>';
35
  $this->content .= '<div class="notice notice-warning inline"><p>' . wp_kses(
36
  sprintf(
37
  // translators: 1 An opening anchor tag to the Remote Storage settings, 2 its closing anchor tag.
admin/card/feature/class-remote-storage.php CHANGED
@@ -55,7 +55,7 @@ class Remote_Storage extends \Boldgrid\Library\Library\Ui\Feature {
55
  $this->content .= '<div class="notice notice-error inline"><p>' . wp_kses(
56
  sprintf(
57
  // translators: 1 An opening anchor tag to the Remote Storage settings, 2 its closing anchor tag.
58
- __( 'Remote storage is not configured. %1$sFix this%2$s', 'boldgrid-backup' ),
59
  '<a href="' . esc_url( $core->settings->get_settings_url( 'section_storage' ) ) . '">',
60
  '</a>'
61
  ),
55
  $this->content .= '<div class="notice notice-error inline"><p>' . wp_kses(
56
  sprintf(
57
  // translators: 1 An opening anchor tag to the Remote Storage settings, 2 its closing anchor tag.
58
+ __( 'Remote Storage is not configured. %1$sFix this%2$s', 'boldgrid-backup' ),
59
  '<a href="' . esc_url( $core->settings->get_settings_url( 'section_storage' ) ) . '">',
60
  '</a>'
61
  ),
admin/card/feature/class-scheduled-backups.php CHANGED
@@ -71,7 +71,7 @@ class Scheduled_Backups extends \Boldgrid\Library\Library\Ui\Feature {
71
  $this->content .= '<div class="notice notice-error inline"><p>' . wp_kses(
72
  sprintf(
73
  // translators: 1 An opening anchor tag to the settings page, 2 its closing tag.
74
- __( 'Scheduled backups not configured. %1$sFix this%2$s.', 'boldgrid-backup' ),
75
  '<a href="' . esc_url( $core->settings->get_settings_url() ) . '">',
76
  '</a>'
77
  ),
71
  $this->content .= '<div class="notice notice-error inline"><p>' . wp_kses(
72
  sprintf(
73
  // translators: 1 An opening anchor tag to the settings page, 2 its closing tag.
74
+ __( 'Scheduled Backups not configured. %1$sFix this%2$s.', 'boldgrid-backup' ),
75
  '<a href="' . esc_url( $core->settings->get_settings_url() ) . '">',
76
  '</a>'
77
  ),
admin/card/feature/class-timely-auto-updates.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Timely_Auto_Updates class.
4
+ *
5
+ * @link https://www.boldgrid.com
6
+ * @since 1.14.0
7
+ *
8
+ * @package Boldgrid\Backup
9
+ * @subpackage Boldgrid\Backup\Feature
10
+ * @copyright BoldGrid
11
+ * @author BoldGrid <support@boldgrid.com>
12
+ */
13
+
14
+ namespace Boldgrid\Backup\Admin\Card\Feature;
15
+
16
+ /**
17
+ * Class: Timely_Auto_Updates.
18
+ *
19
+ * This class is responsible for rendering the, "Timely Auto Updates" feature on the BoldGrid.
20
+ * Backup Dashboard.
21
+ *
22
+ * @since 1.14.0
23
+ */
24
+ class Timely_Auto_Updates extends \Boldgrid\Library\Library\Ui\Feature {
25
+ /**
26
+ * Init.
27
+ *
28
+ * @since 1.14.0
29
+ */
30
+ public function init() {
31
+ $core = apply_filters( 'boldgrid_backup_get_core', null );
32
+
33
+ $this->icon = '<span class="dashicons dashicons-clock"></span>';
34
+
35
+ $this->title = __( 'Timely Auto Updates', 'boldgrid-backup' );
36
+
37
+ // Determine whether or not this feature is enabled.
38
+ $auto_update_settings = $core->settings->get_setting( 'auto_update' );
39
+
40
+ $is_enabled = ! empty( $auto_update_settings['timely-updates-enabled'] );
41
+
42
+ if ( $is_enabled ) {
43
+ $this->content = '<p>' . esc_html__( 'Timely Auto Updates are enabled!', 'boldgrid-backup' ) . '</p>';
44
+ } else {
45
+ $this->content = '<p>' . esc_html__( 'By setting up Timely Auto Updates, you can have more control over when new updates are installed by WordPress.', 'boldgrid-backup' ) . '</p>';
46
+ $this->content .= '<div class="notice notice-warning inline"><p>' . wp_kses(
47
+ sprintf(
48
+ // translators: 1 Opening anchor tag to "Auto Updates" settings page, 2 its closing tag.
49
+ __( 'Timely Auto Updates are not enabled. %1$sFix this%2$s.', 'boldgrid-backup' ),
50
+ '<a href="' . esc_url( $core->settings->get_settings_url( 'section_auto_updates' ) ) . '">',
51
+ '</a>'
52
+ ),
53
+ [ 'a' => [ 'href' => [] ] ]
54
+ ) . '</p></div>';
55
+ }
56
+ }
57
+ }
admin/class-boldgrid-backup-admin-archive-browser.php CHANGED
@@ -57,7 +57,9 @@ class Boldgrid_Backup_Admin_Archive_Browser {
57
  wp_send_json_error( __( 'Permission denied.', 'boldgrid-backup' ) );
58
  }
59
 
60
- if ( ! check_ajax_referer( 'boldgrid_backup_remote_storage_upload', 'security', false ) ) {
 
 
61
  wp_send_json_error( __( 'Invalid nonce; security check failed.', 'boldgrid-backup' ) );
62
  }
63
  }
@@ -322,17 +324,19 @@ class Boldgrid_Backup_Admin_Archive_Browser {
322
  $importer = new Boldgrid_Backup_Admin_Db_Import( $this->core );
323
  $success = $importer->import_from_archive( $filepath, $file );
324
 
325
- if ( ! $success ) {
326
  $this->core->notice->add_user_notice(
327
  // translators: 1: Filename 2: File path.
328
- sprintf( __( 'Error, unable to import database %1$s from %2$s.', 'boldgrid-backup' ), $file, $filepath ),
329
- $this->core->notice->lang['dis_error']
330
  );
 
 
331
  } else {
332
  $this->core->notice->add_user_notice(
333
  // translators: 1: Filename 2: File path.
334
- sprintf( __( 'Success! Database %1$s imported from %2$s.', 'boldgrid-backup' ), $file, $filepath ),
335
- $this->core->notice->lang['dis_success']
336
  );
337
  }
338
  }
57
  wp_send_json_error( __( 'Permission denied.', 'boldgrid-backup' ) );
58
  }
59
 
60
+ // With Recent UI changes, sometimes this ajax call can be for one of either actions.
61
+ if ( ! check_ajax_referer( 'boldgrid_backup_remote_storage_upload', 'security', false ) &&
62
+ ! check_ajax_referer( 'boldgrid_backup_browse_archive', 'security', false ) ) {
63
  wp_send_json_error( __( 'Invalid nonce; security check failed.', 'boldgrid-backup' ) );
64
  }
65
  }
324
  $importer = new Boldgrid_Backup_Admin_Db_Import( $this->core );
325
  $success = $importer->import_from_archive( $filepath, $file );
326
 
327
+ if ( true === $success ) {
328
  $this->core->notice->add_user_notice(
329
  // translators: 1: Filename 2: File path.
330
+ sprintf( __( 'Success! Database %1$s imported from %2$s.', 'boldgrid-backup' ), $file, $filepath ),
331
+ $this->core->notice->lang['dis_success']
332
  );
333
+ } elseif ( false !== $success ) {
334
+ $this->core->notice->add_user_notice( $success, $this->core->notice->lang['dis_error'] );
335
  } else {
336
  $this->core->notice->add_user_notice(
337
  // translators: 1: Filename 2: File path.
338
+ sprintf( __( 'Error, unable to import database %1$s from %2$s.', 'boldgrid-backup' ), $file, $filepath ),
339
+ $this->core->notice->lang['dis_error']
340
  );
341
  }
342
  }
admin/class-boldgrid-backup-admin-archive-details.php CHANGED
@@ -133,6 +133,7 @@ class Boldgrid_Backup_Admin_Archive_Details {
133
 
134
  $this->enqueue_scripts();
135
  $this->core->archive_actions->enqueue_scripts();
 
136
 
137
  $archive_found = false;
138
 
@@ -161,7 +162,36 @@ class Boldgrid_Backup_Admin_Archive_Details {
161
  $title = $this->core->archive->get_attribute( 'title' );
162
  $description = $this->core->archive->get_attribute( 'description' );
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-archive-details.php';
 
 
 
 
165
  }
166
 
167
  /**
133
 
134
  $this->enqueue_scripts();
135
  $this->core->archive_actions->enqueue_scripts();
136
+ $this->core->auto_rollback->enqueue_home_scripts();
137
 
138
  $archive_found = false;
139
 
162
  $title = $this->core->archive->get_attribute( 'title' );
163
  $description = $this->core->archive->get_attribute( 'description' );
164
 
165
+ $settings = $this->core->settings->get_settings();
166
+ wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
167
+ wp_enqueue_style( 'bglib-ui-css' );
168
+
169
+ $in_modal = true;
170
+ $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
171
+ $in_modal = false;
172
+
173
+ echo '
174
+ <div class="wrap">
175
+ <div id="bglib-page-container" class="bgbkup-page-container">
176
+ <div id="bglib-page-top">
177
+ <div id="bglib-page-header" class="bglib-has-logo">
178
+ <h1>' . esc_html__( 'Total Upkeep Preflight Check', 'boldgrid-backup' ) . '</h1>
179
+ <div class="page-title-actions">
180
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
181
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
182
+ </a>
183
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
184
+ </div>
185
+ </div>
186
+ </div>
187
+ <div id="bglib-page-content">
188
+ <div class="wp-header-end"></div>';
189
+ echo $modal; //phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
190
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-archive-details.php';
191
+ echo '
192
+ </div>
193
+ </div>
194
+ </div>';
195
  }
196
 
197
  /**
admin/class-boldgrid-backup-admin-auto-rollback.php CHANGED
@@ -358,27 +358,25 @@ class Boldgrid_Backup_Admin_Auto_Rollback {
358
  * @since 1.6.0
359
  */
360
  public function enqueue_update_selectors() {
361
- if ( $this->on_update_page || $this->core->utility->is_admin_page( 'boldgrid-backup' ) ) {
362
- $handle = 'boldgrid-backup-admin-update-selectors';
363
-
364
- wp_register_script(
365
- $handle,
366
- plugin_dir_url( __FILE__ ) . 'js/boldgrid-backup-admin-update-selectors.js',
367
- array( 'jquery' ),
368
- BOLDGRID_BACKUP_VERSION,
369
- false
370
- );
371
 
372
- $localize_script_data = array(
373
- // Generally used as the title attr of a disable update button.
374
- 'backupInProgress' => __( 'Your website is currently being backed up. You can perform updates when the backup is complete.', 'boldgrid-backup' ),
375
- 'waitClass' => 'bgbu-wait',
376
- );
 
 
 
 
 
 
 
 
377
 
378
- wp_localize_script( $handle, 'boldgrid_backup_admin_update_selectors', $localize_script_data );
379
 
380
- wp_enqueue_script( $handle );
381
- }
382
  }
383
 
384
  /**
358
  * @since 1.6.0
359
  */
360
  public function enqueue_update_selectors() {
361
+ $handle = 'boldgrid-backup-admin-update-selectors';
 
 
 
 
 
 
 
 
 
362
 
363
+ wp_register_script(
364
+ $handle,
365
+ plugin_dir_url( __FILE__ ) . 'js/boldgrid-backup-admin-update-selectors.js',
366
+ array( 'jquery' ),
367
+ BOLDGRID_BACKUP_VERSION,
368
+ false
369
+ );
370
+
371
+ $localize_script_data = array(
372
+ // Generally used as the title attr of a disable update button.
373
+ 'backupInProgress' => __( 'Your website is currently being backed up. You can perform updates when the backup is complete.', 'boldgrid-backup' ),
374
+ 'waitClass' => 'bgbu-wait',
375
+ );
376
 
377
+ wp_localize_script( $handle, 'boldgrid_backup_admin_update_selectors', $localize_script_data );
378
 
379
+ wp_enqueue_script( $handle );
 
380
  }
381
 
382
  /**
admin/class-boldgrid-backup-admin-auto-updates.php ADDED
@@ -0,0 +1,233 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File: class-boldgrid-backup-admin-auto-updates.php
4
+ *
5
+ * @link https://www.boldgrid.com
6
+ * @since 1.14.0
7
+ *
8
+ * @package Boldgrid_Backup
9
+ * @subpackage Boldgrid_Backup/admin
10
+ * @copyright BoldGrid
11
+ * @version 1.14.0
12
+ * @author BoldGrid <support@boldgrid.com>
13
+ */
14
+
15
+ use Boldgrid\Library\Library\Plugin\Plugins;
16
+
17
+ /**
18
+ * Class: Boldgrid_Backup_Admin_Auto_Updates.
19
+ *
20
+ * @since 1.14.0
21
+ */
22
+ class Boldgrid_Backup_Admin_Auto_Updates {
23
+ /**
24
+ * Settings.
25
+ *
26
+ * @since 1.14.0
27
+ * @var array
28
+ */
29
+ public $settings;
30
+
31
+ /**
32
+ * Active Plugins.
33
+ *
34
+ * @since 1.14.0
35
+ * @var array
36
+ */
37
+ public $plugins = array();
38
+
39
+ /**
40
+ * Themes.
41
+ *
42
+ * @since 1.14.0
43
+ * @var array
44
+ */
45
+ public $themes = array();
46
+
47
+ /**
48
+ * Active Plugins.
49
+ *
50
+ * @since 1.14.0
51
+ * @var Boldgrid_Backup_Admin_Core
52
+ */
53
+ public $core;
54
+
55
+ /**
56
+ * Constructor.
57
+ *
58
+ * @since 1.14.0
59
+ */
60
+ public function __construct() {
61
+
62
+ $this->set_settings();
63
+ $plugins = new \Boldgrid\Library\Library\Plugin\Plugins();
64
+ $this->plugins = $plugins->getAllPlugins();
65
+ $this->themes = new \Boldgrid\Library\Library\Theme\Themes();
66
+ add_filter( 'automatic_updater_disabled', '__return_false' );
67
+ }
68
+
69
+ /**
70
+ * Set Settings.
71
+ *
72
+ * @since 1.14.0
73
+ */
74
+ public function set_settings() {
75
+ $boldgrid_backup_settings = get_site_option( 'boldgrid_backup_settings', array() );
76
+ if ( isset( $boldgrid_backup_settings['auto_update'] ) ) {
77
+ $this->settings = $boldgrid_backup_settings['auto_update'];
78
+ } else {
79
+ $this->settings = array(
80
+ 'days' => 0,
81
+ );
82
+ }
83
+ }
84
+
85
+ /**
86
+ * Get Days.
87
+ *
88
+ * @since 1.14.0
89
+ *
90
+ * @return int
91
+ */
92
+ public function get_days() {
93
+ if ( empty( $this->settings['timely-updates-enabled'] ) || empty( $this->settings['days'] ) ) {
94
+ return 0;
95
+ } else {
96
+ return $this->settings['days'];
97
+ }
98
+ }
99
+
100
+ /**
101
+ * Maybe Update Plugin.
102
+ *
103
+ * @since 1.14.0
104
+ *
105
+ * @param string $slug Plugin Slug.
106
+ * @return bool
107
+ */
108
+ public function maybe_update_plugin( $slug ) {
109
+ $days_to_wait = $this->get_days();
110
+ $plugin = \Boldgrid\Library\Library\Plugin\Plugins::getBySlug( $this->plugins, $slug );
111
+ $plugin->setUpdateData();
112
+
113
+ $days_since_release = $plugin->updateData->days; //phpcs:ignore WordPress.NamingConventions.ValidVariableName
114
+ $plugin_update_enabled = array_key_exists( $plugin->getFile(), $this->settings['plugins'] ) ? (bool) $this->settings['plugins'][ $plugin->getFile() ] : (bool) $this->settings['plugins']['default'];
115
+ $is_update_time = ( $days_since_release >= $days_to_wait );
116
+ if ( $is_update_time && true === $plugin_update_enabled ) {
117
+ return true;
118
+ } else {
119
+ return false;
120
+ }
121
+ }
122
+
123
+ /**
124
+ * Maybe Update Theme.
125
+ *
126
+ * @since 1.14.0
127
+ *
128
+ * @param string $stylesheet Theme's Stylesheet.
129
+ * @return bool
130
+ */
131
+ public function maybe_update_theme( $stylesheet ) {
132
+ $days_to_wait = $this->get_days();
133
+ $theme = $this->themes->getFromStylesheet( $stylesheet );
134
+ $theme->setUpdateData();
135
+ $days_since_release = $theme->updateData->days; //phpcs:ignore WordPress.NamingConventions.ValidVariableName
136
+ $theme_update_enabled = isset( $this->settings['themes'][ $stylesheet ] ) ? (bool) $this->settings['themes'][ $stylesheet ] : (bool) $this->settings['plugins']['default'];
137
+ $is_update_time = ( $days_since_release >= $days_to_wait );
138
+
139
+ if ( $is_update_time && true === $theme_update_enabled ) {
140
+ return true;
141
+ } else {
142
+ return false;
143
+ }
144
+ }
145
+
146
+ /**
147
+ * Auto Update Plugins.
148
+ *
149
+ * This method is the callback for the 'auto_update_plugin' action hook.
150
+ *
151
+ * @since 1.14.0
152
+ *
153
+ * @param bool $update Whether or not to update.
154
+ * @param stdClass $item The item class passed to callback.
155
+ * @return bool
156
+ */
157
+ public function auto_update_plugins( $update, stdClass $item ) {
158
+ // Array of plugin slugs to always auto-update.
159
+ $plugins = array();
160
+ foreach ( $this->plugins as $plugin ) {
161
+ if ( $this->maybe_update_plugin( $plugin->getSlug() ) ) {
162
+ $plugins[] = $plugin->getSlug();
163
+ }
164
+ }
165
+ if ( in_array( $item->slug, $plugins, true ) ) {
166
+ // Always update plugins in this array.
167
+ return true;
168
+ } else {
169
+ // Else, Do Not Update Plugin.
170
+ return false;
171
+ }
172
+ }
173
+
174
+ /**
175
+ * Auto Update Themes.
176
+ *
177
+ * This method is the callback for the 'auto_update_theme' action hook.
178
+ *
179
+ * @since 1.14.0
180
+ *
181
+ * @param bool $update Whether or not to update.
182
+ * @param stdClass $item The item class passed to callback.
183
+ * @return bool
184
+ */
185
+ public function auto_update_themes( $update, stdClass $item ) {
186
+ // Array of theme stylesheets to always auto-update.
187
+ $themes = array();
188
+ foreach ( $this->themes->get() as $theme ) {
189
+ if ( $this->maybe_update_theme( $theme->stylesheet ) ) {
190
+ $themes[] = $theme->stylesheet;
191
+ }
192
+ }
193
+ if ( in_array( $item->theme, $themes, true ) ) {
194
+ // Always update themes in this array.
195
+ return true;
196
+ } else {
197
+ // Else, Do Not Update theme.
198
+ return false;
199
+ }
200
+ }
201
+
202
+ /**
203
+ * Auto Update Core.
204
+ *
205
+ * Sets the type of updates to perform for wpcore.
206
+ *
207
+ * @since 1.14.0
208
+ */
209
+ public function auto_update_core() {
210
+ $wpcs_default = array(
211
+ 'all' => false,
212
+ 'minor' => true,
213
+ 'major' => false,
214
+ 'translation' => false,
215
+ 'dev' => false,
216
+ );
217
+
218
+ $wpcs = isset( $this->settings['wpcore'] ) ? $this->settings['wpcore'] : $wpcs_default;
219
+ if ( $wpcs['all'] ) {
220
+ add_filter( 'auto_update_core', '__return_true' );
221
+ }
222
+
223
+ $dev = ( $wpcs['dev'] ) ? 'true' : 'false';
224
+ $major = ( $wpcs['major'] ) ? 'true' : 'false';
225
+ $minor = ( $wpcs['minor'] ) ? 'true' : 'false';
226
+ $translation = ( $wpcs['translation'] ) ? 'true' : 'false';
227
+
228
+ add_filter( 'allow_major_auto_core_updates', '__return_' . $major );
229
+ add_filter( 'allow_minor_auto_core_updates', '__return_' . $minor );
230
+ add_filter( 'auto_update_translation', '__return_' . $translation );
231
+ add_filter( 'allow_dev_auto_core_updates', '__return_' . $dev );
232
+ }
233
+ }
admin/class-boldgrid-backup-admin-core.php CHANGED
@@ -384,6 +384,14 @@ class Boldgrid_Backup_Admin_Core {
384
  */
385
  public $db_omit;
386
 
 
 
 
 
 
 
 
 
387
  /**
388
  * An instance of Boldgrid_Backup_Admin_Filelist.
389
  *
@@ -574,6 +582,14 @@ class Boldgrid_Backup_Admin_Core {
574
  */
575
  public $activity;
576
 
 
 
 
 
 
 
 
 
577
  /**
578
  * Constructor.
579
  *
@@ -701,10 +717,20 @@ class Boldgrid_Backup_Admin_Core {
701
 
702
  $this->dashboard = new Boldgrid_Backup_Admin_Dashboard( $this );
703
 
704
- // Instantiate Boldgrid\Library\Library\Plugin\Plugin.
705
- $this->plugin = new \Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup', $this->configs );
 
 
 
 
706
  $this->premium_page = new Boldgrid_Backup_Admin_Premium_Features( $this );
707
 
 
 
 
 
 
 
708
  // Ensure there is a backup identifier.
709
  $this->get_backup_identifier();
710
 
@@ -1262,6 +1288,7 @@ class Boldgrid_Backup_Admin_Core {
1262
  $status = $importer->import( $db_dump_filepath );
1263
 
1264
  if ( ! empty( $status['error'] ) ) {
 
1265
  do_action( 'boldgrid_backup_notice', $status['error'], 'notice notice-error is-dismissible' );
1266
  return false;
1267
  }
@@ -1540,6 +1567,8 @@ class Boldgrid_Backup_Admin_Core {
1540
  $this->logger->init( 'archive-' . time() . '.log' );
1541
  $this->logger->add( 'Backup process initialized.' );
1542
 
 
 
1543
  $this->pre_auto_update = 'pre_auto_update' === current_filter();
1544
 
1545
  /*
@@ -2428,7 +2457,7 @@ class Boldgrid_Backup_Admin_Core {
2428
 
2429
  // Display notice of deletion status.
2430
  if ( ! $restore_ok ) {
2431
- $error_message = esc_html__( 'Could not restore database.', 'boldgrid-backup' );
2432
  $this->logger->add( $error_message );
2433
  return [ 'error' => $error_message ];
2434
  }
@@ -2484,7 +2513,6 @@ class Boldgrid_Backup_Admin_Core {
2484
  global $pagenow;
2485
 
2486
  // Thickbox used for Backup Site Now modal.
2487
- add_thickbox();
2488
  wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
2489
 
2490
  wp_enqueue_style( 'bglib-ui-css' );
@@ -2506,11 +2534,6 @@ class Boldgrid_Backup_Admin_Core {
2506
  $this->folder_exclusion->enqueue_scripts();
2507
  $this->db_omit->enqueue_scripts();
2508
 
2509
- // If uploading an archive file.
2510
- if ( ! empty( $_FILES['file'] ) ) {
2511
- $this->upload->upload_archive_file();
2512
- }
2513
-
2514
  // Get archive list.
2515
  $archives = $this->get_archive_list();
2516
 
@@ -2581,6 +2604,11 @@ class Boldgrid_Backup_Admin_Core {
2581
  // If there were any errors encountered during the backup, save them to the In Progress data.
2582
  if ( ! empty( $archive_info['error'] ) ) {
2583
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'error', $archive_info['error'] );
 
 
 
 
 
2584
  }
2585
 
2586
  if ( $this->is_archiving_update_protection ) {
@@ -2750,8 +2778,43 @@ class Boldgrid_Backup_Admin_Core {
2750
  BOLDGRID_BACKUP_VERSION, 'all'
2751
  );
2752
 
2753
- // Load template view.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2754
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-test.php';
 
 
 
 
2755
  }
2756
 
2757
  /**
@@ -3016,4 +3079,15 @@ class Boldgrid_Backup_Admin_Core {
3016
  $logger->add( 'Completed core::enforce_retention.' );
3017
  $logger->add_separator();
3018
  }
 
 
 
 
 
 
 
 
 
 
 
3019
  }
384
  */
385
  public $db_omit;
386
 
387
+ /**
388
+ * Database Restoration errro
389
+ *
390
+ * @since 1.14.0
391
+ * @var string
392
+ */
393
+ public $db_restore_error;
394
+
395
  /**
396
  * An instance of Boldgrid_Backup_Admin_Filelist.
397
  *
582
  */
583
  public $activity;
584
 
585
+ /**
586
+ * An instance of the Auto Updates class
587
+ *
588
+ * @since 1.14.0
589
+ * @var Boldgrid_Backup_Admin_Auto_Updates
590
+ */
591
+ public $auto_updates;
592
+
593
  /**
594
  * Constructor.
595
  *
717
 
718
  $this->dashboard = new Boldgrid_Backup_Admin_Dashboard( $this );
719
 
720
+ /**
721
+ * For backwards compatibility with plugins using previous versions of the Library, this will
722
+ * allow the plugins to be instantiated without using the new Factory methods.
723
+ */
724
+ $this->plugin = new \Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup', $this->configs );
725
+
726
  $this->premium_page = new Boldgrid_Backup_Admin_Premium_Features( $this );
727
 
728
+ // Instantiate Boldgrid_Backup_Admin_Auto_Updates.
729
+
730
+ if ( Boldgrid_Backup_Admin_Utility::is_active() ) {
731
+ $this->auto_updates = new Boldgrid_Backup_Admin_Auto_Updates();
732
+ }
733
+
734
  // Ensure there is a backup identifier.
735
  $this->get_backup_identifier();
736
 
1288
  $status = $importer->import( $db_dump_filepath );
1289
 
1290
  if ( ! empty( $status['error'] ) ) {
1291
+ $this->db_restore_error = $status['error'];
1292
  do_action( 'boldgrid_backup_notice', $status['error'], 'notice notice-error is-dismissible' );
1293
  return false;
1294
  }
1567
  $this->logger->init( 'archive-' . time() . '.log' );
1568
  $this->logger->add( 'Backup process initialized.' );
1569
 
1570
+ $this->utility->bump_memory_limit( '1G' );
1571
+
1572
  $this->pre_auto_update = 'pre_auto_update' === current_filter();
1573
 
1574
  /*
2457
 
2458
  // Display notice of deletion status.
2459
  if ( ! $restore_ok ) {
2460
+ $error_message = $this->db_restore_error ? $this->db_restore_error : esc_html__( 'Could not restore database.', 'boldgrid-backup' );
2461
  $this->logger->add( $error_message );
2462
  return [ 'error' => $error_message ];
2463
  }
2513
  global $pagenow;
2514
 
2515
  // Thickbox used for Backup Site Now modal.
 
2516
  wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
2517
 
2518
  wp_enqueue_style( 'bglib-ui-css' );
2534
  $this->folder_exclusion->enqueue_scripts();
2535
  $this->db_omit->enqueue_scripts();
2536
 
 
 
 
 
 
2537
  // Get archive list.
2538
  $archives = $this->get_archive_list();
2539
 
2604
  // If there were any errors encountered during the backup, save them to the In Progress data.
2605
  if ( ! empty( $archive_info['error'] ) ) {
2606
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'error', $archive_info['error'] );
2607
+ $this->notice->add_user_notice(
2608
+ '<p>' . $archive_info['error'] . '</p>',
2609
+ 'notice notice-error is-dismissible',
2610
+ 'Backup Failed'
2611
+ );
2612
  }
2613
 
2614
  if ( $this->is_archiving_update_protection ) {
2778
  BOLDGRID_BACKUP_VERSION, 'all'
2779
  );
2780
 
2781
+ $settings = $this->settings->get_settings();
2782
+ wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
2783
+ wp_enqueue_style( 'bglib-ui-css' );
2784
+
2785
+ $this->auto_rollback->enqueue_home_scripts();
2786
+ $this->auto_rollback->enqueue_backup_scripts();
2787
+ $this->archive_actions->enqueue_scripts();
2788
+
2789
+ $this->folder_exclusion->enqueue_scripts();
2790
+ $this->db_omit->enqueue_scripts();
2791
+
2792
+ $in_modal = true;
2793
+ $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
2794
+ $in_modal = false;
2795
+
2796
+ echo '
2797
+ <div class="wrap">
2798
+ <div id="bglib-page-container" class="bgbkup-page-container">
2799
+ <div id="bglib-page-top">
2800
+ <div id="bglib-page-header" class="bglib-has-logo">
2801
+ <h1>' . esc_html__( 'Total Upkeep Preflight Check', 'boldgrid-backup' ) . '</h1>
2802
+ <div class="page-title-actions">
2803
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
2804
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
2805
+ </a>
2806
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
2807
+ </div>
2808
+ </div>
2809
+ </div>
2810
+ <div id="bglib-page-content">
2811
+ <div class="wp-header-end"></div>';
2812
+ echo $modal; //phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
2813
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-test.php';
2814
+ echo '
2815
+ </div>
2816
+ </div>
2817
+ </div>';
2818
  }
2819
 
2820
  /**
3079
  $logger->add( 'Completed core::enforce_retention.' );
3080
  $logger->add_separator();
3081
  }
3082
+
3083
+ /**
3084
+ * Add thickbox to bolgrid_backup admin pages.
3085
+ *
3086
+ * @since 1.14.0
3087
+ */
3088
+ public function add_thickbox( $hook_suffix ) {
3089
+ if ( false !== strpos( $hook_suffix, 'boldgrid-backup' ) ) {
3090
+ add_thickbox();
3091
+ }
3092
+ }
3093
  }
admin/class-boldgrid-backup-admin-dashboard.php CHANGED
@@ -79,6 +79,42 @@ class Boldgrid_Backup_Admin_Dashboard {
79
  * @since 1.11.0
80
  */
81
  public function page() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-dashboard.php';
 
 
 
 
83
  }
84
  }
79
  * @since 1.11.0
80
  */
81
  public function page() {
82
+ $settings = $this->core->settings->get_settings();
83
+ wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
84
+ wp_enqueue_style( 'bglib-ui-css' );
85
+
86
+ $this->core->auto_rollback->enqueue_home_scripts();
87
+ $this->core->auto_rollback->enqueue_backup_scripts();
88
+ $this->core->archive_actions->enqueue_scripts();
89
+
90
+ $this->core->folder_exclusion->enqueue_scripts();
91
+ $this->core->db_omit->enqueue_scripts();
92
+
93
+ $in_modal = true;
94
+ $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
95
+ $in_modal = false;
96
+
97
+ echo '
98
+ <div class="wrap">
99
+ <div id="bglib-page-container" class="bgbkup-page-container">
100
+ <div id="bglib-page-top">
101
+ <div id="bglib-page-header" class="bglib-has-logo">
102
+ <h1>' . esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Dashboard', 'boldgrid-backup' ) ) . '</h1>
103
+ <div class="page-title-actions">
104
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
105
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
106
+ </a>
107
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ <div id="bglib-page-content">
112
+ <div class="wp-header-end"></div>';
113
+ echo $modal; //phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
114
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-dashboard.php';
115
+ echo '
116
+ </div>
117
+ </div>
118
+ </div>';
119
  }
120
  }
admin/class-boldgrid-backup-admin-db-dump.php CHANGED
@@ -67,7 +67,8 @@ class Boldgrid_Backup_Admin_Db_Dump {
67
  *
68
  * In the list below, it is important that $include_tables is processed last.
69
  */
70
- $include_views = $this->core->db_get->filter_by_type( $include_tables, 'VIEW' );
 
71
  $include_tables = $this->core->db_get->filter_by_type( $include_tables, 'BASE TABLE' );
72
 
73
  Boldgrid_Backup_Admin_In_Progress_Data::set_args(
@@ -106,6 +107,19 @@ class Boldgrid_Backup_Admin_Db_Dump {
106
  $settings['default-character-set'] = $wpdb->charset;
107
  }
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  try {
110
  $dump = new IMysqldump\Mysqldump(
111
  $this->get_connection_string(),
67
  *
68
  * In the list below, it is important that $include_tables is processed last.
69
  */
70
+ $include_views = $this->core->db_get->filter_by_type( $include_tables, 'VIEW' );
71
+
72
  $include_tables = $this->core->db_get->filter_by_type( $include_tables, 'BASE TABLE' );
73
 
74
  Boldgrid_Backup_Admin_In_Progress_Data::set_args(
107
  $settings['default-character-set'] = $wpdb->charset;
108
  }
109
 
110
+ if ( ! empty( $include_views ) ) {
111
+ $db_import = new Boldgrid_Backup_Admin_Db_Import();
112
+ $user_has_privileges = $db_import->has_db_privileges( array( 'SHOW VIEW' ) );
113
+ if ( false === $user_has_privileges ) {
114
+ return array(
115
+ 'error' => esc_html__(
116
+ 'The database contains VIEWS, but the database user does not have the permissions needed to create a backup.',
117
+ 'boldgrid-backup'
118
+ ),
119
+ );
120
+ }
121
+ }
122
+
123
  try {
124
  $dump = new IMysqldump\Mysqldump(
125
  $this->get_connection_string(),
admin/class-boldgrid-backup-admin-db-import.php CHANGED
@@ -13,7 +13,7 @@
13
  */
14
 
15
  /**
16
- * Class: Boldgrid_Backup_Admin_Db_Import
17
  *
18
  * @since 1.5.1
19
  */
@@ -22,8 +22,8 @@ class Boldgrid_Backup_Admin_Db_Import {
22
  * The core class object.
23
  *
24
  * @since 1.6.0
25
- * @access private
26
  * @var Boldgrid_Backup_Admin_Core
 
27
  */
28
  private $core;
29
 
@@ -49,6 +49,23 @@ class Boldgrid_Backup_Admin_Db_Import {
49
  }
50
  }
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  /**
53
  * Import a mysqldump.
54
  *
@@ -58,7 +75,7 @@ class Boldgrid_Backup_Admin_Db_Import {
58
  * @return bool TRUE on success.
59
  */
60
  public function import( $file ) {
61
- $lines = file( $file );
62
 
63
  if ( false === $lines ) {
64
  return array(
@@ -70,6 +87,18 @@ class Boldgrid_Backup_Admin_Db_Import {
70
  );
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  $success = $this->import_lines( $lines );
74
 
75
  return $success;
@@ -78,8 +107,7 @@ class Boldgrid_Backup_Admin_Db_Import {
78
  /**
79
  * Import a database dump from an archive.
80
  *
81
- * Pass in "file.zip" and "backup.sql" and we'll find "backup.sql" in the
82
- * "file.zip" file and restore it.
83
  *
84
  * @since 1.6.0
85
  *
@@ -90,8 +118,7 @@ class Boldgrid_Backup_Admin_Db_Import {
90
  public function import_from_archive( $archive_filepath, $file ) {
91
  $this->core->archive->init( $archive_filepath );
92
  $file_contents = $this->core->archive->get_dump_file( $file );
93
-
94
- $sql = ! empty( $file_contents[0]['content'] ) ? $file_contents[0]['content'] : null;
95
  if ( empty( $sql ) ) {
96
  $this->errors[] = __( 'Unable to get contents of file.', 'boldgrid-backup' );
97
  return false;
@@ -105,8 +132,7 @@ class Boldgrid_Backup_Admin_Db_Import {
105
  /**
106
  * Import lines (queries).
107
  *
108
- * This method accepts an array of $lines, and loops through each $line and
109
- * imports it.
110
  *
111
  * These lines usually come from either a .sql file, or a string is parsed
112
  * into separate lines.
@@ -139,7 +165,7 @@ class Boldgrid_Backup_Admin_Db_Import {
139
 
140
  // Check if this is the end of the query.
141
  if ( substr( trim( $line ), -1, 1 ) === ';' ) {
142
- $affected_rows = $db->exec( $templine );
143
  if ( false === $affected_rows ) {
144
  return false;
145
  }
@@ -154,9 +180,8 @@ class Boldgrid_Backup_Admin_Db_Import {
154
  /**
155
  * Import a string into a database.
156
  *
157
- * Generally this method is used when we grab a .sql file from within a .zip
158
- * file and import it. Instead of saving the .sql file then importing, it
159
- * comes straight from the .zip file as a string to here.
160
  *
161
  * @since 1.6.0
162
  *
@@ -166,8 +191,187 @@ class Boldgrid_Backup_Admin_Db_Import {
166
  public function import_string( $string ) {
167
  $lines = preg_split( "/\\r\\n|\\r|\\n/", $string );
168
 
 
 
 
 
 
 
169
  $success = $this->import_lines( $lines );
170
 
171
  return $success;
172
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  }
13
  */
14
 
15
  /**
16
+ * Class: Boldgrid_Backup_Admin_Db_Import.
17
  *
18
  * @since 1.5.1
19
  */
22
  * The core class object.
23
  *
24
  * @since 1.6.0
 
25
  * @var Boldgrid_Backup_Admin_Core
26
+ * @access private
27
  */
28
  private $core;
29
 
49
  }
50
  }
51
 
52
+ /**
53
+ * Get Lines from file.
54
+ *
55
+ * Gets an array of lines from a file.
56
+ *
57
+ * @since 1.14.0
58
+ *
59
+ * @param string $file String ocntaining the path of the file.
60
+ *
61
+ * @return array An array of lines.
62
+ */
63
+ public function get_lines( $file ) {
64
+ if ( false === file_exists( $file ) ) {
65
+ return false;
66
+ }
67
+ return file( $file );
68
+ }
69
  /**
70
  * Import a mysqldump.
71
  *
75
  * @return bool TRUE on success.
76
  */
77
  public function import( $file ) {
78
+ $lines = $this->get_lines( $file );
79
 
80
  if ( false === $lines ) {
81
  return array(
87
  );
88
  }
89
 
90
+ $lines = $this->fix_view_statements( $lines );
91
+
92
+ if ( true === empty( $lines ) ) {
93
+ return array(
94
+ 'error' => sprintf(
95
+ /* translators: 1: Database File Name */
96
+ __( 'MySQL Database User does not have necessary priviliges to restore mysqldump, %1$s.', 'boldgrid-backup' ),
97
+ $file
98
+ ),
99
+ );
100
+ }
101
+
102
  $success = $this->import_lines( $lines );
103
 
104
  return $success;
107
  /**
108
  * Import a database dump from an archive.
109
  *
110
+ * Pass in "file.zip" and "backup.sql" and we'll find "backup.sql" in the file.zip file and restore it.
 
111
  *
112
  * @since 1.6.0
113
  *
118
  public function import_from_archive( $archive_filepath, $file ) {
119
  $this->core->archive->init( $archive_filepath );
120
  $file_contents = $this->core->archive->get_dump_file( $file );
121
+ $sql = ! empty( $file_contents[0]['content'] ) ? $file_contents[0]['content'] : null;
 
122
  if ( empty( $sql ) ) {
123
  $this->errors[] = __( 'Unable to get contents of file.', 'boldgrid-backup' );
124
  return false;
132
  /**
133
  * Import lines (queries).
134
  *
135
+ * This method accepts an array of $lines, and loops through each $line and imports it.
 
136
  *
137
  * These lines usually come from either a .sql file, or a string is parsed
138
  * into separate lines.
165
 
166
  // Check if this is the end of the query.
167
  if ( substr( trim( $line ), -1, 1 ) === ';' ) {
168
+ $affected_rows = $this->exec_import( $db, $templine );
169
  if ( false === $affected_rows ) {
170
  return false;
171
  }
180
  /**
181
  * Import a string into a database.
182
  *
183
+ * Generally this method is used when we grab a .sql file from within a .zip file and import it.
184
+ * Instead of saving the .sql file then importing, it comes straight from the .zip file as a string to here.
 
185
  *
186
  * @since 1.6.0
187
  *
191
  public function import_string( $string ) {
192
  $lines = preg_split( "/\\r\\n|\\r|\\n/", $string );
193
 
194
+ $lines = $this->fix_view_statements( $lines );
195
+
196
+ if ( true === empty( $lines ) ) {
197
+ return __( 'The Database User does not have the necessary priviliges to restore this database.', 'boldgrid-backup' );
198
+ }
199
+
200
  $success = $this->import_lines( $lines );
201
 
202
  return $success;
203
  }
204
+
205
+ /**
206
+ * Fix View Statements.
207
+ *
208
+ * Fixes view statements to ensure the definer matches the current db user.
209
+ *
210
+ * @since 1.14.0
211
+ *
212
+ * @param array $lines An array of lines from db file.
213
+ * @return array
214
+ */
215
+ public function fix_view_statements( array $lines ) {
216
+
217
+ $has_drop_view_if_exists = false;
218
+
219
+ foreach ( $lines as $line ) {
220
+ if ( strpos( $line, 'DROP VIEW IF EXISTS' ) ) {
221
+ $has_drop_view_if_exists = true;
222
+ }
223
+ }
224
+
225
+ if ( false === $has_drop_view_if_exists ) {
226
+ return $lines;
227
+ }
228
+
229
+ $user_has_privileges = $this->has_db_privileges( array( 'SHOW VIEW', 'CREATE VIEW' ) );
230
+
231
+ if ( false === $user_has_privileges ) {
232
+ return array();
233
+ }
234
+
235
+ $fixed_lines = array();
236
+
237
+ foreach ( $lines as $line ) {
238
+ if ( strpos( $line, 'DEFINER=' ) === 9 ) {
239
+ $fixed_lines[] = $this->fix_definer( $line );
240
+ } else {
241
+ $fixed_lines[] = $line;
242
+ }
243
+ }
244
+
245
+ return $fixed_lines;
246
+ }
247
+
248
+ /**
249
+ * Fix Definer.
250
+ *
251
+ * Fixes the actual definer line.
252
+ *
253
+ * @since 1.14.0
254
+ *
255
+ * @param string $line The line from db dump file to fix.
256
+ * @return string The line with the DEFINER option removed.
257
+ */
258
+ public function fix_definer( $line ) {
259
+ $line_fixed_definer = '';
260
+ $sql_security_offset = strpos( $line, 'SQL SECURITY' );
261
+ $line_fixed_definer = substr( $line, 0, 9 );
262
+ if ( strpos( $line, '@`%`' ) ) {
263
+ $line_fixed_definer .= 'DEFINER=`' . DB_USER . '`@`%` ';
264
+ } else {
265
+ $line_fixed_definer .= 'DEFINER=`' . DB_USER . '`@`' . DB_HOST . '` ';
266
+ }
267
+
268
+ if ( strpos( $line, 'SQL SECURITY' ) ) {
269
+ $line_fixed_definer .= subStr( $line, $sql_security_offset );
270
+ } else {
271
+ $line_fixed_definer .= '*/';
272
+ }
273
+
274
+ return $line_fixed_definer;
275
+ }
276
+
277
+ /**
278
+ * Tests if database user has specific privileges.
279
+ *
280
+ * @since 1.14.0
281
+ *
282
+ * @param array $privileges An array of permissions to check against.
283
+ * @return bool True if user has specified privileges.
284
+ */
285
+ public function has_db_privileges( array $privileges ) {
286
+ $user_grants = $this->get_db_privileges();
287
+ if ( in_array( 'ALL', $user_grants, true ) ) {
288
+ return true;
289
+ }
290
+ if ( count( $privileges ) === count( array_intersect( $privileges, $user_grants ) ) ) {
291
+ return true;
292
+ }
293
+ return false;
294
+ }
295
+
296
+ /**
297
+ * Get database user privileges.
298
+ *
299
+ * @since 1.14.0
300
+ *
301
+ * @global wpdb $wpdb The WordPress database class object.
302
+ *
303
+ * @return array An array of database user privileges.
304
+ */
305
+ public function get_db_privileges() {
306
+ $results = $this->show_grants_query();
307
+
308
+ foreach ( $results as $result ) {
309
+ $result[0] = str_replace( '\\', '', $result[0] );
310
+ $is_string_db_grant = ( false !== strpos( $result[0], 'ON `' . DB_NAME . '`' ) );
311
+ $is_string_all_grant = ( false !== strpos( $result[0], 'ON *.*' ) );
312
+ $is_grant_all_privileges = ( false !== strpos( $result[0], 'GRANT ALL PRIVILEGES' ) );
313
+
314
+ if ( ( $is_string_db_grant || $is_string_all_grant ) && $is_grant_all_privileges ) {
315
+ return array( 'ALL' );
316
+ }
317
+ if ( ( $is_string_db_grant ) && false === $is_grant_all_privileges ) {
318
+ return $this->get_grants_array( $result[0] );
319
+ }
320
+ }
321
+ return array();
322
+ }
323
+
324
+ /**
325
+ * Show Grants Query.
326
+ *
327
+ * Queries the database for 'SHOW GRANTS'.
328
+ *
329
+ * @since 1.14.0
330
+ *
331
+ * @return array an array of results from the database query
332
+ */
333
+ public function show_grants_query() {
334
+ $db = new PDO( sprintf( 'mysql:host=%1$s;dbname=%2$s;', DB_HOST, DB_NAME ), DB_USER, DB_PASSWORD );
335
+ $db_statement = $db->query( 'SHOW GRANTS' );
336
+ return $db_statement->fetchAll();
337
+ }
338
+
339
+ /**
340
+ * Execute Import.
341
+ *
342
+ * Executes Import MySql Query.
343
+ *
344
+ * @since 1.14.0
345
+ *
346
+ * @param PDO $db The PDO Object.
347
+ * @param string $sql_line The line of sql to execute.
348
+ *
349
+ * @return int Number of affected rows
350
+ */
351
+ public function exec_import( PDO $db, $sql_line ) {
352
+ return $db->exec( $sql_line );
353
+ }
354
+
355
+ /**
356
+ * Get a user's grants in the form of an array.
357
+ *
358
+ * @since 1.14.0
359
+ *
360
+ * @param string $grants_string A string containing the user's grants.
361
+ * @return array
362
+ */
363
+ public function get_grants_array( $grants_string ) {
364
+ $expected_grants_string_start = 6;
365
+
366
+ if ( strpos( $grants_string, 'GRANT' ) === 0 ) {
367
+ $grants_string = substr( $grants_string, $expected_grants_string_start );
368
+ }
369
+
370
+ $on_strpos = strpos( $grants_string, ' ON ' );
371
+ if ( $on_strpos ) {
372
+ $grants_string = substr( $grants_string, 0, $on_strpos );
373
+ }
374
+
375
+ return explode( ', ', $grants_string );
376
+ }
377
  }
admin/class-boldgrid-backup-admin-go-pro.php CHANGED
@@ -90,7 +90,7 @@ class Boldgrid_Backup_Admin_Go_Pro {
90
 
91
  $is_premium = $this->core->config->get_is_premium();
92
 
93
- $premium_plugin = new \Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup-premium' );
94
 
95
  $notices = [
96
  [
90
 
91
  $is_premium = $this->core->config->get_is_premium();
92
 
93
+ $premium_plugin = \Boldgrid\Library\Library\Plugin\Factory::create( 'boldgrid-backup-premium' );
94
 
95
  $notices = [
96
  [
admin/class-boldgrid-backup-admin-in-progress-tmp.php CHANGED
@@ -84,23 +84,22 @@ class Boldgrid_Backup_Admin_In_Progress_Tmp {
84
  * @return array
85
  */
86
  private function get_system_zip() {
87
- $dir = Boldgrid_Backup_Admin_Compressor_System_Zip_Temp_Folder::get_path();
88
- $dirlist = $this->core->wp_filesystem->dirlist( $dir );
89
- $dirlist = is_array( $dirlist ) ? $dirlist : [];
90
- $size = 0;
91
- $lastmodunix = 0;
92
 
93
- foreach ( $dirlist as $file ) {
94
- $size += ! empty( $file['size'] ) ? $file['size'] : 0;
95
 
96
- $lastmodunix = ! empty( $file['lastmodunix'] ) ? $file['lastmodunix'] : $lastmodunix;
 
 
 
 
 
97
  }
98
 
99
- return [
100
- 'size' => $size,
101
- 'lastmodunix' => $lastmodunix,
102
- 'size_format' => size_format( $size, 2 ),
103
- ];
104
  }
105
 
106
  /**
84
  * @return array
85
  */
86
  private function get_system_zip() {
87
+ $data = [];
88
+
89
+ $filepath = Boldgrid_Backup_Admin_In_Progress_Data::get_arg( 'filepath' );
90
+ $filename = basename( $filepath );
 
91
 
92
+ $dirlist = $this->core->backup_dir->dirlist_containing( $filename );
 
93
 
94
+ if ( ! empty( $dirlist[ $filename ] ) ) {
95
+ $data = [
96
+ 'size' => $dirlist[ $filename ]['size'],
97
+ 'lastmodunix' => $dirlist[ $filename ]['lastmodunix'],
98
+ 'size_format' => size_format( $dirlist[ $filename ]['size'], 2 ),
99
+ ];
100
  }
101
 
102
+ return $data;
 
 
 
 
103
  }
104
 
105
  /**
admin/class-boldgrid-backup-admin-log.php CHANGED
@@ -306,10 +306,11 @@ class Boldgrid_Backup_Admin_Log {
306
  *
307
  * @since 1.12.6
308
  *
309
- * @param int The signal being handled.
 
310
  */
311
- public function signal_handler( $signo ) {
312
- $this->add( 'Signal received: ' . $signo );
313
 
314
  exit;
315
  }
306
  *
307
  * @since 1.12.6
308
  *
309
+ * @param int $signo The signal being handled.
310
+ * @param array $signinfo Additional information about signal.
311
  */
312
+ public function signal_handler( $signo, $signinfo ) {
313
+ $this->add( 'Signal received: ' . $signo . ' ' . wp_json_encode( $signinfo ) );
314
 
315
  exit;
316
  }
admin/class-boldgrid-backup-admin-notice.php CHANGED
@@ -236,15 +236,55 @@ class Boldgrid_Backup_Admin_Notice {
236
  * @since 1.7.0
237
  */
238
  public function display_autoupdate_notice() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  $message = sprintf(
240
  // translators: 1: HTML anchor opening tag, 2: HTML anchor closing tag, 3: Plugin title.
241
  esc_html__(
242
- 'Auto Updates can be configured in the %1$s%3$s Settings%2$s.',
243
  'boldgrid-backup'
244
  ),
245
  '<a href="' . admin_url( 'admin.php?page=boldgrid-backup-settings&section=section_auto_updates' ) . '">',
246
  '</a>',
247
- BOLDGRID_BACKUP_TITLE
 
248
  );
249
 
250
  do_action( 'boldgrid_backup_notice', $message, 'notice notice-info is-dismissible' );
@@ -261,7 +301,7 @@ class Boldgrid_Backup_Admin_Notice {
261
  * @see \Boldgrid\Library\Library\Notice::show()
262
  */
263
  public function plugin_renamed_notice() {
264
- $plugin = new \Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup' );
265
 
266
  /*
267
  * Only show to existing users.
236
  * @since 1.7.0
237
  */
238
  public function display_autoupdate_notice() {
239
+ $auto_update_array = [
240
+ ( apply_filters( 'allow_major_auto_core_updates', false ) ) ? 'Major' : false,
241
+ ( apply_filters( 'allow_minor_auto_core_updates', false ) ) ? 'Minor' : false,
242
+ ( apply_filters( 'allow_dev_auto_core_updates', false ) ) ? 'Development' : false,
243
+ ( apply_filters( 'auto_update_translation', false ) ) ? 'Translation' : false,
244
+ ];
245
+ $auto_update_array = array_filter( $auto_update_array );
246
+ $update_msg = '';
247
+ switch ( count( $auto_update_array ) ) {
248
+ case 0:
249
+ $update_msg = esc_html__( 'disabled for all', 'boldgrid-backup' );
250
+ break;
251
+ case 1:
252
+ $auto_update_array = array_values( $auto_update_array );
253
+ $update_msg = sprintf(
254
+ // translators: 1: Auto Update Type.
255
+ esc_html__( 'enabled for %s', 'boldgrid-backup' ),
256
+ $auto_update_array[0]
257
+ );
258
+ break;
259
+ case 4:
260
+ $update_msg = esc_html__( 'enabled for all', 'boldgrid-backup' );
261
+ break;
262
+ default:
263
+ $x = array_slice( $auto_update_array, 0, -1 );
264
+
265
+ $auto_update_string = implode( ', ', $x );
266
+ $update_msg = sprintf(
267
+ // translators: 1: Auto Update Types, 2: Auto Update Type.
268
+ esc_html__(
269
+ 'enabled for %1$s and %2$s',
270
+ 'boldgrid-backup'
271
+ ),
272
+ $auto_update_string,
273
+ end( $auto_update_array )
274
+ );
275
+ break;
276
+ }
277
+
278
  $message = sprintf(
279
  // translators: 1: HTML anchor opening tag, 2: HTML anchor closing tag, 3: Plugin title.
280
  esc_html__(
281
+ 'Auto Updates are %4$s WordPress Core Updates. This can be configured in the %1$s%3$s Settings%2$s.',
282
  'boldgrid-backup'
283
  ),
284
  '<a href="' . admin_url( 'admin.php?page=boldgrid-backup-settings&section=section_auto_updates' ) . '">',
285
  '</a>',
286
+ BOLDGRID_BACKUP_TITLE,
287
+ $update_msg
288
  );
289
 
290
  do_action( 'boldgrid_backup_notice', $message, 'notice notice-info is-dismissible' );
301
  * @see \Boldgrid\Library\Library\Notice::show()
302
  */
303
  public function plugin_renamed_notice() {
304
+ $plugin = \Boldgrid\Library\Library\Plugin\Factory::create( 'boldgrid-backup' );
305
 
306
  /*
307
  * Only show to existing users.
admin/class-boldgrid-backup-admin-premium-features.php CHANGED
@@ -63,6 +63,7 @@ class Boldgrid_Backup_Admin_Premium_Features {
63
  plugin_dir_url( __FILE__ ) . 'css/boldgrid-backup-admin-premium.css', array(),
64
  BOLDGRID_BACKUP_VERSION
65
  );
 
66
  }
67
  }
68
 
@@ -78,6 +79,7 @@ class Boldgrid_Backup_Admin_Premium_Features {
78
 
79
  $this->page = $plugin->getPageBySlug( 'boldgrid-backup-premium-features' );
80
  $cards = [
 
81
  new Card\Database_Encryption( $this->page ),
82
  new Card\Google_Drive( $this->page ),
83
  new Card\Amazon_S3( $this->page ),
@@ -100,10 +102,47 @@ class Boldgrid_Backup_Admin_Premium_Features {
100
  * @return array returns an array of the $nav, $dashboard, and $premium_box for validation.
101
  */
102
  public function page() {
 
103
  wp_enqueue_style( 'bglib-ui-css' );
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  $this->admin_enqueue_scripts( 'boldgrid-backup-admin-premium-features' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-premium.php';
 
 
 
 
 
107
  $this->page->setAllNoticesRead();
108
  return array(
109
  'nav' => $nav,
63
  plugin_dir_url( __FILE__ ) . 'css/boldgrid-backup-admin-premium.css', array(),
64
  BOLDGRID_BACKUP_VERSION
65
  );
66
+ add_thickbox();
67
  }
68
  }
69
 
79
 
80
  $this->page = $plugin->getPageBySlug( 'boldgrid-backup-premium-features' );
81
  $cards = [
82
+ new Card\Timely_Auto_Updates( $this->page ),
83
  new Card\Database_Encryption( $this->page ),
84
  new Card\Google_Drive( $this->page ),
85
  new Card\Amazon_S3( $this->page ),
102
  * @return array returns an array of the $nav, $dashboard, and $premium_box for validation.
103
  */
104
  public function page() {
105
+
106
  wp_enqueue_style( 'bglib-ui-css' );
107
+ $settings = $this->core->settings->get_settings();
108
+ wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
109
+
110
+ $this->core->auto_rollback->enqueue_home_scripts();
111
+ $this->core->auto_rollback->enqueue_backup_scripts();
112
+ $this->core->archive_actions->enqueue_scripts();
113
+
114
+ $this->core->folder_exclusion->enqueue_scripts();
115
+ $this->core->db_omit->enqueue_scripts();
116
+
117
+ $in_modal = true;
118
+ $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
119
+ $in_modal = false;
120
 
121
  $this->admin_enqueue_scripts( 'boldgrid-backup-admin-premium-features' );
122
+
123
+ echo '
124
+ <div class="wrap">
125
+ <div id="bglib-page-container" class="bgbkup-page-container">
126
+ <div id="bglib-page-top">
127
+ <div id="bglib-page-header" class="bglib-has-logo">
128
+ <h1>' . esc_html__( 'Total Upkeep Premium Features', 'boldgrid-backup' ) . '</h1>
129
+ <div class="page-title-actions">
130
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
131
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
132
+ </a>
133
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ <div id="bglib-page-content">
138
+ <div class="wp-header-end"></div>';
139
+ echo $modal; //phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
140
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-premium.php';
141
+ echo '
142
+ </div>
143
+ </div>
144
+ </div>';
145
+
146
  $this->page->setAllNoticesRead();
147
  return array(
148
  'nav' => $nav,
admin/class-boldgrid-backup-admin-settings.php CHANGED
@@ -402,7 +402,7 @@ class Boldgrid_Backup_Admin_Settings {
402
  * @param string $new_dir Destination directory.
403
  * @return bool TRUE on success / no backups needed to be moved.
404
  */
405
- private function move_backups( $old_dir, $new_dir ) {
406
  $fail_count = 0;
407
 
408
  $old_dir = Boldgrid_Backup_Admin_Utility::trailingslashit( $old_dir );
@@ -609,6 +609,15 @@ class Boldgrid_Backup_Admin_Settings {
609
  }
610
  }
611
 
 
 
 
 
 
 
 
 
 
612
  /*
613
  * Save extractor settings.
614
  *
@@ -700,6 +709,16 @@ class Boldgrid_Backup_Admin_Settings {
700
  $settings['folder_exclusion_exclude'] = $this->core->folder_exclusion->from_post( 'exclude' );
701
  $settings['folder_exclusion_type'] = $this->core->folder_exclusion->from_post( 'type' );
702
 
 
 
 
 
 
 
 
 
 
 
703
  // Read BoldGrid settings form POST request, sanitize, and merge settings with saved.
704
  $boldgrid_settings = array_merge(
705
  get_option( 'boldgrid_settings' ),
@@ -763,6 +782,25 @@ class Boldgrid_Backup_Admin_Settings {
763
  return ! $update_error;
764
  }
765
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
766
  /**
767
  * Delete the boldgrid_backup_pending_rollback option.
768
  *
@@ -781,17 +819,21 @@ class Boldgrid_Backup_Admin_Settings {
781
  * @see Boldgrid_Backup_Admin_Config::is_premium_active
782
  */
783
  public function page_backup_settings() {
 
784
  $is_premium = $this->core->config->get_is_premium();
785
  $is_premium_installed = $this->core->config->is_premium_installed;
786
  $is_premium_active = $this->core->config->is_premium_active;
787
 
788
- add_thickbox();
789
  wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
790
  wp_enqueue_style( 'bglib-ui-css' );
791
  wp_enqueue_script( 'bglib-ui-js' );
792
  wp_enqueue_script( 'bglib-sticky' );
793
  wp_enqueue_script( 'bglib-license' );
794
 
 
 
 
 
795
  if ( ! $this->is_saving_settings ) {
796
  $is_functional = $this->core->test->run_functionality_tests();
797
  }
@@ -918,8 +960,32 @@ class Boldgrid_Backup_Admin_Settings {
918
  $settings['encrypt_db'] = false;
919
  }
920
 
921
- // Include the page template.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
922
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-settings.php';
 
 
 
 
923
  }
924
 
925
  /**
402
  * @param string $new_dir Destination directory.
403
  * @return bool TRUE on success / no backups needed to be moved.
404
  */
405
+ public function move_backups( $old_dir, $new_dir ) {
406
  $fail_count = 0;
407
 
408
  $old_dir = Boldgrid_Backup_Admin_Utility::trailingslashit( $old_dir );
609
  }
610
  }
611
 
612
+ /*
613
+ * Save Compression Level Settings.
614
+ *
615
+ * @since 1.14.0
616
+ */
617
+ if ( isset( $_POST['compression_level'] ) ) {
618
+ $settings['compression_level'] = $_POST['compression_level'];
619
+ }
620
+
621
  /*
622
  * Save extractor settings.
623
  *
709
  $settings['folder_exclusion_exclude'] = $this->core->folder_exclusion->from_post( 'exclude' );
710
  $settings['folder_exclusion_type'] = $this->core->folder_exclusion->from_post( 'type' );
711
 
712
+ /*
713
+ * Save Auto Backup options
714
+ *
715
+ * @since 1.14.0
716
+ */
717
+ if ( ! empty( $_POST['auto_update'] ) ) {
718
+ $settings['auto_update'] = $this->validate_auto_update( $_POST['auto_update'] );
719
+ $update_error = $settings['auto_update'] ? $update_error : true;
720
+ }
721
+
722
  // Read BoldGrid settings form POST request, sanitize, and merge settings with saved.
723
  $boldgrid_settings = array_merge(
724
  get_option( 'boldgrid_settings' ),
782
  return ! $update_error;
783
  }
784
 
785
+ /**
786
+ * Validates the auto_update submissions.
787
+ *
788
+ * @since 1.14.0
789
+ *
790
+ * @param array $posted_update_settings Update settings submitted via POST.
791
+ *
792
+ * @return array
793
+ */
794
+ public function validate_auto_update( $posted_update_settings ) {
795
+ $post_days = isset( $posted_update_settings['days'] ) ? $posted_update_settings['days'] : null;
796
+
797
+ if ( null === $post_days || ( is_numeric( $post_days ) && 0 <= $post_days && 99 >= $post_days ) ) {
798
+ return $posted_update_settings;
799
+ }
800
+
801
+ return false;
802
+ }
803
+
804
  /**
805
  * Delete the boldgrid_backup_pending_rollback option.
806
  *
819
  * @see Boldgrid_Backup_Admin_Config::is_premium_active
820
  */
821
  public function page_backup_settings() {
822
+
823
  $is_premium = $this->core->config->get_is_premium();
824
  $is_premium_installed = $this->core->config->is_premium_installed;
825
  $is_premium_active = $this->core->config->is_premium_active;
826
 
 
827
  wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
828
  wp_enqueue_style( 'bglib-ui-css' );
829
  wp_enqueue_script( 'bglib-ui-js' );
830
  wp_enqueue_script( 'bglib-sticky' );
831
  wp_enqueue_script( 'bglib-license' );
832
 
833
+ $this->core->auto_rollback->enqueue_home_scripts();
834
+ $this->core->auto_rollback->enqueue_backup_scripts();
835
+ $this->core->archive_actions->enqueue_scripts();
836
+
837
  if ( ! $this->is_saving_settings ) {
838
  $is_functional = $this->core->test->run_functionality_tests();
839
  }
960
  $settings['encrypt_db'] = false;
961
  }
962
 
963
+ $in_modal = true;
964
+ $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
965
+ $in_modal = false;
966
+
967
+ echo '
968
+ <div class="wrap">
969
+ <div id="bglib-page-container" class="bgbkup-page-container">
970
+ <div id="bglib-page-top">
971
+ <div id="bglib-page-header" class="bglib-has-logo">
972
+ <h1>' . esc_html__( 'Total Upkeep Backup and Restore Settings', 'boldgrid-backup' ) . '</h1>
973
+ <div class="page-title-actions">
974
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
975
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
976
+ </a>
977
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
978
+ </div>
979
+ </div>
980
+ </div>
981
+ <div id="bglib-page-content">
982
+ <div class="wp-header-end"></div>';
983
+ echo $modal; //phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
984
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-settings.php';
985
+ echo '
986
+ </div>
987
+ </div>
988
+ </div>';
989
  }
990
 
991
  /**
admin/class-boldgrid-backup-admin-support.php CHANGED
@@ -256,8 +256,43 @@ class Boldgrid_Backup_Admin_Support {
256
  * @since 1.10.1
257
  */
258
  public function page() {
 
259
  wp_enqueue_style( 'bglib-ui-css' );
 
 
 
 
 
 
 
 
 
 
 
 
 
260
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-support.php';
 
 
 
 
262
  }
263
  }
256
  * @since 1.10.1
257
  */
258
  public function page() {
259
+
260
  wp_enqueue_style( 'bglib-ui-css' );
261
+ $settings = $this->core->settings->get_settings();
262
+ wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
263
+
264
+ $this->core->auto_rollback->enqueue_home_scripts();
265
+ $this->core->auto_rollback->enqueue_backup_scripts();
266
+ $this->core->archive_actions->enqueue_scripts();
267
+
268
+ $this->core->folder_exclusion->enqueue_scripts();
269
+ $this->core->db_omit->enqueue_scripts();
270
+
271
+ $in_modal = true;
272
+ $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
273
+ $in_modal = false;
274
 
275
+ echo '
276
+ <div class="wrap">
277
+ <div id="bglib-page-container" class="bgbkup-page-container">
278
+ <div id="bglib-page-top">
279
+ <div id="bglib-page-header" class="bglib-has-logo">
280
+ <h1>' . esc_html__( 'Total Upkeep Support', 'boldgrid-backup' ) . '</h1>
281
+ <div class="page-title-actions">
282
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
283
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
284
+ </a>
285
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
286
+ </div>
287
+ </div>
288
+ </div>
289
+ <div id="bglib-page-content">
290
+ <div class="wp-header-end"></div>';
291
+ echo $modal; //phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped, WordPress.Security.EscapeOutput
292
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-support.php';
293
+ echo '
294
+ </div>
295
+ </div>
296
+ </div>';
297
  }
298
  }
admin/class-boldgrid-backup-admin-tools.php CHANGED
@@ -51,8 +51,6 @@ class Boldgrid_Backup_Admin_Tools {
51
  wp_enqueue_script( 'bglib-ui-js' );
52
  wp_enqueue_script( 'bglib-sticky' );
53
 
54
- // Add thickbox functionality. Initially added to support viewing log files.
55
- add_thickbox();
56
  }
57
 
58
  /**
@@ -61,6 +59,42 @@ class Boldgrid_Backup_Admin_Tools {
61
  * @since 1.6.0
62
  */
63
  public function page() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-tools.php';
 
 
 
 
65
  }
66
  }
51
  wp_enqueue_script( 'bglib-ui-js' );
52
  wp_enqueue_script( 'bglib-sticky' );
53
 
 
 
54
  }
55
 
56
  /**
59
  * @since 1.6.0
60
  */
61
  public function page() {
62
+
63
+ $settings = $this->core->settings->get_settings();
64
+ wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
65
+
66
+ $this->core->auto_rollback->enqueue_home_scripts();
67
+ $this->core->auto_rollback->enqueue_backup_scripts();
68
+ $this->core->archive_actions->enqueue_scripts();
69
+
70
+ $this->core->folder_exclusion->enqueue_scripts();
71
+ $this->core->db_omit->enqueue_scripts();
72
+
73
+ $in_modal = true;
74
+ $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
75
+ $in_modal = false;
76
+
77
+ echo '
78
+ <div class="wrap">
79
+ <div id="bglib-page-container" class="bgbkup-page-container">
80
+ <div id="bglib-page-top">
81
+ <div id="bglib-page-header" class="bglib-has-logo">
82
+ <h1>' . esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Total Upkeep Tools', 'boldgrid-backup' ) ) . '</h1>
83
+ <div class="page-title-actions">
84
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
85
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
86
+ </a>
87
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ <div id="bglib-page-content">
92
+ <div class="wp-header-end"></div>';
93
+ echo $modal; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.XSS.EscapeOutput.OutputNotEscaped
94
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-tools.php';
95
+ echo '
96
+ </div>
97
+ </div>
98
+ </div>';
99
  }
100
  }
admin/class-boldgrid-backup-admin-transfers.php CHANGED
@@ -47,6 +47,20 @@ class Boldgrid_Backup_Admin_Transfers {
47
  wp_enqueue_script( 'bglib-ui-js' );
48
  wp_enqueue_script( 'bglib-sticky' );
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  wp_enqueue_style(
51
  'boldgrid-backup-admin-transfers',
52
  plugin_dir_url( __FILE__ ) . 'css/boldgrid-backup-admin-home.css',
@@ -54,6 +68,27 @@ class Boldgrid_Backup_Admin_Transfers {
54
  BOLDGRID_BACKUP_VERSION
55
  );
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-transfers.php';
 
 
 
 
58
  }
59
  }
47
  wp_enqueue_script( 'bglib-ui-js' );
48
  wp_enqueue_script( 'bglib-sticky' );
49
 
50
+ $settings = $this->core->settings->get_settings();
51
+ wp_enqueue_style( 'boldgrid-backup-admin-new-thickbox-style' );
52
+
53
+ $this->core->auto_rollback->enqueue_home_scripts();
54
+ $this->core->auto_rollback->enqueue_backup_scripts();
55
+ $this->core->archive_actions->enqueue_scripts();
56
+
57
+ $this->core->folder_exclusion->enqueue_scripts();
58
+ $this->core->db_omit->enqueue_scripts();
59
+
60
+ $in_modal = true;
61
+ $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
62
+ $in_modal = false;
63
+
64
  wp_enqueue_style(
65
  'boldgrid-backup-admin-transfers',
66
  plugin_dir_url( __FILE__ ) . 'css/boldgrid-backup-admin-home.css',
68
  BOLDGRID_BACKUP_VERSION
69
  );
70
 
71
+ echo '
72
+ <div class="wrap">
73
+ <div id="bglib-page-container" class="bgbkup-page-container">
74
+ <div id="bglib-page-top">
75
+ <div id="bglib-page-header" class="bglib-has-logo">
76
+ <h1>' . esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Total Upkeep Transfers', 'boldgrid-backup' ) ) . '</h1>
77
+ <div class="page-title-actions">
78
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
79
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
80
+ </a>
81
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ <div id="bglib-page-content">
86
+ <div class="wp-header-end"></div>';
87
+ echo $modal; //phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
88
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-transfers.php';
89
+ echo '
90
+ </div>
91
+ </div>
92
+ </div>';
93
  }
94
  }
admin/class-boldgrid-backup-admin-upload.php CHANGED
@@ -141,6 +141,17 @@ class Boldgrid_Backup_Admin_Upload {
141
  return false;
142
  }
143
 
 
 
 
 
 
 
 
 
 
 
 
144
  return true;
145
  }
146
 
@@ -499,4 +510,16 @@ class Boldgrid_Backup_Admin_Upload {
499
  ]
500
  );
501
  }
 
 
 
 
 
 
 
 
 
 
 
 
502
  }
141
  return false;
142
  }
143
 
144
+ if ( ! preg_match( '/boldgrid-backup-.*-\d{8}-\d{6}/', $_FILES['file']['name'] ) ) {
145
+ // Display an error notice.
146
+ do_action(
147
+ 'boldgrid_backup_notice',
148
+ esc_html__( 'Uploaded File is not a Total Upkeep backup file.', 'boldgrid-backup' ),
149
+ 'notice notice-error is-dismissible'
150
+ );
151
+
152
+ return false;
153
+ }
154
+
155
  return true;
156
  }
157
 
510
  ]
511
  );
512
  }
513
+
514
+ /**
515
+ * Archive Upload Action
516
+ *
517
+ * @since 1.14.0
518
+ */
519
+ public function archive_upload_action() {
520
+ $page_is_bgbkup = apply_filters( 'is_boldgrid_backup_page', null );
521
+ if ( $page_is_bgbkup && ! empty( $_FILES['file'] ) ) {
522
+ $this->core->upload->upload_archive_file();
523
+ }
524
+ }
525
  }
admin/class-boldgrid-backup-admin.php CHANGED
@@ -92,6 +92,10 @@ class Boldgrid_Backup_Admin {
92
  * @since 1.0
93
  */
94
  public function enqueue_styles() {
 
 
 
 
95
  $core = apply_filters( 'boldgrid_backup_get_core', null );
96
 
97
  /*
@@ -235,4 +239,29 @@ class Boldgrid_Backup_Admin {
235
  // Return the configuration array.
236
  return $configs;
237
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  }
92
  * @since 1.0
93
  */
94
  public function enqueue_styles() {
95
+ if ( self::is_upkeep_page() ) {
96
+ Boldgrid\Library\Library\Ui\Page::enqueueScripts();
97
+ }
98
+
99
  $core = apply_filters( 'boldgrid_backup_get_core', null );
100
 
101
  /*
239
  // Return the configuration array.
240
  return $configs;
241
  }
242
+
243
+ /**
244
+ * Whether or not the current screen is a Total Upkeep page.
245
+ *
246
+ * @since 1.14.0
247
+ *
248
+ * @return bool
249
+ */
250
+ public static function is_upkeep_page() {
251
+ $screen = get_current_screen();
252
+
253
+ $prefixes = [
254
+ 'toplevel_page_boldgrid-backup-',
255
+ 'total-upkeep_page_',
256
+ 'admin_page_boldgrid-backup-',
257
+ ];
258
+
259
+ foreach ( $prefixes as $prefix ) {
260
+ if ( substr( $screen->id, 0, strlen( $prefix ) ) === $prefix ) {
261
+ return true;
262
+ }
263
+ }
264
+
265
+ return false;
266
+ }
267
  }
admin/compressor/class-boldgrid-backup-admin-compressor-system-zip.php CHANGED
@@ -72,6 +72,22 @@ class Boldgrid_Backup_Admin_Compressor_System_Zip extends Boldgrid_Backup_Admin_
72
  */
73
  protected $key = 'system_zip';
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  /**
76
  * Constructor.
77
  *
@@ -152,20 +168,20 @@ class Boldgrid_Backup_Admin_Compressor_System_Zip extends Boldgrid_Backup_Admin_
152
 
153
  $this->filelist_path = $this->core->backup_dir->get_path_to( 'system_zip_filelist-' . time() . '.txt' );
154
 
155
- $total_size_archived = 0;
156
 
157
  // Create the file list.
158
  $filelist_array = [];
159
  foreach ( $this->filelist as $file ) {
160
  $filelist_array[] = str_replace( ABSPATH, '', $file[0] );
161
 
162
- $total_size_archived += empty( $file[2] ) ? 0 : $file[2];
163
  }
164
 
165
  // Add some values for "In progress".
166
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_files_done', count( $this->filelist ) );
167
- Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived', $total_size_archived );
168
- Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived_size_format', size_format( $total_size_archived, 2 ) );
169
 
170
  /*
171
  * Remove our db_dump_filepath from the list.
@@ -183,7 +199,7 @@ class Boldgrid_Backup_Admin_Compressor_System_Zip extends Boldgrid_Backup_Admin_
183
  implode( PHP_EOL, $filelist_array )
184
  );
185
 
186
- $this->core->logger->add( 'Finished creating list of files to include in zip.' );
187
  $this->core->logger->add_memory();
188
  }
189
 
@@ -198,7 +214,7 @@ class Boldgrid_Backup_Admin_Compressor_System_Zip extends Boldgrid_Backup_Admin_
198
 
199
  $this->temp_folder->create();
200
 
201
- $this->core->execute_command( 'cd ' . ABSPATH . '; zip -b ' . $this->temp_folder->get_path() . ' ' . $this->filepath . ' -@ < ' . $this->filelist_path );
202
 
203
  $this->temp_folder->delete();
204
 
@@ -206,6 +222,122 @@ class Boldgrid_Backup_Admin_Compressor_System_Zip extends Boldgrid_Backup_Admin_
206
  $this->core->logger->add_memory();
207
  }
208
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  /**
210
  * Add the .sql file individually.
211
  *
@@ -219,7 +351,9 @@ class Boldgrid_Backup_Admin_Compressor_System_Zip extends Boldgrid_Backup_Admin_
219
 
220
  $dir = pathinfo( $this->core->db_dump_filepath, PATHINFO_DIRNAME );
221
 
222
- $this->core->execute_command( 'cd ' . $dir . '; zip ' . $this->filepath . ' ' . basename( $this->core->db_dump_filepath ) . ';' );
 
 
223
 
224
  $this->core->logger->add( 'Finished adding db dump to the zip file.' );
225
  $this->core->logger->add_memory();
72
  */
73
  protected $key = 'system_zip';
74
 
75
+ /**
76
+ * Total Size Archived.
77
+ *
78
+ * @since 1.14.0
79
+ * @var int
80
+ */
81
+ public $total_size_archived;
82
+
83
+ /**
84
+ * Default Compression Level.
85
+ *
86
+ * @since 1.14.0
87
+ * @var string
88
+ */
89
+ public $default_compression_level = '6';
90
+
91
  /**
92
  * Constructor.
93
  *
168
 
169
  $this->filelist_path = $this->core->backup_dir->get_path_to( 'system_zip_filelist-' . time() . '.txt' );
170
 
171
+ $this->total_size_archived = 0;
172
 
173
  // Create the file list.
174
  $filelist_array = [];
175
  foreach ( $this->filelist as $file ) {
176
  $filelist_array[] = str_replace( ABSPATH, '', $file[0] );
177
 
178
+ $this->total_size_archived += empty( $file[2] ) ? 0 : $file[2];
179
  }
180
 
181
  // Add some values for "In progress".
182
  Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_files_done', count( $this->filelist ) );
183
+ Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived', $this->total_size_archived );
184
+ Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived_size_format', size_format( $this->total_size_archived, 2 ) );
185
 
186
  /*
187
  * Remove our db_dump_filepath from the list.
199
  implode( PHP_EOL, $filelist_array )
200
  );
201
 
202
+ $this->core->logger->add( 'Finished creating list of files to include in zip. ' . count( $filelist_array ) . ' files in zip.' );
203
  $this->core->logger->add_memory();
204
  }
205
 
214
 
215
  $this->temp_folder->create();
216
 
217
+ $this->close();
218
 
219
  $this->temp_folder->delete();
220
 
222
  $this->core->logger->add_memory();
223
  }
224
 
225
+ /**
226
+ * Get Filelist Chunks.
227
+ *
228
+ * @since 1.14.0
229
+ *
230
+ * @return array Example https://pastebin.com/JsSEzNwA
231
+ */
232
+ public function get_filelist_chunks() {
233
+ // Chunk size in bytes.
234
+ $max_chunk_size = 26214400;
235
+ $size_of_chunk = 0;
236
+ $filelist_chunks = array( array() );
237
+ $chunk_position = 0;
238
+ foreach ( $this->filelist as $file ) {
239
+ // Adds file to this chunk.
240
+ $filelist_chunks[ $chunk_position ][] = $file[1];
241
+
242
+ // Adds the most recent file's size to chunk size.
243
+ $size_of_chunk = $size_of_chunk + (int) $file[2];
244
+
245
+ // If the chunk size is >= the max chunk size, then move to next chunk.
246
+ if ( $size_of_chunk >= $max_chunk_size ) {
247
+ $chunk_position++;
248
+ $size_of_chunk = 0;
249
+ }
250
+ }
251
+
252
+ return $filelist_chunks;
253
+ }
254
+
255
+ /**
256
+ * Close.
257
+ *
258
+ * @since 1.14.0
259
+ */
260
+ private function close() {
261
+ $chunks_closed = 0;
262
+ $filelist_chunks = $this->get_filelist_chunks();
263
+ $total_chunks = count( $filelist_chunks );
264
+
265
+ foreach ( $filelist_chunks as $filelist_chunk ) {
266
+ $chunk_start_time = microtime( true );
267
+ $add_file_string = implode( ' ', $filelist_chunk );
268
+ $this->zip_proc( $filelist_chunk );
269
+ $chunks_closed++;
270
+ $percent_complete = round( $chunks_closed / $total_chunks, 2 );
271
+ $chunk_end_time = microtime( true );
272
+ $close_duration = $chunk_end_time - $chunk_start_time;
273
+ Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'percent_closed', $percent_complete );
274
+ $this->core->logger->add(
275
+ 'Chunk closed in ' .
276
+ $close_duration .
277
+ ' seconds. ' . $percent_complete * 100 .
278
+ '% complete closing'
279
+ );
280
+ $this->core->logger->add_memory();
281
+ }
282
+ }
283
+
284
+ /**
285
+ * Get Compression Level.
286
+ *
287
+ * @since 1.14.0
288
+ *
289
+ * @return string
290
+ */
291
+ private function get_compression_level() {
292
+ $compression_level = $this->core->settings->get_setting( 'compression_level' );
293
+ return isset( $compression_level ) ? $compression_level : $this->default_compression_level;
294
+ }
295
+
296
+ /**
297
+ * Close Zip using proc_open.
298
+ *
299
+ * @since 1.14.0
300
+ *
301
+ * @param array $filelist_chunk Array of Files to be added.
302
+ */
303
+ private function zip_proc( $filelist_chunk ) {
304
+ $descriptorspec = array(
305
+ 0 => array( 'pipe', 'r' ), // stdin is a pipe that the child will read from.
306
+ 1 => array( 'pipe', 'w' ), // stdout is a pipe that the child will write to.
307
+ 2 => array( 'file', '/tmp/error-output.txt', 'a' ), // stderr is a file to write to.
308
+ );
309
+
310
+ $cwd = ABSPATH;
311
+
312
+ $compression_level = $this->get_compression_level();
313
+
314
+ $process = proc_open( //phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_proc_open
315
+ 'zip -' . $compression_level . ' -g -q -@ ' . $this->filepath,
316
+ $descriptorspec,
317
+ $pipes,
318
+ $cwd
319
+ );
320
+
321
+ if ( is_resource( $process ) ) {
322
+ /* $pipes now looks like this:
323
+ * 0 => writeable handle connected to child stdin
324
+ * 1 => readable handle connected to child stdout
325
+ * Any error output will be appended to /tmp/error-output.txt
326
+ */
327
+ foreach ( $filelist_chunk as $file ) {
328
+ fwrite( $pipes[0], $file . "\n" ); //phpcs:ignore WordPress.WP.AlternativeFunctions
329
+ }
330
+
331
+ fclose( $pipes[0] ); //phpcs:ignore WordPress.WP.AlternativeFunctions
332
+
333
+ fclose( $pipes[1] ); //phpcs:ignore WordPress.WP.AlternativeFunctions
334
+
335
+ // It is important that you close any pipes before calling.
336
+ // proc_close in order to avoid a deadlock.
337
+ proc_close( $process );
338
+ }
339
+ }
340
+
341
  /**
342
  * Add the .sql file individually.
343
  *
351
 
352
  $dir = pathinfo( $this->core->db_dump_filepath, PATHINFO_DIRNAME );
353
 
354
+ $compression_level = $this->get_compression_level();
355
+
356
+ $this->core->execute_command( 'cd ' . $dir . '; zip -' . $compression_level . ' -g -q ' . $this->filepath . ' ' . basename( $this->core->db_dump_filepath ) . ';' );
357
 
358
  $this->core->logger->add( 'Finished adding db dump to the zip file.' );
359
  $this->core->logger->add_memory();
admin/css/boldgrid-backup-admin-premium.css CHANGED
@@ -107,4 +107,17 @@
107
 
108
  .bglib-card-title {
109
  height: 2em;
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
107
 
108
  .bglib-card-title {
109
  height: 2em;
110
+ }
111
+
112
+ .bglib-card-links span.dashicons {
113
+ vertical-align: text-top;
114
+ padding-right: 0.25em;
115
+ }
116
+
117
+ .bglib-card .bglib-card-links {
118
+ justify-content: flex-end;
119
+ }
120
+
121
+ .bglib-smaller .bglib-card-links a.button {
122
+ margin-right: 10px;
123
  }
admin/css/boldgrid-backup-admin-settings.css CHANGED
@@ -15,3 +15,34 @@
15
  #auto-recovery-tr {
16
  display: none;
17
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  #auto-recovery-tr {
16
  display: none;
17
  }
18
+
19
+ /**
20
+ * Auto Update Styles
21
+ */
22
+ .auto-update-settings.form-table .table-help td,
23
+ .auto-update-settings.form-table .table-help td p {
24
+ padding: 0;
25
+ padding-left: 5px;
26
+ }
27
+
28
+ .form-table .bglib-divider {
29
+ border-bottom: 1px solid #e2e4e7;
30
+ }
31
+ #section_auto_updates .form-table th {
32
+ width: auto;
33
+ }
34
+ .auto-update-settings.form-table td {
35
+ padding: 5px 5px;
36
+ }
37
+
38
+ .auto-update-settings .toggle.right {
39
+ float: right;
40
+ }
41
+
42
+ .auto-update-settings input[type="number"] {
43
+ width: 5em;
44
+ }
45
+ .auto-update-settings .help-icon {
46
+ vertical-align: middle;
47
+ padding-left: 0.25em;
48
+ }
admin/css/boldgrid-backup-admin.css CHANGED
@@ -331,6 +331,13 @@ p > .bgbkup-remote-logo {
331
  padding-left: 23px;
332
  }
333
 
 
 
 
 
 
 
 
334
  /**
335
  * Misc.
336
  */
@@ -348,3 +355,63 @@ p > .bgbkup-remote-logo {
348
  width: calc( 100% - 40px ) !important;
349
  height: calc( 100% - 60px ) !important;
350
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331
  padding-left: 23px;
332
  }
333
 
334
+ /**
335
+ * Override Library's Ui Page.
336
+ */
337
+ .bgbkup-page-container #bglib-page-header {
338
+ background-image: url( '../image/icon-128x128.png' );
339
+ }
340
+
341
  /**
342
  * Misc.
343
  */
355
  width: calc( 100% - 40px ) !important;
356
  height: calc( 100% - 60px ) !important;
357
  }
358
+
359
+ .bgbkup-transfers-destination .bg-box-bottom.premium .button-success {
360
+ float: none;
361
+ margin: 10px;
362
+ }
363
+
364
+ .page-title-actions {
365
+ display: inline-block;
366
+ }
367
+
368
+ .bg-auto-update.dashicons {
369
+ margin-right: 6px;
370
+ vertical-align: bottom;
371
+ }
372
+
373
+ .bg-auto-update.dashicons.dashicons-warning {
374
+ color: #f56e28;
375
+ }
376
+
377
+ .bg-auto-update.dashicons.dashicons-yes {
378
+ color: #79ba49;
379
+ }
380
+
381
+ #upload-archive-section.wp-upload-form {
382
+ flex-wrap: wrap;
383
+ }
384
+ .bgbkup-page-container .upload-plugin .wp-upload-form {
385
+ max-width: 85%;
386
+ align-items: center;
387
+ }
388
+
389
+ .bgbkup-page-container .upload-plugin .wp-upload-form p {
390
+ padding-right: 1em;
391
+ }
392
+
393
+ .bgbkup-page-container .upload-plugin .wp-upload-form .error_messages p {
394
+ width: 100%;
395
+ }
396
+
397
+ .bgbkup-page-container .upload-plugin .wp-upload-form input[type=text] {
398
+ width: 30%;
399
+ margin-right:6px;
400
+ }
401
+
402
+ .bgbkup-page-container .upload-plugin #upload-archive-section {
403
+ align-items: center;
404
+ }
405
+
406
+ .bgbkup-page-container .upload-plugin #upload-archive-section form {
407
+ width: 60%;
408
+ }
409
+
410
+ .bgbkup-page-container .upload-plugin #upload-archive-section form input[type="file"] {
411
+ width: 50%;
412
+ }
413
+
414
+ .bgbkup-page-container .upload-plugin #upload-archive-section .error_messages {
415
+ width: 100%;
416
+ }
417
+
admin/image/icon-128x128.png ADDED
Binary file
admin/js/boldgrid-backup-admin-backup-now.js CHANGED
@@ -155,7 +155,7 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
155
  * not refresh until we know a backup is in progress so that we know the in progress bar will
156
  * show when the page refreshes.
157
  */
158
- if ( 'total-upkeep_page_boldgrid-backup' === pagenow ) {
159
  setTimeout( function() {
160
  location.reload();
161
  }, 6000 );
155
  * not refresh until we know a backup is in progress so that we know the in progress bar will
156
  * show when the page refreshes.
157
  */
158
+ if ( true === pagenow.includes( 'boldgrid-backup' ) ) {
159
  setTimeout( function() {
160
  location.reload();
161
  }, 6000 );
admin/js/boldgrid-backup-admin-folder-exclude.js CHANGED
@@ -19,7 +19,7 @@ BoldGrid.FolderExclude = function( $ ) {
19
  exclusionList = null,
20
  filteredList = [],
21
  lang = BoldGridBackupAdminFolderExclude,
22
- $container = $( '#folder_exclusion' ),
23
  $excludeFoldersPreview = $container.find( '#exclude_folders_preview' ),
24
  $inputInclude = $container.find( '[name="folder_exclusion_include"]' ),
25
  $inputExclude = $container.find( '[name="folder_exclusion_exclude"]' ),
@@ -160,9 +160,11 @@ BoldGrid.FolderExclude = function( $ ) {
160
  * @summary Action to take when backup type has been changed.
161
  *
162
  * @since 1.6.0
 
 
163
  */
164
- self.onChangeType = function() {
165
- self.toggleConfig();
166
  };
167
 
168
  /**
@@ -351,31 +353,48 @@ BoldGrid.FolderExclude = function( $ ) {
351
  * @summary Toggle display of everything after the "full" or "custom" options.
352
  *
353
  * @since 1.6.0
 
 
354
  */
355
- self.toggleConfig = function() {
356
- var type = $type.filter( ':checked' ).val(),
357
- $miscInfo = $( '#folder_misc_info' );
 
 
358
 
359
  if ( 'full' === type ) {
360
  $trs.hide();
361
  $miscInfo.hide();
362
- } else {
363
  $trs.show();
364
  $miscInfo.show();
365
  }
366
  };
367
 
368
  /**
 
369
  *
 
 
 
370
  */
371
- self.toggleStatus = function() {
372
- var usingDefaults =
373
- $inputInclude.val() &&
374
- $inputInclude.val().trim() === lang.default_include &&
375
- $inputExclude.val().trim() === lang.default_exclude,
376
  $yesDefault = $container.find( '.yes-default' ),
377
  $noDefault = $container.find( '.no-default' );
378
 
 
 
 
 
 
 
 
 
 
 
 
379
  if ( usingDefaults ) {
380
  $yesDefault.show();
381
  $noDefault.hide();
@@ -385,9 +404,29 @@ BoldGrid.FolderExclude = function( $ ) {
385
  }
386
  };
387
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
  // Onload event listener.
389
  $( function() {
390
- $( '#exclude_folders_button' ).on( 'click', self.onClickPreview );
391
 
392
  $( 'body' )
393
  .on( 'click', '#exclude_folders_preview .pagination-links a', self.onClickPagination )
@@ -400,13 +439,39 @@ BoldGrid.FolderExclude = function( $ ) {
400
  $( '#configure_folder_exclude' ).on( 'click', self.onClickConfigure );
401
 
402
  self.toggleStatus();
403
- self.toggleConfig();
 
 
404
 
405
- $type.on( 'change', self.onChangeType );
 
 
 
 
 
 
 
 
406
 
407
- $inputInclude.on( 'input', self.toggleStatus ).on( 'focusin', self.bounceHelp );
 
 
 
 
 
 
 
 
408
 
409
- $inputExclude.on( 'input', self.toggleStatus ).on( 'focusin', self.bounceHelp );
 
 
 
 
 
 
 
 
410
  } );
411
  };
412
 
19
  exclusionList = null,
20
  filteredList = [],
21
  lang = BoldGridBackupAdminFolderExclude,
22
+ $container = $( 'div#folder_exclusion' ),
23
  $excludeFoldersPreview = $container.find( '#exclude_folders_preview' ),
24
  $inputInclude = $container.find( '[name="folder_exclusion_include"]' ),
25
  $inputExclude = $container.find( '[name="folder_exclusion_exclude"]' ),
160
  * @summary Action to take when backup type has been changed.
161
  *
162
  * @since 1.6.0
163
+ *
164
+ * @param type The type element triggering the 'onChange' listener.
165
  */
166
+ self.onChangeType = function( type ) {
167
+ self.toggleConfig( type );
168
  };
169
 
170
  /**
353
  * @summary Toggle display of everything after the "full" or "custom" options.
354
  *
355
  * @since 1.6.0
356
+ *
357
+ * @param typeInput The type input element clicked in the toggle.
358
  */
359
+ self.toggleConfig = function( typeInput ) {
360
+ var type = $( typeInput )
361
+ .filter( ':checked' )
362
+ .val(),
363
+ $miscInfo = $( 'div#folder_misc_info' );
364
 
365
  if ( 'full' === type ) {
366
  $trs.hide();
367
  $miscInfo.hide();
368
+ } else if ( 'custom' === type ) {
369
  $trs.show();
370
  $miscInfo.show();
371
  }
372
  };
373
 
374
  /**
375
+ * Toggle Status
376
  *
377
+ * @since 1.6.0
378
+ *
379
+ * @param eventTarget The target of the triggering event.
380
  */
381
+ self.toggleStatus = function( eventTarget ) {
382
+ var parentContainer,
383
+ usingDefaults,
 
 
384
  $yesDefault = $container.find( '.yes-default' ),
385
  $noDefault = $container.find( '.no-default' );
386
 
387
+ if ( eventTarget ) {
388
+ parentContainer = eventTarget.closest( '.form-table' );
389
+ $inputInclude = $( parentContainer ).find( 'input[name=folder_exclusion_include]' );
390
+ $inputExclude = $( parentContainer ).find( 'input[name=folder_exclusion_exclude]' );
391
+ }
392
+
393
+ usingDefaults =
394
+ $inputInclude.val() &&
395
+ $inputInclude.val().trim() === lang.default_include &&
396
+ $inputExclude.val().trim() === lang.default_exclude;
397
+
398
  if ( usingDefaults ) {
399
  $yesDefault.show();
400
  $noDefault.hide();
404
  }
405
  };
406
 
407
+ /**
408
+ * Update Values
409
+ *
410
+ * @since 1.6.0
411
+ *
412
+ * @param eventTarget The target of the triggering event.
413
+ * @param $container The set of container divs.
414
+ */
415
+ self.updateValues = function( eventTarget, $container ) {
416
+ var name = $( eventTarget ).attr( 'name' ),
417
+ value = $( eventTarget ).val();
418
+ if ( 'radio' == $( eventTarget ).attr( 'type' ) ) {
419
+ $container
420
+ .find( 'input[name=' + name + '][value=' + value + ']' )
421
+ .prop( 'checked', $( eventTarget ).prop( 'checked' ) );
422
+ } else {
423
+ $container.find( 'input[name=' + name + ']' ).val( value );
424
+ }
425
+ };
426
+
427
  // Onload event listener.
428
  $( function() {
429
+ $( 'button#exclude_folders_button' ).on( 'click', self.onClickPreview );
430
 
431
  $( 'body' )
432
  .on( 'click', '#exclude_folders_preview .pagination-links a', self.onClickPagination )
439
  $( '#configure_folder_exclude' ).on( 'click', self.onClickConfigure );
440
 
441
  self.toggleStatus();
442
+ $type.each( function() {
443
+ self.toggleConfig( this );
444
+ } );
445
 
446
+ $type.on( 'change', function() {
447
+ self.onChangeType( this );
448
+ } );
449
+
450
+ $container.find( 'input' ).each( function() {
451
+ $( this ).on( 'input', function() {
452
+ self.updateValues( this, $container );
453
+ } );
454
+ } );
455
 
456
+ $inputInclude.each( function() {
457
+ $( this )
458
+ .on( 'input', function() {
459
+ self.toggleStatus( this );
460
+ } )
461
+ .on( 'focusin', function() {
462
+ self.bounceHelp( this );
463
+ } );
464
+ } );
465
 
466
+ $inputExclude.each( function() {
467
+ $( this )
468
+ .on( 'input', function() {
469
+ self.toggleStatus( this );
470
+ } )
471
+ .on( 'focusin', function() {
472
+ self.bounceHelp( this );
473
+ } );
474
+ } );
475
  } );
476
  };
477
 
admin/js/boldgrid-backup-admin-home.js CHANGED
@@ -25,12 +25,7 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
25
 
26
  // Onload event listener.
27
  $( function() {
28
- var $urlImportSection = $( '#url-import-section' );
29
-
30
- // On click action for the Upload button.
31
- $( '#upload-archive-form' )
32
- .find( '.button' )
33
- .on( 'click', self.uploadButtonClicked );
34
 
35
  $( '.page-title-action.add-new' ).on( 'click', function() {
36
  $( '#add_new' ).toggle();
@@ -92,9 +87,15 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
92
  var $badExtension = $( '#bad_extension' ),
93
  $fileSizeWarning = $( '[data-id="upload-backup"]:not(span)' ),
94
  $fileTooLarge = $( '#file_too_large' ),
95
- $submit = $( 'input:submit' ),
 
 
 
 
 
96
  extension,
97
  isBadExtension,
 
98
  isTooBig,
99
  maxSize = parseInt( $( '[name="MAX_FILE_SIZE"]' ).val() ),
100
  name,
@@ -104,6 +105,7 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
104
  $fileSizeWarning.slideUp();
105
  $fileTooLarge.slideUp();
106
  $badExtension.slideUp();
 
107
  $submit.attr( 'disabled', true );
108
  return;
109
  }
@@ -114,6 +116,7 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
114
 
115
  isTooBig = 0 > maxSize - size;
116
  isBadExtension = 'zip' !== extension;
 
117
 
118
  if ( isBadExtension ) {
119
  $badExtension.slideDown();
@@ -121,6 +124,12 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
121
  $badExtension.slideUp();
122
  }
123
 
 
 
 
 
 
 
124
  if ( isTooBig ) {
125
  $fileSizeWarning.slideDown();
126
  $fileTooLarge.slideDown();
@@ -129,7 +138,7 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
129
  $fileTooLarge.slideUp();
130
  }
131
 
132
- if ( isTooBig || isBadExtension ) {
133
  $submit.attr( 'disabled', true );
134
  } else {
135
  $submit.attr( 'disabled', false );
@@ -173,27 +182,6 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
173
  return false;
174
  };
175
 
176
- /**
177
- * Confirm to delete a selected backup archive file.
178
- *
179
- * @since 1.2.2
180
- */
181
- self.uploadButtonClicked = function() {
182
-
183
- // Declare variables.
184
- var $this = $( this );
185
-
186
- // Disable the Upload button.
187
- $this.css( 'pointer-events', 'none' );
188
-
189
- // Show the spinner.
190
- $this
191
- .parent()
192
- .find( '.spinner' )
193
- .addClass( 'is-active' )
194
- .css( 'display', 'inline-block' );
195
- };
196
-
197
  /**
198
  * Toggle a help section.
199
  *
@@ -214,14 +202,22 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
214
  var jqxhr,
215
  $this = $( this ),
216
  $spinner = $this.next(),
217
- $notice = $( '#url-import-notice' ),
218
- wpnonce = $( '#_wpnonce' ).val(),
 
 
 
 
 
219
  urlRegex = new RegExp( lang.urlRegex, 'i' ),
220
  data = {
221
  action: 'boldgrid_backup_url_upload',
222
  _wpnonce: wpnonce,
223
  _wp_http_referer: $( 'input[name="_wp_http_referer"]' ).val(),
224
- url: $( 'input[name="url"]' ).val()
 
 
 
225
  };
226
 
227
  e.preventDefault();
@@ -246,7 +242,6 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
246
  $this.attr( 'disabled', 'disabled' );
247
 
248
  $spinner.addClass( 'inline' );
249
-
250
  jqxhr = $.post( ajaxurl, data, function( response ) {
251
  if ( response.data !== undefined && response.data.filepath !== undefined ) {
252
  $notice
@@ -255,7 +250,7 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
255
  .html(
256
  lang.savedTo +
257
  response.data.filepath +
258
- ' <a class="button" href="' +
259
  response.data.detailsUrl +
260
  '">' +
261
  lang.viewDetails +
@@ -300,6 +295,7 @@ BOLDGRID.BACKUP.HOME = function( $ ) {
300
  } )
301
  .always( function() {
302
  $notice.wrapInner( '<p></p>' ).show();
 
303
  $spinner.removeClass( 'inline' );
304
  } );
305
  };
25
 
26
  // Onload event listener.
27
  $( function() {
28
+ var $urlImportSection = $( 'div#url-import-section' );
 
 
 
 
 
29
 
30
  $( '.page-title-action.add-new' ).on( 'click', function() {
31
  $( '#add_new' ).toggle();
87
  var $badExtension = $( '#bad_extension' ),
88
  $fileSizeWarning = $( '[data-id="upload-backup"]:not(span)' ),
89
  $fileTooLarge = $( '#file_too_large' ),
90
+ $submit = $(
91
+ $( this )
92
+ .parent()
93
+ .find( 'input:submit' )
94
+ ),
95
+ $badFilename = $( '#bad_filename' ),
96
  extension,
97
  isBadExtension,
98
+ isBadFilename,
99
  isTooBig,
100
  maxSize = parseInt( $( '[name="MAX_FILE_SIZE"]' ).val() ),
101
  name,
105
  $fileSizeWarning.slideUp();
106
  $fileTooLarge.slideUp();
107
  $badExtension.slideUp();
108
+ $badFilename.slideUp();
109
  $submit.attr( 'disabled', true );
110
  return;
111
  }
116
 
117
  isTooBig = 0 > maxSize - size;
118
  isBadExtension = 'zip' !== extension;
119
+ isBadFilename = ! name.match( /boldgrid-backup-.*-\d{8}-\d{6}/ );
120
 
121
  if ( isBadExtension ) {
122
  $badExtension.slideDown();
124
  $badExtension.slideUp();
125
  }
126
 
127
+ if ( isBadFilename ) {
128
+ $badFilename.slideDown();
129
+ } else {
130
+ $badFilename.slideUp();
131
+ }
132
+
133
  if ( isTooBig ) {
134
  $fileSizeWarning.slideDown();
135
  $fileTooLarge.slideDown();
138
  $fileTooLarge.slideUp();
139
  }
140
 
141
+ if ( isTooBig || isBadExtension || isBadFilename ) {
142
  $submit.attr( 'disabled', true );
143
  } else {
144
  $submit.attr( 'disabled', false );
182
  return false;
183
  };
184
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  /**
186
  * Toggle a help section.
187
  *
202
  var jqxhr,
203
  $this = $( this ),
204
  $spinner = $this.next(),
205
+ $notice = $( this )
206
+ .parent()
207
+ .find( 'div#url-import-notice' ),
208
+ wpnonce = $( this )
209
+ .parent()
210
+ .find( 'input#_wpnonce' )
211
+ .val(),
212
  urlRegex = new RegExp( lang.urlRegex, 'i' ),
213
  data = {
214
  action: 'boldgrid_backup_url_upload',
215
  _wpnonce: wpnonce,
216
  _wp_http_referer: $( 'input[name="_wp_http_referer"]' ).val(),
217
+ url: $( this )
218
+ .parent()
219
+ .find( 'input[name="url"]' )
220
+ .val()
221
  };
222
 
223
  e.preventDefault();
242
  $this.attr( 'disabled', 'disabled' );
243
 
244
  $spinner.addClass( 'inline' );
 
245
  jqxhr = $.post( ajaxurl, data, function( response ) {
246
  if ( response.data !== undefined && response.data.filepath !== undefined ) {
247
  $notice
250
  .html(
251
  lang.savedTo +
252
  response.data.filepath +
253
+ '<br/> <a class="button" href="' +
254
  response.data.detailsUrl +
255
  '">' +
256
  lang.viewDetails +
295
  } )
296
  .always( function() {
297
  $notice.wrapInner( '<p></p>' ).show();
298
+ $spinner.removeClass( 'is-active' );
299
  $spinner.removeClass( 'inline' );
300
  } );
301
  };
admin/js/boldgrid-backup-admin-in-progress.js CHANGED
@@ -477,13 +477,19 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
477
  * @param object In progress data received from ajax call.
478
  */
479
  onStepSaving: function( data ) {
480
- var percentage = Math.floor( ( data.tmp.size / data.total_size_archived ) * 100 );
481
 
482
  self.setStepActive( 3 );
483
 
484
- self.setPercentage( percentage );
 
 
 
 
 
 
485
 
486
- self.setLabel( ' ' + self.i18n.archive_file_size + data.tmp.size_format );
487
 
488
  self.setSubText( self.i18n.size_before_compression + data.total_size_archived_size_format );
489
  },
477
  * @param object In progress data received from ajax call.
478
  */
479
  onStepSaving: function( data ) {
480
+ var percentage;
481
 
482
  self.setStepActive( 3 );
483
 
484
+ if ( data.percent_closed ) {
485
+ percentage = Math.floor( data.percent_closed * 100 );
486
+ self.setLabel( ' ' + percentage + '% Complete' );
487
+ } else {
488
+ percentage = Math.floor( ( data.tmp.size / data.total_size_archived ) * 100 );
489
+ self.setLabel( ' ' + self.i18n.archive_file_size + data.tmp.size_format );
490
+ }
491
 
492
+ self.setPercentage( percentage );
493
 
494
  self.setSubText( self.i18n.size_before_compression + data.total_size_archived_size_format );
495
  },
admin/js/boldgrid-backup-admin-settings-autoupdate.js CHANGED
@@ -10,6 +10,8 @@ var BOLDGRID = BOLDGRID || {};
10
  BOLDGRID.SETTINGS = BOLDGRID.SETTINGS || {};
11
 
12
  ( function( $ ) {
 
 
13
  BOLDGRID.SETTINGS.AutoUpdate = {
14
 
15
  /**
@@ -48,11 +50,44 @@ BOLDGRID.SETTINGS = BOLDGRID.SETTINGS || {};
48
  .not( '.toggle-group' )
49
  .on( 'click swipe contextmenu', self._setMasterToggles );
50
 
51
- $bgBox.find( '.dashicons-editor-help' ).on( 'click', self._toggleHelp );
 
 
 
 
 
 
52
 
53
  $bgBox.find( '.bglib-collapsible-control' ).on( 'click', function() {
 
 
54
  $( this ).toggleClass( 'bglib-collapsible-open' );
55
  } );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  },
57
 
58
  /**
@@ -66,7 +101,10 @@ BOLDGRID.SETTINGS = BOLDGRID.SETTINGS || {};
66
  $pluginToggles = $bgBox.find( '.plugin-toggle' ),
67
  $themeToggles = $bgBox.find( '.theme-toggle' ),
68
  $pluginsDefault = $bgBox.find( '#toggle-default-plugins' ),
69
- $themesDefault = $bgBox.find( '#toggle-default-themes' );
 
 
 
70
 
71
  // If the updates section is not in use, then just return.
72
  if ( ! $pluginsDefault.data( 'toggles' ) ) {
@@ -76,41 +114,36 @@ BOLDGRID.SETTINGS = BOLDGRID.SETTINGS || {};
76
  $wpcoreToggles.each( function() {
77
  var $this = $( this );
78
 
79
- $this
80
  .next( 'input' )
81
- .attr( 'name', 'autoupdate[wpcore][' + $this.data( 'wpcore' ) + ']' )
82
  .val( $this.data( 'toggles' ).active ? 1 : 0 );
 
83
  } );
84
 
85
  $pluginToggles.each( function() {
86
  var $this = $( this );
87
 
88
- $this
89
- .parent()
90
  .next( 'input' )
91
- .attr( 'name', 'autoupdate[plugins][' + $this.data( 'plugin' ) + ']' )
92
  .val( $this.data( 'toggles' ).active ? 1 : 0 );
 
93
  } );
94
 
95
  $themeToggles.each( function() {
96
  var $this = $( this );
97
 
98
- $this
99
- .parent()
100
  .next( 'input' )
101
- .attr( 'name', 'autoupdate[themes][' + $this.data( 'stylesheet' ) + ']' )
102
  .val( $this.data( 'toggles' ).active ? 1 : 0 );
 
103
  } );
104
 
105
- $pluginsDefault
106
- .parent()
107
- .next( 'input' )
108
- .val( $pluginsDefault.data( 'toggles' ).active ? 1 : 0 );
109
 
110
- $themesDefault
111
- .parent()
112
- .next( 'input' )
113
- .val( $themesDefault.data( 'toggles' ).active ? 1 : 0 );
114
  },
115
 
116
  /**
@@ -182,20 +215,30 @@ BOLDGRID.SETTINGS = BOLDGRID.SETTINGS || {};
182
  * @since 1.7.0
183
  */
184
  _toggleHelp: function( e ) {
185
- var id = $( this ).attr( 'data-id' );
186
-
187
  e.preventDefault();
188
 
189
  if ( id === undefined ) {
190
  return false;
191
  }
192
 
193
- $( '.help[data-id="' + id + '"]' ).slideToggle();
 
 
 
 
 
 
 
 
194
 
195
  return false;
196
  }
197
  };
198
 
 
199
  var self = BOLDGRID.SETTINGS.AutoUpdate;
 
200
  BOLDGRID.SETTINGS.AutoUpdate.init();
201
  } )( jQuery );
10
  BOLDGRID.SETTINGS = BOLDGRID.SETTINGS || {};
11
 
12
  ( function( $ ) {
13
+ var self;
14
+
15
  BOLDGRID.SETTINGS.AutoUpdate = {
16
 
17
  /**
50
  .not( '.toggle-group' )
51
  .on( 'click swipe contextmenu', self._setMasterToggles );
52
 
53
+ $bgBox
54
+ .find( '.table-help td p' )
55
+ .attr( 'style', 'height: 0em; opacity: 0%; position: relative; z-index:-1' );
56
+ $bgBox
57
+ .find( '.div-table-body .dashicons-editor-help, .help-icon' )
58
+ .on( 'click', self._toggleHelp );
59
+ $bgBox.find( '.help-icon' ).css( 'cursor', 'pointer' );
60
 
61
  $bgBox.find( '.bglib-collapsible-control' ).on( 'click', function() {
62
+ var target = $( this ).attr( 'data-target' );
63
+ $( target ).animate( { height: 'toggle', opacity: 'toggle' }, 'slow' );
64
  $( this ).toggleClass( 'bglib-collapsible-open' );
65
  } );
66
+
67
+ if ( true === $( '#timely-updates-disabled' ).prop( 'checked' ) ) {
68
+ $( '#timely-updates-days' ).prop( 'disabled', true );
69
+ $( '#timely-updates-days-hidden' ).prop( 'disabled', false );
70
+ }
71
+
72
+ $( 'input[name="auto_update[timely-updates-enabled]"]' ).change( function() {
73
+ if ( true === $( '#timely-updates-disabled' ).prop( 'checked' ) ) {
74
+ $( '#timely-updates-days' ).prop( 'disabled', true );
75
+ $( '#timely-updates-days-hidden' ).prop( 'disabled', false );
76
+ } else {
77
+ $( '#timely-updates-days' ).prop( 'disabled', false );
78
+ $( '#timely-updates-days-hidden' ).prop( 'disabled', true );
79
+ }
80
+ } );
81
+ },
82
+
83
+ _onInputChange: function( toggle, input ) {
84
+ toggle.change( function() {
85
+ if ( true == $this.prop( 'checked' ) ) {
86
+ input.val( '1' );
87
+ } else {
88
+ input.val( '0' );
89
+ }
90
+ } );
91
  },
92
 
93
  /**
101
  $pluginToggles = $bgBox.find( '.plugin-toggle' ),
102
  $themeToggles = $bgBox.find( '.theme-toggle' ),
103
  $pluginsDefault = $bgBox.find( '#toggle-default-plugins' ),
104
+ $themesDefault = $bgBox.find( '#toggle-default-themes' ),
105
+ $timelyUpdatesEnabled = $bgBox.find( '#timely-updates-enabled' ),
106
+ $timelyUpdatesDisabled = $bgBox.find( '#timely-updates-disabled' ),
107
+ $timelyUpdatesDays = $bgBox.find( '#timely-updates-days' );
108
 
109
  // If the updates section is not in use, then just return.
110
  if ( ! $pluginsDefault.data( 'toggles' ) ) {
114
  $wpcoreToggles.each( function() {
115
  var $this = $( this );
116
 
117
+ var $thisInput = $this
118
  .next( 'input' )
119
+ .attr( 'name', 'auto_update[wpcore][' + $this.data( 'wpcore' ) + ']' )
120
  .val( $this.data( 'toggles' ).active ? 1 : 0 );
121
+ self._onInputChange( $this, $thisInput );
122
  } );
123
 
124
  $pluginToggles.each( function() {
125
  var $this = $( this );
126
 
127
+ var $thisInput = $this
 
128
  .next( 'input' )
129
+ .attr( 'name', 'auto_update[plugins][' + $this.data( 'plugin' ) + ']' )
130
  .val( $this.data( 'toggles' ).active ? 1 : 0 );
131
+ self._onInputChange( $this, $thisInput );
132
  } );
133
 
134
  $themeToggles.each( function() {
135
  var $this = $( this );
136
 
137
+ var $thisInput = $this
 
138
  .next( 'input' )
139
+ .attr( 'name', 'auto_update[themes][' + $this.data( 'stylesheet' ) + ']' )
140
  .val( $this.data( 'toggles' ).active ? 1 : 0 );
141
+ self._onInputChange( $this, $thisInput );
142
  } );
143
 
144
+ $pluginsDefault.next( 'input' ).val( $pluginsDefault.data( 'toggles' ).active ? 1 : 0 );
 
 
 
145
 
146
+ $themesDefault.next( 'input' ).val( $themesDefault.data( 'toggles' ).active ? 1 : 0 );
 
 
 
147
  },
148
 
149
  /**
215
  * @since 1.7.0
216
  */
217
  _toggleHelp: function( e ) {
218
+ var id = $( this ).attr( 'data-id' ),
219
+ target = $( '.table-help[data-id="' + id + '"]' );
220
  e.preventDefault();
221
 
222
  if ( id === undefined ) {
223
  return false;
224
  }
225
 
226
+ $( target ).toggleClass( 'show-help hide-help' );
227
+ $( '.table-help.show-help[data-id="' + id + '"] td p' ).animate(
228
+ { height: '3em', opacity: '100%', 'z-index': 0 },
229
+ 400
230
+ );
231
+ $( '.table-help.hide-help[data-id="' + id + '"] td p' ).animate(
232
+ { height: '0em', opacity: '0%', 'z-index': -1 },
233
+ 400
234
+ );
235
 
236
  return false;
237
  }
238
  };
239
 
240
+ // eslint-disable-next-line vars-on-top
241
  var self = BOLDGRID.SETTINGS.AutoUpdate;
242
+
243
  BOLDGRID.SETTINGS.AutoUpdate.init();
244
  } )( jQuery );
admin/js/boldgrid-backup-admin-settings.js CHANGED
@@ -282,6 +282,19 @@ BoldGrid.Settings = function( $ ) {
282
  }
283
  };
284
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  // Onload event listener.
286
  $( function() {
287
 
@@ -289,6 +302,9 @@ BoldGrid.Settings = function( $ ) {
289
  self.toggleNoBackupDays();
290
 
291
  self.toggleNoStorage();
 
 
 
292
  $body.on( 'click', '#storage_locations input[type="checkbox"]', self.toggleNoStorage );
293
 
294
  $backupDir.on( 'input', self.toggleMoveBackups );
@@ -306,6 +322,8 @@ BoldGrid.Settings = function( $ ) {
306
  $siteCheck = $( 'input[name="site_check"]' );
307
  self.toggleSiteCheck();
308
  $body.on( 'click', $siteCheck, self.toggleSiteCheck );
 
 
309
  } );
310
  };
311
 
282
  }
283
  };
284
 
285
+ self.toggleCompressionInfo = function() {
286
+ var isSystemZip = false,
287
+ compressorSelector = $( 'select[name="compressor"]' );
288
+
289
+ isSystemZip = 'system_zip' === $( compressorSelector ).val();
290
+
291
+ if ( isSystemZip ) {
292
+ $( '.compression-level' ).show();
293
+ } else {
294
+ $( '.compression-level' ).hide();
295
+ }
296
+ };
297
+
298
  // Onload event listener.
299
  $( function() {
300
 
302
  self.toggleNoBackupDays();
303
 
304
  self.toggleNoStorage();
305
+
306
+ self.toggleCompressionInfo();
307
+
308
  $body.on( 'click', '#storage_locations input[type="checkbox"]', self.toggleNoStorage );
309
 
310
  $backupDir.on( 'input', self.toggleMoveBackups );
322
  $siteCheck = $( 'input[name="site_check"]' );
323
  self.toggleSiteCheck();
324
  $body.on( 'click', $siteCheck, self.toggleSiteCheck );
325
+
326
+ $( 'select[name="compressor"]' ).change( self.toggleCompressionInfo );
327
  } );
328
  };
329
 
admin/js/boldgrid-backup-admin-table-includes.js CHANGED
@@ -16,7 +16,7 @@ BoldGrid.TableInclude = function( $ ) {
16
  'use strict';
17
 
18
  var self = this,
19
- $container = $( '#table_inclusion' ),
20
  $includeTables = $container.find( '.include-tables [type="checkbox"]' ),
21
  $type = $container.find( '[name="table_inclusion_type"]' ),
22
  $configContainer = $container.find( '#table_inclusion_config' ),
@@ -33,9 +33,11 @@ BoldGrid.TableInclude = function( $ ) {
33
  * @summary Action to take when the type (full / custom) has been changed.
34
  *
35
  * @since 1.6.0
 
 
36
  */
37
- self.onChangeType = function() {
38
- self.toggleConfig();
39
  };
40
 
41
  /**
@@ -55,13 +57,17 @@ BoldGrid.TableInclude = function( $ ) {
55
  * @summary Toggle the area that allows you to choose which tables to backup.
56
  *
57
  * @since 1.6.0
 
 
58
  */
59
- self.toggleConfig = function() {
60
- var type = $type.filter( ':checked' ).val();
 
 
61
 
62
  if ( 'full' === type ) {
63
  $configContainer.hide();
64
- } else {
65
  $configContainer.show();
66
  }
67
  };
@@ -79,6 +85,27 @@ BoldGrid.TableInclude = function( $ ) {
79
  return false;
80
  };
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  /**
83
  * @summary Toogle the status that tells the user if they're backing up all tables.
84
  *
@@ -101,9 +128,19 @@ BoldGrid.TableInclude = function( $ ) {
101
  $buttonNone.on( 'click', self.toggleNone );
102
 
103
  self.toggleStatus();
104
- self.toggleConfig();
105
-
106
- $type.on( 'change', self.onChangeType );
 
 
 
 
 
 
 
 
 
 
107
 
108
  $includeTables.on( 'change', self.toggleStatus );
109
  } );
16
  'use strict';
17
 
18
  var self = this,
19
+ $container = $( 'div#table_inclusion' ),
20
  $includeTables = $container.find( '.include-tables [type="checkbox"]' ),
21
  $type = $container.find( '[name="table_inclusion_type"]' ),
22
  $configContainer = $container.find( '#table_inclusion_config' ),
33
  * @summary Action to take when the type (full / custom) has been changed.
34
  *
35
  * @since 1.6.0
36
+ *
37
+ * @param typeInput The type input element clicked in the toggle.
38
  */
39
+ self.onChangeType = function( typeInput ) {
40
+ self.toggleConfig( typeInput );
41
  };
42
 
43
  /**
57
  * @summary Toggle the area that allows you to choose which tables to backup.
58
  *
59
  * @since 1.6.0
60
+ *
61
+ * @param typeInput The type input element clicked in the toggle.
62
  */
63
+ self.toggleConfig = function( typeInput ) {
64
+ var type = $( typeInput )
65
+ .filter( ':checked' )
66
+ .val();
67
 
68
  if ( 'full' === type ) {
69
  $configContainer.hide();
70
+ } else if ( 'custom' === type ) {
71
  $configContainer.show();
72
  }
73
  };
85
  return false;
86
  };
87
 
88
+ /**
89
+ * Update Values
90
+ *
91
+ * @since 1.6.0
92
+ *
93
+ * @param eventTarget The target of the triggering event.
94
+ * @param $container The set of container divs.
95
+ */
96
+ self.updateValues = function( eventTarget, $container ) {
97
+ var name = $( eventTarget ).attr( 'name' ),
98
+ value = $( eventTarget ).val(),
99
+ type = $( eventTarget ).attr( 'type' );
100
+ if ( 'radio' == type || 'checkbox' == type ) {
101
+ $container
102
+ .find( 'input[name="' + name + '"][value="' + value + '"]' )
103
+ .prop( 'checked', $( eventTarget ).prop( 'checked' ) );
104
+ } else {
105
+ $container.find( 'input[name=' + name + ']' ).val( value );
106
+ }
107
+ };
108
+
109
  /**
110
  * @summary Toogle the status that tells the user if they're backing up all tables.
111
  *
128
  $buttonNone.on( 'click', self.toggleNone );
129
 
130
  self.toggleStatus();
131
+ $type.each( function() {
132
+ self.toggleConfig( this );
133
+ } );
134
+
135
+ $type.on( 'change', function() {
136
+ self.onChangeType( this );
137
+ } );
138
+
139
+ $container.find( 'input' ).each( function() {
140
+ $( this ).on( 'input', function() {
141
+ self.updateValues( this, $container );
142
+ } );
143
+ } );
144
 
145
  $includeTables.on( 'change', self.toggleStatus );
146
  } );
admin/orphan/class-cleanup.php CHANGED
@@ -14,7 +14,7 @@
14
  namespace Boldgrid\Backup\Admin\Orphan;
15
 
16
  /**
17
- * Class: Finder
18
  *
19
  * @since 1.13.8
20
  */
14
  namespace Boldgrid\Backup\Admin\Orphan;
15
 
16
  /**
17
+ * Class: Cleanup
18
  *
19
  * @since 1.13.8
20
  */
admin/partials/archives/add-new.php CHANGED
@@ -40,6 +40,9 @@ $upload_info = sprintf(
40
  BOLDGRID_BACKUP_TITLE
41
  );
42
 
 
 
 
43
  $backup_id_notice = sprintf(
44
  // translators: 1: HTML tag, 2: Filename part, 3: Backup identifier, 4: File extension, 5: Archive filename, 6: Backup directory path, 7: Plugin title.
45
  __(
@@ -82,6 +85,7 @@ printf(
82
  <p><?php esc_html_e( 'Import from a download link:', 'boldgrid-backup' ); ?></p>
83
  <input type="text" name="url"
84
  placeholder="<?php esc_attr_e( 'Download URL address', 'boldgrid-backup' ); ?>" size="30" />
 
85
  <?php wp_nonce_field( 'boldgrid_backup_restore_archive', '_wpnonce_restore' ); ?>
86
  <input class="button" type="submit" value="<?php esc_attr_e( 'Upload', 'boldgrid-backup' ); ?>" />
87
  <span class='spinner'></span>
@@ -99,13 +103,20 @@ printf(
99
  <span class='spinner'></span>
100
  </form>
101
 
102
- <p id="file_too_large" class="hidden">
103
- <span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'The file you selected is too large.', 'boldgrid-bacup' ); ?>
104
- </p>
 
 
 
 
 
 
105
 
106
- <p id="bad_extension" class="hidden">
107
- <span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'Invalid file format. Please choose a .zip file.', 'boldgrid-bacup' ); ?>
108
- </p>
 
109
  </div>
110
 
111
  <p class="install-help">
40
  BOLDGRID_BACKUP_TITLE
41
  );
42
 
43
+ $core = apply_filters( 'boldgrid_backup_get_core', null );
44
+ $backup_identifier = $core->get_backup_identifier();
45
+
46
  $backup_id_notice = sprintf(
47
  // translators: 1: HTML tag, 2: Filename part, 3: Backup identifier, 4: File extension, 5: Archive filename, 6: Backup directory path, 7: Plugin title.
48
  __(
85
  <p><?php esc_html_e( 'Import from a download link:', 'boldgrid-backup' ); ?></p>
86
  <input type="text" name="url"
87
  placeholder="<?php esc_attr_e( 'Download URL address', 'boldgrid-backup' ); ?>" size="30" />
88
+ <?php wp_nonce_field( 'upload_archive_file' ); ?>
89
  <?php wp_nonce_field( 'boldgrid_backup_restore_archive', '_wpnonce_restore' ); ?>
90
  <input class="button" type="submit" value="<?php esc_attr_e( 'Upload', 'boldgrid-backup' ); ?>" />
91
  <span class='spinner'></span>
103
  <span class='spinner'></span>
104
  </form>
105
 
106
+ <div class="error_messages">
107
+
108
+ <p id="file_too_large" class="hidden">
109
+ <span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'The file you selected is too large.', 'boldgrid-bacup' ); ?>
110
+ </p>
111
+
112
+ <p id="bad_filename" class="hidden">
113
+ <span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'Invalid file name. Please choose a valid backup file.', 'boldgrid-bacup' ); ?>
114
+ </p>
115
 
116
+ <p id="bad_extension" class="hidden">
117
+ <span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'Invalid file format. Please choose a .zip file.', 'boldgrid-bacup' ); ?>
118
+ </p>
119
+ </div>
120
  </div>
121
 
122
  <p class="install-help">
admin/partials/boldgrid-backup-admin-archive-details.php CHANGED
@@ -384,36 +384,41 @@ if ( ! $this->core->archive->is_stored_locally() ) {
384
  $remote_meta_box = '';
385
  }
386
  }
 
 
 
 
 
 
 
 
387
 
388
  $page = sprintf(
389
  '
390
- <input type="hidden" id="filename" value="%1$s" />
391
- <div class="wrap">
392
- <h1 class="wp-heading-inline">%2$s</h1>
393
- %3$s
394
- <div id="poststuff">
395
- <div id="post-body" class="metabox-holder columns-2">
396
- <div id="post-body-content" style="position: relative">
397
- %4$s
398
- </div>
399
- <div id="postbox-container-1" class="postbox-container">
400
- <div id="side-sortables" class="meta-box-sortables ui-sortable" style="">
401
 
402
- %5$s
403
 
404
- %6$s
405
- </div>
406
  </div>
407
  </div>
408
  </div>
409
  </div>
410
  ',
411
  /* 1 */ $archive['filename'],
412
- /* 2 */ esc_html__( 'Backup Archive Details', 'boldgrid-backup' ),
413
- /* 3 */ require BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-nav.php',
414
- /* 4 */ $main_content,
415
- /* 5 */ $main_meta_box,
416
- /* 6 */ $remote_meta_box
417
  );
 
 
 
418
 
419
  echo $page; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
384
  $remote_meta_box = '';
385
  }
386
  }
387
+ $pre_page = sprintf(
388
+ '
389
+ <input type="hidden" id="filename" value="%1$s" />
390
+ %2$s
391
+ ',
392
+ /* 1 */ $archive['filename'],
393
+ /* 2 */ require BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-nav.php'
394
+ );
395
 
396
  $page = sprintf(
397
  '
398
+ <div id="poststuff">
399
+ <div id="post-body" class="metabox-holder columns-2">
400
+ <div id="post-body-content" style="position: relative">
401
+ %3$s
402
+ </div>
403
+ <div id="postbox-container-1" class="postbox-container">
404
+ <div id="side-sortables" class="meta-box-sortables ui-sortable" style="">
 
 
 
 
405
 
406
+ %4$s
407
 
408
+ %5$s
 
409
  </div>
410
  </div>
411
  </div>
412
  </div>
413
  ',
414
  /* 1 */ $archive['filename'],
415
+ /* 2 */ require BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-nav.php',
416
+ /* 3 */ $main_content,
417
+ /* 4 */ $main_meta_box,
418
+ /* 5 */ $remote_meta_box
 
419
  );
420
+ echo $pre_page; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
421
+
422
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
423
 
424
  echo $page; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
admin/partials/boldgrid-backup-admin-backup-button.php CHANGED
@@ -18,8 +18,7 @@
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">' .
@@ -35,7 +34,7 @@ $backup_button = '
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;">
18
 
19
  defined( 'WPINC' ) || die;
20
 
21
+ $page = empty( $_GET['page'] ) ? '' : $_GET['page'];
 
22
  $backup_button = '
23
  <div id="backup-site-now-section">
24
  <form action="#" id="backup-site-now-form" method="POST">' .
34
  * If the page is 'boldgrid-backup', then you're in the modal. The buttons will generally be the same,
35
  * but the formatting will be slightly different, hence the conditional below.
36
  */
37
+ if ( false !== strpos( $page, 'boldgrid-backup' ) ) {
38
  // The first div in the grid is needed so the grid fills out properly.
39
  $backup_button .= '
40
  <div style="display:grid; grid-gap:2em; grid-template-columns: 5fr 2fr;">
admin/partials/boldgrid-backup-admin-dashboard.php CHANGED
@@ -21,14 +21,9 @@ $nav = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-nav
21
  $dashboard = new \Boldgrid\Library\Library\Ui\Dashboard();
22
 
23
  $dashboard->cards = $this->get_cards();
24
- ?>
25
 
26
- <div class='wrap'>
27
- <h1><?php echo esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Dashboard', 'boldgrid-backup' ) ); ?></h1>
28
 
29
- <?php
30
- echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
31
 
32
- $dashboard->printCards();
33
- ?>
34
- </div>
21
  $dashboard = new \Boldgrid\Library\Library\Ui\Dashboard();
22
 
23
  $dashboard->cards = $this->get_cards();
 
24
 
25
+ echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
 
26
 
27
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
 
28
 
29
+ $dashboard->printCards();
 
 
admin/partials/boldgrid-backup-admin-home.php CHANGED
@@ -53,37 +53,42 @@ $in_modal = true;
53
  $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
54
  $in_modal = false;
55
 
56
- ?>
57
- <div class='wrap'>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- <h1 class="wp-heading-inline"><?php echo esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Backup Archives', 'boldgrid-backup' ) ); ?></h1>
60
-
61
- <div class="page-title-actions">
62
-
63
- <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary"><?php esc_html_e( 'Backup Site Now', 'boldgrid-backup' ); ?></a>
64
-
65
- <a class="page-title-action add-new"><?php esc_html_e( 'Upload Backup', 'boldgrid-backup' ); ?></a>
66
-
67
- </div>
68
-
69
- <?php
70
- echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
71
-
72
- require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
73
-
74
- echo $table; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
75
-
76
- echo $modal; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
77
-
78
- /*
79
- * @todo Revisit the usefulness of this notice in this location. Commented out @since 1.10.1
80
- * require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/note-pre-backup.php';
81
- */
82
 
83
- // Bombard the user with an ad before they've even made their first backup. I mean, don't.
84
- if ( ! empty( $this->archives_all->all ) ) {
85
- echo $ad; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
86
- }
87
- ?>
88
 
89
- </div>
 
 
 
53
  $modal = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-backup-modal.php';
54
  $in_modal = false;
55
 
56
+ echo '
57
+ <div class="wrap">
58
+ <div id="bglib-page-container" class="bgbkup-page-container">
59
+ <div id="bglib-page-top">
60
+ <div id="bglib-page-header" class="bglib-has-logo">
61
+ <h1>' . esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Backup Archives', 'boldgrid-backup' ) ) . '</h1>
62
+
63
+ <div class="page-title-actions">
64
+ <a href="#TB_inline?width=800&amp;height=600&amp;inlineId=backup_now_content" class="thickbox page-title-action page-title-action-primary">' .
65
+ esc_html__( 'Backup Site Now', 'boldgrid-backup' ) . '
66
+ </a>
67
+ <a class="page-title-action add-new">' . esc_html__( 'Upload Backup', 'boldgrid-backup' ) . '</a>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <div id="bglib-page-content">
72
+ <div class="wp-header-end"></div>';
73
+ echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
74
+
75
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
76
+
77
+ echo $table; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
78
+
79
+ echo $modal; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
80
 
81
+ /*
82
+ * @todo Revisit the usefulness of this notice in this location. Commented out @since 1.10.1
83
+ * require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/note-pre-backup.php';
84
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
+ // Bombard the user with an ad before they've even made their first backup. I mean, don't.
87
+ if ( ! empty( $this->archives_all->all ) ) {
88
+ echo $ad; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
89
+ }
 
90
 
91
+ echo '
92
+ </div>
93
+ </div>
94
+ </div>';
admin/partials/boldgrid-backup-admin-premium.php CHANGED
@@ -37,21 +37,18 @@ $premium_box = $this->core->config->is_premium_done ? '' : sprintf(
37
  </div>',
38
  /* 1 */ esc_html__( 'Total Upkeep Premium', 'boldgrid-backup' ),
39
  /* 2 */ $this->core->go_pro->get_premium_button( $this->core->go_pro->get_premium_url( 'bgbkup-premium-features' ) ),
40
- /* 3 */ esc_html__( 'Give your website data the protection it deserves with Total Upkeep Premium.
41
- Enjoy automated remote backups to Google Drive and Amazon S3, individual file restoration,
42
- the ability to restore from historical versions, premium support and more.', 'boldgrid-backup' )
 
 
 
43
  );
44
 
45
- ?>
46
 
47
- <div class='wrap'>
48
- <h1><?php echo esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Dashboard', 'boldgrid-backup' ) ); ?></h1>
49
 
50
- <?php
51
- echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
52
 
53
- echo $premium_box; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
54
-
55
- $dashboard->printCards();
56
- ?>
57
- </div>
37
  </div>',
38
  /* 1 */ esc_html__( 'Total Upkeep Premium', 'boldgrid-backup' ),
39
  /* 2 */ $this->core->go_pro->get_premium_button( $this->core->go_pro->get_premium_url( 'bgbkup-premium-features' ) ),
40
+ /* 3 */ esc_html__(
41
+ 'Give your website data the protection it deserves with Total Upkeep Premium.
42
+ Enjoy automated remote backups to Google Drive and Amazon S3, individual file restoration,
43
+ the ability to restore from historical versions, premium support and more.',
44
+ 'boldgrid-backup'
45
+ )
46
  );
47
 
48
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
49
 
50
+ echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
 
51
 
52
+ echo $premium_box; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
 
53
 
54
+ $dashboard->printCards();
 
 
 
 
admin/partials/boldgrid-backup-admin-settings.php CHANGED
@@ -16,14 +16,13 @@
16
 
17
  defined( 'WPINC' ) || die;
18
 
19
- $library_dir = \Boldgrid\Library\Library\Configs::get( 'libraryDir' );
20
  $nav = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-nav.php';
21
  $scheduler = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/scheduler.php';
22
  $compressor = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/compressor.php';
23
  $folders_include = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/folders.php';
24
  $db = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/db.php';
25
  $auto_backup = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/auto-backup.php';
26
- $auto_updates = include $library_dir . 'src/Library/Views/Connect/AutoUpdates.php';
27
  $notifications = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/notifications.php';
28
  $connect_key = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/connect-key.php';
29
  $site_check = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/site-check.php';
@@ -128,13 +127,10 @@ if ( empty( $settings ) ) {
128
 
129
  wp_nonce_field( 'boldgrid_backup_settings' );
130
 
131
- ?>
132
- <div class='wrap'>
133
- <h1><?php echo esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Backup and Restore Settings', 'boldgrid-backup' ) ); ?></h1>
134
-
135
- <?php
136
  echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
137
 
 
 
138
  /*
139
  * Print this text:
140
  *
@@ -142,34 +138,33 @@ wp_nonce_field( 'boldgrid_backup_settings' );
142
  * being afraid it will do something you cannot easily undo. We perform a Preflight Check to see
143
  * if the needed support is available on your web hosting account.
144
  */
145
- ?>
146
- <p>
147
- <?php
148
- printf(
149
- wp_kses(
150
- // translators: 1: Plugin title, 2:URL address.
151
- __(
152
- 'The %1$s Backup and Restore system allows you to upgrade your themes and plugins without being afraid it will do something you cannot easily undo. We perform a <a href="%2$s">Preflight Check</a> to see if the needed support is available on your web hosting account.',
153
- 'boldgrid-backup'
154
- ),
155
- [ 'a' => [ 'href' => [] ] ]
156
- ),
157
- esc_html( BOLDGRID_BACKUP_TITLE ),
158
- esc_url( admin_url( 'admin.php?page=boldgrid-backup-test' ) )
159
- );
160
 
161
- $show_section = ! empty( $_REQUEST['section'] ) ? sanitize_key( $_REQUEST['section'] ) : ''; // phpcs:ignore WordPress
162
- ?>
163
- </p>
 
 
 
 
 
 
 
 
 
 
 
164
 
165
- <hr />
 
 
166
 
167
- <form id='bgb-settings-form' method='post'>
168
- <?php
169
- echo $col_container; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
170
- wp_nonce_field( 'boldgrid-backup-settings', 'settings_auth' );
171
- ?>
172
- <input type="hidden" name="save_time" value="<?php echo esc_attr( time() ); ?>" />
173
- </form>
174
 
175
- </div>
 
 
 
 
 
 
16
 
17
  defined( 'WPINC' ) || die;
18
 
 
19
  $nav = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-nav.php';
20
  $scheduler = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/scheduler.php';
21
  $compressor = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/compressor.php';
22
  $folders_include = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/folders.php';
23
  $db = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/db.php';
24
  $auto_backup = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/auto-backup.php';
25
+ $auto_updates = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/auto-update.php';
26
  $notifications = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/notifications.php';
27
  $connect_key = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/connect-key.php';
28
  $site_check = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/site-check.php';
127
 
128
  wp_nonce_field( 'boldgrid_backup_settings' );
129
 
 
 
 
 
 
130
  echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
131
 
132
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
133
+
134
  /*
135
  * Print this text:
136
  *
138
  * being afraid it will do something you cannot easily undo. We perform a Preflight Check to see
139
  * if the needed support is available on your web hosting account.
140
  */
141
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
+ <p>
144
+ <?php
145
+ printf(
146
+ wp_kses(
147
+ // translators: 1: Plugin title, 2:URL address.
148
+ __(
149
+ 'The %1$s Backup and Restore system allows you to upgrade your themes and plugins without being afraid it will do something you cannot easily undo. We perform a <a href="%2$s">Preflight Check</a> to see if the needed support is available on your web hosting account.',
150
+ 'boldgrid-backup'
151
+ ),
152
+ [ 'a' => [ 'href' => [] ] ]
153
+ ),
154
+ esc_html( BOLDGRID_BACKUP_TITLE ),
155
+ esc_url( admin_url( 'admin.php?page=boldgrid-backup-test' ) )
156
+ );
157
 
158
+ $show_section = ! empty( $_REQUEST['section'] ) ? sanitize_key( $_REQUEST['section'] ) : ''; // phpcs:ignore WordPress
159
+ ?>
160
+ </p>
161
 
162
+ <hr />
 
 
 
 
 
 
163
 
164
+ <form id='bgb-settings-form' method='post'>
165
+ <?php
166
+ echo $col_container; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
167
+ wp_nonce_field( 'boldgrid-backup-settings', 'settings_auth' );
168
+ ?>
169
+ <input type="hidden" name="save_time" value="<?php echo esc_attr( time() ); ?>" />
170
+ </form>
admin/partials/boldgrid-backup-admin-support.php CHANGED
@@ -90,75 +90,70 @@ if ( ! empty( $reseller ) ) {
90
  $this->core->go_pro->get_premium_url( 'bgbkup-support' )
91
  );
92
  $premium_markup = '<div class="bgbkup-upgrade-message"><p>' .
93
- esc_html__( 'Upgrade to receive premium support from BoldGrid', 'boldgrid-backup' ) .
94
  '</p><p>' . $premium_button . '</p></div>';
95
  }
96
 
 
 
 
97
  ?>
98
 
99
- <div class='wrap'>
100
- <h1><?php esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Support', 'boldgrid-backup' ) ); ?></h1>
101
 
102
- <?php
103
- echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
104
- ?>
105
- <div class="bgbkup-support-page">
106
- <?php
107
- printf(
108
- '<div class="bgbkup-free-support bg-box">
109
  <div class="bg-box-top">
110
- %1$s
111
  </div>
112
  <div class="bg-box-bottom">
113
- <ul>
114
- <li>%2$s</li>
115
- <li>%3$s</li>
116
- <li>%4$s</li>
117
- </ul>
118
  </div>
119
- </div>',
120
- esc_html__( 'Free Support', 'boldgrid-backup' ),
121
- sprintf(
122
- wp_kses(
123
- /* translators: URL address for the WordPress.org boldgrid-backup plugin support forum. */
124
- __( 'Ask on <a href="%1$s" target="_blank">WordPress.org</a>', 'boldgrid-backup' ),
125
- $allowed_tags
126
- ),
127
- 'https://wordpress.org/support/plugin/boldgrid-backup/'
128
  ),
129
- sprintf(
130
- wp_kses(
131
- /* translators: URL address for the WordPress.org boldgrid-backup plugin support forum. */
132
- __( 'Browse our <a href="%1$s" target="_blank">Support Guides</a>', 'boldgrid-backup' ),
133
- $allowed_tags
134
- ),
135
- 'https://www.boldgrid.com/support/boldgrid-backup/'
136
  ),
137
- sprintf(
138
- wp_kses(
139
- /* translators: URL address for the WordPress.org boldgrid-backup plugin support forum. */
140
- __( 'Join <a href="%1$s" target="_blank">Team Orange User Group</a> on Facebook', 'boldgrid-backup' ),
141
- $allowed_tags
142
- ),
143
- 'https://www.facebook.com/groups/BGTeamOrange'
144
- )
145
- );
 
 
146
 
147
- printf(
148
- '<div class="bgbkup-premium-support bg-box">
149
  <div class="bg-box-top">
150
- %1$s
151
  </div>
152
  <div class="bg-box-bottom">
153
- %2$s
154
  </div>
155
- </div>',
156
- esc_html__( 'Premium Support', 'boldgrid-backup' ),
157
- $premium_markup // phpcs:ignore WordPress.XSS.EscapeOutput
158
- );
159
- ?>
160
- </div>
161
- <?php
162
- echo '<hr />';
163
- ?>
164
  </div>
90
  $this->core->go_pro->get_premium_url( 'bgbkup-support' )
91
  );
92
  $premium_markup = '<div class="bgbkup-upgrade-message"><p>' .
93
+ esc_html__( 'Upgrade to receive Premium support from BoldGrid', 'boldgrid-backup' ) .
94
  '</p><p>' . $premium_button . '</p></div>';
95
  }
96
 
97
+ echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
98
+
99
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
100
  ?>
101
 
102
+ <div class="bgbkup-support-page">
 
103
 
104
+ <?php
105
+ printf(
106
+ '<div class="bgbkup-free-support bg-box">
 
 
 
 
107
  <div class="bg-box-top">
108
+ %1$s
109
  </div>
110
  <div class="bg-box-bottom">
111
+ <ul>
112
+ <li>%2$s</li>
113
+ <li>%3$s</li>
114
+ <li>%4$s</li>
115
+ </ul>
116
  </div>
117
+ </div>',
118
+ esc_html__( 'Free Support', 'boldgrid-backup' ),
119
+ sprintf(
120
+ wp_kses(
121
+ /* translators: URL address for the WordPress.org boldgrid-backup plugin support forum. */
122
+ __( 'Ask on <a href="%1$s" target="_blank">WordPress.org</a>', 'boldgrid-backup' ),
123
+ $allowed_tags
 
 
124
  ),
125
+ 'https://wordpress.org/support/plugin/boldgrid-backup/'
126
+ ),
127
+ sprintf(
128
+ wp_kses(
129
+ /* translators: URL address for the WordPress.org boldgrid-backup plugin support forum. */
130
+ __( 'Browse our <a href="%1$s" target="_blank">Support Guides</a>', 'boldgrid-backup' ),
131
+ $allowed_tags
132
  ),
133
+ 'https://www.boldgrid.com/support/boldgrid-backup/'
134
+ ),
135
+ sprintf(
136
+ wp_kses(
137
+ /* translators: URL address for the WordPress.org boldgrid-backup plugin support forum. */
138
+ __( 'Join <a href="%1$s" target="_blank">Team Orange User Group</a> on Facebook', 'boldgrid-backup' ),
139
+ $allowed_tags
140
+ ),
141
+ 'https://www.facebook.com/groups/BGTeamOrange'
142
+ )
143
+ );
144
 
145
+ printf(
146
+ '<div class="bgbkup-premium-support bg-box">
147
  <div class="bg-box-top">
148
+ %1$s
149
  </div>
150
  <div class="bg-box-bottom">
151
+ %2$s
152
  </div>
153
+ </div>',
154
+ esc_html__( 'Premium Support', 'boldgrid-backup' ),
155
+ $premium_markup // phpcs:ignore WordPress.XSS.EscapeOutput
156
+ );
157
+ ?>
158
+
 
 
 
159
  </div>
admin/partials/boldgrid-backup-admin-test.php CHANGED
@@ -442,18 +442,17 @@ foreach ( $tests as $test ) {
442
  $table .= '</table>';
443
 
444
  ?>
445
- <div class="functionality-test-section wrap">
446
 
447
  <?php
448
- printf( '<h1>%1$s</h1>', esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Preflight Check', 'boldgrid-backup' ) ) );
449
-
450
  $nav = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-nav.php';
451
  echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
452
 
 
 
453
  echo $fail_tips; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
454
 
455
  echo $table; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
456
-
457
  ?>
458
 
459
  </div>
442
  $table .= '</table>';
443
 
444
  ?>
445
+ <div class="functionality-test-section">
446
 
447
  <?php
 
 
448
  $nav = include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-nav.php';
449
  echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
450
 
451
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
452
+
453
  echo $fail_tips; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
454
 
455
  echo $table; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
 
456
  ?>
457
 
458
  </div>
admin/partials/boldgrid-backup-admin-tools.php CHANGED
@@ -56,12 +56,8 @@ $sections = apply_filters( 'boldgrid_backup_tools_sections', $sections );
56
  */
57
  $col_container = apply_filters( 'Boldgrid\Library\Ui\render_col_container', $sections );
58
 
59
- ?>
60
 
61
- <div class='wrap'>
62
- <h1><?php echo esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Tools', 'boldgrid-backup' ) ); ?></h1>
63
 
64
- <?php
65
- echo $nav . $col_container; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
66
- ?>
67
- </div>
56
  */
57
  $col_container = apply_filters( 'Boldgrid\Library\Ui\render_col_container', $sections );
58
 
59
+ echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
60
 
61
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
 
62
 
63
+ echo $col_container; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
 
 
 
admin/partials/boldgrid-backup-admin-transfers.php CHANGED
@@ -66,9 +66,11 @@ $sections = apply_filters( 'boldgrid_backup_transfers_sections', $sections );
66
  $col_container = apply_filters( 'Boldgrid\Library\Ui\render_col_container', $sections );
67
  ?>
68
 
69
- <div class='wrap'>
70
- <h1><?php echo esc_html( BOLDGRID_BACKUP_TITLE . ' ' . __( 'Transfers', 'boldgrid-backup' ) ); ?></h1>
71
- <div class="bgbkup-transfers-page">
72
- <?php echo $nav . $col_container; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
73
- </div>
 
 
74
  </div>
66
  $col_container = apply_filters( 'Boldgrid\Library\Ui\render_col_container', $sections );
67
  ?>
68
 
69
+ <div class="bgbkup-transfers-page">
70
+ <?php
71
+ echo $nav; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
72
+ require BOLDGRID_BACKUP_PATH . '/admin/partials/archives/add-new.php';
73
+ echo $col_container; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
74
+
75
+ ?>
76
  </div>
admin/partials/settings/auto-backup.php CHANGED
@@ -17,37 +17,30 @@ defined( 'WPINC' ) || die;
17
 
18
  ob_start();
19
  ?>
 
 
 
 
 
 
 
 
 
 
 
20
  <div class="bg-box">
21
  <div class="bg-box-top">
22
- <?php esc_html_e( 'Automation', 'boldgrid-backup' ); ?>
23
- <span class='dashicons dashicons-editor-help' data-id='automation'></span>
24
  </div>
25
  <div class="bg-box-bottom">
26
- <p class='help' data-id='automation'>
27
- <?php
28
- printf(
29
- // translators: 1: HTML anchor open tag, 2: HTML anchor close tag.
30
- esc_html__(
31
- 'Auto Backup Before Update: Automatically perform a backup before WordPress updates. When this feature is enabled, a full backup will be made during the %1$spre_auto_update action%2$s.',
32
- 'boldgrid-backup'
33
- ),
34
- '<a target="_blank" href="https://developer.wordpress.org/reference/hooks/pre_auto_update/">',
35
- '</a>'
36
- );
37
- ?>
38
  </p>
39
- <p class='help' data-id='automation'>
40
- <?php
41
- esc_html_e(
42
- 'Auto Rollback: If something goes wrong while performing WordPress updates, automatically restore the site using a backup made before updating WordPress. This feature does not apply to auto updates.',
43
- 'boldgrid-backup'
44
- );
45
- ?>
46
- </p>
47
- <table class="form-table">
48
  <tr>
49
  <th>
50
  <?php esc_html_e( 'Auto Backup Before Update', 'boldgrid-backup' ); ?>
 
51
  </th>
52
  <td>
53
  <input id='auto-backup-enabled' type='radio' name='auto_backup' value='1'
@@ -57,8 +50,8 @@ ob_start();
57
  echo ' checked';
58
  }
59
  ?>
60
- /> <?php esc_html_e( 'Enabled (Recommended)', 'boldgrid-backup' ); ?> &nbsp; <input
61
- id='auto-backup-disabled' type='radio' name='auto_backup' value='0'
62
  <?php
63
  if ( isset( $settings['auto_backup'] ) && 0 === $settings['auto_backup'] ) {
64
  echo ' checked';
@@ -67,8 +60,26 @@ ob_start();
67
  /> <?php esc_html_e( 'Disabled', 'boldgrid-backup' ); ?>
68
  </td>
69
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  <tr>
71
- <th><?php esc_html_e( 'Auto Rollback', 'boldgrid-backup' ); ?></th>
 
72
  <td>
73
  <input id='auto-rollback-enabled' type='radio' name='auto_rollback' value='1'
74
  <?php
@@ -77,9 +88,8 @@ ob_start();
77
  echo ' checked';
78
  }
79
  ?>
80
- /> <?php esc_html_e( 'Enabled', 'boldgrid-backup' ); ?> &nbsp; <input
81
- id='auto-rollback-disabled' type='radio' name='auto_rollback'
82
- value='0'
83
  <?php
84
  if ( isset( $settings['auto_rollback'] ) && 0 === $settings['auto_rollback'] ) {
85
  echo ' checked';
@@ -88,7 +98,19 @@ ob_start();
88
  /> <?php esc_html_e( 'Disabled', 'boldgrid-backup' ); ?>
89
  </td>
90
  </tr>
91
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
92
  </div>
93
  </div>
94
  <?php
17
 
18
  ob_start();
19
  ?>
20
+ <h1>
21
+ <?php
22
+ esc_html_e( 'Auto Updates', 'boldgrid-backup' );
23
+ ?>
24
+ </h1>
25
+ <p>
26
+ <?php esc_html_e( 'WordPress has the ability to auto update both itself and your plugins and themes. Keeping your software up to date is very important, and this automation helps you more easily do that.', 'boldgrid-backup' ); ?>
27
+ </p>
28
+ <p>
29
+ <?php esc_html_e( 'Total Upkeep adds on top of this functionality by giving you the ability to have backups made before any auto update, and by making it easier to control what is updated and when.', 'boldgrid-backup' ); ?>
30
+ </p>
31
  <div class="bg-box">
32
  <div class="bg-box-top">
33
+ <?php esc_html_e( 'Backup Before Updating', 'boldgrid-backup' ); ?>
 
34
  </div>
35
  <div class="bg-box-bottom">
36
+ <p>
37
+ <?php esc_html_e( 'Sometimes updating your software can break your site. It\'s recommended to make a backup before updates, so in the event something goes wrong, you can reasily restore your site.', 'boldgrid-backup' ); ?>
 
 
 
 
 
 
 
 
 
 
38
  </p>
39
+ <table class="form-table div-table-body auto-update-settings"><tbody class="div-table-body">
 
 
 
 
 
 
 
 
40
  <tr>
41
  <th>
42
  <?php esc_html_e( 'Auto Backup Before Update', 'boldgrid-backup' ); ?>
43
+ <span class='dashicons dashicons-editor-help' data-id='auto-backup'></span>
44
  </th>
45
  <td>
46
  <input id='auto-backup-enabled' type='radio' name='auto_backup' value='1'
50
  echo ' checked';
51
  }
52
  ?>
53
+ /> <?php esc_html_e( 'Enabled (Recommended)', 'boldgrid-backup' ); ?> &nbsp;
54
+ <input id='auto-backup-disabled' type='radio' name='auto_backup' value='0'
55
  <?php
56
  if ( isset( $settings['auto_backup'] ) && 0 === $settings['auto_backup'] ) {
57
  echo ' checked';
60
  /> <?php esc_html_e( 'Disabled', 'boldgrid-backup' ); ?>
61
  </td>
62
  </tr>
63
+ <tr class='table-help hide-help' data-id='auto-backup'>
64
+ <td colspan='4'>
65
+ <p>
66
+ <?php
67
+ printf(
68
+ // translators: 1: HTML anchor open tag, 2: HTML anchor close tag.
69
+ esc_html__(
70
+ 'Auto Backup Before Update: Automatically perform a backup before WordPress updates. When this feature is enabled, a full backup will be made during the %1$spre_auto_update action%2$s.',
71
+ 'boldgrid-backup'
72
+ ),
73
+ '<a target="_blank" href="https://developer.wordpress.org/reference/hooks/pre_auto_update/">',
74
+ '</a>'
75
+ );
76
+ ?>
77
+ </p>
78
+ </td>
79
+ </tr>
80
  <tr>
81
+ <th><?php esc_html_e( 'Auto Rollback', 'boldgrid-backup' ); ?><span class='dashicons dashicons-editor-help' data-id='auto-rollback'></span>
82
+ </th>
83
  <td>
84
  <input id='auto-rollback-enabled' type='radio' name='auto_rollback' value='1'
85
  <?php
88
  echo ' checked';
89
  }
90
  ?>
91
+ /> <?php esc_html_e( 'Enabled', 'boldgrid-backup' ); ?> &nbsp;
92
+ <input id='auto-rollback-disabled' type='radio' name='auto_rollback' value='0'
 
93
  <?php
94
  if ( isset( $settings['auto_rollback'] ) && 0 === $settings['auto_rollback'] ) {
95
  echo ' checked';
98
  /> <?php esc_html_e( 'Disabled', 'boldgrid-backup' ); ?>
99
  </td>
100
  </tr>
101
+ <tr class='table-help hide-help' data-id='auto-rollback'>
102
+ <td colspan='4'>
103
+ <p>
104
+ <?php
105
+ esc_html_e(
106
+ 'Auto Rollback: If something goes wrong while performing WordPress updates, automatically restore the site using a backup made before updating WordPress. This feature does not apply to auto updates.',
107
+ 'boldgrid-backup'
108
+ );
109
+ ?>
110
+ </p>
111
+ </td>
112
+ </tr>
113
+ </tbody></table>
114
  </div>
115
  </div>
116
  <?php
admin/partials/settings/auto-update.php ADDED
@@ -0,0 +1,458 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //phpcs:ignore WordPress.Files.FileName
2
+ /**
3
+ * File: auto-update.php
4
+ *
5
+ * Show "Auto Update" section on settings page.
6
+ *
7
+ * @since 1.14.0
8
+ * @package Boldgrid_Backup
9
+ * @subpackage Boldgrid_Backup/admin/partials/settings
10
+ * @copyright BoldGrid
11
+ * @version $Id$
12
+ * @link https://www.boldgrid.com
13
+ * @author BoldGrid <support@boldgrid.com>
14
+ */
15
+
16
+ // Get BoldGrid settings.
17
+ \Boldgrid\Library\Util\Option::init();
18
+ $boldgrid_backup_settings = get_site_option( 'boldgrid_backup_settings', array() );
19
+ $default_auto_update_settings = array(
20
+ 'plugins' => array(),
21
+ 'themes' => array(),
22
+ 'wpcore' => array(),
23
+ );
24
+ $auto_update_settings = isset( $boldgrid_backup_settings['auto_update'] ) ? $boldgrid_backup_settings['auto_update'] : $default_auto_update_settings;
25
+ $translations = array(
26
+ 'active' => esc_attr__( 'Active', 'boldgrid-backup' ),
27
+ 'inactive' => esc_attr__( 'Inactive', 'boldgrid-backup' ),
28
+ 'parent' => esc_attr__( 'Parent', 'boldgrid-backup' ),
29
+ );
30
+
31
+ /**
32
+ * Get Heading markup.
33
+ *
34
+ * @since 1.14.0
35
+ *
36
+ * @param array $boldgrid_backup_settings Boldgrid Backup Settings.
37
+ * @param array $auto_update_settings Auto Update Settings from DB.
38
+ * @return string
39
+ */
40
+ function get_heading_markup( $boldgrid_backup_settings, $auto_update_settings ) {
41
+ if ( empty( $auto_update_settings ) || 0 === $boldgrid_backup_settings['auto_backup'] ) {
42
+ $bbs_link_open = '';
43
+ $bbs_link_close = '';
44
+
45
+ if ( empty( $_GET['page'] ) || 'boldgrid-backup-settings' !== $_GET['page'] ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
46
+ $bbs_link_open = '<a href="' . admin_url( 'admin.php?page=boldgrid-backup-settings&section=section_auto_rollback' ) . '">';
47
+ $bbs_link_close = '</a>';
48
+ }
49
+
50
+ return '
51
+ <div><p>' .
52
+ sprintf(
53
+ // translators: 1: HTML anchor open tag, 2: HTML anchor close tag, 3: HTML em open tag, 4: HTML em close tag, 5: Plugin Title.
54
+ esc_html__(
55
+ 'You have %3$sAuto Backup Before Update%4$s disabled in the %1$s%5$s Backup and Restore Settings%2$s. Please consider enabling the setting.',
56
+ 'boldgrid-backup'
57
+ ),
58
+ $bbs_link_open,
59
+ $bbs_link_close,
60
+ '<em>',
61
+ '</em>',
62
+ 'Total Upkeep'
63
+ ) .
64
+ '</p></div>' . PHP_EOL;
65
+ }
66
+ }
67
+
68
+ /**
69
+ * Get Premium markup.
70
+ *
71
+ * @since 1.14.0
72
+ *
73
+ * @return string
74
+ */
75
+ function get_premium_markup() {
76
+ $core = apply_filters( 'boldgrid_backup_get_core', null );
77
+ $premium_url = $core->go_pro->get_premium_url( 'bgbkup-settings-auto-update' );
78
+
79
+ $premium_box = sprintf(
80
+ '
81
+ <div class="bg-box-bottom premium">
82
+ <p>
83
+ %1$s
84
+ %2$s
85
+ </p>
86
+ </div>',
87
+ /* 1 */ $core->go_pro->get_premium_button( $premium_url ),
88
+ /* 2 */ __( 'Upgrade to Premium for the option to configure a delay on updates!', 'boldgrid-backup' )
89
+ );
90
+
91
+ return $premium_box;
92
+ }
93
+
94
+ /**
95
+ * Get WP Core Update markup.
96
+ *
97
+ * @since 1.14.0
98
+ *
99
+ * @param array $auto_update_settings Auto Update Settings from DB.
100
+ * @return string
101
+ */
102
+ function get_wpcore_update_markup( $auto_update_settings ) {
103
+ $wpcore_auto_updates = ! empty( $auto_update_settings['wpcore'] ) ?
104
+ $auto_update_settings['wpcore'] : array();
105
+ $wpcore_major = ! empty( $wpcore_auto_updates['major'] );
106
+ $wpcore_minor = ! isset( $wpcore_auto_updates['minor'] ) || $wpcore_auto_updates['minor'];
107
+ $wpcore_dev = ! empty( $wpcore_auto_updates['dev'] );
108
+ $wpcore_translation = ! empty( $wpcore_auto_updates['translation'] );
109
+ $wpcore_all = ! empty( $wpcore_auto_updates['all'] ) ||
110
+ ( $wpcore_major && $wpcore_minor && $wpcore_dev && $wpcore_translation );
111
+
112
+ $wpcore_update_markup = '
113
+ <div class="bg-box">
114
+ <div class="bg-box-top">
115
+ ' . esc_html__( 'Configure what is Auto Updated', 'boldgrid-backup' ) . '
116
+ </div>
117
+ <div class="bg-box-bottom">
118
+ <table class="form-table div-table-body auto-update-settings">
119
+ <tbody class="div-table-body">
120
+ <tr>
121
+ <th>' . esc_html__( 'WordPress Core', 'boldgrid-backup' ) .
122
+ '<span class="dashicons dashicons-editor-help" data-id="wpcore-updates"></span>
123
+ </th>
124
+ <td></td>
125
+ <td>' . esc_html__( 'All Update Types', 'boldgrid-backup' ) . '</td>
126
+ <td class="td-toggle">
127
+ <div class="toggle toggle-light toggle-group wpcore-toggle"
128
+ data-wpcore="all"
129
+ data-toggle-on="' . ( $wpcore_all ? 'true' : 'false' ) . '">
130
+ </div>
131
+ <input type="hidden" name="auto_update[wpcore][all]"
132
+ value="' . ( $wpcore_all ? 1 : 0 ) . '" />
133
+ </td>
134
+ </tr>
135
+ <tr class="table-help hide-help" data-id="wpcore-updates">
136
+ <td colspan=4>
137
+ <p>
138
+ ' . esc_html__( 'Select Which WordPress Core updates you wish to have automatically updated', 'boldgrid-backup' ) . '.
139
+ </p>
140
+ </td>
141
+ </tr>
142
+ <tr>
143
+ <td colspan=2></td>
144
+ <td>' . esc_html__( 'Major Updates', 'boldgrid-backup' ) . '</td>
145
+ <td class="td-toggle">
146
+ <div class="toggle toggle-light wpcore-toggle"
147
+ data-wpcore="major"
148
+ data-toggle-on="' . ( $wpcore_major ? 'true' : 'false' ) . '">
149
+ </div>
150
+ <input type="hidden" name="auto_update[wpcore][major]"
151
+ value="' . ( $wpcore_major ? 1 : 0 ) . '" />
152
+ </td>
153
+ </tr>
154
+ <tr>
155
+ <td colspan=2></td>
156
+ <td>' . esc_html__( 'Minor Updates', 'boldgrid-backup' ) . '</td>
157
+ <td class="td-toggle">
158
+ <div class="toggle toggle-light wpcore-toggle"
159
+ data-wpcore="minor"
160
+ data-toggle-on="' . ( $wpcore_minor ? 'true' : 'false' ) . '">
161
+ </div>
162
+ <input type="hidden" name="auto_update[wpcore][minor]"
163
+ value="' . ( $wpcore_minor ? 1 : 0 ) . '" />
164
+ </td>
165
+ </tr>
166
+ <tr>
167
+ <td colspan=2></td>
168
+ <td>' . esc_html__( 'Development Updates', 'boldgrid-backup' ) . '</td>
169
+ <td class="td-toggle">
170
+ <div class="toggle toggle-light wpcore-toggle"
171
+ data-wpcore="dev"
172
+ data-toggle-on="' . ( $wpcore_dev ? 'true' : 'false' ) . '">
173
+ </div>
174
+ <input type="hidden" name="auto_update[wpcore][dev]"
175
+ value="' . ( $wpcore_dev ? 1 : 0 ) . '" />
176
+ </td>
177
+ </tr>
178
+ <tr>
179
+ <td colspan=2 />
180
+ <td>' . esc_html__( 'Translation Updates', 'boldgrid-backup' ) . '</td>
181
+ <td class="td-toggle">
182
+ <div class="toggle toggle-light wpcore-toggle"
183
+ data-wpcore="translation"
184
+ data-toggle-on="' . ( $wpcore_translation ? 'true' : 'false' ) . '">
185
+ </div>
186
+ <input type="hidden" name="auto_update[wpcore][translation]"
187
+ value="' . ( $wpcore_translation ? 1 : 0 ) . '" />
188
+ </td>
189
+ </tr>
190
+ <tr>
191
+ <td colspan=4 class="bglib-divider"></td>
192
+ </tr>
193
+ </tbody>';
194
+ return $wpcore_update_markup;
195
+ }
196
+
197
+ /**
198
+ * Get Plugins Update Markup.
199
+ *
200
+ * @since 1.14.0
201
+ *
202
+ * @param array $auto_update_settings Auto Update Settings from DB.
203
+ * @param array $translations Translations.
204
+ * @return string
205
+ */
206
+ function get_plugins_update_markup( $auto_update_settings, $translations ) {
207
+ $plugins_default = ! empty( $auto_update_settings['plugins']['default'] );
208
+ $plugin_auto_update = (bool) \Boldgrid\Library\Util\Option::get( 'plugin_autoupdate' );
209
+ $plugins = get_plugins();
210
+ $plugins_active = array();
211
+ $plugins_inactive = array();
212
+
213
+ foreach ( $plugins as $slug => $plugin_data ) {
214
+ if ( is_plugin_inactive( $slug ) ) {
215
+ $plugins_inactive[ $slug ] = $plugin_data;
216
+ } else {
217
+ $plugins_active[ $slug ] = $plugin_data;
218
+ }
219
+ }
220
+
221
+ $statuses = array(
222
+ 'Active',
223
+ 'Inactive',
224
+ );
225
+
226
+ $plugins_update_markup = '<tbody class="div-table-body">
227
+ <tr>
228
+ <th>' . esc_html__( 'Plugins', 'boldgrid-backup' ) .
229
+ '<span class="dashicons dashicons-editor-help" data-id="plugin-updates"></span>
230
+ </th>
231
+ </tr>
232
+ <tr class="table-help hide-help" data-id="plugin-updates">
233
+ <td colspan=4>
234
+ <p>' . esc_html__( 'Choose which Plugins you wish to update automatically', 'boldgrid-backup' ) . '</p>
235
+ </td>
236
+ </tr>
237
+ <tr>
238
+ <td>' . esc_html__( 'Default For New Plugins', 'boldgrid-backup' ) . '</td>
239
+ <td>
240
+ <div class="toggle toggle-light right" id="toggle-default-plugins"
241
+ data-toggle-on="' . ( $plugins_default ? 'true' : 'false' ) . '"></div>
242
+ <input type="hidden" name="auto_update[plugins][default]" value="' . ( $plugins_default ? 1 : 0 ) . '" />
243
+ </td>
244
+ <td>' . esc_html__( 'All Plugins', 'boldgrid-backup' ) . '</td>
245
+ <td class="td-toggle">
246
+ <div class="toggle toggle-light toggle-group" id="toggle-plugins"></div>
247
+ </td>
248
+ </tr>';
249
+
250
+ foreach ( $statuses as $status ) {
251
+ $status_lower = strtolower( $status );
252
+
253
+ $plugins_update_markup .= '<tr>
254
+ <td colspan=2 />
255
+ <td id="' . $status_lower . '-plugin-header">
256
+ <h3>' . $translations[ $status_lower ] . '</h3>
257
+ </td>
258
+ <td>
259
+ <span class="dashicons-arrow-down-alt2 dashicons bglib-collapsible-control" data-target=".' .
260
+ $status_lower . '-collapsible" />
261
+ </td>
262
+ </tr>';
263
+
264
+ foreach ( ${ 'plugins_' . $status_lower } as $slug => $plugin_data ) {
265
+ // Enable if global setting is on, individual settings is on, or not set and default is on.
266
+ $toggle = $plugin_auto_update || ! empty( $auto_update_settings['plugins'][ $slug ] ) ||
267
+ ( ! isset( $auto_update_settings['plugins'][ $slug ] ) && $plugins_default );
268
+ $plugin = \Boldgrid\Library\Library\Plugin\Factory::create( $slug );
269
+
270
+ $plugin->setUpdateData();
271
+
272
+ $third_party = $plugin->updateData->thirdParty; //phpcs:ignore WordPress.NamingConventions.ValidVariableName
273
+
274
+ if ( true === $third_party ) {
275
+ $extra_info_icon = '<span class="help-icon dashicons dashicons-warning yellow" data-id="' . $slug . '-extra-info"></span>';
276
+ } else {
277
+ $extra_info_icon = '';
278
+ }
279
+ $plugins_update_markup .= '
280
+ <tr id="' . $slug . '-row" class="' . $status_lower . '-collapsible bglib-collapsible bglib-collapsible-open">
281
+ <td colspan=2 />
282
+ <td>' . $plugin_data['Name'] . $extra_info_icon . '</td>
283
+ <td class="td-toggle">
284
+ <div class="td-slider toggle toggle-light plugin-toggle"
285
+ data-plugin="' . $slug . '"
286
+ data-toggle-on="' . ( $toggle ? 'true' : 'false' ) . '">
287
+ </div>
288
+ <input type="hidden" name="auto_update[plugins][' . $slug . ']"
289
+ value="' . ( $toggle ? 1 : 0 ) . '" />
290
+ </td>
291
+ </tr>';
292
+
293
+ if ( true === $third_party ) {
294
+ $plugins_update_markup .= '
295
+ <tr class="table-help hide-help" data-id="' . $slug . '-extra-info">
296
+ <td colspan=2></td>
297
+ <td colspan=1>
298
+ <p style="position:relative;z-index=-1">' . esc_html__(
299
+ 'This plugin was not installed through the WordPress Plugins Repository. If auto updates are enabled, they will take place immediately.',
300
+ 'boldrid-backup'
301
+ ) . ' </p>
302
+ </td>
303
+ <td></td>
304
+ </tr>';
305
+ }
306
+ }
307
+ }
308
+
309
+ $plugins_update_markup .= '<tr><td colspan=4 class="bglib-divider"></td></tr></tbody>';
310
+ return $plugins_update_markup;
311
+ }
312
+
313
+ /**
314
+ * Get Themes Update Markup.
315
+ *
316
+ * @since 1.14.0
317
+ *
318
+ * @param array $auto_update_settings Auto Update Settings from DB.
319
+ * @param array $translations Translations.
320
+ * @return string
321
+ */
322
+ function get_themes_update_markup( $auto_update_settings, $translations ) {
323
+ $themes_default = ! empty( $auto_update_settings['themes']['default'] );
324
+ $active_stylesheet = get_option( 'stylesheet' );
325
+ $active_template = get_option( 'template' );
326
+ $themes = wp_get_themes();
327
+ $themes_active = array();
328
+ $themes_inactive = array();
329
+
330
+ foreach ( $themes as $stylesheet => $theme ) {
331
+ $is_active = $stylesheet === $active_stylesheet;
332
+ $is_parent = ( $active_stylesheet !== $active_template && $stylesheet === $active_template );
333
+
334
+ if ( $is_active || $is_parent ) {
335
+ $themes_active[ $stylesheet ] = $theme;
336
+ } else {
337
+ $themes_inactive[ $stylesheet ] = $theme;
338
+ }
339
+ }
340
+
341
+ $theme_statuses = array(
342
+ 'Active',
343
+ 'Inactive',
344
+ );
345
+
346
+ $themes_update_markup = '<tbody class="div-table-body">
347
+ <tr>
348
+ <th>' . esc_html__( 'Themes', 'boldgrid-backup' ) .
349
+ '<span class="dashicons dashicons-editor-help" data-id="theme-updates"></span>
350
+ </th>
351
+ </tr>
352
+ <tr class="table-help hide-help" data-id="theme-updates">
353
+ <td colspan=4>
354
+ <p>' . esc_html__( 'Choose which Themes you wish to update automatically ', 'boldgrid-backup' ) . '</p>
355
+ </td>
356
+ </tr>
357
+ <tr>
358
+ <td>' . esc_html__( 'Default For New Themes', 'boldgrid-backup' ) . '</td>
359
+ <td>
360
+ <div class="toggle toggle-light right" id="toggle-default-themes"
361
+ data-toggle-on="' . ( $themes_default ? 'true' : 'false' ) . '"></div>
362
+ <input type="hidden" name="auto_update[themes][default]" value="' . ( $themes_default ? 1 : 0 ) . '" />
363
+ </div>
364
+ </td>
365
+ <td>' . esc_html__( 'All Themes', 'boldgrid-backup' ) . '</td>
366
+ <td class="td-toggle">
367
+ <div class="toggle toggle-light toggle-group" id="toggle-themes"></div>
368
+ </td>
369
+ </tr>';
370
+
371
+ foreach ( $theme_statuses as $status ) {
372
+ $status_lower = strtolower( $status );
373
+
374
+ $themes_update_markup .= '<tr>
375
+ <td colspan=2 />
376
+ <td id="' . $status_lower . '-theme-header">
377
+ <h3>' . $translations[ $status_lower ] . '</h3>
378
+ </td>
379
+ <td>
380
+ <span class="dashicons-arrow-down-alt2 dashicons bglib-collapsible-control" data-target=".' .
381
+ $status_lower . '-collapsible" />
382
+ </td>
383
+ </tr>';
384
+
385
+ foreach ( ${ 'themes_' . $status_lower } as $stylesheet => $theme ) {
386
+ $is_parent = ( $active_stylesheet !== $active_template && $stylesheet === $active_template );
387
+
388
+ // Enable if global setting is on, individual settings is on, or not set and default is on.
389
+ $toggle = ! empty( $auto_update_settings['themes'][ $stylesheet ] ) ||
390
+ ( ! isset( $auto_update_settings['themes'][ $stylesheet ] ) && $themes_default );
391
+
392
+ $themes_update_markup .= '
393
+ <tr id="' . $stylesheet . '-row" class="' . $status_lower . '-collapsible bglib-collapsible bglib-collapsible-open">
394
+ <td colspan=2 />
395
+ <td><div class="td-slider">' .
396
+ $theme->get( 'Name' ) .
397
+ ( $is_parent ? ' (' . $translations['parent'] . ')' : '' ) .
398
+ '</td>
399
+ <td class="td-toggle">
400
+ <div class="td-slider toggle toggle-light theme-toggle"
401
+ data-stylesheet="' . $stylesheet . '"
402
+ data-toggle-on="' . ( $toggle ? 'true' : 'false' ) . '">
403
+ </div>
404
+ <input type="hidden" name="auto_update[themes][' . $stylesheet . ']"
405
+ value="' . ( $toggle ? 1 : 0 ) . '" />
406
+ </td>
407
+ </tr>';
408
+ }
409
+ }
410
+
411
+ $themes_update_markup .= '</tbody>';
412
+
413
+ return $themes_update_markup;
414
+ }
415
+
416
+ $auto_update_markup = ' ' . get_heading_markup( $boldgrid_backup_settings, $auto_update_settings );
417
+
418
+ $auto_update_markup .= '
419
+ <div class="bg-box">
420
+ <div class="bg-box-top">' .
421
+ esc_html__( 'Configure When Auto Updates Occur', 'boldgrid-backup' ) . '
422
+ </div>
423
+ <div class="bg-box-bottom">';
424
+
425
+ // If the 'boldgrid_backup_premium_timely_auto_updates' filter does not exist, then the $auto_update_settings array will be returned.
426
+ $timely_update_markup = apply_filters( 'boldgrid_backup_premium_timely_auto_updates', $auto_update_settings );
427
+
428
+ /**
429
+ * This was changed to be sure that there are no errors / issues if Total Upkeep is updated, but Total Upkeep Premium is not.
430
+ * If Premium IS active and the above filter returns the $auto_update_settings array instead of the markup, then the user will need
431
+ * to update to the newest version. If the Premium Plugin is active and the markup is returned above, then the timely update markup is
432
+ * displayed. Lastly, if the premium plugin is not active at all, then the premium upsell is displayed.
433
+ */
434
+ if ( $this->core->config->is_premium_done && $timely_update_markup === $auto_update_settings ) {
435
+ $auto_update_markup .= sprintf(
436
+ '<div class="bg-box-bottom premium">
437
+ <p>
438
+ <a class="button" href="%1$s">%2$s</a>
439
+ %3$s
440
+ </p>
441
+ </div></div></div>',
442
+ /* 1 */ admin_url( 'update-core.php' ),
443
+ /* 2 */ __( 'View Updates', 'boldgrid-backup' ),
444
+ /* 3 */ __( 'Upgrade to the newest version of Premium for the option to configure a delay on updates!', 'boldgrid-backup' )
445
+ );
446
+ } elseif ( $this->core->config->is_premium_done ) {
447
+ $auto_update_markup .= $timely_update_markup;
448
+ } else {
449
+ $auto_update_markup .= get_premium_markup( $auto_update_settings );
450
+ $auto_update_markup .= '</div></div>';
451
+ }
452
+
453
+ $auto_update_markup .= get_wpcore_update_markup( $auto_update_settings, $translations ) .
454
+ get_plugins_update_markup( $auto_update_settings, $translations ) .
455
+ get_themes_update_markup( $auto_update_settings, $translations ) .
456
+ '</table></div></div>';
457
+
458
+ return $auto_update_markup;
admin/partials/settings/backup-security.php CHANGED
@@ -71,10 +71,15 @@ if ( ! $is_premium ) {
71
  <?php
72
  $get_premium_url = 'https://www.boldgrid.com/update-backup?source=bgbkup-settings-security';
73
  printf(
74
- // translators: 1: Get premium button/link, 2: Premium plugin title.
75
- esc_html__( '%1$sA %2$s license is required for encryption features.', 'boldgrid-backup' ),
 
 
 
 
76
  $this->core->go_pro->get_premium_button( $get_premium_url, __( 'Get Premium', 'boldgrid-backup' ) ), // phpcs:ignore
77
- esc_html( BOLDGRID_BACKUP_TITLE . ' Premium' )
 
78
  );
79
  ?>
80
  </div>
71
  <?php
72
  $get_premium_url = 'https://www.boldgrid.com/update-backup?source=bgbkup-settings-security';
73
  printf(
74
+ // translators: 1: Get premium button/link, 2: Opening <a> tag, 3: Closing </a> tag.
75
+ esc_html__(
76
+ '%1$sDatabase Encryption provides another level of protection by preventing unauthorized access to your database backup archives.
77
+ %2$sLearn More%3$s',
78
+ 'boldgrid-backup'
79
+ ),
80
  $this->core->go_pro->get_premium_button( $get_premium_url, __( 'Get Premium', 'boldgrid-backup' ) ), // phpcs:ignore
81
+ '<a target="_blank" href="https://www.boldgrid.com/support/total-upkeep/encrypt-database-backups/?source=encrypt-database-backups">',
82
+ '</a>'
83
  );
84
  ?>
85
  </div>
admin/partials/settings/compressor.php CHANGED
@@ -53,6 +53,29 @@ foreach ( $compressors as $compressor ) {
53
  }
54
  $select_compressor .= '</select>';
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  ob_start();
57
  ?>
58
  <div class="bg-box">
@@ -67,6 +90,9 @@ ob_start();
67
  <?php
68
  esc_html_e( 'These are advanced settings. You do not need to configure this setting.', 'boldgrid-backup' );
69
  ?>
 
 
 
70
  </p>
71
 
72
  <table class="form-table">
@@ -76,6 +102,12 @@ ob_start();
76
  <?php echo $select_compressor; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
77
  </td>
78
  </tr>
 
 
 
 
 
 
79
  </table>
80
  </div>
81
  </div>
53
  }
54
  $select_compressor .= '</select>';
55
 
56
+ // Create the Compression level options.
57
+ $default_compression_level = (int) $core->compressors->get_object( 'system_zip' )->default_compression_level;
58
+ $selected_compression_level = isset( $settings['compression_level'] ) ? (int) $settings['compression_level'] : $default_compression_level;
59
+ $select_compression_level = '<select name="compression_level">';
60
+ foreach ( range( 0, 9 ) as $level ) {
61
+ $is_default = $default_compression_level === $level;
62
+ $is_selected = $selected_compression_level === $level;
63
+
64
+ $select_compression_level .= sprintf(
65
+ '<option value="%1$s" %2$s>%3$s</option>',
66
+ esc_attr( $level ),
67
+ $is_selected ? 'selected="selected"' : '',
68
+ $is_default ? $default_compression_level . ' ( ' . __( 'default' ) . ' )' : esc_html( $level )
69
+ );
70
+ }
71
+
72
+ $compression_level_info = __(
73
+ 'The compression level defines how compacted the files will be within the backup file.
74
+ Higher compression levels result in smaller backup files, but take longer to create and use more system resources.
75
+ If you are having trouble getting backups to complete successfully, try using a lower compression level.',
76
+ 'boldgrid-backup'
77
+ );
78
+
79
  ob_start();
80
  ?>
81
  <div class="bg-box">
90
  <?php
91
  esc_html_e( 'These are advanced settings. You do not need to configure this setting.', 'boldgrid-backup' );
92
  ?>
93
+ <span class="compression-level hidden">
94
+ <br/><?php echo $compression_level_info; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
95
+ </span>
96
  </p>
97
 
98
  <table class="form-table">
102
  <?php echo $select_compressor; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
103
  </td>
104
  </tr>
105
+ <tr class="compression-level hidden">
106
+ <th><?php esc_html_e( 'Compression Level', 'boldgrid-backup' ); ?>:</th>
107
+ <td>
108
+ <?php echo $select_compression_level; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
109
+ </td>
110
+ </tr>
111
  </table>
112
  </div>
113
  </div>
admin/partials/settings/storage.php CHANGED
@@ -70,7 +70,7 @@ $premium_box = $this->core->config->is_premium_done ? '' : sprintf(
70
  </div>',
71
  /* 1 */ $premium_inputs,
72
  /* 2 */ $this->core->go_pro->get_premium_button( $premium_url ),
73
- /* 3 */ __( 'Upgrade to premium for more Storage Locations!', 'boldgrid-backup' )
74
  );
75
 
76
  ?>
70
  </div>',
71
  /* 1 */ $premium_inputs,
72
  /* 2 */ $this->core->go_pro->get_premium_button( $premium_url ),
73
+ /* 3 */ __( 'Upgrade to Premium for more Storage Locations!', 'boldgrid-backup' )
74
  );
75
 
76
  ?>
admin/partials/tools/local-remote.php CHANGED
@@ -209,19 +209,15 @@ if ( ! $this->core->config->is_premium_done ) {
209
  printf(
210
  '
211
  <div class="bg-box-bottom premium wp-clearfix">
212
- %1$s
213
- %2$s
214
  </div>',
215
- $this->core->go_pro->get_premium_button( $premium_url, esc_html__( 'Unlock Feature', 'boldgrid-backup' ) ), // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
216
- esc_html(
217
- sprintf(
218
- // translators: 1: Plugin title.
219
- __(
220
- 'Changed a file and now your site isn’t working properly? With %1$s, you can browse through past backup archives and restore individual files with a single click.',
221
- 'boldgrid-backup'
222
- ),
223
- BOLDGRID_BACKUP_TITLE . ' Premium'
224
- )
225
  )
226
  );
227
  }
209
  printf(
210
  '
211
  <div class="bg-box-bottom premium wp-clearfix">
212
+ <p>%2$s</p>
213
+ <p>%1$s</p>
214
  </div>',
215
+ $this->core->go_pro->get_premium_button( $premium_url, esc_html__( 'Unlock Feature', 'boldgrid-backup' ) ), // phpcs:ignore WordPress.XSS.EscapeOutput, WordPress.Security.EscapeOutput
216
+ sprintf(
217
+ // translators: 1 Markup showing a "Google Drive" logo, 2 Markup showing an "Amazon S3" logo.
218
+ esc_html__( 'Catastrophic data loss can happen at any time. Storing your archives in multiple secure locations will keep your website data safe and put your mind at ease. Upgrade now to enable automated remote backups to %1$s and %2$s', 'boldgrid-backup' ),
219
+ '<span class="bgbkup-remote-logo bgbkup-gdrive-logo" title="Google Drive"></span>',
220
+ '<span class="bgbkup-remote-logo amazon-s3-logo" title="Amazon S3"></span>'
 
 
 
 
221
  )
222
  );
223
  }
admin/partials/transfers/destination.php CHANGED
@@ -54,7 +54,7 @@ switch ( true ) {
54
  // Has a premium license and the premium plugin installed, but not activated.
55
  $encrypt_message = sprintf(
56
  // translators: 1: HTML anchor link open tag, 2: HTML anchor closing tag, 3: Premium plugin title.
57
- __( '%3$s is not active and required for encryption features. Please go to the %1$sPlugins%2$s page to activate it.', 'boldgrid-backup' ),
58
  '<a href="' .
59
  esc_url( admin_url( 'plugins.php?s=Boldgrid%20Backup%20Premium&plugin_status=inactive' ) ) .
60
  '">',
@@ -73,7 +73,9 @@ return sprintf(
73
  <h2>%1$s</h2>
74
  <p>%2$s</p>
75
  <p>%3$s</p>
76
- <p>%9$s</p>
 
 
77
  <div id="url-import-section" class="wp-upload-form">
78
  %4$s <input type="text" name="url" placeholder="%5$s" size="30" />
79
  <input class="button" type="submit" value="%6$s" />
54
  // Has a premium license and the premium plugin installed, but not activated.
55
  $encrypt_message = sprintf(
56
  // translators: 1: HTML anchor link open tag, 2: HTML anchor closing tag, 3: Premium plugin title.
57
+ __( '%3$s is not active. %3$s is required for encryption features. Please go to the %1$sPlugins%2$s page to activate it.', 'boldgrid-backup' ),
58
  '<a href="' .
59
  esc_url( admin_url( 'plugins.php?s=Boldgrid%20Backup%20Premium&plugin_status=inactive' ) ) .
60
  '">',
73
  <h2>%1$s</h2>
74
  <p>%2$s</p>
75
  <p>%3$s</p>
76
+ <div class="bg-box-bottom premium" style="margin:15px 0;">
77
+ <p style="margin-bottom:0">%9$s</p>
78
+ </div>
79
  <div id="url-import-section" class="wp-upload-form">
80
  %4$s <input type="text" name="url" placeholder="%5$s" size="30" />
81
  <input class="button" type="submit" value="%6$s" />
boldgrid-backup.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Total Upkeep
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. Total Upkeep is the backup solution you need.
19
- * Version: 1.13.12
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
16
  * Plugin Name: Total Upkeep
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. Total Upkeep is the backup solution you need.
19
+ * Version: 1.14.0
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
coverage.xml CHANGED
@@ -1,27 +1,30 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1594058134">
3
- <project timestamp="1594058134">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
7
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
8
  </class>
9
- <line num="29" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
10
- <line num="30" type="stmt" count="1"/>
11
- <line num="32" type="stmt" count="1"/>
12
- <line num="34" type="stmt" count="1"/>
13
- <line num="36" type="stmt" count="1"/>
14
- <line num="37" type="stmt" count="1"/>
15
- <line num="38" type="stmt" count="1"/>
16
- <line num="39" type="stmt" count="1"/>
17
- <line num="41" type="stmt" count="1"/>
18
- <line num="43" type="stmt" count="1"/>
19
- <line num="44" type="stmt" count="1"/>
20
- <line num="45" type="stmt" count="1"/>
21
- <line num="46" type="stmt" count="1"/>
22
- <line num="48" type="stmt" count="1"/>
23
- <line num="49" type="stmt" count="1"/>
24
- <metrics loc="50" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
 
 
 
25
  </file>
26
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-backups.php">
27
  <class name="Backups" namespace="Boldgrid\Backup\Admin\Card">
@@ -44,166 +47,192 @@
44
  </file>
45
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-database-encryption.php">
46
  <class name="Database_Encryption" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Database">
47
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
48
  </class>
49
- <line num="29" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
50
- <line num="30" type="stmt" count="1"/>
51
- <line num="32" type="stmt" count="1"/>
52
- <line num="34" type="stmt" count="1"/>
53
- <line num="36" type="stmt" count="1"/>
54
- <line num="37" type="stmt" count="1"/>
55
- <line num="38" type="stmt" count="1"/>
56
- <line num="39" type="stmt" count="1"/>
57
- <line num="41" type="stmt" count="1"/>
58
- <line num="43" type="stmt" count="1"/>
59
- <line num="44" type="stmt" count="1"/>
60
- <line num="45" type="stmt" count="1"/>
61
- <line num="46" type="stmt" count="1"/>
62
- <line num="48" type="stmt" count="1"/>
63
- <line num="49" type="stmt" count="1"/>
64
- <metrics loc="50" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
 
 
 
65
  </file>
66
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-dream-objects.php">
67
  <class name="Dream_Objects" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Dream">
68
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
69
- </class>
70
- <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
71
- <line num="31" type="stmt" count="1"/>
72
- <line num="33" type="stmt" count="1"/>
73
- <line num="35" type="stmt" count="1"/>
74
- <line num="37" type="stmt" count="1"/>
75
- <line num="38" type="stmt" count="1"/>
76
- <line num="39" type="stmt" count="1"/>
77
- <line num="40" type="stmt" count="1"/>
78
- <line num="42" type="stmt" count="1"/>
79
- <line num="44" type="stmt" count="1"/>
80
- <line num="45" type="stmt" count="1"/>
81
- <line num="46" type="stmt" count="1"/>
82
- <line num="47" type="stmt" count="1"/>
83
- <line num="49" type="stmt" count="1"/>
84
- <line num="50" type="stmt" count="1"/>
85
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
 
 
 
86
  </file>
87
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-find-modified-files.php">
88
  <class name="Find_Modified_Files" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Find.Modified">
89
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="9" elements="10" coveredelements="10"/>
90
  </class>
91
- <line num="27" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
92
- <line num="28" type="stmt" count="1"/>
93
- <line num="30" type="stmt" count="1"/>
94
- <line num="32" type="stmt" count="1"/>
95
- <line num="34" type="stmt" count="1"/>
96
- <line num="36" type="stmt" count="1"/>
97
- <line num="37" type="stmt" count="1"/>
98
- <line num="38" type="stmt" count="1"/>
99
- <line num="39" type="stmt" count="1"/>
100
- <line num="40" type="stmt" count="1"/>
101
- <metrics loc="41" ncloc="20" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="9" elements="10" coveredelements="10"/>
 
 
 
 
 
102
  </file>
103
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-google-drive.php">
104
  <class name="Google_Drive" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Google">
105
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
106
- </class>
107
- <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
108
- <line num="31" type="stmt" count="1"/>
109
- <line num="33" type="stmt" count="1"/>
110
- <line num="35" type="stmt" count="1"/>
111
- <line num="37" type="stmt" count="1"/>
112
- <line num="39" type="stmt" count="1"/>
113
- <line num="40" type="stmt" count="1"/>
114
- <line num="41" type="stmt" count="1"/>
115
- <line num="42" type="stmt" count="1"/>
116
- <line num="44" type="stmt" count="1"/>
117
- <line num="46" type="stmt" count="1"/>
118
- <line num="47" type="stmt" count="1"/>
119
- <line num="48" type="stmt" count="1"/>
120
- <line num="49" type="stmt" count="1"/>
121
- <line num="50" type="stmt" count="1"/>
122
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
 
 
 
123
  </file>
124
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-historical-versions.php">
125
  <class name="Historical_Versions" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Historical">
126
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
127
- </class>
128
- <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
129
- <line num="31" type="stmt" count="1"/>
130
- <line num="33" type="stmt" count="1"/>
131
- <line num="35" type="stmt" count="1"/>
132
- <line num="37" type="stmt" count="1"/>
133
- <line num="39" type="stmt" count="1"/>
134
- <line num="40" type="stmt" count="1"/>
135
- <line num="41" type="stmt" count="1"/>
136
- <line num="42" type="stmt" count="1"/>
137
- <line num="44" type="stmt" count="1"/>
138
- <line num="46" type="stmt" count="1"/>
139
- <line num="47" type="stmt" count="1"/>
140
- <line num="48" type="stmt" count="1"/>
141
- <line num="49" type="stmt" count="1"/>
142
- <line num="50" type="stmt" count="1"/>
143
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
 
 
 
144
  </file>
145
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-history.php">
146
  <class name="History" namespace="Boldgrid\Backup\Admin\Card">
147
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
148
- </class>
149
- <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
150
- <line num="31" type="stmt" count="1"/>
151
- <line num="33" type="stmt" count="1"/>
152
- <line num="35" type="stmt" count="1"/>
153
- <line num="37" type="stmt" count="1"/>
154
- <line num="39" type="stmt" count="1"/>
155
- <line num="40" type="stmt" count="1"/>
156
- <line num="41" type="stmt" count="1"/>
157
- <line num="42" type="stmt" count="1"/>
158
- <line num="44" type="stmt" count="1"/>
159
- <line num="46" type="stmt" count="1"/>
160
- <line num="47" type="stmt" count="1"/>
161
- <line num="48" type="stmt" count="1"/>
162
- <line num="49" type="stmt" count="1"/>
163
- <line num="50" type="stmt" count="1"/>
164
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
 
 
 
165
  </file>
166
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-one-click-restoration.php">
167
  <class name="One_Click_Restoration" namespace="Boldgrid\Backup\Admin\Card" fullPackage="One.Click">
168
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
169
- </class>
170
- <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
171
- <line num="31" type="stmt" count="1"/>
172
- <line num="33" type="stmt" count="1"/>
173
- <line num="35" type="stmt" count="1"/>
174
- <line num="37" type="stmt" count="1"/>
175
- <line num="39" type="stmt" count="1"/>
176
- <line num="40" type="stmt" count="1"/>
177
- <line num="41" type="stmt" count="1"/>
178
- <line num="42" type="stmt" count="1"/>
179
- <line num="44" type="stmt" count="1"/>
180
- <line num="46" type="stmt" count="1"/>
181
- <line num="47" type="stmt" count="1"/>
182
- <line num="48" type="stmt" count="1"/>
183
- <line num="49" type="stmt" count="1"/>
184
- <line num="50" type="stmt" count="1"/>
185
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
 
 
 
186
  </file>
187
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-plugin-editor-tools.php">
188
  <class name="Plugin_Editor_Tools" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Plugin.Editor">
189
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
190
- </class>
191
- <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
192
- <line num="31" type="stmt" count="1"/>
193
- <line num="33" type="stmt" count="1"/>
194
- <line num="35" type="stmt" count="1"/>
195
- <line num="37" type="stmt" count="1"/>
196
- <line num="39" type="stmt" count="1"/>
197
- <line num="40" type="stmt" count="1"/>
198
- <line num="41" type="stmt" count="1"/>
199
- <line num="42" type="stmt" count="1"/>
200
- <line num="44" type="stmt" count="1"/>
201
- <line num="46" type="stmt" count="1"/>
202
- <line num="47" type="stmt" count="1"/>
203
- <line num="48" type="stmt" count="1"/>
204
- <line num="49" type="stmt" count="1"/>
205
- <line num="50" type="stmt" count="1"/>
206
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
 
 
 
207
  </file>
208
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-premium.php">
209
  <class name="Premium" namespace="Boldgrid\Backup\Admin\Card">
@@ -241,22 +270,47 @@
241
  <line num="69" type="stmt" count="0"/>
242
  <metrics loc="70" ncloc="39" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="0" elements="30" coveredelements="0"/>
243
  </file>
244
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-updates.php">
245
- <class name="Updates" namespace="Boldgrid\Backup\Admin\Card">
246
- <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="0" elements="11" coveredelements="0"/>
247
  </class>
248
  <line num="29" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
249
  <line num="30" type="stmt" count="0"/>
250
  <line num="32" type="stmt" count="0"/>
251
  <line num="34" type="stmt" count="0"/>
252
  <line num="36" type="stmt" count="0"/>
 
253
  <line num="38" type="stmt" count="0"/>
254
  <line num="39" type="stmt" count="0"/>
255
- <line num="40" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  <line num="41" type="stmt" count="0"/>
257
  <line num="42" type="stmt" count="0"/>
258
  <line num="43" type="stmt" count="0"/>
259
- <metrics loc="44" ncloc="19" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="0" elements="11" coveredelements="0"/>
 
 
 
 
 
 
260
  </file>
261
  </package>
262
  <package name="Boldgrid\Backup\Admin\Card\Feature">
@@ -513,6 +567,32 @@
513
  <line num="33" type="stmt" count="0"/>
514
  <metrics loc="34" ncloc="13" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="0" elements="5" coveredelements="0"/>
515
  </file>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
516
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/feature/class-versions.php">
517
  <class name="Versions" namespace="Boldgrid\Backup\Admin\Card\Feature">
518
  <metrics complexity="4" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="0" elements="31" coveredelements="0"/>
@@ -555,9 +635,9 @@
555
  <class name="Boldgrid_Backup_Admin_Archive_Actions" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
556
  <metrics complexity="15" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="107" coveredstatements="2" elements="114" coveredelements="3"/>
557
  </class>
558
- <line num="38" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
559
- <line num="39" type="stmt" count="20"/>
560
- <line num="40" type="stmt" count="20"/>
561
  <line num="47" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
562
  <line num="48" type="stmt" count="0"/>
563
  <line num="49" type="stmt" count="0"/>
@@ -673,177 +753,180 @@
673
  </file>
674
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-browser.php">
675
  <class name="Boldgrid_Backup_Admin_Archive_Browser" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
676
- <metrics complexity="40" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="153" coveredstatements="2" elements="160" coveredelements="3"/>
677
  </class>
678
- <line num="43" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
679
- <line num="44" type="stmt" count="20"/>
680
- <line num="45" type="stmt" count="20"/>
681
- <line num="55" type="method" name="authorize" visibility="public" complexity="3" crap="12" count="0"/>
682
  <line num="56" type="stmt" count="0"/>
683
  <line num="57" type="stmt" count="0"/>
684
  <line num="58" type="stmt" count="0"/>
685
- <line num="60" type="stmt" count="0"/>
686
  <line num="61" type="stmt" count="0"/>
687
  <line num="62" type="stmt" count="0"/>
688
  <line num="63" type="stmt" count="0"/>
689
- <line num="79" type="method" name="get_sql_details" visibility="public" complexity="10" crap="110" count="0"/>
690
- <line num="80" type="stmt" count="0"/>
691
- <line num="81" type="stmt" count="0"/>
692
  <line num="82" type="stmt" count="0"/>
693
  <line num="83" type="stmt" count="0"/>
694
  <line num="84" type="stmt" count="0"/>
695
- <line num="97" type="stmt" count="0"/>
696
- <line num="98" type="stmt" count="0"/>
 
697
  <line num="100" type="stmt" count="0"/>
698
- <line num="103" type="stmt" count="0"/>
699
- <line num="104" type="stmt" count="0"/>
700
  <line num="105" type="stmt" count="0"/>
 
701
  <line num="107" type="stmt" count="0"/>
702
- <line num="110" type="stmt" count="0"/>
703
  <line num="112" type="stmt" count="0"/>
704
- <line num="113" type="stmt" count="0"/>
705
  <line num="114" type="stmt" count="0"/>
 
706
  <line num="116" type="stmt" count="0"/>
707
  <line num="118" type="stmt" count="0"/>
708
  <line num="120" type="stmt" count="0"/>
709
  <line num="122" type="stmt" count="0"/>
710
- <line num="123" type="stmt" count="0"/>
711
  <line num="124" type="stmt" count="0"/>
712
  <line num="125" type="stmt" count="0"/>
713
  <line num="126" type="stmt" count="0"/>
714
  <line num="127" type="stmt" count="0"/>
715
  <line num="128" type="stmt" count="0"/>
 
716
  <line num="130" type="stmt" count="0"/>
717
  <line num="132" type="stmt" count="0"/>
718
  <line num="134" type="stmt" count="0"/>
719
  <line num="136" type="stmt" count="0"/>
720
- <line num="137" type="stmt" count="0"/>
721
  <line num="138" type="stmt" count="0"/>
722
  <line num="139" type="stmt" count="0"/>
723
  <line num="140" type="stmt" count="0"/>
724
  <line num="141" type="stmt" count="0"/>
725
  <line num="142" type="stmt" count="0"/>
 
726
  <line num="144" type="stmt" count="0"/>
727
- <line num="145" type="stmt" count="0"/>
728
- <line num="148" type="stmt" count="0"/>
729
  <line num="150" type="stmt" count="0"/>
730
  <line num="152" type="stmt" count="0"/>
731
- <line num="153" type="stmt" count="0"/>
732
  <line num="155" type="stmt" count="0"/>
733
- <line num="156" type="stmt" count="0"/>
734
  <line num="157" type="stmt" count="0"/>
 
735
  <line num="159" type="stmt" count="0"/>
736
  <line num="161" type="stmt" count="0"/>
737
- <line num="162" type="stmt" count="0"/>
738
- <line num="167" type="stmt" count="0"/>
739
- <line num="168" type="stmt" count="0"/>
740
  <line num="169" type="stmt" count="0"/>
741
  <line num="170" type="stmt" count="0"/>
742
  <line num="171" type="stmt" count="0"/>
743
  <line num="172" type="stmt" count="0"/>
744
- <line num="175" type="stmt" count="0"/>
 
745
  <line num="177" type="stmt" count="0"/>
746
- <line num="178" type="stmt" count="0"/>
747
  <line num="180" type="stmt" count="0"/>
748
- <line num="181" type="stmt" count="0"/>
749
  <line num="183" type="stmt" count="0"/>
750
- <line num="184" type="stmt" count="0"/>
751
  <line num="185" type="stmt" count="0"/>
752
  <line num="186" type="stmt" count="0"/>
 
753
  <line num="188" type="stmt" count="0"/>
754
- <line num="198" type="method" name="wp_ajax_browse_archive" visibility="public" complexity="8" crap="72" count="0"/>
755
- <line num="199" type="stmt" count="0"/>
756
  <line num="201" type="stmt" count="0"/>
757
  <line num="203" type="stmt" count="0"/>
758
- <line num="204" type="stmt" count="0"/>
759
  <line num="205" type="stmt" count="0"/>
760
  <line num="206" type="stmt" count="0"/>
761
  <line num="207" type="stmt" count="0"/>
 
762
  <line num="209" type="stmt" count="0"/>
763
  <line num="211" type="stmt" count="0"/>
764
- <line num="219" type="stmt" count="0"/>
765
- <line num="220" type="stmt" count="0"/>
766
  <line num="221" type="stmt" count="0"/>
 
767
  <line num="223" type="stmt" count="0"/>
768
  <line num="225" type="stmt" count="0"/>
769
  <line num="227" type="stmt" count="0"/>
770
  <line num="229" type="stmt" count="0"/>
771
- <line num="230" type="stmt" count="0"/>
772
  <line num="232" type="stmt" count="0"/>
773
- <line num="245" type="stmt" count="0"/>
774
- <line num="246" type="stmt" count="0"/>
775
  <line num="247" type="stmt" count="0"/>
776
  <line num="248" type="stmt" count="0"/>
777
  <line num="249" type="stmt" count="0"/>
 
778
  <line num="251" type="stmt" count="0"/>
779
- <line num="252" type="stmt" count="0"/>
780
  <line num="253" type="stmt" count="0"/>
781
- <line num="256" type="stmt" count="0"/>
782
- <line num="257" type="stmt" count="0"/>
 
783
  <line num="259" type="stmt" count="0"/>
784
  <line num="261" type="stmt" count="0"/>
785
  <line num="263" type="stmt" count="0"/>
786
- <line num="264" type="stmt" count="0"/>
787
- <line num="274" type="method" name="wp_ajax_file_actions" visibility="public" complexity="5" crap="30" count="0"/>
788
- <line num="275" type="stmt" count="0"/>
789
  <line num="277" type="stmt" count="0"/>
790
- <line num="278" type="stmt" count="0"/>
791
  <line num="279" type="stmt" count="0"/>
792
  <line num="280" type="stmt" count="0"/>
793
  <line num="281" type="stmt" count="0"/>
794
  <line num="282" type="stmt" count="0"/>
795
- <line num="285" type="stmt" count="0"/>
 
796
  <line num="287" type="stmt" count="0"/>
797
- <line num="288" type="stmt" count="0"/>
798
  <line num="289" type="stmt" count="0"/>
799
- <line num="299" type="stmt" count="0"/>
 
800
  <line num="301" type="stmt" count="0"/>
801
- <line num="302" type="stmt" count="0"/>
802
- <line num="312" type="method" name="wp_ajax_restore_db" visibility="public" complexity="6" crap="42" count="0"/>
803
- <line num="313" type="stmt" count="0"/>
804
  <line num="315" type="stmt" count="0"/>
805
- <line num="316" type="stmt" count="0"/>
806
  <line num="317" type="stmt" count="0"/>
807
  <line num="318" type="stmt" count="0"/>
808
  <line num="319" type="stmt" count="0"/>
809
  <line num="320" type="stmt" count="0"/>
 
810
  <line num="322" type="stmt" count="0"/>
811
- <line num="323" type="stmt" count="0"/>
812
  <line num="325" type="stmt" count="0"/>
813
- <line num="326" type="stmt" count="0"/>
814
  <line num="328" type="stmt" count="0"/>
815
- <line num="329" type="stmt" count="0"/>
816
  <line num="330" type="stmt" count="0"/>
817
  <line num="331" type="stmt" count="0"/>
818
  <line num="332" type="stmt" count="0"/>
 
819
  <line num="334" type="stmt" count="0"/>
820
  <line num="335" type="stmt" count="0"/>
821
  <line num="336" type="stmt" count="0"/>
822
  <line num="338" type="stmt" count="0"/>
823
- <line num="348" type="method" name="wp_ajax_view_db" visibility="public" complexity="7" crap="56" count="0"/>
824
- <line num="349" type="stmt" count="0"/>
825
- <line num="351" type="stmt" count="0"/>
826
- <line num="352" type="stmt" count="0"/>
827
  <line num="353" type="stmt" count="0"/>
828
- <line num="354" type="stmt" count="0"/>
829
  <line num="355" type="stmt" count="0"/>
830
  <line num="356" type="stmt" count="0"/>
 
831
  <line num="358" type="stmt" count="0"/>
 
832
  <line num="360" type="stmt" count="0"/>
833
- <line num="361" type="stmt" count="0"/>
834
  <line num="362" type="stmt" count="0"/>
835
- <line num="363" type="stmt" count="0"/>
836
  <line num="364" type="stmt" count="0"/>
 
837
  <line num="366" type="stmt" count="0"/>
838
- <metrics loc="367" ncloc="239" classes="1" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="153" coveredstatements="2" elements="160" coveredelements="3"/>
 
 
 
839
  </file>
840
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-details.php">
841
  <class name="Boldgrid_Backup_Admin_Archive_Details" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
842
- <metrics complexity="20" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="86" coveredstatements="2" elements="92" coveredelements="3"/>
843
  </class>
844
- <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
845
- <line num="49" type="stmt" count="20"/>
846
- <line num="50" type="stmt" count="20"/>
847
  <line num="60" type="method" name="get_url" visibility="public" complexity="1" crap="2" count="0"/>
848
  <line num="61" type="stmt" count="0"/>
849
  <line num="69" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
@@ -891,58 +974,72 @@
891
  <line num="132" type="stmt" count="0"/>
892
  <line num="134" type="stmt" count="0"/>
893
  <line num="135" type="stmt" count="0"/>
894
- <line num="137" type="stmt" count="0"/>
895
- <line num="139" type="stmt" count="0"/>
896
  <line num="140" type="stmt" count="0"/>
897
  <line num="141" type="stmt" count="0"/>
898
  <line num="142" type="stmt" count="0"/>
899
- <line num="146" type="stmt" count="0"/>
900
  <line num="147" type="stmt" count="0"/>
901
  <line num="148" type="stmt" count="0"/>
902
  <line num="149" type="stmt" count="0"/>
903
  <line num="150" type="stmt" count="0"/>
904
  <line num="151" type="stmt" count="0"/>
905
  <line num="152" type="stmt" count="0"/>
906
- <line num="154" type="stmt" count="0"/>
907
  <line num="155" type="stmt" count="0"/>
908
  <line num="156" type="stmt" count="0"/>
909
- <line num="160" type="stmt" count="0"/>
910
  <line num="161" type="stmt" count="0"/>
911
  <line num="162" type="stmt" count="0"/>
912
- <line num="164" type="stmt" count="0"/>
913
  <line num="165" type="stmt" count="0"/>
914
- <line num="179" type="method" name="validate_nonce" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
915
  <line num="180" type="stmt" count="0"/>
916
- <line num="188" type="method" name="wp_ajax_update" visibility="public" complexity="11" crap="132" count="0"/>
 
 
917
  <line num="189" type="stmt" count="0"/>
918
  <line num="190" type="stmt" count="0"/>
919
- <line num="191" type="stmt" count="0"/>
920
- <line num="193" type="stmt" count="0"/>
921
  <line num="194" type="stmt" count="0"/>
922
  <line num="195" type="stmt" count="0"/>
923
- <line num="197" type="stmt" count="0"/>
924
- <line num="198" type="stmt" count="0"/>
925
- <line num="199" type="stmt" count="0"/>
926
- <line num="201" type="stmt" count="0"/>
927
- <line num="203" type="stmt" count="0"/>
928
- <line num="204" type="stmt" count="0"/>
929
- <line num="205" type="stmt" count="0"/>
930
- <line num="208" type="stmt" count="0"/>
931
  <line num="210" type="stmt" count="0"/>
932
- <line num="211" type="stmt" count="0"/>
933
- <line num="212" type="stmt" count="0"/>
934
- <line num="214" type="stmt" count="0"/>
935
- <line num="215" type="stmt" count="0"/>
936
- <metrics loc="216" ncloc="122" classes="1" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="86" coveredstatements="2" elements="92" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
937
  </file>
938
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-fail.php">
939
  <class name="Boldgrid_Backup_Admin_Archive_Fail" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
940
  <metrics complexity="9" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="42" coveredstatements="3" elements="47" coveredelements="4"/>
941
  </class>
942
- <line num="56" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
943
- <line num="57" type="stmt" count="20"/>
944
- <line num="59" type="stmt" count="20"/>
945
- <line num="60" type="stmt" count="20"/>
946
  <line num="70" type="method" name="archive_files_init" visibility="public" complexity="1" crap="2" count="0"/>
947
  <line num="71" type="stmt" count="0"/>
948
  <line num="88" type="stmt" count="0"/>
@@ -990,11 +1087,11 @@
990
  </file>
991
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-log.php">
992
  <class name="Boldgrid_Backup_Admin_Archive_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
993
- <metrics complexity="20" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="27" elements="63" coveredelements="29"/>
994
  </class>
995
- <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
996
- <line num="38" type="stmt" count="20"/>
997
- <line num="39" type="stmt" count="20"/>
998
  <line num="49" type="method" name="delete_by_zip" visibility="public" complexity="2" crap="2.03" count="1"/>
999
  <line num="50" type="stmt" count="1"/>
1000
  <line num="52" type="stmt" count="1"/>
@@ -1010,8 +1107,8 @@
1010
  <line num="77" type="stmt" count="4"/>
1011
  <line num="78" type="stmt" count="0"/>
1012
  <line num="81" type="stmt" count="4"/>
1013
- <line num="94" type="method" name="path_from_zip" visibility="public" complexity="1" crap="1" count="4"/>
1014
- <line num="95" type="stmt" count="4"/>
1015
  <line num="107" type="method" name="post_restore" visibility="public" complexity="2" crap="6" count="0"/>
1016
  <line num="108" type="stmt" count="0"/>
1017
  <line num="109" type="stmt" count="0"/>
@@ -1020,16 +1117,16 @@
1020
  <line num="117" type="stmt" count="0"/>
1021
  <line num="120" type="stmt" count="0"/>
1022
  <line num="121" type="stmt" count="0"/>
1023
- <line num="135" type="method" name="restore_by_zip" visibility="public" complexity="4" crap="20" count="0"/>
1024
- <line num="136" type="stmt" count="0"/>
1025
- <line num="138" type="stmt" count="0"/>
1026
  <line num="139" type="stmt" count="0"/>
1027
- <line num="142" type="stmt" count="0"/>
1028
- <line num="143" type="stmt" count="0"/>
1029
- <line num="146" type="stmt" count="0"/>
1030
- <line num="147" type="stmt" count="0"/>
1031
- <line num="148" type="stmt" count="0"/>
1032
- <line num="149" type="stmt" count="0"/>
1033
  <line num="153" type="stmt" count="0"/>
1034
  <line num="154" type="stmt" count="0"/>
1035
  <line num="156" type="stmt" count="0"/>
@@ -1055,15 +1152,15 @@
1055
  <line num="208" type="stmt" count="0"/>
1056
  <line num="212" type="stmt" count="4"/>
1057
  <line num="214" type="stmt" count="4"/>
1058
- <metrics loc="216" ncloc="104" classes="1" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="27" elements="63" coveredelements="29"/>
1059
  </file>
1060
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive.php">
1061
  <class name="Boldgrid_Backup_Admin_Archive" namespace="global" fullPackage="Boldgrid.Backup.Admin">
1062
- <metrics complexity="71" methods="22" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="195" coveredstatements="58" elements="217" coveredelements="64"/>
1063
  </class>
1064
- <line num="116" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1065
- <line num="117" type="stmt" count="20"/>
1066
- <line num="118" type="stmt" count="20"/>
1067
  <line num="128" type="method" name="delete" visibility="public" complexity="1" crap="1" count="1"/>
1068
  <line num="129" type="stmt" count="1"/>
1069
  <line num="131" type="stmt" count="1"/>
@@ -1080,39 +1177,39 @@
1080
  <line num="176" type="stmt" count="0"/>
1081
  <line num="178" type="stmt" count="0"/>
1082
  <line num="180" type="stmt" count="0"/>
1083
- <line num="192" type="method" name="get_file" visibility="public" complexity="5" crap="30" count="0"/>
1084
- <line num="193" type="stmt" count="0"/>
1085
- <line num="194" type="stmt" count="0"/>
1086
  <line num="197" type="stmt" count="0"/>
1087
  <line num="199" type="stmt" count="0"/>
1088
  <line num="202" type="stmt" count="0"/>
1089
  <line num="203" type="stmt" count="0"/>
1090
  <line num="204" type="stmt" count="0"/>
1091
  <line num="206" type="stmt" count="0"/>
1092
- <line num="217" type="method" name="get_dump_file" visibility="public" complexity="1" crap="2" count="0"/>
1093
- <line num="223" type="stmt" count="0"/>
1094
  <line num="233" type="method" name="get_filesize" visibility="public" complexity="1" crap="2" count="0"/>
1095
  <line num="234" type="stmt" count="0"/>
1096
- <line num="244" type="method" name="init" visibility="public" complexity="7" crap="7.06" count="4"/>
1097
- <line num="245" type="stmt" count="4"/>
1098
- <line num="247" type="stmt" count="4"/>
1099
  <line num="248" type="stmt" count="2"/>
1100
- <line num="251" type="stmt" count="4"/>
1101
- <line num="253" type="stmt" count="4"/>
1102
- <line num="254" type="stmt" count="4"/>
1103
- <line num="256" type="stmt" count="4"/>
1104
- <line num="257" type="stmt" count="4"/>
1105
- <line num="260" type="stmt" count="4"/>
1106
- <line num="261" type="stmt" count="4"/>
1107
- <line num="262" type="stmt" count="0"/>
1108
- <line num="263" type="stmt" count="0"/>
1109
- <line num="265" type="stmt" count="4"/>
1110
  <line num="266" type="stmt" count="4"/>
1111
  <line num="268" type="stmt" count="4"/>
1112
  <line num="269" type="stmt" count="4"/>
1113
- <line num="277" type="stmt" count="4"/>
1114
- <line num="279" type="stmt" count="4"/>
1115
- <line num="280" type="stmt" count="4"/>
1116
  <line num="292" type="method" name="init_by_filename" visibility="public" complexity="1" crap="1" count="1"/>
1117
  <line num="293" type="stmt" count="1"/>
1118
  <line num="295" type="stmt" count="1"/>
@@ -1133,25 +1230,25 @@
1133
  <line num="338" type="stmt" count="0"/>
1134
  <line num="339" type="stmt" count="0"/>
1135
  <line num="340" type="stmt" count="0"/>
1136
- <line num="350" type="method" name="is_archive" visibility="public" complexity="4" crap="20" count="0"/>
1137
- <line num="351" type="stmt" count="0"/>
1138
- <line num="353" type="stmt" count="0"/>
1139
  <line num="354" type="stmt" count="0"/>
1140
- <line num="357" type="stmt" count="0"/>
1141
- <line num="358" type="stmt" count="0"/>
1142
  <line num="359" type="stmt" count="0"/>
1143
- <line num="361" type="stmt" count="0"/>
1144
- <line num="363" type="stmt" count="0"/>
1145
- <line num="377" type="method" name="is_site_archive" visibility="public" complexity="4" crap="4.18" count="5"/>
1146
- <line num="378" type="stmt" count="5"/>
1147
- <line num="381" type="stmt" count="5"/>
1148
- <line num="382" type="stmt" count="5"/>
1149
- <line num="383" type="stmt" count="5"/>
1150
- <line num="387" type="stmt" count="4"/>
1151
  <line num="388" type="stmt" count="0"/>
1152
- <line num="392" type="stmt" count="4"/>
1153
  <line num="393" type="stmt" count="0"/>
1154
- <line num="396" type="stmt" count="4"/>
1155
  <line num="410" type="method" name="is_stored_locally" visibility="public" complexity="2" crap="6" count="0"/>
1156
  <line num="411" type="stmt" count="0"/>
1157
  <line num="413" type="stmt" count="0"/>
@@ -1160,14 +1257,14 @@
1160
  <line num="428" type="stmt" count="0"/>
1161
  <line num="430" type="stmt" count="0"/>
1162
  <line num="431" type="stmt" count="0"/>
1163
- <line num="439" type="method" name="reset" visibility="public" complexity="1" crap="1" count="5"/>
1164
- <line num="440" type="stmt" count="5"/>
1165
- <line num="441" type="stmt" count="5"/>
1166
- <line num="442" type="stmt" count="5"/>
1167
- <line num="443" type="stmt" count="5"/>
1168
- <line num="444" type="stmt" count="5"/>
1169
- <line num="445" type="stmt" count="5"/>
1170
- <line num="446" type="stmt" count="5"/>
1171
  <line num="457" type="method" name="set_attribute" visibility="public" complexity="3" crap="12" count="0"/>
1172
  <line num="458" type="stmt" count="0"/>
1173
  <line num="461" type="stmt" count="0"/>
@@ -1278,15 +1375,15 @@
1278
  <line num="701" type="stmt" count="4"/>
1279
  <line num="702" type="stmt" count="4"/>
1280
  <line num="703" type="stmt" count="4"/>
1281
- <metrics loc="704" ncloc="341" classes="1" methods="22" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="195" coveredstatements="58" elements="217" coveredelements="64"/>
1282
  </file>
1283
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archiver-utility.php">
1284
  <class name="Boldgrid_Backup_Admin_Archiver_Utility" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archiver">
1285
  <metrics complexity="8" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="7" elements="13" coveredelements="8"/>
1286
  </class>
1287
- <line num="38" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1288
- <line num="39" type="stmt" count="20"/>
1289
- <line num="40" type="stmt" count="20"/>
1290
  <line num="51" type="method" name="is_full_backup" visibility="public" complexity="7" crap="11.30" count="4"/>
1291
  <line num="52" type="stmt" count="4"/>
1292
  <line num="53" type="stmt" count="0"/>
@@ -1303,10 +1400,10 @@
1303
  <class name="Boldgrid_Backup_Admin_Archives_All" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archives">
1304
  <metrics complexity="20" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="3" elements="60" coveredelements="4"/>
1305
  </class>
1306
- <line num="97" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1307
- <line num="98" type="stmt" count="20"/>
1308
- <line num="100" type="stmt" count="20"/>
1309
- <line num="101" type="stmt" count="20"/>
1310
  <line num="110" type="method" name="add" visibility="public" complexity="6" crap="42" count="0"/>
1311
  <line num="111" type="stmt" count="0"/>
1312
  <line num="113" type="stmt" count="0"/>
@@ -1369,9 +1466,9 @@
1369
  <class name="Boldgrid_Backup_Admin_Archives" namespace="global" fullPackage="Boldgrid.Backup.Admin">
1370
  <metrics complexity="28" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="123" coveredstatements="2" elements="129" coveredelements="3"/>
1371
  </class>
1372
- <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1373
- <line num="38" type="stmt" count="20"/>
1374
- <line num="39" type="stmt" count="20"/>
1375
  <line num="54" type="method" name="get_location_type" visibility="public" complexity="4" crap="20" count="0"/>
1376
  <line num="55" type="stmt" count="0"/>
1377
  <line num="56" type="stmt" count="0"/>
@@ -1502,14 +1599,14 @@
1502
  </file>
1503
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-auto-rollback.php">
1504
  <class name="Boldgrid_Backup_Admin_Auto_Rollback" namespace="global" fullPackage="Boldgrid.Backup.Admin.Auto">
1505
- <metrics complexity="112" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="425" coveredstatements="29" elements="451" coveredelements="31"/>
1506
  </class>
1507
- <line num="139" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="20"/>
1508
- <line num="140" type="stmt" count="20"/>
1509
- <line num="142" type="stmt" count="20"/>
1510
- <line num="143" type="stmt" count="20"/>
1511
- <line num="145" type="stmt" count="20"/>
1512
- <line num="146" type="stmt" count="20"/>
1513
  <line num="159" type="method" name="add_cron" visibility="public" complexity="6" crap="42" count="0"/>
1514
  <line num="160" type="stmt" count="0"/>
1515
  <line num="163" type="stmt" count="0"/>
@@ -1605,139 +1702,139 @@
1605
  <line num="340" type="stmt" count="0"/>
1606
  <line num="346" type="stmt" count="0"/>
1607
  <line num="347" type="stmt" count="0"/>
1608
- <line num="360" type="method" name="enqueue_update_selectors" visibility="public" complexity="3" crap="12" count="0"/>
1609
  <line num="361" type="stmt" count="0"/>
1610
- <line num="362" type="stmt" count="0"/>
1611
  <line num="364" type="stmt" count="0"/>
1612
  <line num="365" type="stmt" count="0"/>
1613
  <line num="366" type="stmt" count="0"/>
1614
  <line num="367" type="stmt" count="0"/>
1615
- <line num="368" type="stmt" count="0"/>
1616
- <line num="370" type="stmt" count="0"/>
1617
  <line num="374" type="stmt" count="0"/>
1618
  <line num="375" type="stmt" count="0"/>
1619
- <line num="376" type="stmt" count="0"/>
1620
- <line num="378" type="stmt" count="0"/>
1621
  <line num="380" type="stmt" count="0"/>
1622
- <line num="381" type="stmt" count="0"/>
1623
- <line num="382" type="stmt" count="0"/>
1624
- <line num="395" type="method" name="notice_countdown_show" visibility="public" complexity="13" crap="182" count="0"/>
1625
- <line num="397" type="stmt" count="0"/>
1626
  <line num="398" type="stmt" count="0"/>
 
1627
  <line num="400" type="stmt" count="0"/>
1628
- <line num="401" type="stmt" count="0"/>
1629
  <line num="402" type="stmt" count="0"/>
 
1630
  <line num="404" type="stmt" count="0"/>
1631
- <line num="405" type="stmt" count="0"/>
1632
- <line num="406" type="stmt" count="0"/>
1633
- <line num="432" type="stmt" count="0"/>
1634
- <line num="435" type="stmt" count="0"/>
1635
- <line num="436" type="stmt" count="0"/>
1636
- <line num="440" type="stmt" count="0"/>
1637
- <line num="441" type="stmt" count="0"/>
1638
- <line num="444" type="stmt" count="0"/>
1639
- <line num="445" type="stmt" count="0"/>
1640
  <line num="451" type="stmt" count="0"/>
1641
- <line num="452" type="stmt" count="0"/>
1642
- <line num="453" type="stmt" count="0"/>
1643
- <line num="466" type="stmt" count="0"/>
1644
- <line num="467" type="stmt" count="0"/>
1645
  <line num="470" type="stmt" count="0"/>
1646
  <line num="471" type="stmt" count="0"/>
1647
- <line num="472" type="stmt" count="0"/>
1648
  <line num="473" type="stmt" count="0"/>
1649
  <line num="475" type="stmt" count="0"/>
1650
- <line num="477" type="stmt" count="0"/>
 
1651
  <line num="485" type="stmt" count="0"/>
1652
- <line num="486" type="stmt" count="0"/>
1653
- <line num="487" type="stmt" count="0"/>
1654
- <line num="505" type="method" name="notice_countdown_get" visibility="public" complexity="5" crap="30" count="0"/>
1655
  <line num="508" type="stmt" count="0"/>
1656
- <line num="509" type="stmt" count="0"/>
1657
  <line num="510" type="stmt" count="0"/>
 
1658
  <line num="512" type="stmt" count="0"/>
1659
  <line num="513" type="stmt" count="0"/>
1660
- <line num="514" type="stmt" count="0"/>
1661
  <line num="515" type="stmt" count="0"/>
1662
- <line num="517" type="stmt" count="0"/>
1663
  <line num="518" type="stmt" count="0"/>
1664
- <line num="520" type="stmt" count="0"/>
1665
  <line num="521" type="stmt" count="0"/>
1666
- <line num="523" type="stmt" count="0"/>
 
1667
  <line num="526" type="stmt" count="0"/>
1668
- <line num="527" type="stmt" count="0"/>
1669
  <line num="528" type="stmt" count="0"/>
1670
- <line num="530" type="stmt" count="0"/>
1671
- <line num="531" type="stmt" count="0"/>
1672
- <line num="535" type="stmt" count="0"/>
1673
- <line num="538" type="stmt" count="0"/>
1674
- <line num="541" type="stmt" count="0"/>
1675
- <line num="544" type="stmt" count="0"/>
1676
- <line num="548" type="stmt" count="0"/>
1677
  <line num="549" type="stmt" count="0"/>
1678
- <line num="551" type="stmt" count="0"/>
1679
  <line num="552" type="stmt" count="0"/>
 
1680
  <line num="554" type="stmt" count="0"/>
1681
- <line num="555" type="stmt" count="0"/>
1682
- <line num="556" type="stmt" count="0"/>
1683
- <line num="560" type="stmt" count="0"/>
1684
- <line num="564" type="stmt" count="0"/>
1685
  <line num="568" type="stmt" count="0"/>
1686
- <line num="570" type="stmt" count="0"/>
1687
- <line num="575" type="stmt" count="0"/>
1688
  <line num="578" type="stmt" count="0"/>
1689
- <line num="580" type="stmt" count="0"/>
1690
- <line num="590" type="method" name="get_deadline" visibility="public" complexity="2" crap="6" count="0"/>
1691
- <line num="592" type="stmt" count="0"/>
1692
- <line num="595" type="stmt" count="0"/>
1693
  <line num="596" type="stmt" count="0"/>
1694
- <line num="598" type="stmt" count="0"/>
1695
- <line num="612" type="method" name="get_time_data" visibility="public" complexity="6" crap="6.26" count="2"/>
1696
- <line num="613" type="stmt" count="2"/>
1697
- <line num="614" type="stmt" count="2"/>
1698
- <line num="617" type="stmt" count="1"/>
1699
- <line num="620" type="stmt" count="1"/>
 
1700
  <line num="623" type="stmt" count="1"/>
1701
- <line num="624" type="stmt" count="1"/>
1702
- <line num="625" type="stmt" count="1"/>
1703
  <line num="628" type="stmt" count="1"/>
 
1704
  <line num="630" type="stmt" count="1"/>
1705
  <line num="631" type="stmt" count="1"/>
1706
  <line num="632" type="stmt" count="1"/>
1707
  <line num="633" type="stmt" count="1"/>
1708
- <line num="634" type="stmt" count="1"/>
1709
- <line num="635" type="stmt" count="1"/>
1710
- <line num="638" type="stmt" count="1"/>
1711
- <line num="639" type="stmt" count="0"/>
1712
- <line num="640" type="stmt" count="0"/>
1713
- <line num="643" type="stmt" count="1"/>
1714
- <line num="644" type="stmt" count="0"/>
1715
- <line num="645" type="stmt" count="0"/>
1716
  <line num="648" type="stmt" count="1"/>
1717
- <line num="649" type="stmt" count="1"/>
1718
- <line num="650" type="stmt" count="1"/>
1719
- <line num="651" type="stmt" count="0"/>
1720
  <line num="654" type="stmt" count="1"/>
1721
- <line num="656" type="stmt" count="1"/>
1722
- <line num="666" type="method" name="is_enabled" visibility="public" complexity="2" crap="6" count="0"/>
1723
  <line num="667" type="stmt" count="0"/>
1724
- <line num="669" type="stmt" count="0"/>
1725
- <line num="679" type="method" name="notice_trigger_get" visibility="public" complexity="9" crap="90" count="0"/>
 
1726
  <line num="680" type="stmt" count="0"/>
1727
- <line num="681" type="stmt" count="0"/>
1728
  <line num="682" type="stmt" count="0"/>
1729
- <line num="684" type="stmt" count="0"/>
1730
- <line num="685" type="stmt" count="0"/>
1731
  <line num="688" type="stmt" count="0"/>
1732
- <line num="690" type="stmt" count="0"/>
1733
- <line num="691" type="stmt" count="0"/>
 
1734
  <line num="694" type="stmt" count="0"/>
1735
  <line num="695" type="stmt" count="0"/>
1736
- <line num="696" type="stmt" count="0"/>
1737
  <line num="697" type="stmt" count="0"/>
1738
- <line num="699" type="stmt" count="0"/>
1739
  <line num="700" type="stmt" count="0"/>
1740
  <line num="702" type="stmt" count="0"/>
 
1741
  <line num="704" type="stmt" count="0"/>
1742
  <line num="705" type="stmt" count="0"/>
1743
  <line num="706" type="stmt" count="0"/>
@@ -1748,117 +1845,117 @@
1748
  <line num="711" type="stmt" count="0"/>
1749
  <line num="712" type="stmt" count="0"/>
1750
  <line num="713" type="stmt" count="0"/>
1751
- <line num="714" type="stmt" count="0"/>
1752
  <line num="715" type="stmt" count="0"/>
 
1753
  <line num="717" type="stmt" count="0"/>
1754
  <line num="718" type="stmt" count="0"/>
1755
  <line num="719" type="stmt" count="0"/>
1756
  <line num="720" type="stmt" count="0"/>
1757
  <line num="721" type="stmt" count="0"/>
1758
  <line num="722" type="stmt" count="0"/>
1759
- <line num="723" type="stmt" count="0"/>
1760
  <line num="724" type="stmt" count="0"/>
1761
- <line num="726" type="stmt" count="0"/>
1762
- <line num="736" type="method" name="notice_backup_get" visibility="public" complexity="3" crap="12" count="0"/>
 
1763
  <line num="737" type="stmt" count="0"/>
1764
  <line num="738" type="stmt" count="0"/>
1765
- <line num="739" type="stmt" count="0"/>
1766
  <line num="740" type="stmt" count="0"/>
1767
  <line num="742" type="stmt" count="0"/>
 
1768
  <line num="744" type="stmt" count="0"/>
1769
  <line num="745" type="stmt" count="0"/>
1770
  <line num="746" type="stmt" count="0"/>
1771
  <line num="747" type="stmt" count="0"/>
1772
  <line num="748" type="stmt" count="0"/>
1773
  <line num="749" type="stmt" count="0"/>
1774
- <line num="750" type="stmt" count="0"/>
1775
  <line num="751" type="stmt" count="0"/>
1776
  <line num="753" type="stmt" count="0"/>
1777
  <line num="755" type="stmt" count="0"/>
 
1778
  <line num="757" type="stmt" count="0"/>
1779
  <line num="758" type="stmt" count="0"/>
1780
  <line num="759" type="stmt" count="0"/>
1781
- <line num="760" type="stmt" count="0"/>
1782
  <line num="761" type="stmt" count="0"/>
1783
- <line num="763" type="stmt" count="0"/>
1784
- <line num="775" type="method" name="notice_backup_show" visibility="public" complexity="14" crap="210" count="0"/>
1785
- <line num="776" type="stmt" count="0"/>
 
1786
  <line num="783" type="stmt" count="0"/>
1787
  <line num="784" type="stmt" count="0"/>
1788
  <line num="785" type="stmt" count="0"/>
1789
- <line num="786" type="stmt" count="0"/>
1790
- <line num="787" type="stmt" count="0"/>
1791
- <line num="790" type="stmt" count="0"/>
1792
- <line num="796" type="stmt" count="0"/>
1793
- <line num="797" type="stmt" count="0"/>
1794
- <line num="804" type="stmt" count="0"/>
1795
- <line num="805" type="stmt" count="0"/>
1796
- <line num="809" type="stmt" count="0"/>
1797
- <line num="810" type="stmt" count="0"/>
1798
- <line num="813" type="stmt" count="0"/>
1799
  <line num="817" type="stmt" count="0"/>
1800
- <line num="818" type="stmt" count="0"/>
1801
  <line num="819" type="stmt" count="0"/>
 
1802
  <line num="821" type="stmt" count="0"/>
1803
- <line num="822" type="stmt" count="0"/>
1804
  <line num="823" type="stmt" count="0"/>
 
1805
  <line num="825" type="stmt" count="0"/>
1806
  <line num="826" type="stmt" count="0"/>
1807
- <line num="827" type="stmt" count="0"/>
1808
- <line num="828" type="stmt" count="0"/>
1809
- <line num="837" type="stmt" count="0"/>
1810
  <line num="846" type="stmt" count="0"/>
1811
  <line num="847" type="stmt" count="0"/>
1812
  <line num="848" type="stmt" count="0"/>
1813
  <line num="849" type="stmt" count="0"/>
1814
- <line num="850" type="stmt" count="0"/>
1815
  <line num="851" type="stmt" count="0"/>
1816
- <line num="853" type="stmt" count="0"/>
1817
  <line num="854" type="stmt" count="0"/>
1818
- <line num="856" type="stmt" count="0"/>
1819
- <line num="857" type="stmt" count="0"/>
1820
- <line num="861" type="stmt" count="0"/>
1821
- <line num="864" type="stmt" count="0"/>
1822
- <line num="865" type="stmt" count="0"/>
1823
- <line num="869" type="stmt" count="0"/>
1824
  <line num="870" type="stmt" count="0"/>
1825
- <line num="872" type="stmt" count="0"/>
1826
- <line num="875" type="stmt" count="0"/>
 
1827
  <line num="883" type="stmt" count="0"/>
1828
  <line num="884" type="stmt" count="0"/>
1829
  <line num="885" type="stmt" count="0"/>
1830
- <line num="886" type="stmt" count="0"/>
1831
- <line num="887" type="stmt" count="0"/>
1832
- <line num="903" type="method" name="notice_deadline_show" visibility="public" complexity="5" crap="30" count="0"/>
1833
- <line num="911" type="stmt" count="0"/>
1834
- <line num="912" type="stmt" count="0"/>
1835
  <line num="916" type="stmt" count="0"/>
1836
- <line num="918" type="stmt" count="0"/>
1837
- <line num="921" type="stmt" count="0"/>
1838
- <line num="922" type="stmt" count="0"/>
1839
- <line num="926" type="stmt" count="0"/>
1840
- <line num="929" type="stmt" count="0"/>
1841
- <line num="930" type="stmt" count="0"/>
1842
- <line num="937" type="stmt" count="0"/>
1843
- <line num="948" type="method" name="set_update_trigger" visibility="public" complexity="5" crap="30" count="0"/>
1844
- <line num="949" type="stmt" count="0"/>
1845
- <line num="950" type="stmt" count="0"/>
1846
  <line num="953" type="stmt" count="0"/>
1847
- <line num="955" type="stmt" count="0"/>
1848
- <line num="956" type="stmt" count="0"/>
1849
  <line num="959" type="stmt" count="0"/>
1850
- <line num="961" type="stmt" count="0"/>
1851
- <line num="962" type="stmt" count="0"/>
1852
- <line num="973" type="method" name="notice_activated_get" visibility="public" complexity="7" crap="56" count="0"/>
1853
  <line num="975" type="stmt" count="0"/>
1854
  <line num="977" type="stmt" count="0"/>
1855
  <line num="979" type="stmt" count="0"/>
1856
  <line num="981" type="stmt" count="0"/>
1857
  <line num="983" type="stmt" count="0"/>
1858
  <line num="985" type="stmt" count="0"/>
 
1859
  <line num="987" type="stmt" count="0"/>
1860
- <line num="988" type="stmt" count="0"/>
1861
  <line num="989" type="stmt" count="0"/>
 
1862
  <line num="991" type="stmt" count="0"/>
1863
  <line num="992" type="stmt" count="0"/>
1864
  <line num="993" type="stmt" count="0"/>
@@ -1868,147 +1965,230 @@
1868
  <line num="997" type="stmt" count="0"/>
1869
  <line num="998" type="stmt" count="0"/>
1870
  <line num="999" type="stmt" count="0"/>
1871
- <line num="1000" type="stmt" count="0"/>
1872
- <line num="1001" type="stmt" count="0"/>
1873
  <line num="1004" type="stmt" count="0"/>
 
1874
  <line num="1006" type="stmt" count="0"/>
1875
- <line num="1007" type="stmt" count="0"/>
1876
  <line num="1008" type="stmt" count="0"/>
1877
- <line num="1010" type="stmt" count="0"/>
 
1878
  <line num="1013" type="stmt" count="0"/>
1879
- <line num="1014" type="stmt" count="0"/>
1880
  <line num="1015" type="stmt" count="0"/>
1881
- <line num="1017" type="stmt" count="0"/>
1882
- <line num="1031" type="method" name="notice_activated_show" visibility="public" complexity="2" crap="6" count="0"/>
1883
- <line num="1037" type="stmt" count="0"/>
1884
- <line num="1038" type="stmt" count="0"/>
1885
  <line num="1041" type="stmt" count="0"/>
1886
- <line num="1043" type="stmt" count="0"/>
1887
- <line num="1044" type="stmt" count="0"/>
1888
- <line num="1053" type="method" name="wp_ajax_cancel" visibility="public" complexity="4" crap="20" count="0"/>
1889
- <line num="1055" type="stmt" count="0"/>
1890
  <line num="1056" type="stmt" count="0"/>
1891
  <line num="1058" type="stmt" count="0"/>
1892
- <line num="1060" type="stmt" count="0"/>
1893
- <line num="1061" type="stmt" count="0"/>
 
1894
  <line num="1064" type="stmt" count="0"/>
1895
- <line num="1065" type="stmt" count="0"/>
1896
  <line num="1066" type="stmt" count="0"/>
1897
  <line num="1068" type="stmt" count="0"/>
1898
- <line num="1070" type="stmt" count="0"/>
1899
- <line num="1071" type="stmt" count="0"/>
1900
- <line num="1074" type="stmt" count="0"/>
1901
- <line num="1077" type="stmt" count="0"/>
1902
- <line num="1080" type="stmt" count="0"/>
1903
- <line num="1081" type="stmt" count="0"/>
1904
- <line num="1090" type="method" name="wp_ajax_get_deadline" visibility="public" complexity="3" crap="12" count="0"/>
 
1905
  <line num="1092" type="stmt" count="0"/>
1906
- <line num="1093" type="stmt" count="0"/>
1907
- <line num="1094" type="stmt" count="0"/>
1908
- <line num="1097" type="stmt" count="0"/>
1909
  <line num="1100" type="stmt" count="0"/>
1910
- <line num="1101" type="stmt" count="0"/>
1911
- <line num="1102" type="stmt" count="0"/>
1912
- <line num="1105" type="stmt" count="0"/>
1913
- <line num="1106" type="stmt" count="0"/>
1914
- <line num="1116" type="method" name="wp_ajax_get_countdown_notice" visibility="public" complexity="3" crap="12" count="0"/>
1915
  <line num="1117" type="stmt" count="0"/>
1916
- <line num="1118" type="stmt" count="0"/>
1917
  <line num="1119" type="stmt" count="0"/>
 
1918
  <line num="1121" type="stmt" count="0"/>
1919
  <line num="1122" type="stmt" count="0"/>
1920
- <line num="1123" type="stmt" count="0"/>
1921
  <line num="1124" type="stmt" count="0"/>
1922
- <line num="1126" type="stmt" count="0"/>
1923
  <line num="1127" type="stmt" count="0"/>
1924
- <line num="1129" type="stmt" count="0"/>
1925
- <line num="1130" type="stmt" count="0"/>
1926
- <line num="1139" type="method" name="wp_ajax_get_protect_notice" visibility="public" complexity="4" crap="20" count="0"/>
 
1927
  <line num="1140" type="stmt" count="0"/>
1928
- <line num="1141" type="stmt" count="0"/>
1929
  <line num="1142" type="stmt" count="0"/>
1930
- <line num="1144" type="stmt" count="0"/>
1931
  <line num="1145" type="stmt" count="0"/>
 
1932
  <line num="1147" type="stmt" count="0"/>
1933
- <line num="1148" type="stmt" count="0"/>
1934
  <line num="1149" type="stmt" count="0"/>
 
1935
  <line num="1151" type="stmt" count="0"/>
1936
  <line num="1152" type="stmt" count="0"/>
1937
- <line num="1153" type="stmt" count="0"/>
1938
- <line num="1154" type="stmt" count="0"/>
1939
- <line num="1157" type="stmt" count="0"/>
1940
- <line num="1158" type="stmt" count="0"/>
1941
- <line num="1169" type="method" name="validate_rollback_option" visibility="public" complexity="4" crap="20" count="0"/>
1942
  <line num="1170" type="stmt" count="0"/>
1943
- <line num="1171" type="stmt" count="0"/>
1944
  <line num="1172" type="stmt" count="0"/>
 
1945
  <line num="1174" type="stmt" count="0"/>
1946
  <line num="1175" type="stmt" count="0"/>
1947
- <line num="1176" type="stmt" count="0"/>
1948
  <line num="1177" type="stmt" count="0"/>
1949
- <line num="1179" type="stmt" count="0"/>
1950
- <line num="1191" type="method" name="wp_ajax_cli_cancel" visibility="public" complexity="3" crap="12" count="0"/>
1951
  <line num="1192" type="stmt" count="0"/>
 
1952
  <line num="1194" type="stmt" count="0"/>
1953
  <line num="1195" type="stmt" count="0"/>
1954
  <line num="1196" type="stmt" count="0"/>
1955
- <line num="1197" type="stmt" count="0"/>
1956
  <line num="1198" type="stmt" count="0"/>
1957
- <line num="1200" type="stmt" count="0"/>
1958
- <metrics loc="1201" ncloc="662" classes="1" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="425" coveredstatements="29" elements="451" coveredelements="31"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1959
  </file>
1960
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-backup-dir.php">
1961
  <class name="Boldgrid_Backup_Admin_Backup_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Backup">
1962
- <metrics complexity="63" methods="14" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="205" coveredstatements="141" elements="219" coveredelements="147"/>
1963
  </class>
1964
- <line num="64" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1965
- <line num="65" type="stmt" count="20"/>
1966
- <line num="66" type="stmt" count="20"/>
1967
  <line num="75" type="method" name="can_exec_write" visibility="public" complexity="1" crap="1" count="1"/>
1968
  <line num="76" type="stmt" count="1"/>
1969
  <line num="78" type="stmt" count="1"/>
1970
- <line num="89" type="method" name="create" visibility="public" complexity="11" crap="11.15" count="2"/>
1971
- <line num="90" type="stmt" count="2"/>
1972
- <line num="93" type="stmt" count="2"/>
1973
- <line num="96" type="stmt" count="2"/>
1974
- <line num="98" type="stmt" count="2"/>
1975
- <line num="100" type="stmt" count="2"/>
1976
- <line num="102" type="stmt" count="2"/>
1977
- <line num="103" type="stmt" count="2"/>
1978
- <line num="104" type="stmt" count="2"/>
1979
- <line num="108" type="stmt" count="2"/>
1980
- <line num="109" type="stmt" count="2"/>
1981
- <line num="110" type="stmt" count="2"/>
1982
- <line num="111" type="stmt" count="2"/>
1983
- <line num="113" type="stmt" count="2"/>
1984
- <line num="114" type="stmt" count="2"/>
1985
- <line num="115" type="stmt" count="2"/>
1986
- <line num="116" type="stmt" count="2"/>
1987
- <line num="118" type="stmt" count="2"/>
1988
- <line num="119" type="stmt" count="2"/>
1989
- <line num="120" type="stmt" count="2"/>
1990
- <line num="121" type="stmt" count="2"/>
1991
- <line num="123" type="stmt" count="2"/>
1992
- <line num="124" type="stmt" count="2"/>
1993
- <line num="125" type="stmt" count="2"/>
1994
- <line num="127" type="stmt" count="2"/>
1995
- <line num="128" type="stmt" count="2"/>
1996
- <line num="129" type="stmt" count="2"/>
1997
- <line num="130" type="stmt" count="2"/>
1998
- <line num="140" type="stmt" count="2"/>
1999
- <line num="142" type="stmt" count="2"/>
2000
- <line num="143" type="stmt" count="2"/>
2001
- <line num="144" type="stmt" count="2"/>
2002
- <line num="145" type="stmt" count="2"/>
2003
  <line num="146" type="stmt" count="1"/>
2004
  <line num="147" type="stmt" count="1"/>
2005
  <line num="148" type="stmt" count="1"/>
2006
  <line num="149" type="stmt" count="0"/>
2007
  <line num="150" type="stmt" count="0"/>
2008
  <line num="152" type="stmt" count="1"/>
2009
- <line num="153" type="stmt" count="2"/>
2010
- <line num="154" type="stmt" count="2"/>
2011
- <line num="155" type="stmt" count="2"/>
2012
  <line num="156" type="stmt" count="1"/>
2013
  <line num="157" type="stmt" count="1"/>
2014
  <line num="158" type="stmt" count="0"/>
@@ -2020,10 +2200,10 @@
2020
  <line num="166" type="stmt" count="0"/>
2021
  <line num="168" type="stmt" count="1"/>
2022
  <line num="169" type="stmt" count="1"/>
2023
- <line num="170" type="stmt" count="2"/>
2024
- <line num="171" type="stmt" count="2"/>
2025
- <line num="172" type="stmt" count="2"/>
2026
- <line num="174" type="stmt" count="2"/>
2027
  <line num="184" type="method" name="dirlist" visibility="public" complexity="2" crap="2" count="4"/>
2028
  <line num="185" type="stmt" count="4"/>
2029
  <line num="187" type="stmt" count="4"/>
@@ -2048,33 +2228,33 @@
2048
  <line num="227" type="stmt" count="4"/>
2049
  <line num="228" type="stmt" count="4"/>
2050
  <line num="230" type="stmt" count="4"/>
2051
- <line num="240" type="method" name="get" visibility="public" complexity="4" crap="4.25" count="6"/>
2052
- <line num="243" type="stmt" count="6"/>
2053
- <line num="244" type="stmt" count="4"/>
2054
- <line num="248" type="stmt" count="2"/>
2055
- <line num="249" type="stmt" count="2"/>
2056
- <line num="250" type="stmt" count="2"/>
2057
- <line num="251" type="stmt" count="0"/>
2058
- <line num="253" type="stmt" count="0"/>
2059
  <line num="256" type="stmt" count="2"/>
2060
- <line num="267" type="method" name="get_logs_dir" visibility="public" complexity="7" crap="7" count="6"/>
2061
- <line num="268" type="stmt" count="6"/>
2062
- <line num="270" type="stmt" count="6"/>
2063
- <line num="273" type="stmt" count="6"/>
2064
- <line num="283" type="stmt" count="6"/>
2065
- <line num="284" type="stmt" count="6"/>
2066
- <line num="287" type="stmt" count="6"/>
2067
- <line num="288" type="stmt" count="6"/>
2068
- <line num="289" type="stmt" count="5"/>
2069
- <line num="292" type="stmt" count="6"/>
2070
- <line num="294" type="stmt" count="6"/>
2071
- <line num="295" type="stmt" count="6"/>
2072
- <line num="296" type="stmt" count="6"/>
2073
- <line num="298" type="stmt" count="6"/>
2074
- <line num="308" type="stmt" count="6"/>
2075
  <line num="309" type="stmt" count="1"/>
2076
  <line num="310" type="stmt" count="1"/>
2077
- <line num="312" type="stmt" count="6"/>
2078
  <line num="321" type="method" name="get_possible_dirs" visibility="public" complexity="3" crap="4.46" count="2"/>
2079
  <line num="322" type="stmt" count="2"/>
2080
  <line num="325" type="stmt" count="2"/>
@@ -2170,17 +2350,17 @@
2170
  <line num="564" type="stmt" count="0"/>
2171
  <line num="565" type="stmt" count="0"/>
2172
  <line num="567" type="stmt" count="2"/>
2173
- <line num="579" type="method" name="set" visibility="public" complexity="3" crap="3.10" count="2"/>
2174
- <line num="581" type="stmt" count="2"/>
2175
  <line num="582" type="stmt" count="0"/>
2176
- <line num="585" type="stmt" count="2"/>
2177
- <line num="586" type="stmt" count="2"/>
2178
  <line num="587" type="stmt" count="0"/>
2179
- <line num="590" type="stmt" count="2"/>
2180
- <line num="592" type="stmt" count="2"/>
2181
- <line num="593" type="stmt" count="2"/>
2182
- <line num="594" type="stmt" count="2"/>
2183
- <metrics loc="595" ncloc="329" classes="1" methods="14" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="205" coveredstatements="141" elements="219" coveredelements="147"/>
2184
  </file>
2185
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php">
2186
  <class name="Boldgrid_Backup_Admin_Cli" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -2288,11 +2468,11 @@
2288
  <class name="Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2289
  <metrics complexity="8" methods="6" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="7" elements="17" coveredelements="11"/>
2290
  </class>
2291
- <line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="7"/>
2292
- <line num="47" type="stmt" count="7"/>
2293
- <line num="48" type="stmt" count="7"/>
2294
- <line num="50" type="stmt" count="7"/>
2295
- <line num="51" type="stmt" count="7"/>
2296
  <line num="74" type="method" name="archive_files" visibility="public" complexity="1" crap="2" count="0"/>
2297
  <line num="75" type="stmt" count="0"/>
2298
  <line num="86" type="method" name="is_available" visibility="public" complexity="1" crap="1" count="1"/>
@@ -2311,12 +2491,12 @@
2311
  <class name="Boldgrid_Backup_Admin_Compressors" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2312
  <metrics complexity="17" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="11" elements="36" coveredelements="14"/>
2313
  </class>
2314
- <line num="50" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="20"/>
2315
- <line num="51" type="stmt" count="20"/>
2316
- <line num="57" type="stmt" count="20"/>
2317
- <line num="58" type="stmt" count="20"/>
2318
- <line num="59" type="stmt" count="20"/>
2319
- <line num="60" type="stmt" count="20"/>
2320
  <line num="69" type="method" name="get" visibility="public" complexity="3" crap="3.07" count="4"/>
2321
  <line num="70" type="stmt" count="4"/>
2322
  <line num="71" type="stmt" count="4"/>
@@ -2351,18 +2531,18 @@
2351
  </file>
2352
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-config.php">
2353
  <class name="Boldgrid_Backup_Admin_Config" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2354
- <metrics complexity="55" methods="13" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="71" elements="142" coveredelements="75"/>
2355
  </class>
2356
- <line num="131" type="method" name="__construct" visibility="public" complexity="3" crap="3.33" count="20"/>
2357
- <line num="133" type="stmt" count="20"/>
2358
- <line num="134" type="stmt" count="20"/>
2359
- <line num="135" type="stmt" count="20"/>
2360
- <line num="137" type="stmt" count="20"/>
2361
- <line num="138" type="stmt" count="0"/>
2362
- <line num="139" type="stmt" count="0"/>
2363
- <line num="140" type="stmt" count="0"/>
2364
- <line num="142" type="stmt" count="20"/>
2365
- <line num="143" type="stmt" count="20"/>
2366
  <line num="152" type="method" name="get_home_directory" visibility="public" complexity="18" crap="83.95" count="2"/>
2367
  <line num="154" type="stmt" count="2"/>
2368
  <line num="155" type="stmt" count="0"/>
@@ -2411,18 +2591,18 @@
2411
  <line num="256" type="stmt" count="0"/>
2412
  <line num="267" type="method" name="get_default_retention" visibility="public" complexity="1" crap="1" count="7"/>
2413
  <line num="268" type="stmt" count="7"/>
2414
- <line num="277" type="method" name="set_lang" visibility="public" complexity="1" crap="1" count="20"/>
2415
- <line num="278" type="stmt" count="20"/>
2416
- <line num="279" type="stmt" count="20"/>
2417
- <line num="280" type="stmt" count="20"/>
2418
- <line num="281" type="stmt" count="20"/>
2419
- <line num="282" type="stmt" count="20"/>
2420
- <line num="283" type="stmt" count="20"/>
2421
- <line num="284" type="stmt" count="20"/>
2422
- <line num="285" type="stmt" count="20"/>
2423
- <line num="286" type="stmt" count="20"/>
2424
- <line num="287" type="stmt" count="20"/>
2425
- <line num="289" type="stmt" count="20"/>
2426
  <line num="301" type="method" name="custom_upload_dir" visibility="public" complexity="1" crap="2" count="0"/>
2427
  <line num="303" type="stmt" count="0"/>
2428
  <line num="306" type="stmt" count="0"/>
@@ -2495,15 +2675,15 @@
2495
  <line num="470" type="stmt" count="1"/>
2496
  <line num="471" type="stmt" count="1"/>
2497
  <line num="473" type="stmt" count="1"/>
2498
- <metrics loc="475" ncloc="203" classes="1" methods="13" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="71" elements="142" coveredelements="75"/>
2499
  </file>
2500
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core-files.php">
2501
  <class name="Boldgrid_Backup_Admin_Core_Files" namespace="global" fullPackage="Boldgrid.Backup.Admin.Core">
2502
  <metrics complexity="6" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="8" elements="11" coveredelements="9"/>
2503
  </class>
2504
- <line num="71" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
2505
- <line num="72" type="stmt" count="20"/>
2506
- <line num="73" type="stmt" count="20"/>
2507
  <line num="83" type="method" name="is_core_file" visibility="public" complexity="5" crap="5.07" count="4"/>
2508
  <line num="84" type="stmt" count="4"/>
2509
  <line num="85" type="stmt" count="0"/>
@@ -2516,190 +2696,175 @@
2516
  </file>
2517
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php">
2518
  <class name="Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2519
- <metrics complexity="232" methods="28" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="1089" coveredstatements="536" elements="1117" coveredelements="540"/>
2520
  </class>
2521
- <line num="584" type="method" name="__construct" visibility="public" complexity="7" crap="7.03" count="20"/>
2522
- <line num="585" type="stmt" count="20"/>
2523
- <line num="586" type="stmt" count="20"/>
2524
- <line num="587" type="stmt" count="20"/>
2525
- <line num="589" type="stmt" count="20"/>
2526
- <line num="591" type="stmt" count="20"/>
2527
- <line num="592" type="stmt" count="20"/>
2528
- <line num="593" type="stmt" count="20"/>
2529
- <line num="595" type="stmt" count="20"/>
2530
- <line num="597" type="stmt" count="20"/>
2531
- <line num="600" type="stmt" count="20"/>
2532
- <line num="603" type="stmt" count="20"/>
2533
- <line num="606" type="stmt" count="20"/>
2534
- <line num="609" type="stmt" count="20"/>
2535
- <line num="612" type="stmt" count="20"/>
2536
- <line num="615" type="stmt" count="20"/>
2537
- <line num="618" type="stmt" count="20"/>
2538
- <line num="622" type="stmt" count="20"/>
2539
- <line num="624" type="stmt" count="20"/>
2540
- <line num="626" type="stmt" count="20"/>
2541
- <line num="628" type="stmt" count="20"/>
2542
- <line num="630" type="stmt" count="20"/>
2543
- <line num="632" type="stmt" count="20"/>
2544
- <line num="634" type="stmt" count="20"/>
2545
- <line num="636" type="stmt" count="20"/>
2546
- <line num="638" type="stmt" count="20"/>
2547
- <line num="640" type="stmt" count="20"/>
2548
- <line num="642" type="stmt" count="20"/>
2549
- <line num="644" type="stmt" count="20"/>
2550
- <line num="646" type="stmt" count="20"/>
2551
- <line num="648" type="stmt" count="20"/>
2552
- <line num="650" type="stmt" count="20"/>
2553
- <line num="652" type="stmt" count="20"/>
2554
- <line num="654" type="stmt" count="20"/>
2555
- <line num="656" type="stmt" count="20"/>
2556
- <line num="658" type="stmt" count="20"/>
2557
- <line num="660" type="stmt" count="20"/>
2558
- <line num="662" type="stmt" count="20"/>
2559
- <line num="664" type="stmt" count="20"/>
2560
- <line num="666" type="stmt" count="20"/>
2561
- <line num="668" type="stmt" count="20"/>
2562
- <line num="670" type="stmt" count="20"/>
2563
- <line num="672" type="stmt" count="20"/>
2564
- <line num="674" type="stmt" count="20"/>
2565
- <line num="676" type="stmt" count="20"/>
2566
- <line num="678" type="stmt" count="20"/>
2567
- <line num="680" type="stmt" count="20"/>
2568
- <line num="682" type="stmt" count="20"/>
2569
- <line num="684" type="stmt" count="20"/>
2570
- <line num="686" type="stmt" count="20"/>
2571
- <line num="688" type="stmt" count="20"/>
2572
- <line num="690" type="stmt" count="20"/>
2573
- <line num="692" type="stmt" count="20"/>
2574
- <line num="694" type="stmt" count="20"/>
2575
- <line num="696" type="stmt" count="20"/>
2576
- <line num="698" type="stmt" count="20"/>
2577
- <line num="700" type="stmt" count="20"/>
2578
- <line num="702" type="stmt" count="20"/>
2579
- <line num="705" type="stmt" count="20"/>
2580
- <line num="706" type="stmt" count="20"/>
2581
- <line num="709" type="stmt" count="20"/>
2582
- <line num="711" type="stmt" count="20"/>
2583
- <line num="714" type="stmt" count="20"/>
2584
- <line num="715" type="stmt" count="20"/>
2585
- <line num="718" type="stmt" count="20"/>
2586
- <line num="719" type="stmt" count="0"/>
2587
- <line num="720" type="stmt" count="0"/>
2588
- <line num="723" type="stmt" count="20"/>
2589
- <line num="724" type="stmt" count="20"/>
2590
- <line num="725" type="stmt" count="0"/>
2591
- <line num="726" type="stmt" count="0"/>
2592
- <line num="727" type="stmt" count="20"/>
2593
- <line num="728" type="stmt" count="0"/>
2594
- <line num="729" type="stmt" count="0"/>
2595
- <line num="730" type="stmt" count="20"/>
2596
- <line num="739" type="method" name="get_backup_identifier" visibility="public" complexity="5" crap="5.79" count="25"/>
2597
- <line num="741" type="stmt" count="25"/>
2598
- <line num="742" type="stmt" count="6"/>
2599
- <line num="746" type="stmt" count="20"/>
2600
- <line num="749" type="stmt" count="20"/>
2601
- <line num="750" type="stmt" count="19"/>
2602
- <line num="752" type="stmt" count="19"/>
2603
- <line num="756" type="stmt" count="1"/>
2604
- <line num="758" type="stmt" count="1"/>
2605
- <line num="760" type="stmt" count="1"/>
2606
- <line num="763" type="stmt" count="1"/>
2607
- <line num="764" type="stmt" count="0"/>
2608
- <line num="766" type="stmt" count="0"/>
2609
- <line num="767" type="stmt" count="0"/>
2610
- <line num="768" type="stmt" count="0"/>
2611
- <line num="770" type="stmt" count="0"/>
2612
- <line num="771" type="stmt" count="0"/>
2613
- <line num="774" type="stmt" count="1"/>
2614
- <line num="776" type="stmt" count="1"/>
2615
- <line num="778" type="stmt" count="1"/>
2616
- <line num="790" type="method" name="get_core" visibility="public" complexity="1" crap="1" count="18"/>
2617
- <line num="791" type="stmt" count="18"/>
2618
- <line num="801" type="method" name="init_premium" visibility="public" complexity="5" crap="30" count="0"/>
2619
- <line num="802" type="stmt" count="0"/>
2620
- <line num="804" type="stmt" count="0"/>
2621
- <line num="810" type="stmt" count="0"/>
2622
- <line num="811" type="stmt" count="0"/>
2623
- <line num="819" type="stmt" count="0"/>
2624
- <line num="820" type="stmt" count="0"/>
2625
- <line num="822" type="stmt" count="0"/>
2626
- <line num="823" type="stmt" count="0"/>
2627
- <line num="825" type="stmt" count="0"/>
2628
- <line num="826" type="stmt" count="0"/>
2629
  <line num="828" type="stmt" count="0"/>
2630
- <line num="829" type="stmt" count="0"/>
2631
  <line num="830" type="stmt" count="0"/>
2632
- <line num="831" type="stmt" count="0"/>
2633
- <line num="832" type="stmt" count="0"/>
2634
- <line num="833" type="stmt" count="0"/>
2635
- <line num="834" type="stmt" count="0"/>
2636
- <line num="835" type="stmt" count="0"/>
2637
  <line num="836" type="stmt" count="0"/>
2638
- <line num="838" type="stmt" count="0"/>
2639
- <line num="840" type="stmt" count="0"/>
2640
- <line num="841" type="stmt" count="0"/>
2641
- <line num="843" type="stmt" count="0"/>
2642
  <line num="845" type="stmt" count="0"/>
2643
  <line num="846" type="stmt" count="0"/>
2644
- <line num="847" type="stmt" count="0"/>
2645
  <line num="848" type="stmt" count="0"/>
2646
  <line num="849" type="stmt" count="0"/>
2647
  <line num="851" type="stmt" count="0"/>
2648
  <line num="852" type="stmt" count="0"/>
2649
- <line num="853" type="stmt" count="0"/>
2650
  <line num="855" type="stmt" count="0"/>
 
 
2651
  <line num="858" type="stmt" count="0"/>
2652
  <line num="859" type="stmt" count="0"/>
2653
  <line num="860" type="stmt" count="0"/>
2654
- <line num="875" type="method" name="execute_command" visibility="public" complexity="6" crap="6.04" count="5"/>
2655
- <line num="877" type="stmt" count="5"/>
 
 
 
 
 
 
 
 
 
 
2656
  <line num="878" type="stmt" count="0"/>
2657
- <line num="882" type="stmt" count="5"/>
2658
- <line num="883" type="stmt" count="1"/>
2659
- <line num="884" type="stmt" count="1"/>
2660
- <line num="887" type="stmt" count="5"/>
2661
- <line num="888" type="stmt" count="5"/>
2662
- <line num="889" type="stmt" count="5"/>
2663
- <line num="891" type="stmt" count="5"/>
2664
- <line num="893" type="stmt" count="5"/>
2665
- <line num="903" type="method" name="add_menu_items" visibility="public" complexity="5" crap="30" count="0"/>
2666
  <line num="904" type="stmt" count="0"/>
2667
- <line num="907" type="stmt" count="0"/>
2668
- <line num="908" type="stmt" count="0"/>
2669
- <line num="909" type="stmt" count="0"/>
2670
- <line num="910" type="stmt" count="0"/>
2671
- <line num="911" type="stmt" count="0"/>
2672
- <line num="912" type="stmt" count="0"/>
2673
- <line num="913" type="stmt" count="0"/>
2674
- <line num="914" type="stmt" count="0"/>
2675
- <line num="915" type="stmt" count="0"/>
2676
- <line num="916" type="stmt" count="0"/>
2677
- <line num="919" type="stmt" count="0"/>
2678
- <line num="922" type="stmt" count="0"/>
2679
- <line num="925" type="stmt" count="0"/>
2680
- <line num="926" type="stmt" count="0"/>
2681
- <line num="928" type="stmt" count="0"/>
2682
- <line num="929" type="stmt" count="0"/>
2683
  <line num="930" type="stmt" count="0"/>
2684
- <line num="932" type="stmt" count="0"/>
2685
  <line num="933" type="stmt" count="0"/>
2686
  <line num="934" type="stmt" count="0"/>
 
2687
  <line num="936" type="stmt" count="0"/>
 
 
2688
  <line num="939" type="stmt" count="0"/>
2689
  <line num="940" type="stmt" count="0"/>
2690
  <line num="941" type="stmt" count="0"/>
2691
  <line num="942" type="stmt" count="0"/>
2692
- <line num="943" type="stmt" count="0"/>
2693
- <line num="944" type="stmt" count="0"/>
2694
- <line num="946" type="stmt" count="0"/>
2695
- <line num="947" type="stmt" count="0"/>
2696
- <line num="949" type="stmt" count="0"/>
2697
  <line num="952" type="stmt" count="0"/>
2698
- <line num="953" type="stmt" count="0"/>
2699
  <line num="954" type="stmt" count="0"/>
2700
  <line num="955" type="stmt" count="0"/>
2701
  <line num="956" type="stmt" count="0"/>
2702
- <line num="957" type="stmt" count="0"/>
2703
  <line num="959" type="stmt" count="0"/>
2704
  <line num="960" type="stmt" count="0"/>
2705
  <line num="962" type="stmt" count="0"/>
@@ -2721,24 +2886,24 @@
2721
  <line num="985" type="stmt" count="0"/>
2722
  <line num="986" type="stmt" count="0"/>
2723
  <line num="988" type="stmt" count="0"/>
 
 
 
 
2724
  <line num="995" type="stmt" count="0"/>
2725
  <line num="996" type="stmt" count="0"/>
2726
- <line num="997" type="stmt" count="0"/>
2727
  <line num="998" type="stmt" count="0"/>
2728
  <line num="999" type="stmt" count="0"/>
2729
- <line num="1000" type="stmt" count="0"/>
2730
- <line num="1002" type="stmt" count="0"/>
2731
- <line num="1003" type="stmt" count="0"/>
2732
  <line num="1005" type="stmt" count="0"/>
 
 
2733
  <line num="1008" type="stmt" count="0"/>
2734
  <line num="1009" type="stmt" count="0"/>
2735
- <line num="1010" type="stmt" count="0"/>
2736
  <line num="1011" type="stmt" count="0"/>
2737
  <line num="1012" type="stmt" count="0"/>
2738
- <line num="1013" type="stmt" count="0"/>
2739
- <line num="1015" type="stmt" count="0"/>
2740
- <line num="1016" type="stmt" count="0"/>
2741
- <line num="1018" type="stmt" count="0"/>
2742
  <line num="1021" type="stmt" count="0"/>
2743
  <line num="1022" type="stmt" count="0"/>
2744
  <line num="1023" type="stmt" count="0"/>
@@ -2760,898 +2925,941 @@
2760
  <line num="1047" type="stmt" count="0"/>
2761
  <line num="1048" type="stmt" count="0"/>
2762
  <line num="1049" type="stmt" count="0"/>
 
2763
  <line num="1051" type="stmt" count="0"/>
2764
  <line num="1052" type="stmt" count="0"/>
2765
- <line num="1053" type="stmt" count="0"/>
2766
  <line num="1055" type="stmt" count="0"/>
2767
- <line num="1056" type="stmt" count="0"/>
2768
- <line num="1058" type="stmt" count="0"/>
 
 
 
 
2769
  <line num="1065" type="stmt" count="0"/>
2770
- <line num="1066" type="stmt" count="0"/>
2771
  <line num="1068" type="stmt" count="0"/>
2772
- <line num="1069" type="stmt" count="0"/>
2773
  <line num="1070" type="stmt" count="0"/>
2774
- <line num="1071" type="stmt" count="0"/>
2775
- <line num="1072" type="stmt" count="0"/>
2776
  <line num="1074" type="stmt" count="0"/>
 
 
 
 
 
2777
  <line num="1082" type="stmt" count="0"/>
2778
- <line num="1083" type="stmt" count="0"/>
2779
  <line num="1084" type="stmt" count="0"/>
2780
- <line num="1085" type="stmt" count="0"/>
2781
- <line num="1086" type="stmt" count="0"/>
2782
- <line num="1087" type="stmt" count="0"/>
2783
- <line num="1088" type="stmt" count="0"/>
2784
- <line num="1089" type="stmt" count="0"/>
2785
- <line num="1090" type="stmt" count="0"/>
2786
- <line num="1099" type="method" name="admin_enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
2787
  <line num="1100" type="stmt" count="0"/>
2788
- <line num="1101" type="stmt" count="0"/>
2789
- <line num="1102" type="stmt" count="0"/>
2790
- <line num="1103" type="stmt" count="0"/>
2791
- <line num="1105" type="stmt" count="0"/>
2792
- <line num="1107" type="stmt" count="0"/>
2793
  <line num="1108" type="stmt" count="0"/>
2794
  <line num="1109" type="stmt" count="0"/>
2795
  <line num="1110" type="stmt" count="0"/>
 
2796
  <line num="1112" type="stmt" count="0"/>
2797
  <line num="1113" type="stmt" count="0"/>
2798
- <line num="1125" type="method" name="backup_database" visibility="private" complexity="7" crap="13.12" count="4"/>
2799
- <line num="1130" type="stmt" count="4"/>
 
 
 
 
 
 
2800
  <line num="1131" type="stmt" count="0"/>
2801
- <line num="1135" type="stmt" count="4"/>
2802
- <line num="1137" type="stmt" count="0"/>
 
 
2803
  <line num="1138" type="stmt" count="0"/>
2804
- <line num="1142" type="stmt" count="4"/>
2805
- <line num="1145" type="stmt" count="4"/>
2806
- <line num="1148" type="stmt" count="4"/>
2807
- <line num="1150" type="stmt" count="0"/>
2808
- <line num="1152" type="stmt" count="0"/>
2809
- <line num="1154" type="stmt" count="0"/>
2810
- <line num="1155" type="stmt" count="0"/>
2811
- <line num="1159" type="stmt" count="4"/>
2812
- <line num="1162" type="stmt" count="4"/>
2813
- <line num="1164" type="stmt" count="4"/>
2814
- <line num="1167" type="stmt" count="4"/>
2815
  <line num="1168" type="stmt" count="4"/>
2816
- <line num="1169" type="stmt" count="0"/>
2817
- <line num="1173" type="stmt" count="4"/>
2818
  <line num="1174" type="stmt" count="4"/>
2819
  <line num="1176" type="stmt" count="0"/>
2820
  <line num="1178" type="stmt" count="0"/>
2821
  <line num="1180" type="stmt" count="0"/>
2822
  <line num="1181" type="stmt" count="0"/>
2823
- <line num="1183" type="stmt" count="4"/>
2824
- <line num="1184" type="stmt" count="4"/>
2825
- <line num="1186" type="stmt" count="0"/>
2826
- <line num="1188" type="stmt" count="0"/>
2827
- <line num="1190" type="stmt" count="0"/>
2828
- <line num="1191" type="stmt" count="0"/>
2829
- <line num="1195" type="stmt" count="4"/>
2830
- <line num="1198" type="stmt" count="4"/>
2831
- <line num="1218" type="method" name="restore_database" visibility="private" complexity="9" crap="26.50" count="1"/>
2832
- <line num="1220" type="stmt" count="1"/>
2833
- <line num="1222" type="stmt" count="0"/>
2834
- <line num="1223" type="stmt" count="0"/>
2835
- <line num="1224" type="stmt" count="0"/>
2836
- <line num="1226" type="stmt" count="0"/>
2837
- <line num="1228" type="stmt" count="0"/>
2838
- <line num="1232" type="stmt" count="1"/>
2839
- <line num="1234" type="stmt" count="0"/>
2840
- <line num="1236" type="stmt" count="0"/>
2841
- <line num="1240" type="stmt" count="1"/>
2842
- <line num="1243" type="stmt" count="1"/>
 
2843
  <line num="1246" type="stmt" count="1"/>
2844
- <line num="1247" type="stmt" count="1"/>
2845
- <line num="1249" type="stmt" count="1"/>
2846
- <line num="1251" type="stmt" count="1"/>
2847
- <line num="1257" type="stmt" count="0"/>
2848
- <line num="1258" type="stmt" count="0"/>
2849
- <line num="1261" type="stmt" count="1"/>
2850
- <line num="1262" type="stmt" count="1"/>
2851
- <line num="1264" type="stmt" count="1"/>
2852
- <line num="1265" type="stmt" count="0"/>
2853
- <line num="1266" type="stmt" count="0"/>
2854
- <line num="1270" type="stmt" count="1"/>
2855
- <line num="1272" type="stmt" count="0"/>
2856
- <line num="1275" type="stmt" count="0"/>
2857
- <line num="1276" type="stmt" count="0"/>
2858
- <line num="1279" type="stmt" count="1"/>
2859
- <line num="1282" type="stmt" count="1"/>
2860
- <line num="1283" type="stmt" count="1"/>
2861
- <line num="1286" type="stmt" count="1"/>
2862
- <line num="1288" type="stmt" count="0"/>
2863
- <line num="1290" type="stmt" count="0"/>
2864
  <line num="1292" type="stmt" count="0"/>
2865
  <line num="1293" type="stmt" count="0"/>
2866
- <line num="1294" type="stmt" count="0"/>
2867
- <line num="1295" type="stmt" count="0"/>
2868
- <line num="1297" type="stmt" count="0"/>
2869
  <line num="1299" type="stmt" count="0"/>
2870
- <line num="1300" type="stmt" count="0"/>
2871
- <line num="1301" type="stmt" count="0"/>
2872
- <line num="1304" type="stmt" count="1"/>
2873
- <line num="1307" type="stmt" count="0"/>
2874
- <line num="1309" type="stmt" count="0"/>
2875
- <line num="1310" type="stmt" count="0"/>
2876
  <line num="1313" type="stmt" count="1"/>
2877
- <line num="1324" type="method" name="get_filelist" visibility="public" complexity="10" crap="10.11" count="4"/>
2878
- <line num="1327" type="stmt" count="4"/>
 
 
 
 
 
 
 
2879
  <line num="1328" type="stmt" count="0"/>
2880
- <line num="1332" type="stmt" count="4"/>
2881
- <line num="1335" type="stmt" count="4"/>
2882
  <line num="1336" type="stmt" count="0"/>
2883
- <line num="1340" type="stmt" count="4"/>
2884
- <line num="1343" type="stmt" count="4"/>
2885
- <line num="1344" type="stmt" count="4"/>
2886
- <line num="1345" type="stmt" count="4"/>
2887
- <line num="1348" type="stmt" count="4"/>
2888
- <line num="1351" type="stmt" count="4"/>
2889
  <line num="1362" type="stmt" count="4"/>
2890
- <line num="1363" type="stmt" count="4"/>
2891
- <line num="1364" type="stmt" count="4"/>
2892
- <line num="1365" type="stmt" count="4"/>
2893
- <line num="1366" type="stmt" count="4"/>
2894
- <line num="1368" type="stmt" count="4"/>
2895
  <line num="1370" type="stmt" count="4"/>
2896
- <line num="1373" type="stmt" count="4"/>
2897
- <line num="1374" type="stmt" count="0"/>
2898
- <line num="1376" type="stmt" count="4"/>
2899
- <line num="1377" type="stmt" count="4"/>
2900
- <line num="1380" type="stmt" count="4"/>
2901
- <line num="1381" type="stmt" count="4"/>
2902
- <line num="1384" type="stmt" count="0"/>
2903
- <line num="1386" type="stmt" count="4"/>
2904
  <line num="1389" type="stmt" count="4"/>
 
2905
  <line num="1391" type="stmt" count="4"/>
2906
  <line num="1392" type="stmt" count="4"/>
2907
- <line num="1394" type="stmt" count="4"/>
2908
- <line num="1396" type="stmt" count="4"/>
 
2909
  <line num="1400" type="stmt" count="4"/>
 
2910
  <line num="1403" type="stmt" count="4"/>
2911
- <line num="1406" type="stmt" count="4"/>
2912
  <line num="1407" type="stmt" count="4"/>
2913
  <line num="1408" type="stmt" count="4"/>
2914
- <line num="1409" type="stmt" count="4"/>
2915
- <line num="1411" type="stmt" count="4"/>
2916
- <line num="1414" type="stmt" count="4"/>
2917
- <line num="1430" type="method" name="get_filtered_filelist" visibility="public" complexity="8" crap="8.30" count="4"/>
 
 
 
 
 
2918
  <line num="1433" type="stmt" count="4"/>
2919
- <line num="1434" type="stmt" count="0"/>
 
 
2920
  <line num="1438" type="stmt" count="4"/>
2921
  <line num="1441" type="stmt" count="4"/>
2922
- <line num="1442" type="stmt" count="0"/>
2923
- <line num="1446" type="stmt" count="4"/>
2924
- <line num="1449" type="stmt" count="4"/>
2925
- <line num="1452" type="stmt" count="4"/>
2926
- <line num="1453" type="stmt" count="4"/>
2927
- <line num="1455" type="stmt" count="4"/>
2928
- <line num="1456" type="stmt" count="0"/>
2929
- <line num="1459" type="stmt" count="4"/>
2930
  <line num="1460" type="stmt" count="4"/>
2931
- <line num="1463" type="stmt" count="4"/>
2932
- <line num="1464" type="stmt" count="4"/>
2933
- <line num="1467" type="stmt" count="4"/>
2934
- <line num="1470" type="stmt" count="4"/>
2935
  <line num="1473" type="stmt" count="4"/>
2936
- <line num="1485" type="method" name="generate_archive_path" visibility="public" complexity="3" crap="3.00" count="4"/>
 
 
 
 
 
2937
  <line num="1487" type="stmt" count="4"/>
2938
  <line num="1490" type="stmt" count="4"/>
2939
- <line num="1493" type="stmt" count="4"/>
2940
- <line num="1494" type="stmt" count="0"/>
2941
- <line num="1498" type="stmt" count="4"/>
2942
- <line num="1501" type="stmt" count="4"/>
2943
- <line num="1503" type="stmt" count="4"/>
2944
- <line num="1504" type="stmt" count="4"/>
2945
- <line num="1505" type="stmt" count="4"/>
2946
- <line num="1506" type="stmt" count="4"/>
2947
- <line num="1507" type="stmt" count="4"/>
2948
- <line num="1508" type="stmt" count="4"/>
2949
- <line num="1509" type="stmt" count="4"/>
2950
- <line num="1512" type="stmt" count="4"/>
2951
- <line num="1515" type="stmt" count="4"/>
2952
  <line num="1517" type="stmt" count="4"/>
2953
- <line num="1519" type="stmt" count="4"/>
2954
  <line num="1520" type="stmt" count="4"/>
2955
- <line num="1522" type="stmt" count="4"/>
2956
- <line num="1537" type="method" name="archive_files" visibility="public" complexity="49" crap="69.95" count="4"/>
2957
- <line num="1538" type="stmt" count="4"/>
2958
- <line num="1540" type="stmt" count="4"/>
2959
- <line num="1541" type="stmt" count="4"/>
2960
- <line num="1543" type="stmt" count="4"/>
 
 
 
 
 
 
 
 
 
2961
  <line num="1549" type="stmt" count="4"/>
2962
- <line num="1551" type="stmt" count="4"/>
2963
- <line num="1552" type="stmt" count="4"/>
2964
- <line num="1553" type="stmt" count="4"/>
2965
- <line num="1560" type="stmt" count="4"/>
2966
- <line num="1562" type="stmt" count="4"/>
2967
- <line num="1563" type="stmt" count="4"/>
2968
- <line num="1564" type="stmt" count="4"/>
2969
- <line num="1575" type="stmt" count="4"/>
2970
- <line num="1576" type="stmt" count="0"/>
2971
- <line num="1577" type="stmt" count="0"/>
2972
- <line num="1578" type="stmt" count="0"/>
2973
  <line num="1582" type="stmt" count="4"/>
2974
- <line num="1584" type="stmt" count="0"/>
2975
- <line num="1586" type="stmt" count="0"/>
2976
- <line num="1587" type="stmt" count="0"/>
2977
- <line num="1589" type="stmt" count="0"/>
2978
  <line num="1593" type="stmt" count="4"/>
2979
- <line num="1602" type="stmt" count="4"/>
2980
- <line num="1603" type="stmt" count="4"/>
2981
  <line num="1604" type="stmt" count="4"/>
2982
- <line num="1605" type="stmt" count="4"/>
2983
- <line num="1606" type="stmt" count="4"/>
2984
- <line num="1607" type="stmt" count="4"/>
2985
- <line num="1608" type="stmt" count="4"/>
2986
- <line num="1609" type="stmt" count="4"/>
2987
- <line num="1610" type="stmt" count="4"/>
2988
  <line num="1611" type="stmt" count="4"/>
2989
- <line num="1612" type="stmt" count="4"/>
2990
- <line num="1614" type="stmt" count="4"/>
2991
- <line num="1615" type="stmt" count="4"/>
2992
- <line num="1616" type="stmt" count="4"/>
2993
- <line num="1617" type="stmt" count="4"/>
2994
- <line num="1619" type="stmt" count="4"/>
2995
- <line num="1620" type="stmt" count="4"/>
2996
- <line num="1621" type="stmt" count="4"/>
2997
  <line num="1622" type="stmt" count="4"/>
2998
- <line num="1623" type="stmt" count="4"/>
2999
- <line num="1624" type="stmt" count="4"/>
3000
- <line num="1625" type="stmt" count="4"/>
3001
- <line num="1626" type="stmt" count="4"/>
3002
- <line num="1627" type="stmt" count="4"/>
3003
- <line num="1628" type="stmt" count="4"/>
3004
- <line num="1629" type="stmt" count="4"/>
3005
- <line num="1630" type="stmt" count="4"/>
3006
  <line num="1631" type="stmt" count="4"/>
 
 
3007
  <line num="1634" type="stmt" count="4"/>
3008
- <line num="1635" type="stmt" count="0"/>
3009
  <line num="1636" type="stmt" count="4"/>
3010
- <line num="1637" type="stmt" count="0"/>
3011
- <line num="1638" type="stmt" count="0"/>
3012
  <line num="1639" type="stmt" count="4"/>
3013
- <line num="1640" type="stmt" count="0"/>
3014
  <line num="1641" type="stmt" count="4"/>
3015
- <line num="1642" type="stmt" count="0"/>
3016
- <line num="1643" type="stmt" count="0"/>
3017
  <line num="1644" type="stmt" count="4"/>
3018
- <line num="1647" type="stmt" count="4"/>
 
 
 
3019
  <line num="1650" type="stmt" count="4"/>
3020
- <line num="1651" type="stmt" count="0"/>
 
 
 
3021
  <line num="1655" type="stmt" count="4"/>
3022
  <line num="1656" type="stmt" count="4"/>
3023
  <line num="1657" type="stmt" count="4"/>
 
 
3024
  <line num="1660" type="stmt" count="4"/>
3025
  <line num="1663" type="stmt" count="4"/>
3026
- <line num="1666" type="stmt" count="4"/>
3027
- <line num="1667" type="stmt" count="4"/>
 
 
3028
  <line num="1668" type="stmt" count="4"/>
 
3029
  <line num="1670" type="stmt" count="4"/>
3030
- <line num="1672" type="stmt" count="4"/>
 
3031
  <line num="1673" type="stmt" count="4"/>
3032
- <line num="1675" type="stmt" count="4"/>
3033
- <line num="1677" type="stmt" count="0"/>
3034
- <line num="1678" type="stmt" count="0"/>
3035
- <line num="1679" type="stmt" count="0"/>
3036
- <line num="1681" type="stmt" count="4"/>
3037
  <line num="1684" type="stmt" count="4"/>
3038
- <line num="1687" type="stmt" count="4"/>
3039
- <line num="1690" type="stmt" count="4"/>
3040
- <line num="1693" type="stmt" count="4"/>
3041
- <line num="1694" type="stmt" count="0"/>
3042
- <line num="1696" type="stmt" count="0"/>
3043
- <line num="1697" type="stmt" count="0"/>
3044
- <line num="1699" type="stmt" count="0"/>
3045
- <line num="1703" type="stmt" count="4"/>
3046
- <line num="1706" type="stmt" count="4"/>
 
 
 
3047
  <line num="1707" type="stmt" count="0"/>
3048
- <line num="1711" type="stmt" count="4"/>
3049
- <line num="1712" type="stmt" count="4"/>
3050
- <line num="1715" type="stmt" count="4"/>
3051
  <line num="1716" type="stmt" count="4"/>
3052
- <line num="1717" type="stmt" count="4"/>
3053
- <line num="1718" type="stmt" count="4"/>
3054
- <line num="1720" type="stmt" count="4"/>
3055
  <line num="1722" type="stmt" count="4"/>
3056
- <line num="1723" type="stmt" count="4"/>
3057
- <line num="1724" type="stmt" count="4"/>
3058
- <line num="1725" type="stmt" count="4"/>
3059
- <line num="1726" type="stmt" count="4"/>
3060
- <line num="1727" type="stmt" count="4"/>
3061
- <line num="1728" type="stmt" count="4"/>
3062
- <line num="1729" type="stmt" count="4"/>
3063
- <line num="1730" type="stmt" count="4"/>
3064
  <line num="1732" type="stmt" count="4"/>
 
 
 
 
3065
  <line num="1744" type="stmt" count="4"/>
 
3066
  <line num="1746" type="stmt" count="4"/>
3067
  <line num="1747" type="stmt" count="4"/>
3068
- <line num="1750" type="stmt" count="4"/>
 
3069
  <line num="1752" type="stmt" count="4"/>
 
3070
  <line num="1754" type="stmt" count="4"/>
3071
  <line num="1755" type="stmt" count="4"/>
3072
  <line num="1756" type="stmt" count="4"/>
 
3073
  <line num="1758" type="stmt" count="4"/>
3074
- <line num="1764" type="stmt" count="4"/>
3075
- <line num="1765" type="stmt" count="4"/>
3076
- <line num="1766" type="stmt" count="1"/>
3077
- <line num="1767" type="stmt" count="1"/>
3078
- <line num="1768" type="stmt" count="1"/>
3079
- <line num="1769" type="stmt" count="4"/>
3080
- <line num="1770" type="stmt" count="4"/>
3081
- <line num="1771" type="stmt" count="4"/>
3082
- <line num="1772" type="stmt" count="4"/>
3083
- <line num="1773" type="stmt" count="1"/>
3084
- <line num="1775" type="stmt" count="0"/>
3085
- <line num="1776" type="stmt" count="0"/>
3086
- <line num="1777" type="stmt" count="1"/>
3087
- <line num="1779" type="stmt" count="0"/>
3088
- <line num="1780" type="stmt" count="0"/>
3089
- <line num="1781" type="stmt" count="1"/>
3090
- <line num="1783" type="stmt" count="0"/>
3091
- <line num="1784" type="stmt" count="0"/>
3092
- <line num="1785" type="stmt" count="1"/>
3093
- <line num="1787" type="stmt" count="0"/>
3094
- <line num="1788" type="stmt" count="0"/>
3095
- <line num="1789" type="stmt" count="1"/>
3096
- <line num="1790" type="stmt" count="1"/>
3097
- <line num="1791" type="stmt" count="1"/>
3098
- <line num="1792" type="stmt" count="1"/>
3099
- <line num="1793" type="stmt" count="0"/>
3100
- <line num="1794" type="stmt" count="0"/>
3101
- <line num="1795" type="stmt" count="0"/>
3102
- <line num="1796" type="stmt" count="4"/>
3103
  <line num="1798" type="stmt" count="4"/>
3104
  <line num="1799" type="stmt" count="4"/>
3105
- <line num="1802" type="stmt" count="4"/>
3106
- <line num="1803" type="stmt" count="4"/>
 
3107
  <line num="1804" type="stmt" count="0"/>
3108
  <line num="1805" type="stmt" count="0"/>
3109
- <line num="1806" type="stmt" count="4"/>
3110
- <line num="1807" type="stmt" count="4"/>
3111
- <line num="1808" type="stmt" count="4"/>
3112
- <line num="1809" type="stmt" count="4"/>
3113
- <line num="1810" type="stmt" count="4"/>
3114
- <line num="1811" type="stmt" count="4"/>
3115
- <line num="1812" type="stmt" count="4"/>
3116
- <line num="1813" type="stmt" count="4"/>
3117
- <line num="1814" type="stmt" count="4"/>
3118
- <line num="1816" type="stmt" count="4"/>
3119
- <line num="1817" type="stmt" count="4"/>
3120
- <line num="1819" type="stmt" count="4"/>
3121
- <line num="1821" type="stmt" count="4"/>
3122
  <line num="1822" type="stmt" count="0"/>
3123
  <line num="1823" type="stmt" count="0"/>
 
3124
  <line num="1825" type="stmt" count="4"/>
3125
- <line num="1826" type="stmt" count="0"/>
3126
- <line num="1829" type="stmt" count="4"/>
3127
  <line num="1831" type="stmt" count="4"/>
3128
- <line num="1833" type="stmt" count="4"/>
 
 
 
3129
  <line num="1836" type="stmt" count="4"/>
 
 
3130
  <line num="1839" type="stmt" count="4"/>
3131
  <line num="1840" type="stmt" count="4"/>
 
 
3132
  <line num="1843" type="stmt" count="4"/>
 
3133
  <line num="1846" type="stmt" count="4"/>
3134
- <line num="1847" type="stmt" count="4"/>
3135
  <line num="1848" type="stmt" count="4"/>
3136
- <line num="1881" type="stmt" count="4"/>
3137
- <line num="1892" type="stmt" count="4"/>
3138
- <line num="1893" type="stmt" count="4"/>
3139
- <line num="1895" type="stmt" count="4"/>
3140
- <line num="1896" type="stmt" count="4"/>
3141
- <line num="1897" type="stmt" count="4"/>
3142
- <line num="1899" type="stmt" count="4"/>
3143
- <line num="1900" type="stmt" count="4"/>
3144
- <line num="1903" type="stmt" count="4"/>
3145
- <line num="1905" type="stmt" count="4"/>
3146
- <line num="1907" type="stmt" count="4"/>
 
 
 
 
3147
  <line num="1910" type="stmt" count="4"/>
3148
- <line num="1912" type="stmt" count="4"/>
3149
- <line num="1913" type="stmt" count="4"/>
3150
- <line num="1916" type="stmt" count="4"/>
3151
- <line num="1917" type="stmt" count="0"/>
3152
- <line num="1918" type="stmt" count="0"/>
3153
- <line num="1920" type="stmt" count="4"/>
3154
  <line num="1922" type="stmt" count="4"/>
3155
- <line num="1923" type="stmt" count="0"/>
3156
- <line num="1924" type="stmt" count="0"/>
3157
  <line num="1926" type="stmt" count="4"/>
3158
- <line num="1927" type="stmt" count="4"/>
3159
  <line num="1929" type="stmt" count="4"/>
3160
  <line num="1932" type="stmt" count="4"/>
3161
- <line num="1953" type="method" name="get_archive_list" visibility="public" complexity="11" crap="11.15" count="5"/>
3162
- <line num="1955" type="stmt" count="5"/>
3163
- <line num="1958" type="stmt" count="5"/>
3164
- <line num="1961" type="stmt" count="5"/>
3165
- <line num="1962" type="stmt" count="5"/>
3166
- <line num="1963" type="stmt" count="5"/>
3167
- <line num="1966" type="stmt" count="5"/>
3168
- <line num="1967" type="stmt" count="0"/>
3169
- <line num="1971" type="stmt" count="5"/>
3170
- <line num="1974" type="stmt" count="5"/>
3171
- <line num="1975" type="stmt" count="0"/>
3172
- <line num="1979" type="stmt" count="5"/>
3173
- <line num="1980" type="stmt" count="0"/>
3174
- <line num="1982" type="stmt" count="5"/>
3175
- <line num="1983" type="stmt" count="4"/>
3176
- <line num="1986" type="stmt" count="5"/>
3177
- <line num="1987" type="stmt" count="4"/>
3178
- <line num="1990" type="stmt" count="5"/>
3179
- <line num="1992" type="stmt" count="5"/>
3180
- <line num="1995" type="stmt" count="5"/>
3181
- <line num="1998" type="stmt" count="5"/>
3182
- <line num="1999" type="stmt" count="5"/>
3183
- <line num="2001" type="stmt" count="4"/>
3184
- <line num="2004" type="stmt" count="4"/>
3185
- <line num="2005" type="stmt" count="0"/>
3186
- <line num="2010" type="stmt" count="4"/>
3187
- <line num="2011" type="stmt" count="4"/>
3188
- <line num="2012" type="stmt" count="4"/>
3189
- <line num="2013" type="stmt" count="4"/>
3190
- <line num="2014" type="stmt" count="4"/>
3191
- <line num="2015" type="stmt" count="4"/>
3192
- <line num="2016" type="stmt" count="4"/>
3193
- <line num="2017" type="stmt" count="4"/>
3194
- <line num="2021" type="stmt" count="4"/>
3195
- <line num="2022" type="stmt" count="1"/>
3196
- <line num="2024" type="stmt" count="4"/>
3197
- <line num="2025" type="stmt" count="5"/>
3198
- <line num="2028" type="stmt" count="5"/>
3199
- <line num="2039" type="method" name="delete_archive_file" visibility="public" complexity="11" crap="132" count="0"/>
3200
- <line num="2042" type="stmt" count="0"/>
3201
- <line num="2043" type="stmt" count="0"/>
3202
- <line num="2047" type="stmt" count="0"/>
3203
- <line num="2050" type="stmt" count="0"/>
3204
- <line num="2053" type="stmt" count="0"/>
3205
- <line num="2054" type="stmt" count="0"/>
3206
- <line num="2055" type="stmt" count="0"/>
3207
- <line num="2056" type="stmt" count="0"/>
3208
- <line num="2058" type="stmt" count="0"/>
3209
- <line num="2059" type="stmt" count="0"/>
3210
- <line num="2060" type="stmt" count="0"/>
3211
- <line num="2062" type="stmt" count="0"/>
3212
- <line num="2064" type="stmt" count="0"/>
3213
- <line num="2068" type="stmt" count="0"/>
3214
- <line num="2069" type="stmt" count="0"/>
3215
- <line num="2070" type="stmt" count="0"/>
 
3216
  <line num="2072" type="stmt" count="0"/>
3217
- <line num="2073" type="stmt" count="0"/>
3218
- <line num="2074" type="stmt" count="0"/>
3219
  <line num="2076" type="stmt" count="0"/>
3220
- <line num="2078" type="stmt" count="0"/>
3221
  <line num="2082" type="stmt" count="0"/>
3222
  <line num="2083" type="stmt" count="0"/>
 
 
3223
  <line num="2087" type="stmt" count="0"/>
3224
- <line num="2090" type="stmt" count="0"/>
3225
- <line num="2092" type="stmt" count="0"/>
 
3226
  <line num="2093" type="stmt" count="0"/>
3227
- <line num="2094" type="stmt" count="0"/>
3228
- <line num="2096" type="stmt" count="0"/>
3229
  <line num="2098" type="stmt" count="0"/>
 
 
 
3230
  <line num="2103" type="stmt" count="0"/>
3231
- <line num="2104" type="stmt" count="0"/>
3232
  <line num="2105" type="stmt" count="0"/>
3233
- <line num="2108" type="stmt" count="0"/>
3234
- <line num="2110" type="stmt" count="0"/>
3235
  <line num="2111" type="stmt" count="0"/>
3236
  <line num="2112" type="stmt" count="0"/>
3237
- <line num="2114" type="stmt" count="0"/>
3238
  <line num="2116" type="stmt" count="0"/>
 
3239
  <line num="2121" type="stmt" count="0"/>
3240
  <line num="2122" type="stmt" count="0"/>
3241
  <line num="2123" type="stmt" count="0"/>
3242
  <line num="2125" type="stmt" count="0"/>
3243
- <line num="2128" type="stmt" count="0"/>
3244
- <line num="2129" type="stmt" count="0"/>
3245
- <line num="2130" type="stmt" count="0"/>
3246
- <line num="2131" type="stmt" count="0"/>
3247
  <line num="2133" type="stmt" count="0"/>
3248
  <line num="2134" type="stmt" count="0"/>
3249
- <line num="2144" type="stmt" count="0"/>
3250
- <line num="2147" type="stmt" count="0"/>
3251
- <line num="2160" type="method" name="get_dump_file" visibility="public" complexity="9" crap="25.08" count="1"/>
3252
- <line num="2162" type="stmt" count="1"/>
 
 
 
 
 
 
 
 
 
 
 
3253
  <line num="2163" type="stmt" count="0"/>
3254
- <line num="2183" type="stmt" count="1"/>
3255
- <line num="2184" type="stmt" count="1"/>
3256
- <line num="2185" type="stmt" count="1"/>
3257
- <line num="2186" type="stmt" count="1"/>
3258
- <line num="2190" type="stmt" count="0"/>
3259
- <line num="2193" type="stmt" count="0"/>
3260
- <line num="2196" type="stmt" count="0"/>
3261
- <line num="2197" type="stmt" count="0"/>
3262
- <line num="2201" type="stmt" count="0"/>
3263
- <line num="2202" type="stmt" count="0"/>
3264
- <line num="2203" type="method" name="anonymous function" complexity="3" crap="12" count="0"/>
3265
- <line num="2204" type="stmt" count="0"/>
3266
- <line num="2205" type="stmt" count="0"/>
3267
- <line num="2208" type="stmt" count="0"/>
3268
- <line num="2209" type="stmt" count="0"/>
3269
- <line num="2212" type="stmt" count="0"/>
3270
- <line num="2214" type="stmt" count="0"/>
3271
- <line num="2221" type="stmt" count="0"/>
3272
  <line num="2222" type="stmt" count="0"/>
3273
- <line num="2223" type="stmt" count="0"/>
3274
- <line num="2224" type="stmt" count="0"/>
3275
  <line num="2226" type="stmt" count="0"/>
3276
- <line num="2229" type="stmt" count="0"/>
3277
- <line num="2242" type="method" name="restore_archive_file" visibility="public" complexity="27" crap="62.28" count="1"/>
3278
- <line num="2243" type="stmt" count="1"/>
3279
- <line num="2245" type="stmt" count="1"/>
3280
- <line num="2246" type="stmt" count="1"/>
3281
- <line num="2247" type="stmt" count="1"/>
3282
- <line num="2250" type="stmt" count="1"/>
3283
- <line num="2252" type="stmt" count="1"/>
3284
- <line num="2255" type="stmt" count="1"/>
3285
- <line num="2256" type="stmt" count="0"/>
3286
- <line num="2257" type="stmt" count="0"/>
 
 
 
3287
  <line num="2258" type="stmt" count="0"/>
3288
- <line num="2262" type="stmt" count="1"/>
3289
- <line num="2263" type="stmt" count="0"/>
3290
- <line num="2264" type="stmt" count="0"/>
3291
- <line num="2265" type="stmt" count="0"/>
3292
- <line num="2269" type="stmt" count="1"/>
3293
- <line num="2270" type="stmt" count="1"/>
3294
- <line num="2273" type="stmt" count="1"/>
3295
  <line num="2274" type="stmt" count="1"/>
3296
  <line num="2275" type="stmt" count="1"/>
3297
- <line num="2276" type="stmt" count="0"/>
3298
- <line num="2277" type="stmt" count="0"/>
3299
- <line num="2278" type="stmt" count="0"/>
3300
- <line num="2282" type="stmt" count="1"/>
3301
- <line num="2283" type="stmt" count="1"/>
3302
  <line num="2284" type="stmt" count="1"/>
3303
  <line num="2285" type="stmt" count="0"/>
3304
  <line num="2286" type="stmt" count="0"/>
3305
  <line num="2287" type="stmt" count="0"/>
3306
  <line num="2291" type="stmt" count="1"/>
3307
- <line num="2293" type="stmt" count="1"/>
3308
- <line num="2294" type="stmt" count="1"/>
3309
- <line num="2295" type="stmt" count="0"/>
3310
- <line num="2296" type="stmt" count="0"/>
3311
- <line num="2297" type="stmt" count="0"/>
3312
- <line num="2300" type="stmt" count="1"/>
3313
  <line num="2302" type="stmt" count="1"/>
3314
- <line num="2303" type="stmt" count="0"/>
3315
- <line num="2304" type="stmt" count="0"/>
3316
  <line num="2305" type="stmt" count="0"/>
3317
- <line num="2308" type="stmt" count="1"/>
3318
- <line num="2310" type="stmt" count="1"/>
3319
  <line num="2311" type="stmt" count="1"/>
3320
  <line num="2312" type="stmt" count="1"/>
3321
- <line num="2313" type="stmt" count="0"/>
3322
  <line num="2314" type="stmt" count="0"/>
3323
  <line num="2315" type="stmt" count="0"/>
 
3324
  <line num="2320" type="stmt" count="1"/>
3325
- <line num="2321" type="stmt" count="1"/>
3326
  <line num="2322" type="stmt" count="1"/>
3327
  <line num="2323" type="stmt" count="1"/>
3328
- <line num="2324" type="stmt" count="1"/>
3329
- <line num="2325" type="stmt" count="1"/>
3330
- <line num="2326" type="stmt" count="1"/>
3331
- <line num="2327" type="stmt" count="1"/>
3332
- <line num="2328" type="stmt" count="1"/>
3333
  <line num="2331" type="stmt" count="1"/>
3334
- <line num="2333" type="stmt" count="1"/>
3335
- <line num="2342" type="stmt" count="1"/>
3336
- <line num="2348" type="stmt" count="1"/>
 
 
 
 
 
 
 
3337
  <line num="2349" type="stmt" count="1"/>
3338
- <line num="2350" type="stmt" count="0"/>
3339
- <line num="2351" type="stmt" count="0"/>
3340
- <line num="2352" type="stmt" count="0"/>
 
3341
  <line num="2354" type="stmt" count="1"/>
3342
- <line num="2355" type="stmt" count="0"/>
3343
- <line num="2358" type="stmt" count="1"/>
3344
- <line num="2359" type="stmt" count="1"/>
3345
  <line num="2360" type="stmt" count="1"/>
3346
- <line num="2361" type="stmt" count="1"/>
3347
  <line num="2362" type="stmt" count="1"/>
3348
- <line num="2364" type="stmt" count="1"/>
3349
- <line num="2365" type="stmt" count="0"/>
3350
- <line num="2375" type="stmt" count="0"/>
3351
- <line num="2377" type="stmt" count="0"/>
3352
- <line num="2378" type="stmt" count="0"/>
3353
  <line num="2379" type="stmt" count="0"/>
3354
  <line num="2380" type="stmt" count="0"/>
3355
  <line num="2381" type="stmt" count="0"/>
3356
- <line num="2383" type="stmt" count="0"/>
 
 
 
 
 
 
3357
  <line num="2393" type="stmt" count="1"/>
3358
- <line num="2402" type="stmt" count="1"/>
3359
- <line num="2403" type="stmt" count="1"/>
3360
- <line num="2404" type="stmt" count="1"/>
3361
- <line num="2405" type="stmt" count="1"/>
3362
- <line num="2406" type="stmt" count="1"/>
3363
- <line num="2409" type="stmt" count="1"/>
3364
  <line num="2410" type="stmt" count="0"/>
3365
- <line num="2411" type="stmt" count="0"/>
3366
- <line num="2413" type="stmt" count="1"/>
3367
- <line num="2414" type="stmt" count="0"/>
3368
- <line num="2416" type="stmt" count="0"/>
3369
- <line num="2417" type="stmt" count="0"/>
3370
- <line num="2418" type="stmt" count="0"/>
3371
- <line num="2419" type="stmt" count="0"/>
3372
  <line num="2422" type="stmt" count="1"/>
3373
- <line num="2423" type="stmt" count="1"/>
3374
- <line num="2426" type="stmt" count="1"/>
3375
- <line num="2427" type="stmt" count="1"/>
3376
- <line num="2430" type="stmt" count="1"/>
3377
- <line num="2431" type="stmt" count="0"/>
3378
- <line num="2432" type="stmt" count="0"/>
3379
- <line num="2433" type="stmt" count="0"/>
3380
  <line num="2435" type="stmt" count="1"/>
3381
- <line num="2436" type="stmt" count="1"/>
3382
- <line num="2437" type="stmt" count="1"/>
3383
- <line num="2440" type="stmt" count="1"/>
3384
- <line num="2443" type="stmt" count="1"/>
3385
- <line num="2446" type="stmt" count="1"/>
3386
- <line num="2447" type="stmt" count="1"/>
3387
- <line num="2450" type="stmt" count="1"/>
3388
- <line num="2454" type="stmt" count="1"/>
 
 
 
 
3389
  <line num="2456" type="stmt" count="1"/>
3390
- <line num="2457" type="stmt" count="1"/>
3391
- <line num="2460" type="stmt" count="1"/>
3392
- <line num="2463" type="stmt" count="1"/>
 
 
3393
  <line num="2465" type="stmt" count="1"/>
3394
- <line num="2467" type="stmt" count="1"/>
3395
- <line num="2470" type="stmt" count="1"/>
3396
- <line num="2483" type="method" name="page_archives" visibility="public" complexity="5" crap="30" count="0"/>
3397
- <line num="2484" type="stmt" count="0"/>
3398
- <line num="2487" type="stmt" count="0"/>
3399
- <line num="2488" type="stmt" count="0"/>
3400
- <line num="2490" type="stmt" count="0"/>
3401
- <line num="2493" type="stmt" count="0"/>
3402
- <line num="2496" type="stmt" count="0"/>
3403
- <line num="2497" type="stmt" count="0"/>
3404
- <line num="2499" type="stmt" count="0"/>
3405
- <line num="2502" type="stmt" count="0"/>
3406
- <line num="2503" type="stmt" count="0"/>
3407
- <line num="2504" type="stmt" count="0"/>
3408
- <line num="2506" type="stmt" count="0"/>
3409
- <line num="2507" type="stmt" count="0"/>
3410
- <line num="2510" type="stmt" count="0"/>
3411
- <line num="2511" type="stmt" count="0"/>
3412
- <line num="2512" type="stmt" count="0"/>
3413
- <line num="2515" type="stmt" count="0"/>
3414
  <line num="2518" type="stmt" count="0"/>
3415
  <line num="2521" type="stmt" count="0"/>
3416
- <line num="2523" type="stmt" count="0"/>
3417
  <line num="2524" type="stmt" count="0"/>
3418
  <line num="2525" type="stmt" count="0"/>
3419
- <line num="2528" type="stmt" count="0"/>
3420
  <line num="2530" type="stmt" count="0"/>
3421
- <line num="2533" type="stmt" count="0"/>
 
3422
  <line num="2534" type="stmt" count="0"/>
3423
  <line num="2535" type="stmt" count="0"/>
3424
- <line num="2537" type="stmt" count="0"/>
3425
- <line num="2540" type="stmt" count="0"/>
3426
  <line num="2541" type="stmt" count="0"/>
3427
- <line num="2550" type="method" name="boldgrid_backup_now_callback" visibility="public" complexity="10" crap="110" count="0"/>
 
 
 
 
3428
  <line num="2553" type="stmt" count="0"/>
3429
- <line num="2554" type="stmt" count="0"/>
3430
- <line num="2555" type="stmt" count="0"/>
3431
  <line num="2557" type="stmt" count="0"/>
3432
  <line num="2558" type="stmt" count="0"/>
3433
- <line num="2559" type="stmt" count="0"/>
3434
- <line num="2562" type="stmt" count="0"/>
3435
  <line num="2563" type="stmt" count="0"/>
3436
  <line num="2564" type="stmt" count="0"/>
3437
- <line num="2566" type="stmt" count="0"/>
3438
- <line num="2567" type="stmt" count="0"/>
3439
- <line num="2568" type="stmt" count="0"/>
3440
- <line num="2570" type="stmt" count="0"/>
3441
- <line num="2572" type="stmt" count="0"/>
3442
- <line num="2573" type="stmt" count="0"/>
3443
- <line num="2574" type="stmt" count="0"/>
3444
  <line num="2576" type="stmt" count="0"/>
3445
  <line num="2577" type="stmt" count="0"/>
3446
- <line num="2579" type="stmt" count="0"/>
 
 
3447
  <line num="2582" type="stmt" count="0"/>
3448
- <line num="2583" type="stmt" count="0"/>
3449
- <line num="2584" type="stmt" count="0"/>
3450
  <line num="2586" type="stmt" count="0"/>
3451
  <line num="2587" type="stmt" count="0"/>
3452
- <line num="2588" type="stmt" count="0"/>
 
 
 
 
 
3453
  <line num="2597" type="stmt" count="0"/>
3454
- <line num="2598" type="stmt" count="0"/>
3455
- <line num="2610" type="method" name="download_archive_file_callback" visibility="public" complexity="10" crap="110" count="0"/>
 
 
 
 
 
 
 
3456
  <line num="2612" type="stmt" count="0"/>
 
3457
  <line num="2615" type="stmt" count="0"/>
3458
  <line num="2616" type="stmt" count="0"/>
3459
- <line num="2617" type="stmt" count="0"/>
3460
- <line num="2618" type="stmt" count="0"/>
3461
- <line num="2621" type="stmt" count="0"/>
3462
- <line num="2622" type="stmt" count="0"/>
3463
- <line num="2623" type="stmt" count="0"/>
3464
- <line num="2624" type="stmt" count="0"/>
3465
  <line num="2625" type="stmt" count="0"/>
3466
- <line num="2629" type="stmt" count="0"/>
3467
- <line num="2630" type="stmt" count="0"/>
3468
- <line num="2631" type="stmt" count="0"/>
3469
- <line num="2632" type="stmt" count="0"/>
3470
- <line num="2633" type="stmt" count="0"/>
3471
- <line num="2637" type="stmt" count="0"/>
3472
  <line num="2640" type="stmt" count="0"/>
3473
- <line num="2641" type="stmt" count="0"/>
3474
- <line num="2642" type="stmt" count="0"/>
3475
  <line num="2643" type="stmt" count="0"/>
 
 
3476
  <line num="2646" type="stmt" count="0"/>
3477
  <line num="2649" type="stmt" count="0"/>
3478
  <line num="2650" type="stmt" count="0"/>
3479
  <line num="2651" type="stmt" count="0"/>
3480
  <line num="2652" type="stmt" count="0"/>
3481
- <line num="2656" type="stmt" count="0"/>
3482
  <line num="2657" type="stmt" count="0"/>
3483
  <line num="2658" type="stmt" count="0"/>
 
 
3484
  <line num="2661" type="stmt" count="0"/>
3485
- <line num="2662" type="stmt" count="0"/>
3486
- <line num="2663" type="stmt" count="0"/>
3487
- <line num="2664" type="stmt" count="0"/>
3488
- <line num="2666" type="stmt" count="0"/>
3489
  <line num="2668" type="stmt" count="0"/>
 
3490
  <line num="2670" type="stmt" count="0"/>
3491
  <line num="2671" type="stmt" count="0"/>
3492
- <line num="2672" type="stmt" count="0"/>
3493
- <line num="2675" type="stmt" count="0"/>
3494
- <line num="2676" type="stmt" count="0"/>
3495
- <line num="2686" type="method" name="page_backup_test" visibility="public" complexity="6" crap="42" count="0"/>
3496
- <line num="2688" type="stmt" count="0"/>
 
 
 
 
 
3497
  <line num="2691" type="stmt" count="0"/>
 
3498
  <line num="2694" type="stmt" count="0"/>
3499
- <line num="2697" type="stmt" count="0"/>
 
 
3500
  <line num="2700" type="stmt" count="0"/>
3501
- <line num="2702" type="stmt" count="0"/>
3502
- <line num="2705" type="stmt" count="0"/>
3503
- <line num="2708" type="stmt" count="0"/>
3504
- <line num="2711" type="stmt" count="0"/>
3505
- <line num="2714" type="stmt" count="0"/>
3506
- <line num="2717" type="stmt" count="0"/>
3507
  <line num="2719" type="stmt" count="0"/>
3508
- <line num="2727" type="stmt" count="0"/>
 
3509
  <line num="2728" type="stmt" count="0"/>
3510
- <line num="2729" type="stmt" count="0"/>
3511
  <line num="2730" type="stmt" count="0"/>
3512
- <line num="2731" type="stmt" count="0"/>
3513
- <line num="2734" type="stmt" count="0"/>
3514
- <line num="2735" type="stmt" count="0"/>
3515
  <line num="2736" type="stmt" count="0"/>
3516
- <line num="2737" type="stmt" count="0"/>
3517
- <line num="2738" type="stmt" count="0"/>
3518
  <line num="2739" type="stmt" count="0"/>
3519
- <line num="2740" type="stmt" count="0"/>
3520
- <line num="2741" type="stmt" count="0"/>
3521
- <line num="2743" type="stmt" count="0"/>
3522
- <line num="2746" type="stmt" count="0"/>
3523
  <line num="2747" type="stmt" count="0"/>
3524
- <line num="2748" type="stmt" count="0"/>
3525
- <line num="2749" type="stmt" count="0"/>
3526
- <line num="2750" type="stmt" count="0"/>
3527
- <line num="2751" type="stmt" count="0"/>
3528
- <line num="2754" type="stmt" count="0"/>
3529
  <line num="2755" type="stmt" count="0"/>
3530
- <line num="2770" type="method" name="set_doing_cron" visibility="public" complexity="3" crap="3" count="20"/>
3531
- <line num="2771" type="stmt" count="20"/>
3532
- <line num="2772" type="stmt" count="20"/>
3533
- <line num="2779" type="method" name="set_lang" visibility="public" complexity="1" crap="1" count="20"/>
3534
- <line num="2784" type="stmt" count="20"/>
3535
- <line num="2786" type="stmt" count="20"/>
3536
- <line num="2787" type="stmt" count="20"/>
3537
- <line num="2788" type="stmt" count="20"/>
3538
- <line num="2789" type="stmt" count="20"/>
3539
- <line num="2790" type="stmt" count="20"/>
3540
- <line num="2791" type="stmt" count="20"/>
3541
- <line num="2793" type="stmt" count="20"/>
3542
- <line num="2794" type="stmt" count="20"/>
3543
- <line num="2796" type="stmt" count="20"/>
3544
- <line num="2797" type="stmt" count="20"/>
3545
- <line num="2798" type="stmt" count="20"/>
3546
- <line num="2799" type="stmt" count="20"/>
3547
- <line num="2800" type="stmt" count="20"/>
3548
- <line num="2801" type="stmt" count="20"/>
3549
- <line num="2803" type="stmt" count="20"/>
3550
- <line num="2804" type="stmt" count="20"/>
3551
- <line num="2805" type="stmt" count="20"/>
3552
- <line num="2811" type="stmt" count="20"/>
3553
- <line num="2813" type="stmt" count="20"/>
3554
- <line num="2814" type="stmt" count="20"/>
3555
- <line num="2815" type="stmt" count="20"/>
3556
- <line num="2816" type="stmt" count="20"/>
3557
- <line num="2817" type="stmt" count="20"/>
3558
- <line num="2819" type="stmt" count="20"/>
3559
- <line num="2822" type="stmt" count="20"/>
3560
- <line num="2823" type="stmt" count="20"/>
3561
- <line num="2825" type="stmt" count="20"/>
3562
- <line num="2827" type="stmt" count="20"/>
3563
- <line num="2839" type="method" name="set_time_limit" visibility="public" complexity="2" crap="2" count="4"/>
3564
- <line num="2840" type="stmt" count="4"/>
3565
- <line num="2842" type="stmt" count="4"/>
3566
- <line num="2843" type="stmt" count="4"/>
3567
- <line num="2850" type="method" name="wp_ajax_restore" visibility="public" complexity="6" crap="42" count="0"/>
3568
- <line num="2851" type="stmt" count="0"/>
3569
- <line num="2852" type="stmt" count="0"/>
3570
- <line num="2855" type="stmt" count="0"/>
3571
- <line num="2856" type="stmt" count="0"/>
3572
- <line num="2857" type="stmt" count="0"/>
3573
- <line num="2859" type="stmt" count="0"/>
3574
- <line num="2860" type="stmt" count="0"/>
3575
- <line num="2861" type="stmt" count="0"/>
3576
- <line num="2864" type="stmt" count="0"/>
3577
- <line num="2865" type="stmt" count="0"/>
3578
- <line num="2866" type="stmt" count="0"/>
3579
- <line num="2868" type="stmt" count="0"/>
3580
- <line num="2869" type="stmt" count="0"/>
3581
- <line num="2870" type="stmt" count="0"/>
3582
- <line num="2872" type="stmt" count="0"/>
3583
- <line num="2885" type="stmt" count="0"/>
3584
- <line num="2886" type="stmt" count="0"/>
3585
- <line num="2888" type="stmt" count="0"/>
3586
- <line num="2889" type="stmt" count="0"/>
3587
- <line num="2890" type="stmt" count="0"/>
3588
- <line num="2891" type="stmt" count="0"/>
3589
- <line num="2892" type="stmt" count="0"/>
3590
- <line num="2894" type="stmt" count="0"/>
3591
- <line num="2895" type="stmt" count="0"/>
3592
- <line num="2896" type="stmt" count="0"/>
3593
- <line num="2897" type="stmt" count="0"/>
3594
- <line num="2899" type="stmt" count="0"/>
3595
- <line num="2901" type="stmt" count="0"/>
3596
- <line num="2902" type="stmt" count="0"/>
3597
- <line num="2918" type="method" name="boldgrid_backup_now_auto" visibility="public" complexity="4" crap="20" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
3598
  <line num="2920" type="stmt" count="0"/>
 
3599
  <line num="2923" type="stmt" count="0"/>
3600
  <line num="2924" type="stmt" count="0"/>
 
3601
  <line num="2928" type="stmt" count="0"/>
 
3602
  <line num="2931" type="stmt" count="0"/>
3603
  <line num="2932" type="stmt" count="0"/>
3604
- <line num="2936" type="stmt" count="0"/>
3605
- <line num="2937" type="stmt" count="0"/>
3606
- <line num="2948" type="method" name="enforce_retention" visibility="public" complexity="8" crap="8.07" count="4"/>
3607
- <line num="2949" type="stmt" count="4"/>
3608
- <line num="2950" type="stmt" count="4"/>
3609
- <line num="2951" type="stmt" count="4"/>
3610
- <line num="2953" type="stmt" count="4"/>
3611
- <line num="2954" type="stmt" count="4"/>
3612
- <line num="2956" type="stmt" count="4"/>
3613
- <line num="2957" type="stmt" count="4"/>
3614
- <line num="2960" type="stmt" count="4"/>
3615
- <line num="2961" type="stmt" count="4"/>
3616
- <line num="2962" type="stmt" count="4"/>
3617
- <line num="2963" type="stmt" count="4"/>
3618
  <line num="2964" type="stmt" count="0"/>
3619
  <line num="2965" type="stmt" count="0"/>
3620
- <line num="2966" type="stmt" count="0"/>
3621
- <line num="2967" type="stmt" count="4"/>
3622
- <line num="2968" type="stmt" count="4"/>
3623
- <line num="2969" type="stmt" count="4"/>
3624
- <line num="2972" type="stmt" count="4"/>
3625
- <line num="2975" type="stmt" count="4"/>
3626
- <line num="2976" type="stmt" count="4"/>
3627
- <line num="2977" type="stmt" count="4"/>
3628
- <line num="2981" type="stmt" count="1"/>
3629
- <line num="2984" type="stmt" count="1"/>
3630
- <line num="2987" type="stmt" count="1"/>
3631
- <line num="2988" type="stmt" count="1"/>
3632
- <line num="2989" type="stmt" count="1"/>
3633
- <line num="2992" type="stmt" count="1"/>
3634
- <line num="2995" type="stmt" count="1"/>
3635
- <line num="2998" type="stmt" count="1"/>
3636
- <line num="3000" type="stmt" count="1"/>
3637
- <line num="3001" type="stmt" count="1"/>
3638
- <line num="3010" type="stmt" count="1"/>
3639
- <line num="3011" type="stmt" count="1"/>
3640
- <line num="3012" type="stmt" count="0"/>
3641
- <line num="3014" type="stmt" count="1"/>
3642
- <line num="3016" type="stmt" count="1"/>
3643
- <line num="3017" type="stmt" count="1"/>
3644
- <line num="3018" type="stmt" count="1"/>
3645
- <metrics loc="3019" ncloc="1556" classes="1" methods="28" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="1096" coveredstatements="536" elements="1124" coveredelements="540"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3646
  </file>
3647
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cron-log.php">
3648
  <class name="Boldgrid_Backup_Admin_Cron_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin.Cron">
3649
  <metrics complexity="26" methods="8" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="3" elements="90" coveredelements="4"/>
3650
  </class>
3651
- <line num="56" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
3652
- <line num="57" type="stmt" count="20"/>
3653
- <line num="59" type="stmt" count="20"/>
3654
- <line num="60" type="stmt" count="20"/>
3655
  <line num="72" type="method" name="add_log" visibility="public" complexity="4" crap="20" count="0"/>
3656
  <line num="73" type="stmt" count="0"/>
3657
  <line num="74" type="stmt" count="0"/>
@@ -3744,12 +3952,12 @@
3744
  <class name="Boldgrid_Backup_Admin_Cron_Test" namespace="global" fullPackage="Boldgrid.Backup.Admin.Cron">
3745
  <metrics complexity="17" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="66" coveredstatements="5" elements="72" coveredelements="6"/>
3746
  </class>
3747
- <line num="65" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
3748
- <line num="66" type="stmt" count="20"/>
3749
- <line num="68" type="stmt" count="20"/>
3750
- <line num="69" type="stmt" count="20"/>
3751
- <line num="70" type="stmt" count="20"/>
3752
- <line num="71" type="stmt" count="20"/>
3753
  <line num="80" type="method" name="clean_up" visibility="public" complexity="1" crap="2" count="0"/>
3754
  <line num="81" type="stmt" count="0"/>
3755
  <line num="82" type="stmt" count="0"/>
@@ -3822,9 +4030,9 @@
3822
  <class name="Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Boldgrid.Backup.Admin">
3823
  <metrics complexity="131" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="434" coveredstatements="88" elements="460" coveredelements="90"/>
3824
  </class>
3825
- <line num="87" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
3826
- <line num="89" type="stmt" count="20"/>
3827
- <line num="90" type="stmt" count="20"/>
3828
  <line num="97" type="method" name="get_cron_command" visibility="public" complexity="1" crap="2" count="0"/>
3829
  <line num="98" type="stmt" count="0"/>
3830
  <line num="114" type="method" name="add_cron_entry" visibility="public" complexity="9" crap="90" count="0"/>
@@ -4325,9 +4533,9 @@
4325
  <class name="Boldgrid_Backup_Admin_Dashboard_Widget" namespace="global" fullPackage="Boldgrid.Backup.Admin.Dashboard">
4326
  <metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="18" coveredstatements="2" elements="20" coveredelements="3"/>
4327
  </class>
4328
- <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4329
- <line num="38" type="stmt" count="20"/>
4330
- <line num="39" type="stmt" count="20"/>
4331
  <line num="50" type="method" name="filter_feature" visibility="public" complexity="4" crap="20" count="0"/>
4332
  <line num="52" type="stmt" count="0"/>
4333
  <line num="53" type="stmt" count="0"/>
@@ -4349,11 +4557,11 @@
4349
  </file>
4350
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-dashboard.php">
4351
  <class name="Boldgrid_Backup_Admin_Dashboard" namespace="global" fullPackage="Boldgrid.Backup.Admin">
4352
- <metrics complexity="5" methods="4" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="2" elements="21" coveredelements="3"/>
4353
  </class>
4354
- <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4355
- <line num="38" type="stmt" count="20"/>
4356
- <line num="39" type="stmt" count="20"/>
4357
  <line num="48" type="method" name="admin_enqueue_scripts" visibility="public" complexity="2" crap="6" count="0"/>
4358
  <line num="49" type="stmt" count="0"/>
4359
  <line num="50" type="stmt" count="0"/>
@@ -4372,126 +4580,153 @@
4372
  <line num="81" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
4373
  <line num="82" type="stmt" count="0"/>
4374
  <line num="83" type="stmt" count="0"/>
4375
- <metrics loc="84" ncloc="34" classes="1" methods="4" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="2" elements="21" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4376
  </file>
4377
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-dump.php">
4378
  <class name="Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4379
- <metrics complexity="23" methods="5" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="100" coveredstatements="59" elements="105" coveredelements="61"/>
4380
  </class>
4381
- <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4382
- <line num="40" type="stmt" count="20"/>
4383
- <line num="41" type="stmt" count="20"/>
4384
- <line num="53" type="method" name="dump" visibility="public" complexity="4" crap="4.00" count="4"/>
4385
  <line num="54" type="stmt" count="4"/>
4386
  <line num="56" type="stmt" count="4"/>
4387
  <line num="57" type="stmt" count="4"/>
4388
  <line num="58" type="stmt" count="0"/>
4389
  <line num="70" type="stmt" count="4"/>
4390
- <line num="71" type="stmt" count="4"/>
4391
- <line num="73" type="stmt" count="4"/>
4392
- <line num="75" type="stmt" count="4"/>
4393
  <line num="76" type="stmt" count="4"/>
4394
  <line num="77" type="stmt" count="4"/>
4395
- <line num="79" type="stmt" count="4"/>
4396
- <line num="86" type="stmt" count="4"/>
4397
- <line num="89" type="stmt" count="4"/>
4398
  <line num="90" type="stmt" count="4"/>
4399
  <line num="91" type="stmt" count="4"/>
4400
  <line num="92" type="stmt" count="4"/>
4401
  <line num="93" type="stmt" count="4"/>
4402
- <line num="105" type="stmt" count="4"/>
4403
  <line num="106" type="stmt" count="4"/>
4404
  <line num="107" type="stmt" count="4"/>
 
4405
  <line num="110" type="stmt" count="4"/>
4406
- <line num="111" type="stmt" count="4"/>
4407
- <line num="112" type="stmt" count="4"/>
4408
- <line num="113" type="stmt" count="4"/>
4409
- <line num="115" type="stmt" count="4"/>
4410
- <line num="116" type="stmt" count="4"/>
4411
- <line num="117" type="stmt" count="4"/>
4412
  <line num="118" type="stmt" count="0"/>
 
 
 
 
4413
  <line num="126" type="stmt" count="4"/>
4414
- <line num="128" type="stmt" count="4"/>
4415
- <line num="140" type="method" name="get_connection_string" visibility="public" complexity="9" crap="9" count="5"/>
4416
- <line num="141" type="stmt" count="5"/>
4417
- <line num="144" type="stmt" count="5"/>
4418
- <line num="145" type="stmt" count="5"/>
4419
- <line num="146" type="stmt" count="5"/>
4420
- <line num="149" type="stmt" count="5"/>
4421
- <line num="156" type="stmt" count="5"/>
4422
- <line num="157" type="stmt" count="5"/>
 
4423
  <line num="159" type="stmt" count="5"/>
4424
- <line num="160" type="stmt" count="1"/>
4425
- <line num="161" type="stmt" count="1"/>
4426
- <line num="162" type="stmt" count="5"/>
4427
- <line num="165" type="stmt" count="5"/>
4428
- <line num="172" type="stmt" count="1"/>
4429
- <line num="173" type="stmt" count="1"/>
4430
  <line num="174" type="stmt" count="1"/>
4431
- <line num="176" type="stmt" count="1"/>
4432
- <line num="178" type="stmt" count="1"/>
4433
- <line num="179" type="stmt" count="1"/>
4434
- <line num="180" type="stmt" count="1"/>
4435
- <line num="181" type="stmt" count="1"/>
4436
- <line num="182" type="stmt" count="1"/>
4437
- <line num="184" type="stmt" count="1"/>
4438
- <line num="185" type="stmt" count="5"/>
4439
- <line num="187" type="stmt" count="5"/>
4440
- <line num="188" type="stmt" count="5"/>
4441
- <line num="189" type="stmt" count="5"/>
4442
- <line num="190" type="stmt" count="5"/>
4443
- <line num="191" type="stmt" count="5"/>
4444
- <line num="193" type="stmt" count="5"/>
4445
- <line num="205" type="method" name="get_insert_count" visibility="public" complexity="7" crap="56" count="0"/>
4446
- <line num="206" type="stmt" count="0"/>
4447
- <line num="207" type="stmt" count="0"/>
4448
- <line num="209" type="stmt" count="0"/>
4449
- <line num="211" type="stmt" count="0"/>
4450
- <line num="214" type="stmt" count="0"/>
4451
- <line num="215" type="stmt" count="0"/>
4452
- <line num="216" type="stmt" count="0"/>
4453
- <line num="218" type="stmt" count="0"/>
4454
  <line num="221" type="stmt" count="0"/>
 
 
4455
  <line num="228" type="stmt" count="0"/>
4456
  <line num="229" type="stmt" count="0"/>
4457
- <line num="231" type="stmt" count="0"/>
4458
  <line num="232" type="stmt" count="0"/>
4459
- <line num="233" type="stmt" count="0"/>
4460
- <line num="236" type="stmt" count="0"/>
4461
- <line num="238" type="stmt" count="0"/>
4462
- <line num="253" type="stmt" count="0"/>
4463
- <line num="254" type="stmt" count="0"/>
4464
- <line num="255" type="stmt" count="0"/>
4465
- <line num="257" type="stmt" count="0"/>
4466
- <line num="258" type="stmt" count="0"/>
4467
- <line num="259" type="stmt" count="0"/>
4468
- <line num="260" type="stmt" count="0"/>
4469
- <line num="261" type="stmt" count="0"/>
4470
- <line num="263" type="stmt" count="0"/>
4471
- <line num="264" type="stmt" count="0"/>
4472
- <line num="266" type="stmt" count="0"/>
4473
  <line num="267" type="stmt" count="0"/>
 
4474
  <line num="269" type="stmt" count="0"/>
4475
- <line num="281" type="method" name="get_insert_tables" visibility="public" complexity="2" crap="6" count="0"/>
4476
- <line num="282" type="stmt" count="0"/>
 
 
 
 
 
 
 
4477
  <line num="283" type="stmt" count="0"/>
4478
- <line num="298" type="stmt" count="0"/>
4479
- <line num="299" type="stmt" count="0"/>
4480
- <line num="300" type="stmt" count="0"/>
4481
- <line num="301" type="stmt" count="0"/>
4482
- <line num="302" type="stmt" count="0"/>
4483
- <line num="303" type="stmt" count="0"/>
4484
- <line num="306" type="stmt" count="0"/>
4485
- <line num="308" type="stmt" count="0"/>
4486
- <metrics loc="310" ncloc="156" classes="1" methods="5" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="100" coveredstatements="59" elements="105" coveredelements="61"/>
 
 
 
4487
  </file>
4488
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-get.php">
4489
  <class name="Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4490
  <metrics complexity="11" methods="5" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="35" elements="49" coveredelements="38"/>
4491
  </class>
4492
- <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4493
- <line num="40" type="stmt" count="20"/>
4494
- <line num="41" type="stmt" count="20"/>
4495
  <line num="55" type="method" name="get_by_type" visibility="public" complexity="3" crap="3.00" count="6"/>
4496
  <line num="56" type="stmt" count="6"/>
4497
  <line num="58" type="stmt" count="6"/>
@@ -4542,61 +4777,143 @@
4542
  </file>
4543
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php">
4544
  <class name="Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4545
- <metrics complexity="15" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="39" coveredstatements="20" elements="44" coveredelements="20"/>
4546
  </class>
4547
- <line num="45" type="method" name="__construct" visibility="public" complexity="2" crap="2.50" count="1"/>
4548
- <line num="47" type="stmt" count="1"/>
4549
- <line num="48" type="stmt" count="0"/>
4550
- <line num="49" type="stmt" count="0"/>
4551
- <line num="50" type="stmt" count="1"/>
4552
- <line num="60" type="method" name="import" visibility="public" complexity="2" crap="2.50" count="1"/>
4553
- <line num="61" type="stmt" count="1"/>
4554
- <line num="63" type="stmt" count="1"/>
4555
- <line num="65" type="stmt" count="0"/>
4556
- <line num="67" type="stmt" count="0"/>
4557
- <line num="69" type="stmt" count="0"/>
4558
- <line num="70" type="stmt" count="0"/>
4559
- <line num="73" type="stmt" count="1"/>
4560
- <line num="75" type="stmt" count="1"/>
4561
- <line num="90" type="method" name="import_from_archive" visibility="public" complexity="3" crap="12" count="0"/>
4562
- <line num="91" type="stmt" count="0"/>
4563
- <line num="92" type="stmt" count="0"/>
4564
- <line num="94" type="stmt" count="0"/>
4565
- <line num="95" type="stmt" count="0"/>
4566
- <line num="96" type="stmt" count="0"/>
4567
- <line num="97" type="stmt" count="0"/>
4568
- <line num="100" type="stmt" count="0"/>
4569
- <line num="102" type="stmt" count="0"/>
4570
- <line num="122" type="method" name="import_lines" visibility="public" complexity="7" crap="7.10" count="1"/>
 
 
 
 
 
4571
  <line num="123" type="stmt" count="1"/>
4572
- <line num="124" type="stmt" count="0"/>
4573
- <line num="128" type="stmt" count="1"/>
4574
- <line num="130" type="stmt" count="1"/>
4575
- <line num="132" type="stmt" count="1"/>
4576
- <line num="134" type="stmt" count="1"/>
4577
- <line num="135" type="stmt" count="1"/>
4578
- <line num="138" type="stmt" count="1"/>
4579
- <line num="141" type="stmt" count="1"/>
4580
- <line num="142" type="stmt" count="1"/>
4581
- <line num="143" type="stmt" count="1"/>
4582
- <line num="144" type="stmt" count="0"/>
4583
- <line num="147" type="stmt" count="1"/>
4584
- <line num="148" type="stmt" count="1"/>
4585
- <line num="149" type="stmt" count="1"/>
4586
- <line num="151" type="stmt" count="1"/>
4587
- <line num="166" type="method" name="import_string" visibility="public" complexity="1" crap="2" count="0"/>
4588
- <line num="167" type="stmt" count="0"/>
4589
- <line num="169" type="stmt" count="0"/>
4590
- <line num="171" type="stmt" count="0"/>
4591
- <metrics loc="173" ncloc="78" classes="1" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="39" coveredstatements="20" elements="44" coveredelements="20"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4592
  </file>
4593
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-omit.php">
4594
  <class name="Boldgrid_Backup_Admin_Db_Omit" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4595
  <metrics complexity="37" methods="11" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="39" elements="95" coveredelements="42"/>
4596
  </class>
4597
- <line num="61" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4598
- <line num="62" type="stmt" count="20"/>
4599
- <line num="63" type="stmt" count="20"/>
4600
  <line num="74" type="method" name="email_part" visibility="public" complexity="3" crap="3" count="4"/>
4601
  <line num="75" type="stmt" count="4"/>
4602
  <line num="78" type="stmt" count="4"/>
@@ -4693,11 +5010,11 @@
4693
  </file>
4694
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-email.php">
4695
  <class name="Boldgrid_Backup_Admin_Email" namespace="global" fullPackage="Boldgrid.Backup.Admin">
4696
- <metrics complexity="16" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="60" elements="90" coveredelements="63"/>
4697
  </class>
4698
- <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4699
- <line num="49" type="stmt" count="20"/>
4700
- <line num="50" type="stmt" count="20"/>
4701
  <line num="63" type="method" name="fill_generic_template" visibility="public" complexity="2" crap="6" count="0"/>
4702
  <line num="64" type="stmt" count="0"/>
4703
  <line num="66" type="stmt" count="0"/>
@@ -4710,14 +5027,14 @@
4710
  <line num="77" type="stmt" count="0"/>
4711
  <line num="79" type="stmt" count="0"/>
4712
  <line num="81" type="stmt" count="0"/>
4713
- <line num="89" type="method" name="init_ads" visibility="public" complexity="2" crap="2" count="4"/>
4714
  <line num="90" type="stmt" count="4"/>
4715
  <line num="91" type="stmt" count="4"/>
4716
- <line num="93" type="stmt" count="4"/>
4717
- <line num="94" type="stmt" count="4"/>
4718
- <line num="96" type="stmt" count="4"/>
4719
- <line num="97" type="stmt" count="4"/>
4720
- <line num="98" type="stmt" count="4"/>
4721
  <line num="99" type="stmt" count="4"/>
4722
  <line num="101" type="stmt" count="4"/>
4723
  <line num="111" type="method" name="post_archive_parts" visibility="public" complexity="3" crap="3" count="4"/>
@@ -4785,15 +5102,15 @@
4785
  <line num="266" type="stmt" count="0"/>
4786
  <line num="267" type="stmt" count="0"/>
4787
  <line num="268" type="stmt" count="0"/>
4788
- <metrics loc="269" ncloc="130" classes="1" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="60" elements="90" coveredelements="63"/>
4789
  </file>
4790
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-filelist.php">
4791
  <class name="Boldgrid_Backup_Admin_Filelist" namespace="global" fullPackage="Boldgrid.Backup.Admin">
4792
  <metrics complexity="7" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="7" elements="23" coveredelements="9"/>
4793
  </class>
4794
- <line num="73" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4795
- <line num="74" type="stmt" count="20"/>
4796
- <line num="75" type="stmt" count="20"/>
4797
  <line num="84" type="method" name="get_size" visibility="public" complexity="4" crap="20" count="0"/>
4798
  <line num="92" type="stmt" count="0"/>
4799
  <line num="93" type="stmt" count="0"/>
@@ -4818,13 +5135,13 @@
4818
  </file>
4819
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-folder-exclusion.php">
4820
  <class name="Boldgrid_Backup_Admin_Folder_Exclusion" namespace="global" fullPackage="Boldgrid.Backup.Admin.Folder">
4821
- <metrics complexity="57" methods="10" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="150" coveredstatements="73" elements="160" coveredelements="76"/>
4822
  </class>
4823
- <line num="113" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4824
- <line num="114" type="stmt" count="20"/>
4825
- <line num="131" type="stmt" count="20"/>
4826
- <line num="132" type="stmt" count="20"/>
4827
- <line num="133" type="stmt" count="20"/>
4828
  <line num="143" type="method" name="allow_file" visibility="public" complexity="11" crap="11.97" count="4"/>
4829
  <line num="145" type="stmt" count="4"/>
4830
  <line num="146" type="stmt" count="0"/>
@@ -4903,34 +5220,34 @@
4903
  <line num="316" type="stmt" count="0"/>
4904
  <line num="317" type="stmt" count="0"/>
4905
  <line num="318" type="stmt" count="0"/>
4906
- <line num="329" type="method" name="from_settings" visibility="public" complexity="16" crap="38.47" count="7"/>
4907
- <line num="330" type="stmt" count="7"/>
4908
  <line num="331" type="stmt" count="0"/>
4909
- <line num="334" type="stmt" count="7"/>
4910
- <line num="335" type="stmt" count="7"/>
4911
- <line num="345" type="stmt" count="7"/>
4912
  <line num="346" type="stmt" count="0"/>
4913
- <line num="353" type="stmt" count="7"/>
4914
  <line num="354" type="stmt" count="0"/>
4915
  <line num="355" type="stmt" count="0"/>
4916
- <line num="358" type="stmt" count="7"/>
4917
  <line num="359" type="stmt" count="7"/>
4918
- <line num="362" type="stmt" count="2"/>
4919
  <line num="363" type="stmt" count="0"/>
4920
- <line num="364" type="stmt" count="2"/>
4921
  <line num="369" type="stmt" count="0"/>
4922
- <line num="370" type="stmt" count="2"/>
4923
- <line num="378" type="stmt" count="0"/>
4924
- <line num="379" type="stmt" count="2"/>
4925
  <line num="380" type="stmt" count="0"/>
4926
  <line num="381" type="stmt" count="0"/>
4927
  <line num="382" type="stmt" count="0"/>
4928
  <line num="383" type="stmt" count="0"/>
4929
  <line num="384" type="stmt" count="0"/>
4930
- <line num="386" type="stmt" count="2"/>
4931
  <line num="387" type="stmt" count="2"/>
4932
  <line num="388" type="stmt" count="2"/>
4933
- <line num="390" type="stmt" count="2"/>
4934
  <line num="405" type="method" name="is_match" visibility="public" complexity="3" crap="3.02" count="4"/>
4935
  <line num="406" type="stmt" count="4"/>
4936
  <line num="407" type="stmt" count="0"/>
@@ -4980,15 +5297,15 @@
4980
  <line num="512" type="stmt" count="0"/>
4981
  <line num="514" type="stmt" count="0"/>
4982
  <line num="515" type="stmt" count="0"/>
4983
- <metrics loc="516" ncloc="251" classes="1" methods="10" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="150" coveredstatements="73" elements="160" coveredelements="76"/>
4984
  </file>
4985
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-go-pro.php">
4986
  <class name="Boldgrid_Backup_Admin_Go_Pro" namespace="global" fullPackage="Boldgrid.Backup.Admin.Go">
4987
- <metrics complexity="17" methods="5" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="72" coveredstatements="9" elements="77" coveredelements="12"/>
4988
  </class>
4989
- <line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4990
- <line num="47" type="stmt" count="20"/>
4991
- <line num="48" type="stmt" count="20"/>
4992
  <line num="60" type="method" name="get_admin_notices" visibility="public" complexity="8" crap="72" count="0"/>
4993
  <line num="61" type="stmt" count="0"/>
4994
  <line num="64" type="stmt" count="0"/>
@@ -5054,24 +5371,24 @@
5054
  <line num="163" type="stmt" count="0"/>
5055
  <line num="165" type="stmt" count="0"/>
5056
  <line num="166" type="stmt" count="0"/>
5057
- <line num="177" type="method" name="get_premium_button" visibility="public" complexity="2" crap="2" count="1"/>
5058
- <line num="178" type="stmt" count="1"/>
5059
- <line num="180" type="stmt" count="1"/>
5060
- <line num="182" type="stmt" count="1"/>
5061
- <line num="183" type="stmt" count="1"/>
5062
- <line num="185" type="stmt" count="1"/>
5063
- <line num="197" type="method" name="get_premium_url" visibility="public" complexity="1" crap="1" count="5"/>
5064
- <line num="198" type="stmt" count="5"/>
5065
- <line num="200" type="stmt" count="5"/>
5066
- <metrics loc="202" ncloc="112" classes="1" methods="5" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="72" coveredstatements="9" elements="77" coveredelements="12"/>
5067
  </file>
5068
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-home-dir.php">
5069
  <class name="Boldgrid_Backup_Admin_Home_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Home">
5070
  <metrics complexity="6" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="2" elements="12" coveredelements="3"/>
5071
  </class>
5072
- <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
5073
- <line num="38" type="stmt" count="20"/>
5074
- <line num="39" type="stmt" count="20"/>
5075
  <line num="51" type="method" name="get_for_disk" visibility="public" complexity="5" crap="30" count="0"/>
5076
  <line num="52" type="stmt" count="0"/>
5077
  <line num="53" type="stmt" count="0"/>
@@ -5120,11 +5437,11 @@
5120
  </file>
5121
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress-tmp.php">
5122
  <class name="Boldgrid_Backup_Admin_In_Progress_Tmp" namespace="global" fullPackage="Boldgrid.Backup.Admin.In.Progress">
5123
- <metrics complexity="15" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="2" elements="55" coveredelements="3"/>
5124
  </class>
5125
- <line num="48" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="20"/>
5126
- <line num="49" type="stmt" count="20"/>
5127
- <line num="50" type="stmt" count="20"/>
5128
  <line num="59" type="method" name="get" visibility="public" complexity="4" crap="20" count="0"/>
5129
  <line num="60" type="stmt" count="0"/>
5130
  <line num="62" type="stmt" count="0"/>
@@ -5138,55 +5455,53 @@
5138
  <line num="72" type="stmt" count="0"/>
5139
  <line num="73" type="stmt" count="0"/>
5140
  <line num="76" type="stmt" count="0"/>
5141
- <line num="86" type="method" name="get_system_zip" visibility="private" complexity="5" crap="30" count="0"/>
5142
  <line num="87" type="stmt" count="0"/>
5143
- <line num="88" type="stmt" count="0"/>
5144
  <line num="89" type="stmt" count="0"/>
5145
  <line num="90" type="stmt" count="0"/>
5146
- <line num="91" type="stmt" count="0"/>
5147
- <line num="93" type="stmt" count="0"/>
5148
  <line num="94" type="stmt" count="0"/>
5149
  <line num="96" type="stmt" count="0"/>
5150
  <line num="97" type="stmt" count="0"/>
 
 
5151
  <line num="100" type="stmt" count="0"/>
5152
- <line num="101" type="stmt" count="0"/>
5153
  <line num="102" type="stmt" count="0"/>
5154
- <line num="103" type="stmt" count="0"/>
5155
- <line num="113" type="method" name="get_pcl_zip" visibility="private" complexity="2" crap="6" count="0"/>
5156
- <line num="114" type="stmt" count="0"/>
5157
  <line num="116" type="stmt" count="0"/>
5158
- <line num="117" type="stmt" count="0"/>
5159
- <line num="119" type="stmt" count="0"/>
5160
- <line num="121" type="stmt" count="0"/>
5161
  <line num="123" type="stmt" count="0"/>
5162
  <line num="124" type="stmt" count="0"/>
5163
  <line num="125" type="stmt" count="0"/>
5164
  <line num="126" type="stmt" count="0"/>
5165
- <line num="127" type="stmt" count="0"/>
5166
- <line num="129" type="stmt" count="0"/>
5167
- <line num="143" type="method" name="get_php_zip" visibility="private" complexity="2" crap="6" count="0"/>
5168
- <line num="144" type="stmt" count="0"/>
5169
  <line num="146" type="stmt" count="0"/>
5170
- <line num="147" type="stmt" count="0"/>
5171
- <line num="149" type="stmt" count="0"/>
5172
- <line num="152" type="stmt" count="0"/>
5173
  <line num="154" type="stmt" count="0"/>
5174
  <line num="155" type="stmt" count="0"/>
5175
  <line num="156" type="stmt" count="0"/>
5176
- <line num="157" type="stmt" count="0"/>
5177
  <line num="159" type="stmt" count="0"/>
5178
- <line num="160" type="stmt" count="0"/>
5179
- <line num="162" type="stmt" count="0"/>
5180
- <metrics loc="164" ncloc="88" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="2" elements="55" coveredelements="3"/>
5181
  </file>
5182
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress.php">
5183
  <class name="Boldgrid_Backup_Admin_In_Progress" namespace="global" fullPackage="Boldgrid.Backup.Admin.In">
5184
  <metrics complexity="27" methods="12" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="97" coveredstatements="7" elements="109" coveredelements="9"/>
5185
  </class>
5186
- <line num="57" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
5187
- <line num="58" type="stmt" count="20"/>
5188
- <line num="60" type="stmt" count="20"/>
5189
- <line num="61" type="stmt" count="20"/>
5190
  <line num="71" type="method" name="add_notice" visibility="public" complexity="4" crap="20" count="0"/>
5191
  <line num="72" type="stmt" count="0"/>
5192
  <line num="74" type="stmt" count="0"/>
@@ -5298,9 +5613,9 @@
5298
  <class name="Boldgrid_Backup_Admin_Jobs" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5299
  <metrics complexity="28" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="93" coveredstatements="2" elements="102" coveredelements="3"/>
5300
  </class>
5301
- <line num="68" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
5302
- <line num="69" type="stmt" count="20"/>
5303
- <line num="70" type="stmt" count="20"/>
5304
  <line num="80" type="method" name="add" visibility="public" complexity="2" crap="6" count="0"/>
5305
  <line num="81" type="stmt" count="0"/>
5306
  <line num="82" type="stmt" count="0"/>
@@ -5456,9 +5771,9 @@
5456
  <class name="Boldgrid_Backup_Admin_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5457
  <metrics complexity="23" methods="11" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="59" elements="93" coveredelements="66"/>
5458
  </class>
5459
- <line num="78" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="24"/>
5460
- <line num="79" type="stmt" count="24"/>
5461
- <line num="80" type="stmt" count="24"/>
5462
  <line num="91" type="method" name="add" visibility="public" complexity="2" crap="2" count="4"/>
5463
  <line num="97" type="stmt" count="4"/>
5464
  <line num="98" type="stmt" count="4"/>
@@ -5546,18 +5861,18 @@
5546
  <line num="300" type="stmt" count="0"/>
5547
  <line num="301" type="stmt" count="0"/>
5548
  <line num="302" type="stmt" count="0"/>
5549
- <line num="311" type="method" name="signal_handler" visibility="public" complexity="1" crap="2" count="0"/>
5550
- <line num="312" type="stmt" count="0"/>
5551
- <line num="314" type="stmt" count="0"/>
5552
- <metrics loc="316" ncloc="135" classes="1" methods="11" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="59" elements="93" coveredelements="66"/>
5553
  </file>
5554
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-notice.php">
5555
  <class name="Boldgrid_Backup_Admin_Notice" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5556
- <metrics complexity="22" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="87" coveredstatements="2" elements="98" coveredelements="3"/>
5557
  </class>
5558
- <line num="58" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
5559
- <line num="59" type="stmt" count="20"/>
5560
- <line num="60" type="stmt" count="20"/>
5561
  <line num="71" type="method" name="add_user_notice" visibility="public" complexity="1" crap="2" count="0"/>
5562
  <line num="72" type="stmt" count="0"/>
5563
  <line num="74" type="stmt" count="0"/>
@@ -5624,36 +5939,70 @@
5624
  <line num="226" type="stmt" count="0"/>
5625
  <line num="228" type="stmt" count="0"/>
5626
  <line num="230" type="stmt" count="0"/>
5627
- <line num="238" type="method" name="display_autoupdate_notice" visibility="public" complexity="1" crap="2" count="0"/>
5628
- <line num="239" type="stmt" count="0"/>
5629
  <line num="241" type="stmt" count="0"/>
5630
  <line num="242" type="stmt" count="0"/>
 
5631
  <line num="244" type="stmt" count="0"/>
5632
  <line num="245" type="stmt" count="0"/>
5633
  <line num="246" type="stmt" count="0"/>
 
5634
  <line num="248" type="stmt" count="0"/>
 
5635
  <line num="250" type="stmt" count="0"/>
5636
  <line num="251" type="stmt" count="0"/>
5637
- <line num="263" type="method" name="plugin_renamed_notice" visibility="public" complexity="3" crap="12" count="0"/>
5638
- <line num="264" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5639
  <line num="272" type="stmt" count="0"/>
5640
  <line num="273" type="stmt" count="0"/>
 
 
5641
  <line num="276" type="stmt" count="0"/>
5642
  <line num="278" type="stmt" count="0"/>
5643
- <line num="279" type="stmt" count="0"/>
5644
  <line num="281" type="stmt" count="0"/>
5645
- <line num="282" type="stmt" count="0"/>
5646
  <line num="284" type="stmt" count="0"/>
5647
  <line num="285" type="stmt" count="0"/>
5648
  <line num="286" type="stmt" count="0"/>
5649
- <line num="287" type="stmt" count="0"/>
5650
  <line num="288" type="stmt" count="0"/>
5651
- <line num="289" type="stmt" count="0"/>
5652
  <line num="291" type="stmt" count="0"/>
5653
- <line num="293" type="stmt" count="0"/>
5654
- <line num="294" type="stmt" count="0"/>
5655
- <line num="295" type="stmt" count="0"/>
5656
- <metrics loc="296" ncloc="155" classes="1" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="87" coveredstatements="2" elements="98" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5657
  </file>
5658
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-plugin-notices.php">
5659
  <class name="Boldgrid_Backup_Admin_Plugin_Notices" namespace="global" fullPackage="Boldgrid.Backup.Admin.Plugin">
@@ -5702,51 +6051,70 @@
5702
  </file>
5703
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-premium-features.php">
5704
  <class name="Boldgrid_Backup_Admin_Premium_Features" namespace="global" fullPackage="Boldgrid.Backup.Admin.Premium">
5705
- <metrics complexity="6" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="30" elements="34" coveredelements="34"/>
5706
  </class>
5707
- <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
5708
- <line num="49" type="stmt" count="20"/>
5709
- <line num="50" type="stmt" count="20"/>
5710
- <line num="59" type="method" name="admin_enqueue_scripts" visibility="public" complexity="3" crap="3" count="2"/>
5711
- <line num="60" type="stmt" count="2"/>
5712
  <line num="61" type="stmt" count="1"/>
5713
  <line num="62" type="stmt" count="1"/>
5714
  <line num="63" type="stmt" count="1"/>
5715
  <line num="65" type="stmt" count="1"/>
5716
  <line num="66" type="stmt" count="1"/>
5717
- <line num="67" type="stmt" count="2"/>
5718
- <line num="76" type="method" name="get_cards" visibility="public" complexity="1" crap="1" count="2"/>
5719
- <line num="77" type="stmt" count="2"/>
5720
- <line num="79" type="stmt" count="2"/>
5721
- <line num="81" type="stmt" count="2"/>
5722
- <line num="82" type="stmt" count="2"/>
5723
- <line num="83" type="stmt" count="2"/>
5724
- <line num="84" type="stmt" count="2"/>
5725
- <line num="85" type="stmt" count="2"/>
5726
- <line num="86" type="stmt" count="2"/>
5727
- <line num="87" type="stmt" count="2"/>
5728
- <line num="88" type="stmt" count="2"/>
5729
- <line num="89" type="stmt" count="2"/>
5730
- <line num="90" type="stmt" count="2"/>
5731
- <line num="92" type="stmt" count="2"/>
5732
- <line num="102" type="method" name="page" visibility="public" complexity="1" crap="1" count="1"/>
5733
- <line num="103" type="stmt" count="1"/>
5734
- <line num="105" type="stmt" count="1"/>
5735
- <line num="106" type="stmt" count="1"/>
5736
- <line num="107" type="stmt" count="1"/>
5737
- <line num="109" type="stmt" count="1"/>
5738
- <line num="110" type="stmt" count="1"/>
5739
- <line num="111" type="stmt" count="1"/>
5740
- <line num="112" type="stmt" count="1"/>
5741
- <metrics loc="114" ncloc="54" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="30" elements="34" coveredelements="34"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5742
  </file>
5743
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-remote.php">
5744
  <class name="Boldgrid_Backup_Admin_Remote" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5745
  <metrics complexity="18" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="2" elements="40" coveredelements="3"/>
5746
  </class>
5747
- <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
5748
- <line num="38" type="stmt" count="20"/>
5749
- <line num="39" type="stmt" count="20"/>
5750
  <line num="56" type="method" name="any_enabled" visibility="public" complexity="8" crap="72" count="0"/>
5751
  <line num="57" type="stmt" count="0"/>
5752
  <line num="59" type="stmt" count="0"/>
@@ -5808,9 +6176,9 @@
5808
  <class name="Boldgrid_Backup_Admin_Restore_Helper" namespace="global" fullPackage="Boldgrid.Backup.Admin.Restore">
5809
  <metrics complexity="44" methods="10" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="103" coveredstatements="15" elements="113" coveredelements="16"/>
5810
  </class>
5811
- <line num="68" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="20"/>
5812
- <line num="69" type="stmt" count="20"/>
5813
- <line num="70" type="stmt" count="20"/>
5814
  <line num="79" type="method" name="get_last_error" visibility="public" complexity="2" crap="6" count="0"/>
5815
  <line num="80" type="stmt" count="0"/>
5816
  <line num="82" type="stmt" count="0"/>
@@ -5927,9 +6295,9 @@
5927
  <class name="Boldgrid_Backup_Admin_Scheduler" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5928
  <metrics complexity="12" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="2" elements="35" coveredelements="3"/>
5929
  </class>
5930
- <line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
5931
- <line num="47" type="stmt" count="20"/>
5932
- <line num="48" type="stmt" count="20"/>
5933
  <line num="55" type="method" name="clear_all_schedules" visibility="public" complexity="1" crap="2" count="0"/>
5934
  <line num="56" type="stmt" count="0"/>
5935
  <line num="57" type="stmt" count="0"/>
@@ -5966,12 +6334,12 @@
5966
  </file>
5967
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-settings.php">
5968
  <class name="Boldgrid_Backup_Admin_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5969
- <metrics complexity="145" methods="16" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="445" coveredstatements="51" elements="461" coveredelements="55"/>
5970
  </class>
5971
- <line num="50" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
5972
- <line num="52" type="stmt" count="20"/>
5973
- <line num="54" type="stmt" count="20"/>
5974
- <line num="55" type="stmt" count="20"/>
5975
  <line num="67" type="method" name="get_dow_count" visibility="public" complexity="5" crap="30" count="0"/>
5976
  <line num="68" type="stmt" count="0"/>
5977
  <line num="70" type="stmt" count="0"/>
@@ -5982,74 +6350,74 @@
5982
  <line num="78" type="stmt" count="0"/>
5983
  <line num="79" type="stmt" count="0"/>
5984
  <line num="81" type="stmt" count="0"/>
5985
- <line num="92" type="method" name="get_setting" visibility="public" complexity="2" crap="2" count="1"/>
5986
- <line num="93" type="stmt" count="1"/>
5987
- <line num="95" type="stmt" count="1"/>
5988
- <line num="108" type="method" name="get_settings" visibility="public" complexity="37" crap="318.85" count="7"/>
5989
- <line num="110" type="stmt" count="7"/>
5990
- <line num="112" type="stmt" count="7"/>
5991
  <line num="113" type="stmt" count="4"/>
5992
- <line num="117" type="stmt" count="7"/>
5993
- <line num="118" type="stmt" count="7"/>
5994
- <line num="121" type="stmt" count="7"/>
5995
- <line num="124" type="stmt" count="0"/>
5996
- <line num="125" type="stmt" count="0"/>
5997
- <line num="126" type="stmt" count="0"/>
5998
- <line num="127" type="stmt" count="0"/>
5999
- <line num="128" type="stmt" count="0"/>
6000
- <line num="129" type="stmt" count="0"/>
6001
- <line num="130" type="stmt" count="0"/>
6002
- <line num="131" type="stmt" count="0"/>
6003
- <line num="132" type="stmt" count="0"/>
6004
- <line num="133" type="stmt" count="0"/>
6005
- <line num="134" type="stmt" count="0"/>
6006
- <line num="135" type="stmt" count="0"/>
6007
- <line num="136" type="stmt" count="0"/>
6008
- <line num="137" type="stmt" count="0"/>
6009
- <line num="138" type="stmt" count="0"/>
6010
- <line num="139" type="stmt" count="0"/>
6011
- <line num="140" type="stmt" count="0"/>
6012
- <line num="141" type="stmt" count="0"/>
6013
- <line num="142" type="stmt" count="0"/>
6014
- <line num="143" type="stmt" count="0"/>
6015
- <line num="144" type="stmt" count="0"/>
6016
- <line num="147" type="stmt" count="0"/>
6017
- <line num="148" type="stmt" count="0"/>
6018
- <line num="149" type="stmt" count="0"/>
6019
  <line num="150" type="stmt" count="0"/>
6020
- <line num="151" type="stmt" count="0"/>
6021
- <line num="152" type="stmt" count="0"/>
6022
- <line num="153" type="stmt" count="0"/>
6023
  <line num="154" type="stmt" count="0"/>
6024
- <line num="155" type="stmt" count="0"/>
6025
- <line num="156" type="stmt" count="0"/>
6026
- <line num="157" type="stmt" count="0"/>
6027
  <line num="158" type="stmt" count="0"/>
6028
- <line num="161" type="stmt" count="0"/>
6029
- <line num="162" type="stmt" count="0"/>
6030
- <line num="163" type="stmt" count="0"/>
6031
  <line num="164" type="stmt" count="0"/>
6032
- <line num="165" type="stmt" count="0"/>
6033
- <line num="166" type="stmt" count="0"/>
6034
- <line num="167" type="stmt" count="0"/>
6035
  <line num="168" type="stmt" count="0"/>
6036
- <line num="171" type="stmt" count="0"/>
6037
  <line num="172" type="stmt" count="0"/>
6038
  <line num="173" type="stmt" count="0"/>
6039
- <line num="176" type="stmt" count="0"/>
6040
- <line num="177" type="stmt" count="0"/>
6041
  <line num="178" type="stmt" count="0"/>
6042
- <line num="180" type="stmt" count="0"/>
6043
- <line num="181" type="stmt" count="0"/>
6044
- <line num="182" type="stmt" count="0"/>
6045
  <line num="183" type="stmt" count="0"/>
6046
- <line num="186" type="stmt" count="0"/>
6047
- <line num="187" type="stmt" count="0"/>
6048
- <line num="188" type="stmt" count="0"/>
6049
- <line num="190" type="stmt" count="0"/>
6050
  <line num="191" type="stmt" count="0"/>
6051
  <line num="192" type="stmt" count="0"/>
6052
- <line num="193" type="stmt" count="0"/>
6053
  <line num="196" type="stmt" count="7"/>
6054
  <line num="197" type="stmt" count="7"/>
6055
  <line num="198" type="stmt" count="7"/>
@@ -6067,30 +6435,30 @@
6067
  <line num="214" type="stmt" count="7"/>
6068
  <line num="215" type="stmt" count="7"/>
6069
  <line num="217" type="stmt" count="7"/>
6070
- <line num="220" type="stmt" count="7"/>
6071
  <line num="221" type="stmt" count="0"/>
6072
  <line num="222" type="stmt" count="0"/>
6073
- <line num="225" type="stmt" count="7"/>
6074
- <line num="226" type="stmt" count="0"/>
6075
- <line num="227" type="stmt" count="0"/>
6076
- <line num="229" type="stmt" count="7"/>
6077
- <line num="230" type="stmt" count="7"/>
6078
- <line num="231" type="stmt" count="7"/>
6079
- <line num="234" type="stmt" count="7"/>
6080
- <line num="235" type="stmt" count="7"/>
6081
- <line num="238" type="stmt" count="7"/>
6082
- <line num="239" type="stmt" count="7"/>
6083
- <line num="241" type="stmt" count="7"/>
6084
- <line num="242" type="stmt" count="7"/>
6085
- <line num="244" type="stmt" count="7"/>
6086
- <line num="245" type="stmt" count="7"/>
6087
- <line num="247" type="stmt" count="7"/>
6088
- <line num="248" type="stmt" count="7"/>
6089
- <line num="251" type="stmt" count="7"/>
6090
- <line num="252" type="stmt" count="7"/>
6091
- <line num="253" type="stmt" count="7"/>
6092
- <line num="256" type="stmt" count="7"/>
6093
- <line num="259" type="stmt" count="7"/>
6094
  <line num="271" type="method" name="has_full_protection" visibility="public" complexity="2" crap="6" count="0"/>
6095
  <line num="272" type="stmt" count="0"/>
6096
  <line num="282" type="method" name="has_remote_configured" visibility="public" complexity="4" crap="20" count="0"/>
@@ -6135,7 +6503,7 @@
6135
  <line num="390" type="method" name="is_all_tables" visibility="public" complexity="1" crap="2" count="0"/>
6136
  <line num="391" type="stmt" count="0"/>
6137
  <line num="393" type="stmt" count="0"/>
6138
- <line num="405" type="method" name="move_backups" visibility="private" complexity="3" crap="12" count="0"/>
6139
  <line num="406" type="stmt" count="0"/>
6140
  <line num="408" type="stmt" count="0"/>
6141
  <line num="409" type="stmt" count="0"/>
@@ -6150,7 +6518,7 @@
6150
  <line num="424" type="stmt" count="0"/>
6151
  <line num="425" type="stmt" count="0"/>
6152
  <line num="427" type="stmt" count="0"/>
6153
- <line num="441" type="method" name="update_settings" visibility="private" complexity="62" crap="3906" count="0"/>
6154
  <line num="442" type="stmt" count="0"/>
6155
  <line num="445" type="stmt" count="0"/>
6156
  <line num="446" type="stmt" count="0"/>
@@ -6252,192 +6620,216 @@
6252
  <line num="607" type="stmt" count="0"/>
6253
  <line num="608" type="stmt" count="0"/>
6254
  <line num="610" type="stmt" count="0"/>
 
 
6255
  <line num="619" type="stmt" count="0"/>
6256
- <line num="620" type="stmt" count="0"/>
6257
- <line num="621" type="stmt" count="0"/>
6258
- <line num="622" type="stmt" count="0"/>
6259
- <line num="623" type="stmt" count="0"/>
6260
- <line num="624" type="stmt" count="0"/>
6261
- <line num="625" type="stmt" count="0"/>
6262
- <line num="627" type="stmt" count="0"/>
6263
- <line num="637" type="stmt" count="0"/>
6264
- <line num="638" type="stmt" count="0"/>
6265
- <line num="639" type="stmt" count="0"/>
6266
- <line num="640" type="stmt" count="0"/>
6267
- <line num="641" type="stmt" count="0"/>
6268
- <line num="642" type="stmt" count="0"/>
6269
  <line num="649" type="stmt" count="0"/>
6270
- <line num="652" type="stmt" count="0"/>
6271
- <line num="653" type="stmt" count="0"/>
6272
- <line num="654" type="stmt" count="0"/>
6273
- <line num="655" type="stmt" count="0"/>
6274
  <line num="662" type="stmt" count="0"/>
6275
- <line num="665" type="stmt" count="0"/>
6276
- <line num="666" type="stmt" count="0"/>
6277
- <line num="667" type="stmt" count="0"/>
6278
- <line num="670" type="stmt" count="0"/>
6279
  <line num="671" type="stmt" count="0"/>
6280
  <line num="674" type="stmt" count="0"/>
6281
  <line num="675" type="stmt" count="0"/>
6282
- <line num="681" type="stmt" count="0"/>
6283
- <line num="682" type="stmt" count="0"/>
 
6284
  <line num="683" type="stmt" count="0"/>
6285
  <line num="684" type="stmt" count="0"/>
 
6286
  <line num="691" type="stmt" count="0"/>
6287
  <line num="692" type="stmt" count="0"/>
6288
- <line num="699" type="stmt" count="0"/>
6289
  <line num="700" type="stmt" count="0"/>
6290
  <line num="701" type="stmt" count="0"/>
6291
- <line num="704" type="stmt" count="0"/>
6292
- <line num="705" type="stmt" count="0"/>
6293
- <line num="706" type="stmt" count="0"/>
6294
  <line num="708" type="stmt" count="0"/>
6295
  <line num="709" type="stmt" count="0"/>
6296
  <line num="710" type="stmt" count="0"/>
6297
- <line num="711" type="stmt" count="0"/>
6298
- <line num="712" type="stmt" count="0"/>
6299
- <line num="713" type="stmt" count="0"/>
6300
- <line num="715" type="stmt" count="0"/>
6301
- <line num="716" type="stmt" count="0"/>
6302
  <line num="720" type="stmt" count="0"/>
6303
- <line num="721" type="stmt" count="0"/>
6304
- <line num="722" type="stmt" count="0"/>
6305
  <line num="723" type="stmt" count="0"/>
6306
- <line num="726" type="stmt" count="0"/>
 
 
 
6307
  <line num="729" type="stmt" count="0"/>
6308
  <line num="730" type="stmt" count="0"/>
6309
  <line num="731" type="stmt" count="0"/>
6310
  <line num="732" type="stmt" count="0"/>
6311
- <line num="733" type="stmt" count="0"/>
6312
- <line num="736" type="stmt" count="0"/>
6313
- <line num="738" type="stmt" count="0"/>
6314
  <line num="739" type="stmt" count="0"/>
6315
  <line num="740" type="stmt" count="0"/>
 
6316
  <line num="742" type="stmt" count="0"/>
6317
- <line num="743" type="stmt" count="0"/>
6318
- <line num="744" type="stmt" count="0"/>
6319
  <line num="745" type="stmt" count="0"/>
6320
- <line num="746" type="stmt" count="0"/>
6321
  <line num="749" type="stmt" count="0"/>
6322
  <line num="750" type="stmt" count="0"/>
6323
  <line num="751" type="stmt" count="0"/>
6324
- <line num="753" type="stmt" count="0"/>
 
 
 
6325
  <line num="759" type="stmt" count="0"/>
6326
- <line num="760" type="stmt" count="0"/>
 
6327
  <line num="763" type="stmt" count="0"/>
6328
- <line num="771" type="method" name="delete_rollback_option" visibility="public" complexity="1" crap="1" count="1"/>
6329
- <line num="772" type="stmt" count="1"/>
6330
- <line num="773" type="stmt" count="1"/>
6331
- <line num="783" type="method" name="page_backup_settings" visibility="public" complexity="12" crap="156" count="0"/>
6332
- <line num="784" type="stmt" count="0"/>
6333
- <line num="785" type="stmt" count="0"/>
6334
- <line num="786" type="stmt" count="0"/>
6335
- <line num="788" type="stmt" count="0"/>
6336
- <line num="789" type="stmt" count="0"/>
6337
- <line num="790" type="stmt" count="0"/>
6338
- <line num="791" type="stmt" count="0"/>
6339
- <line num="792" type="stmt" count="0"/>
6340
- <line num="793" type="stmt" count="0"/>
6341
  <line num="795" type="stmt" count="0"/>
6342
- <line num="796" type="stmt" count="0"/>
6343
  <line num="797" type="stmt" count="0"/>
6344
- <line num="800" type="stmt" count="0"/>
6345
  <line num="801" type="stmt" count="0"/>
6346
- <line num="802" type="stmt" count="0"/>
6347
- <line num="803" type="stmt" count="0"/>
6348
- <line num="805" type="stmt" count="0"/>
6349
- <line num="806" type="stmt" count="0"/>
6350
- <line num="808" type="stmt" count="0"/>
6351
- <line num="809" type="stmt" count="0"/>
6352
- <line num="811" type="stmt" count="0"/>
6353
- <line num="813" type="stmt" count="0"/>
6354
- <line num="814" type="stmt" count="0"/>
6355
- <line num="821" type="stmt" count="0"/>
6356
- <line num="822" type="stmt" count="0"/>
6357
  <line num="823" type="stmt" count="0"/>
6358
  <line num="824" type="stmt" count="0"/>
6359
- <line num="826" type="stmt" count="0"/>
 
6360
  <line num="828" type="stmt" count="0"/>
6361
  <line num="829" type="stmt" count="0"/>
6362
- <line num="832" type="stmt" count="0"/>
 
 
 
 
 
 
6363
  <line num="839" type="stmt" count="0"/>
6364
- <line num="840" type="stmt" count="0"/>
6365
- <line num="841" type="stmt" count="0"/>
6366
  <line num="842" type="stmt" count="0"/>
 
6367
  <line num="844" type="stmt" count="0"/>
6368
- <line num="846" type="stmt" count="0"/>
6369
  <line num="847" type="stmt" count="0"/>
 
6370
  <line num="850" type="stmt" count="0"/>
6371
- <line num="852" type="stmt" count="0"/>
6372
  <line num="853" type="stmt" count="0"/>
 
6373
  <line num="856" type="stmt" count="0"/>
6374
- <line num="857" type="stmt" count="0"/>
6375
- <line num="858" type="stmt" count="0"/>
6376
- <line num="859" type="stmt" count="0"/>
6377
- <line num="860" type="stmt" count="0"/>
6378
  <line num="863" type="stmt" count="0"/>
6379
  <line num="864" type="stmt" count="0"/>
6380
  <line num="865" type="stmt" count="0"/>
6381
  <line num="866" type="stmt" count="0"/>
6382
- <line num="867" type="stmt" count="0"/>
6383
- <line num="869" type="stmt" count="0"/>
6384
  <line num="871" type="stmt" count="0"/>
6385
- <line num="872" type="stmt" count="0"/>
6386
- <line num="873" type="stmt" count="0"/>
6387
  <line num="874" type="stmt" count="0"/>
6388
- <line num="875" type="stmt" count="0"/>
6389
- <line num="877" type="stmt" count="0"/>
6390
- <line num="880" type="stmt" count="0"/>
6391
  <line num="881" type="stmt" count="0"/>
6392
  <line num="882" type="stmt" count="0"/>
6393
  <line num="883" type="stmt" count="0"/>
6394
  <line num="884" type="stmt" count="0"/>
6395
  <line num="886" type="stmt" count="0"/>
 
6396
  <line num="889" type="stmt" count="0"/>
6397
- <line num="890" type="stmt" count="0"/>
6398
- <line num="891" type="stmt" count="0"/>
6399
  <line num="892" type="stmt" count="0"/>
6400
- <line num="893" type="stmt" count="0"/>
6401
  <line num="895" type="stmt" count="0"/>
6402
  <line num="898" type="stmt" count="0"/>
6403
  <line num="899" type="stmt" count="0"/>
6404
  <line num="900" type="stmt" count="0"/>
6405
  <line num="901" type="stmt" count="0"/>
6406
- <line num="903" type="stmt" count="0"/>
6407
  <line num="905" type="stmt" count="0"/>
6408
  <line num="906" type="stmt" count="0"/>
 
6409
  <line num="908" type="stmt" count="0"/>
 
6410
  <line num="911" type="stmt" count="0"/>
6411
- <line num="912" type="stmt" count="0"/>
6412
  <line num="913" type="stmt" count="0"/>
 
6413
  <line num="915" type="stmt" count="0"/>
 
6414
  <line num="917" type="stmt" count="0"/>
6415
- <line num="918" type="stmt" count="0"/>
6416
  <line num="919" type="stmt" count="0"/>
6417
  <line num="922" type="stmt" count="0"/>
6418
  <line num="923" type="stmt" count="0"/>
6419
- <line num="933" type="method" name="save" visibility="public" complexity="1" crap="1" count="6"/>
6420
- <line num="934" type="stmt" count="6"/>
6421
- <line num="945" type="method" name="update_cron" visibility="public" complexity="4" crap="20" count="0"/>
6422
- <line num="946" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
6423
  <line num="948" type="stmt" count="0"/>
6424
  <line num="950" type="stmt" count="0"/>
6425
- <line num="951" type="stmt" count="0"/>
6426
- <line num="952" type="stmt" count="0"/>
6427
  <line num="953" type="stmt" count="0"/>
6428
  <line num="954" type="stmt" count="0"/>
6429
  <line num="955" type="stmt" count="0"/>
6430
- <line num="956" type="stmt" count="0"/>
6431
- <line num="958" type="stmt" count="0"/>
6432
- <metrics loc="960" ncloc="579" classes="1" methods="16" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="445" coveredstatements="51" elements="461" coveredelements="55"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6433
  </file>
6434
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-support.php">
6435
  <class name="Boldgrid_Backup_Admin_Support" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6436
- <metrics complexity="20" methods="10" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="77" coveredstatements="2" elements="87" coveredelements="3"/>
6437
  </class>
6438
- <line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
6439
- <line num="47" type="stmt" count="20"/>
6440
- <line num="48" type="stmt" count="20"/>
6441
  <line num="61" type="method" name="add_admin_notice" visibility="public" complexity="1" crap="2" count="0"/>
6442
  <line num="62" type="stmt" count="0"/>
6443
  <line num="63" type="method" name="anonymous function" complexity="1" crap="2" count="0"/>
@@ -6521,18 +6913,35 @@
6521
  <line num="247" type="stmt" count="0"/>
6522
  <line num="250" type="stmt" count="0"/>
6523
  <line num="258" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
6524
- <line num="259" type="stmt" count="0"/>
6525
  <line num="261" type="stmt" count="0"/>
6526
  <line num="262" type="stmt" count="0"/>
6527
- <metrics loc="263" ncloc="133" classes="1" methods="10" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="79" coveredstatements="2" elements="89" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6528
  </file>
6529
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-test.php">
6530
  <class name="Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6531
  <metrics complexity="97" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="256" coveredstatements="108" elements="282" coveredelements="113"/>
6532
  </class>
6533
- <line num="122" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
6534
- <line num="124" type="stmt" count="20"/>
6535
- <line num="125" type="stmt" count="20"/>
6536
  <line num="135" type="method" name="can_exec_write" visibility="public" complexity="4" crap="4.32" count="1"/>
6537
  <line num="136" type="stmt" count="1"/>
6538
  <line num="137" type="stmt" count="0"/>
@@ -6598,11 +7007,11 @@
6598
  <line num="290" type="stmt" count="1"/>
6599
  <line num="291" type="stmt" count="3"/>
6600
  <line num="293" type="stmt" count="3"/>
6601
- <line num="303" type="method" name="is_windows" visibility="public" complexity="2" crap="2" count="7"/>
6602
- <line num="305" type="stmt" count="7"/>
6603
- <line num="306" type="stmt" count="6"/>
6604
- <line num="310" type="stmt" count="3"/>
6605
- <line num="313" type="stmt" count="3"/>
6606
  <line num="324" type="method" name="is_writable" visibility="public" complexity="3" crap="7.23" count="1"/>
6607
  <line num="325" type="stmt" count="1"/>
6608
  <line num="326" type="stmt" count="1"/>
@@ -6818,9 +7227,9 @@
6818
  <class name="Boldgrid_Backup_Admin_Time" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6819
  <metrics complexity="34" methods="10" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="102" coveredstatements="39" elements="112" coveredelements="41"/>
6820
  </class>
6821
- <line num="73" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
6822
- <line num="74" type="stmt" count="20"/>
6823
- <line num="75" type="stmt" count="20"/>
6824
  <line num="84" type="method" name="get_server_date" visibility="public" complexity="2" crap="6" count="0"/>
6825
  <line num="85" type="stmt" count="0"/>
6826
  <line num="87" type="stmt" count="0"/>
@@ -6934,52 +7343,85 @@
6934
  </file>
6935
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-tools.php">
6936
  <class name="Boldgrid_Backup_Admin_Tools" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6937
- <metrics complexity="4" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="2" elements="14" coveredelements="3"/>
6938
  </class>
6939
- <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
6940
- <line num="38" type="stmt" count="20"/>
6941
- <line num="39" type="stmt" count="20"/>
6942
  <line num="44" type="method" name="admin_enqueue_scripts" visibility="public" complexity="2" crap="6" count="0"/>
6943
  <line num="45" type="stmt" count="0"/>
6944
  <line num="46" type="stmt" count="0"/>
6945
  <line num="50" type="stmt" count="0"/>
6946
  <line num="51" type="stmt" count="0"/>
6947
  <line num="52" type="stmt" count="0"/>
6948
- <line num="55" type="stmt" count="0"/>
6949
- <line num="56" type="stmt" count="0"/>
6950
- <line num="63" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
6951
  <line num="64" type="stmt" count="0"/>
6952
- <line num="65" type="stmt" count="0"/>
6953
- <metrics loc="66" ncloc="23" classes="1" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="2" elements="14" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6954
  </file>
6955
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-transfers.php">
6956
  <class name="Boldgrid_Backup_Admin_Transfers" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6957
- <metrics complexity="2" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="2" elements="14" coveredelements="3"/>
6958
  </class>
6959
- <line num="36" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
6960
- <line num="37" type="stmt" count="20"/>
6961
- <line num="38" type="stmt" count="20"/>
6962
  <line num="45" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
6963
  <line num="46" type="stmt" count="0"/>
6964
  <line num="47" type="stmt" count="0"/>
6965
  <line num="48" type="stmt" count="0"/>
6966
  <line num="50" type="stmt" count="0"/>
6967
  <line num="51" type="stmt" count="0"/>
6968
- <line num="52" type="stmt" count="0"/>
6969
  <line num="53" type="stmt" count="0"/>
 
6970
  <line num="55" type="stmt" count="0"/>
6971
  <line num="57" type="stmt" count="0"/>
6972
  <line num="58" type="stmt" count="0"/>
6973
- <metrics loc="59" ncloc="24" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="2" elements="14" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6974
  </file>
6975
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-upload.php">
6976
  <class name="Boldgrid_Backup_Admin_Upload" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6977
- <metrics complexity="36" methods="8" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="197" coveredstatements="2" elements="205" coveredelements="3"/>
6978
  </class>
6979
- <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
6980
- <line num="41" type="stmt" count="20"/>
6981
- <line num="42" type="stmt" count="20"/>
6982
- <line num="56" type="method" name="verify_upload_access" visibility="public" complexity="9" crap="90" count="0"/>
6983
  <line num="58" type="stmt" count="0"/>
6984
  <line num="60" type="stmt" count="0"/>
6985
  <line num="61" type="stmt" count="0"/>
@@ -7024,60 +7466,60 @@
7024
  <line num="139" type="stmt" count="0"/>
7025
  <line num="141" type="stmt" count="0"/>
7026
  <line num="144" type="stmt" count="0"/>
7027
- <line num="161" type="method" name="bump_upload_limits" visibility="public" complexity="1" crap="2" count="0"/>
7028
- <line num="162" type="stmt" count="0"/>
7029
- <line num="163" type="stmt" count="0"/>
7030
- <line num="164" type="stmt" count="0"/>
7031
- <line num="165" type="stmt" count="0"/>
7032
- <line num="176" type="method" name="check_filetype_ext" visibility="public" complexity="4" crap="20" count="0"/>
7033
- <line num="178" type="stmt" count="0"/>
7034
- <line num="179" type="stmt" count="0"/>
7035
- <line num="183" type="stmt" count="0"/>
7036
- <line num="186" type="stmt" count="0"/>
7037
- <line num="192" type="stmt" count="0"/>
7038
- <line num="193" type="stmt" count="0"/>
7039
- <line num="195" type="stmt" count="0"/>
 
 
7040
  <line num="197" type="stmt" count="0"/>
7041
- <line num="198" type="stmt" count="0"/>
7042
- <line num="199" type="stmt" count="0"/>
7043
- <line num="201" type="stmt" count="0"/>
7044
- <line num="202" type="stmt" count="0"/>
7045
  <line num="204" type="stmt" count="0"/>
7046
- <line num="205" type="stmt" count="0"/>
7047
  <line num="206" type="stmt" count="0"/>
7048
  <line num="208" type="stmt" count="0"/>
 
7049
  <line num="210" type="stmt" count="0"/>
 
7050
  <line num="213" type="stmt" count="0"/>
7051
- <line num="227" type="method" name="get_save_path" visibility="public" complexity="3" crap="12" count="0"/>
7052
- <line num="228" type="stmt" count="0"/>
7053
- <line num="231" type="stmt" count="0"/>
7054
- <line num="235" type="stmt" count="0"/>
7055
- <line num="236" type="stmt" count="0"/>
7056
- <line num="237" type="stmt" count="0"/>
7057
- <line num="238" type="stmt" count="0"/>
7058
  <line num="239" type="stmt" count="0"/>
7059
- <line num="240" type="stmt" count="0"/>
7060
- <line num="243" type="stmt" count="0"/>
7061
- <line num="244" type="stmt" count="0"/>
7062
- <line num="245" type="stmt" count="0"/>
7063
  <line num="248" type="stmt" count="0"/>
7064
  <line num="249" type="stmt" count="0"/>
7065
  <line num="250" type="stmt" count="0"/>
7066
- <line num="253" type="stmt" count="0"/>
 
 
7067
  <line num="256" type="stmt" count="0"/>
7068
- <line num="258" type="stmt" count="0"/>
 
7069
  <line num="261" type="stmt" count="0"/>
7070
- <line num="273" type="method" name="handle_upload" visibility="public" complexity="2" crap="6" count="0"/>
7071
- <line num="275" type="stmt" count="0"/>
7072
- <line num="276" type="stmt" count="0"/>
7073
- <line num="277" type="stmt" count="0"/>
7074
- <line num="281" type="stmt" count="0"/>
7075
- <line num="282" type="stmt" count="0"/>
7076
- <line num="285" type="stmt" count="0"/>
7077
  <line num="286" type="stmt" count="0"/>
 
7078
  <line num="288" type="stmt" count="0"/>
7079
- <line num="289" type="stmt" count="0"/>
7080
- <line num="291" type="stmt" count="0"/>
7081
  <line num="293" type="stmt" count="0"/>
7082
  <line num="296" type="stmt" count="0"/>
7083
  <line num="297" type="stmt" count="0"/>
@@ -7085,103 +7527,115 @@
7085
  <line num="300" type="stmt" count="0"/>
7086
  <line num="302" type="stmt" count="0"/>
7087
  <line num="304" type="stmt" count="0"/>
7088
- <line num="319" type="method" name="upload_archive_file" visibility="public" complexity="5" crap="30" count="0"/>
7089
- <line num="321" type="stmt" count="0"/>
7090
- <line num="322" type="stmt" count="0"/>
7091
- <line num="326" type="stmt" count="0"/>
7092
- <line num="329" type="stmt" count="0"/>
 
 
7093
  <line num="332" type="stmt" count="0"/>
7094
  <line num="333" type="stmt" count="0"/>
7095
  <line num="337" type="stmt" count="0"/>
7096
  <line num="340" type="stmt" count="0"/>
7097
  <line num="343" type="stmt" count="0"/>
7098
- <line num="346" type="stmt" count="0"/>
7099
  <line num="348" type="stmt" count="0"/>
7100
  <line num="351" type="stmt" count="0"/>
7101
- <line num="352" type="stmt" count="0"/>
7102
- <line num="353" type="stmt" count="0"/>
7103
- <line num="355" type="stmt" count="0"/>
7104
- <line num="358" type="stmt" count="0"/>
7105
- <line num="360" type="stmt" count="0"/>
7106
  <line num="363" type="stmt" count="0"/>
7107
  <line num="364" type="stmt" count="0"/>
7108
- <line num="365" type="stmt" count="0"/>
7109
- <line num="367" type="stmt" count="0"/>
7110
- <line num="368" type="stmt" count="0"/>
7111
  <line num="369" type="stmt" count="0"/>
7112
  <line num="371" type="stmt" count="0"/>
7113
- <line num="373" type="stmt" count="0"/>
7114
- <line num="392" type="method" name="ajax_url_import" visibility="public" complexity="11" crap="132" count="0"/>
7115
- <line num="394" type="stmt" count="0"/>
7116
- <line num="395" type="stmt" count="0"/>
7117
- <line num="397" type="stmt" count="0"/>
7118
- <line num="399" type="stmt" count="0"/>
7119
- <line num="400" type="stmt" count="0"/>
7120
- <line num="403" type="stmt" count="0"/>
7121
- <line num="404" type="stmt" count="0"/>
 
7122
  <line num="406" type="stmt" count="0"/>
7123
  <line num="408" type="stmt" count="0"/>
7124
- <line num="409" type="stmt" count="0"/>
7125
  <line num="411" type="stmt" count="0"/>
7126
- <line num="412" type="stmt" count="0"/>
7127
  <line num="414" type="stmt" count="0"/>
7128
  <line num="415" type="stmt" count="0"/>
7129
  <line num="417" type="stmt" count="0"/>
7130
  <line num="419" type="stmt" count="0"/>
7131
  <line num="420" type="stmt" count="0"/>
7132
  <line num="422" type="stmt" count="0"/>
7133
- <line num="424" type="stmt" count="0"/>
7134
  <line num="425" type="stmt" count="0"/>
7135
  <line num="426" type="stmt" count="0"/>
7136
  <line num="428" type="stmt" count="0"/>
7137
  <line num="430" type="stmt" count="0"/>
7138
  <line num="431" type="stmt" count="0"/>
7139
  <line num="433" type="stmt" count="0"/>
 
7140
  <line num="436" type="stmt" count="0"/>
7141
  <line num="437" type="stmt" count="0"/>
7142
- <line num="438" type="stmt" count="0"/>
7143
  <line num="439" type="stmt" count="0"/>
7144
  <line num="441" type="stmt" count="0"/>
7145
  <line num="442" type="stmt" count="0"/>
7146
- <line num="443" type="stmt" count="0"/>
7147
  <line num="444" type="stmt" count="0"/>
7148
- <line num="445" type="stmt" count="0"/>
7149
- <line num="446" type="stmt" count="0"/>
7150
  <line num="447" type="stmt" count="0"/>
 
7151
  <line num="449" type="stmt" count="0"/>
7152
- <line num="451" type="stmt" count="0"/>
7153
  <line num="452" type="stmt" count="0"/>
 
7154
  <line num="454" type="stmt" count="0"/>
 
7155
  <line num="456" type="stmt" count="0"/>
7156
  <line num="457" type="stmt" count="0"/>
7157
  <line num="458" type="stmt" count="0"/>
7158
- <line num="459" type="stmt" count="0"/>
7159
  <line num="460" type="stmt" count="0"/>
7160
- <line num="461" type="stmt" count="0"/>
7161
  <line num="463" type="stmt" count="0"/>
7162
- <line num="464" type="stmt" count="0"/>
7163
- <line num="466" type="stmt" count="0"/>
7164
  <line num="467" type="stmt" count="0"/>
 
 
7165
  <line num="470" type="stmt" count="0"/>
7166
- <line num="473" type="stmt" count="0"/>
7167
- <line num="476" type="stmt" count="0"/>
 
 
 
7168
  <line num="478" type="stmt" count="0"/>
7169
- <line num="480" type="stmt" count="0"/>
7170
  <line num="481" type="stmt" count="0"/>
7171
- <line num="483" type="stmt" count="0"/>
7172
  <line num="484" type="stmt" count="0"/>
7173
- <line num="485" type="stmt" count="0"/>
7174
- <line num="486" type="stmt" count="0"/>
7175
- <line num="488" type="stmt" count="0"/>
7176
  <line num="489" type="stmt" count="0"/>
7177
- <line num="490" type="stmt" count="0"/>
7178
- <line num="493" type="stmt" count="0"/>
 
7179
  <line num="495" type="stmt" count="0"/>
7180
  <line num="496" type="stmt" count="0"/>
7181
- <line num="498" type="stmt" count="0"/>
 
7182
  <line num="500" type="stmt" count="0"/>
7183
  <line num="501" type="stmt" count="0"/>
7184
- <metrics loc="502" ncloc="279" classes="1" methods="8" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="197" coveredstatements="2" elements="205" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
7185
  </file>
7186
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-usage.php">
7187
  <class name="Boldgrid_Backup_Admin_Usage" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -7218,7 +7672,7 @@
7218
  </file>
7219
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-utility.php">
7220
  <class name="Boldgrid_Backup_Admin_Utility" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7221
- <metrics complexity="85" methods="21" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="299" coveredstatements="41" elements="320" coveredelements="42"/>
7222
  </class>
7223
  <line num="34" type="method" name="bytes_to_human" visibility="public" complexity="3" crap="3" count="4"/>
7224
  <line num="36" type="stmt" count="4"/>
@@ -7375,17 +7829,17 @@
7375
  <line num="403" type="stmt" count="0"/>
7376
  <line num="406" type="stmt" count="0"/>
7377
  <line num="409" type="stmt" count="0"/>
7378
- <line num="426" type="method" name="bump_memory_limit" visibility="public" complexity="5" crap="5.20" count="1"/>
7379
- <line num="428" type="stmt" count="1"/>
7380
  <line num="429" type="stmt" count="0"/>
7381
- <line num="433" type="stmt" count="1"/>
7382
- <line num="436" type="stmt" count="1"/>
7383
- <line num="439" type="stmt" count="1"/>
7384
- <line num="443" type="stmt" count="1"/>
7385
- <line num="444" type="stmt" count="1"/>
7386
  <line num="445" type="stmt" count="0"/>
7387
- <line num="447" type="stmt" count="1"/>
7388
- <line num="449" type="stmt" count="1"/>
7389
  <line num="472" type="method" name="bump_upload_limit" visibility="public" complexity="4" crap="20" count="0"/>
7390
  <line num="474" type="stmt" count="0"/>
7391
  <line num="475" type="stmt" count="0"/>
@@ -7396,9 +7850,9 @@
7396
  <line num="491" type="stmt" count="0"/>
7397
  <line num="494" type="stmt" count="0"/>
7398
  <line num="496" type="stmt" count="0"/>
7399
- <line num="513" type="method" name="is_active" visibility="public" complexity="1" crap="2" count="0"/>
7400
- <line num="514" type="stmt" count="0"/>
7401
- <line num="516" type="stmt" count="0"/>
7402
  <line num="529" type="method" name="is_admin_page" visibility="public" complexity="3" crap="3" count="1"/>
7403
  <line num="530" type="stmt" count="1"/>
7404
  <line num="532" type="stmt" count="1"/>
@@ -7532,33 +7986,33 @@
7532
  <line num="876" type="stmt" count="0"/>
7533
  <line num="877" type="stmt" count="0"/>
7534
  <line num="880" type="stmt" count="0"/>
7535
- <line num="896" type="method" name="trailingslashit" visibility="public" complexity="3" crap="3.71" count="6"/>
7536
- <line num="898" type="stmt" count="6"/>
7537
- <line num="899" type="stmt" count="6"/>
7538
- <line num="900" type="stmt" count="6"/>
7539
  <line num="901" type="stmt" count="0"/>
7540
  <line num="902" type="stmt" count="0"/>
7541
  <line num="903" type="stmt" count="0"/>
7542
- <line num="906" type="stmt" count="6"/>
7543
- <metrics loc="908" ncloc="418" classes="1" methods="21" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="299" coveredstatements="41" elements="320" coveredelements="42"/>
7544
  </file>
7545
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-wp-cron.php">
7546
  <class name="Boldgrid_Backup_Admin_WP_Cron" namespace="global" fullPackage="Boldgrid.Backup.Admin.WP">
7547
  <metrics complexity="32" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="94" coveredstatements="12" elements="105" coveredelements="13"/>
7548
  </class>
7549
- <line num="73" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
7550
- <line num="74" type="stmt" count="20"/>
7551
- <line num="76" type="stmt" count="20"/>
7552
- <line num="78" type="stmt" count="20"/>
7553
- <line num="79" type="stmt" count="20"/>
7554
- <line num="80" type="stmt" count="20"/>
7555
- <line num="82" type="stmt" count="20"/>
7556
- <line num="83" type="stmt" count="20"/>
7557
- <line num="84" type="stmt" count="20"/>
7558
- <line num="92" type="stmt" count="20"/>
7559
- <line num="93" type="stmt" count="20"/>
7560
- <line num="94" type="stmt" count="20"/>
7561
- <line num="96" type="stmt" count="20"/>
7562
  <line num="113" type="method" name="add_all_crons" visibility="public" complexity="7" crap="56" count="0"/>
7563
  <line num="114" type="stmt" count="0"/>
7564
  <line num="115" type="stmt" count="0"/>
@@ -7781,10 +8235,10 @@
7781
  <class name="Boldgrid_Backup_Admin_Xhprof" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7782
  <metrics complexity="14" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="8" elements="44" coveredelements="8"/>
7783
  </class>
7784
- <line num="37" type="method" name="__construct" visibility="public" complexity="2" crap="3.03" count="20"/>
7785
- <line num="39" type="stmt" count="20"/>
7786
- <line num="42" type="stmt" count="20"/>
7787
- <line num="46" type="stmt" count="20"/>
7788
  <line num="47" type="stmt" count="0"/>
7789
  <line num="48" type="stmt" count="0"/>
7790
  <line num="50" type="stmt" count="0"/>
@@ -7792,15 +8246,15 @@
7792
  <line num="52" type="stmt" count="0"/>
7793
  <line num="53" type="stmt" count="0"/>
7794
  <line num="54" type="stmt" count="0"/>
7795
- <line num="55" type="stmt" count="20"/>
7796
- <line num="64" type="method" name="xhprof_enable" visibility="private" complexity="5" crap="6.97" count="20"/>
7797
- <line num="66" type="stmt" count="20"/>
7798
  <line num="67" type="stmt" count="0"/>
7799
- <line num="71" type="stmt" count="20"/>
7800
- <line num="74" type="stmt" count="20"/>
7801
  <line num="75" type="stmt" count="0"/>
7802
  <line num="77" type="stmt" count="0"/>
7803
- <line num="81" type="stmt" count="20"/>
7804
  <line num="91" type="method" name="xhprof_disable" visibility="public" complexity="7" crap="56" count="0"/>
7805
  <line num="93" type="stmt" count="0"/>
7806
  <line num="94" type="stmt" count="0"/>
@@ -7829,7 +8283,7 @@
7829
  </file>
7830
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin.php">
7831
  <class name="Boldgrid_Backup_Admin" namespace="global" fullPackage="Boldgrid.Backup">
7832
- <metrics complexity="12" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="18" elements="87" coveredelements="18"/>
7833
  </class>
7834
  <line num="73" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
7835
  <line num="74" type="stmt" count="0"/>
@@ -7841,39 +8295,38 @@
7841
  <line num="84" type="stmt" count="0"/>
7842
  <line num="86" type="stmt" count="0"/>
7843
  <line num="87" type="stmt" count="0"/>
7844
- <line num="94" type="method" name="enqueue_styles" visibility="public" complexity="4" crap="20" count="0"/>
7845
  <line num="95" type="stmt" count="0"/>
7846
- <line num="106" type="stmt" count="0"/>
7847
- <line num="107" type="stmt" count="0"/>
7848
- <line num="108" type="stmt" count="0"/>
7849
- <line num="109" type="stmt" count="0"/>
 
7850
  <line num="112" type="stmt" count="0"/>
7851
  <line num="113" type="stmt" count="0"/>
7852
- <line num="114" type="stmt" count="0"/>
7853
- <line num="115" type="stmt" count="0"/>
7854
  <line num="116" type="stmt" count="0"/>
 
7855
  <line num="118" type="stmt" count="0"/>
 
7856
  <line num="120" type="stmt" count="0"/>
7857
- <line num="121" type="stmt" count="0"/>
7858
- <line num="123" type="stmt" count="0"/>
7859
  <line num="124" type="stmt" count="0"/>
7860
  <line num="125" type="stmt" count="0"/>
7861
- <line num="126" type="stmt" count="0"/>
7862
  <line num="127" type="stmt" count="0"/>
7863
  <line num="128" type="stmt" count="0"/>
 
7864
  <line num="130" type="stmt" count="0"/>
 
7865
  <line num="132" type="stmt" count="0"/>
7866
- <line num="135" type="stmt" count="0"/>
7867
  <line num="136" type="stmt" count="0"/>
7868
- <line num="137" type="stmt" count="0"/>
7869
- <line num="138" type="stmt" count="0"/>
7870
  <line num="139" type="stmt" count="0"/>
7871
  <line num="140" type="stmt" count="0"/>
 
7872
  <line num="142" type="stmt" count="0"/>
 
7873
  <line num="144" type="stmt" count="0"/>
7874
- <line num="145" type="stmt" count="0"/>
7875
  <line num="146" type="stmt" count="0"/>
7876
- <line num="147" type="stmt" count="0"/>
7877
  <line num="148" type="stmt" count="0"/>
7878
  <line num="149" type="stmt" count="0"/>
7879
  <line num="150" type="stmt" count="0"/>
@@ -7882,43 +8335,58 @@
7882
  <line num="153" type="stmt" count="0"/>
7883
  <line num="154" type="stmt" count="0"/>
7884
  <line num="155" type="stmt" count="0"/>
 
 
7885
  <line num="158" type="stmt" count="0"/>
7886
- <line num="161" type="stmt" count="0"/>
7887
- <line num="164" type="stmt" count="0"/>
7888
  <line num="165" type="stmt" count="0"/>
7889
  <line num="168" type="stmt" count="0"/>
7890
  <line num="169" type="stmt" count="0"/>
7891
- <line num="170" type="stmt" count="0"/>
7892
- <line num="171" type="stmt" count="0"/>
7893
  <line num="173" type="stmt" count="0"/>
7894
  <line num="174" type="stmt" count="0"/>
7895
  <line num="175" type="stmt" count="0"/>
7896
- <line num="186" type="method" name="get_configs" visibility="public" complexity="6" crap="6.56" count="20"/>
7897
- <line num="188" type="stmt" count="20"/>
7898
- <line num="189" type="stmt" count="20"/>
7899
- <line num="193" type="stmt" count="1"/>
7900
- <line num="196" type="stmt" count="1"/>
 
7901
  <line num="197" type="stmt" count="1"/>
7902
  <line num="200" type="stmt" count="1"/>
7903
- <line num="203" type="stmt" count="1"/>
7904
  <line num="204" type="stmt" count="1"/>
7905
- <line num="205" type="stmt" count="1"/>
7906
  <line num="208" type="stmt" count="1"/>
7907
- <line num="211" type="stmt" count="1"/>
7908
- <line num="212" type="stmt" count="0"/>
7909
- <line num="213" type="stmt" count="0"/>
7910
- <line num="216" type="stmt" count="1"/>
7911
- <line num="218" type="stmt" count="1"/>
7912
- <line num="219" type="stmt" count="0"/>
7913
- <line num="220" type="stmt" count="0"/>
7914
- <line num="223" type="stmt" count="1"/>
7915
- <line num="226" type="stmt" count="1"/>
7916
- <line num="227" type="stmt" count="0"/>
7917
- <line num="228" type="stmt" count="0"/>
7918
- <line num="229" type="stmt" count="1"/>
 
7919
  <line num="233" type="stmt" count="1"/>
7920
- <line num="236" type="stmt" count="1"/>
7921
- <metrics loc="238" ncloc="112" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="18" elements="87" coveredelements="18"/>
 
 
 
 
 
 
 
 
 
 
 
 
7922
  </file>
7923
  <package name="Boldgrid\Backup\Admin">
7924
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-cron.php">
@@ -7971,14 +8439,14 @@
7971
  </package>
7972
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-pcl-zip.php">
7973
  <class name="Boldgrid_Backup_Admin_Compressor_Pcl_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Pcl">
7974
- <metrics complexity="57" methods="9" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="197" coveredstatements="120" elements="206" coveredelements="122"/>
7975
  </class>
7976
- <line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="7"/>
7977
- <line num="67" type="stmt" count="7"/>
7978
  <line num="68" type="stmt" count="1"/>
7979
  <line num="69" type="stmt" count="1"/>
7980
- <line num="71" type="stmt" count="7"/>
7981
- <line num="72" type="stmt" count="7"/>
7982
  <line num="96" type="method" name="browse_add_dirs" visibility="public" complexity="9" crap="9" count="1"/>
7983
  <line num="97" type="stmt" count="1"/>
7984
  <line num="100" type="stmt" count="1"/>
@@ -8064,10 +8532,10 @@
8064
  <line num="311" type="stmt" count="1"/>
8065
  <line num="313" type="stmt" count="1"/>
8066
  <line num="315" type="stmt" count="1"/>
8067
- <line num="327" type="method" name="extract_one" visibility="public" complexity="4" crap="20" count="0"/>
8068
- <line num="328" type="stmt" count="0"/>
8069
- <line num="329" type="stmt" count="0"/>
8070
- <line num="330" type="stmt" count="0"/>
8071
  <line num="333" type="stmt" count="0"/>
8072
  <line num="334" type="stmt" count="0"/>
8073
  <line num="335" type="stmt" count="0"/>
@@ -8179,7 +8647,7 @@
8179
  <line num="579" type="stmt" count="1"/>
8180
  <line num="581" type="stmt" count="1"/>
8181
  <line num="583" type="stmt" count="1"/>
8182
- <metrics loc="585" ncloc="330" classes="1" methods="9" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="197" coveredstatements="120" elements="206" coveredelements="122"/>
8183
  </file>
8184
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php">
8185
  <class name="Boldgrid_Backup_Admin_Compressor_Php_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Php">
@@ -8283,8 +8751,8 @@
8283
  <line num="275" type="stmt" count="0"/>
8284
  <line num="276" type="stmt" count="0"/>
8285
  <line num="279" type="stmt" count="1"/>
8286
- <line num="287" type="method" name="is_extension_available" visibility="public" complexity="2" crap="2" count="21"/>
8287
- <line num="288" type="stmt" count="21"/>
8288
  <line num="298" type="method" name="test" visibility="public" complexity="4" crap="20" count="0"/>
8289
  <line num="299" type="stmt" count="0"/>
8290
  <line num="300" type="stmt" count="0"/>
@@ -8458,69 +8926,128 @@
8458
  </file>
8459
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-system-zip.php">
8460
  <class name="Boldgrid_Backup_Admin_Compressor_System_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.System">
8461
- <metrics complexity="9" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="54" elements="60" coveredelements="58"/>
8462
  </class>
8463
- <line num="80" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="4"/>
8464
- <line num="81" type="stmt" count="4"/>
8465
- <line num="82" type="stmt" count="4"/>
8466
- <line num="84" type="stmt" count="4"/>
8467
- <line num="85" type="stmt" count="4"/>
8468
- <line num="113" type="method" name="archive_files" visibility="public" complexity="2" crap="2.00" count="1"/>
8469
- <line num="114" type="stmt" count="1"/>
8470
- <line num="115" type="stmt" count="0"/>
8471
- <line num="119" type="stmt" count="1"/>
8472
- <line num="120" type="stmt" count="1"/>
8473
- <line num="122" type="stmt" count="1"/>
8474
- <line num="124" type="stmt" count="1"/>
8475
- <line num="126" type="stmt" count="1"/>
8476
- <line num="128" type="stmt" count="1"/>
8477
  <line num="130" type="stmt" count="1"/>
8478
- <line num="132" type="stmt" count="1"/>
8479
- <line num="134" type="stmt" count="1"/>
8480
- <line num="137" type="stmt" count="1"/>
8481
- <line num="139" type="stmt" count="1"/>
8482
- <line num="147" type="method" name="filelist_create" visibility="private" complexity="4" crap="4" count="1"/>
 
 
 
8483
  <line num="148" type="stmt" count="1"/>
8484
- <line num="149" type="stmt" count="1"/>
8485
- <line num="151" type="stmt" count="1"/>
8486
  <line num="153" type="stmt" count="1"/>
8487
  <line num="155" type="stmt" count="1"/>
8488
- <line num="158" type="stmt" count="1"/>
8489
- <line num="159" type="stmt" count="1"/>
8490
- <line num="160" type="stmt" count="1"/>
8491
- <line num="162" type="stmt" count="1"/>
8492
- <line num="163" type="stmt" count="1"/>
8493
- <line num="166" type="stmt" count="1"/>
8494
  <line num="167" type="stmt" count="1"/>
8495
- <line num="168" type="stmt" count="1"/>
8496
- <line num="177" type="stmt" count="1"/>
 
 
 
8497
  <line num="178" type="stmt" count="1"/>
8498
  <line num="179" type="stmt" count="1"/>
8499
- <line num="181" type="stmt" count="1"/>
8500
  <line num="182" type="stmt" count="1"/>
8501
  <line num="183" type="stmt" count="1"/>
8502
  <line num="184" type="stmt" count="1"/>
8503
- <line num="186" type="stmt" count="1"/>
8504
- <line num="187" type="stmt" count="1"/>
8505
- <line num="188" type="stmt" count="1"/>
8506
- <line num="195" type="method" name="zip" visibility="private" complexity="1" crap="1" count="1"/>
8507
- <line num="196" type="stmt" count="1"/>
8508
  <line num="197" type="stmt" count="1"/>
 
8509
  <line num="199" type="stmt" count="1"/>
8510
- <line num="201" type="stmt" count="1"/>
 
8511
  <line num="203" type="stmt" count="1"/>
8512
- <line num="205" type="stmt" count="1"/>
8513
- <line num="206" type="stmt" count="1"/>
8514
- <line num="207" type="stmt" count="1"/>
8515
- <line num="216" type="method" name="zip_sql" visibility="private" complexity="1" crap="1" count="1"/>
 
8516
  <line num="217" type="stmt" count="1"/>
8517
- <line num="218" type="stmt" count="1"/>
8518
- <line num="220" type="stmt" count="1"/>
8519
  <line num="222" type="stmt" count="1"/>
8520
- <line num="224" type="stmt" count="1"/>
8521
- <line num="225" type="stmt" count="1"/>
8522
- <line num="226" type="stmt" count="1"/>
8523
- <metrics loc="227" ncloc="101" classes="1" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="54" elements="60" coveredelements="58"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8524
  </file>
8525
  <package name="Boldgrid\Backup\Admin\Cron">
8526
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/class-crontab.php">
@@ -9031,9 +9558,8 @@
9031
  <line num="40" type="stmt" count="0"/>
9032
  <line num="41" type="stmt" count="0"/>
9033
  <line num="43" type="stmt" count="0"/>
9034
- <line num="45" type="stmt" count="0"/>
9035
  <line num="46" type="stmt" count="0"/>
9036
- <line num="47" type="stmt" count="0"/>
9037
  <line num="48" type="stmt" count="0"/>
9038
  <line num="49" type="stmt" count="0"/>
9039
  <line num="50" type="stmt" count="0"/>
@@ -9046,42 +9572,49 @@
9046
  <line num="57" type="stmt" count="0"/>
9047
  <line num="58" type="stmt" count="0"/>
9048
  <line num="59" type="stmt" count="0"/>
9049
- <line num="63" type="stmt" count="0"/>
9050
- <line num="65" type="stmt" count="0"/>
9051
- <line num="67" type="stmt" count="0"/>
 
9052
  <line num="68" type="stmt" count="0"/>
9053
  <line num="70" type="stmt" count="0"/>
9054
- <line num="72" type="stmt" count="0"/>
9055
  <line num="73" type="stmt" count="0"/>
9056
- <line num="74" type="stmt" count="0"/>
9057
  <line num="75" type="stmt" count="0"/>
9058
  <line num="76" type="stmt" count="0"/>
9059
  <line num="77" type="stmt" count="0"/>
 
9060
  <line num="79" type="stmt" count="0"/>
9061
- <line num="81" type="stmt" count="0"/>
9062
- <line num="83" type="stmt" count="0"/>
9063
- <line num="87" type="stmt" count="0"/>
9064
- <line num="88" type="stmt" count="0"/>
9065
- <line num="89" type="stmt" count="0"/>
9066
  <line num="91" type="stmt" count="0"/>
 
9067
  <line num="93" type="stmt" count="0"/>
9068
  <line num="95" type="stmt" count="0"/>
9069
  <line num="97" type="stmt" count="0"/>
9070
- <line num="98" type="stmt" count="0"/>
9071
  <line num="99" type="stmt" count="0"/>
9072
- <line num="100" type="stmt" count="0"/>
9073
  <line num="102" type="stmt" count="0"/>
 
9074
  <line num="104" type="stmt" count="0"/>
9075
  <line num="106" type="stmt" count="0"/>
9076
  <line num="108" type="stmt" count="0"/>
9077
- <line num="109" type="stmt" count="0"/>
9078
- <line num="111" type="stmt" count="0"/>
9079
- <line num="113" type="stmt" count="0"/>
9080
  <line num="114" type="stmt" count="0"/>
9081
  <line num="116" type="stmt" count="0"/>
9082
  <line num="118" type="stmt" count="0"/>
 
9083
  <line num="120" type="stmt" count="0"/>
9084
- <metrics loc="120" ncloc="100" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="70" coveredstatements="0" elements="70" coveredelements="0"/>
 
 
 
 
 
 
9085
  </file>
9086
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/archives/note-pre-backup.php">
9087
  <line num="17" type="stmt" count="0"/>
@@ -9467,6 +10000,7 @@
9467
  <line num="384" type="stmt" count="0"/>
9468
  <line num="385" type="stmt" count="0"/>
9469
  <line num="386" type="stmt" count="0"/>
 
9470
  <line num="388" type="stmt" count="0"/>
9471
  <line num="389" type="stmt" count="0"/>
9472
  <line num="390" type="stmt" count="0"/>
@@ -9474,17 +10008,16 @@
9474
  <line num="392" type="stmt" count="0"/>
9475
  <line num="393" type="stmt" count="0"/>
9476
  <line num="394" type="stmt" count="0"/>
9477
- <line num="395" type="stmt" count="0"/>
9478
  <line num="396" type="stmt" count="0"/>
9479
  <line num="397" type="stmt" count="0"/>
9480
  <line num="398" type="stmt" count="0"/>
9481
  <line num="399" type="stmt" count="0"/>
9482
  <line num="400" type="stmt" count="0"/>
 
9483
  <line num="402" type="stmt" count="0"/>
 
9484
  <line num="404" type="stmt" count="0"/>
9485
- <line num="405" type="stmt" count="0"/>
9486
  <line num="406" type="stmt" count="0"/>
9487
- <line num="407" type="stmt" count="0"/>
9488
  <line num="408" type="stmt" count="0"/>
9489
  <line num="409" type="stmt" count="0"/>
9490
  <line num="410" type="stmt" count="0"/>
@@ -9495,17 +10028,22 @@
9495
  <line num="415" type="stmt" count="0"/>
9496
  <line num="416" type="stmt" count="0"/>
9497
  <line num="417" type="stmt" count="0"/>
 
9498
  <line num="419" type="stmt" count="0"/>
9499
- <metrics loc="419" ncloc="351" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="358" coveredstatements="0" elements="358" coveredelements="0"/>
 
 
 
9500
  </file>
9501
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-backup-button.php">
9502
  <line num="19" type="stmt" count="0"/>
9503
  <line num="21" type="stmt" count="0"/>
 
9504
  <line num="23" type="stmt" count="0"/>
9505
  <line num="24" type="stmt" count="0"/>
9506
  <line num="25" type="stmt" count="0"/>
9507
- <line num="26" type="stmt" count="0"/>
9508
- <line num="38" type="stmt" count="0"/>
9509
  <line num="40" type="stmt" count="0"/>
9510
  <line num="41" type="stmt" count="0"/>
9511
  <line num="42" type="stmt" count="0"/>
@@ -9531,13 +10069,12 @@
9531
  <line num="62" type="stmt" count="0"/>
9532
  <line num="63" type="stmt" count="0"/>
9533
  <line num="64" type="stmt" count="0"/>
9534
- <line num="65" type="stmt" count="0"/>
9535
  <line num="67" type="stmt" count="0"/>
9536
  <line num="68" type="stmt" count="0"/>
9537
  <line num="69" type="stmt" count="0"/>
9538
- <line num="70" type="stmt" count="0"/>
9539
- <line num="72" type="stmt" count="0"/>
9540
- <metrics loc="72" ncloc="44" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="38" coveredstatements="0" elements="38" coveredelements="0"/>
9541
  </file>
9542
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-backup-modal.php">
9543
  <line num="17" type="stmt" count="0"/>
@@ -9656,11 +10193,10 @@
9656
  <line num="19" type="stmt" count="0"/>
9657
  <line num="21" type="stmt" count="0"/>
9658
  <line num="23" type="stmt" count="0"/>
9659
- <line num="26" type="stmt" count="0"/>
9660
- <line num="30" type="stmt" count="0"/>
9661
- <line num="32" type="stmt" count="0"/>
9662
- <line num="34" type="stmt" count="0"/>
9663
- <metrics loc="34" ncloc="18" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
9664
  </file>
9665
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-home.php">
9666
  <line num="17" type="stmt" count="0"/>
@@ -9678,18 +10214,34 @@
9678
  <line num="52" type="stmt" count="0"/>
9679
  <line num="53" type="stmt" count="0"/>
9680
  <line num="54" type="stmt" count="0"/>
 
9681
  <line num="57" type="stmt" count="0"/>
 
 
 
9682
  <line num="61" type="stmt" count="0"/>
 
 
 
 
9683
  <line num="67" type="stmt" count="0"/>
 
 
9684
  <line num="70" type="stmt" count="0"/>
 
9685
  <line num="72" type="stmt" count="0"/>
9686
- <line num="74" type="stmt" count="0"/>
9687
- <line num="76" type="stmt" count="0"/>
9688
- <line num="84" type="stmt" count="0"/>
9689
- <line num="85" type="stmt" count="0"/>
9690
- <line num="86" type="stmt" count="0"/>
 
9691
  <line num="89" type="stmt" count="0"/>
9692
- <metrics loc="89" ncloc="40" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="26" coveredstatements="0" elements="26" coveredelements="0"/>
 
 
 
 
9693
  </file>
9694
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-mail-restore.php">
9695
  <line num="17" type="stmt" count="1"/>
@@ -9736,81 +10288,95 @@
9736
  <metrics loc="93" ncloc="58" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="32" elements="41" coveredelements="32"/>
9737
  </file>
9738
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-nav.php">
9739
- <line num="19" type="stmt" count="5"/>
9740
- <line num="21" type="stmt" count="5"/>
9741
- <line num="23" type="stmt" count="5"/>
9742
- <line num="28" type="stmt" count="5"/>
9743
- <line num="29" type="stmt" count="5"/>
9744
- <line num="30" type="stmt" count="5"/>
9745
- <line num="31" type="stmt" count="5"/>
9746
- <line num="33" type="stmt" count="5"/>
9747
- <line num="34" type="stmt" count="5"/>
9748
- <line num="35" type="stmt" count="5"/>
9749
- <line num="36" type="stmt" count="5"/>
9750
- <line num="38" type="stmt" count="5"/>
9751
- <line num="39" type="stmt" count="5"/>
9752
- <line num="40" type="stmt" count="5"/>
9753
- <line num="41" type="stmt" count="5"/>
9754
- <line num="43" type="stmt" count="5"/>
9755
- <line num="44" type="stmt" count="5"/>
9756
- <line num="45" type="stmt" count="5"/>
9757
- <line num="46" type="stmt" count="5"/>
9758
- <line num="48" type="stmt" count="5"/>
9759
- <line num="49" type="stmt" count="5"/>
9760
- <line num="50" type="stmt" count="5"/>
9761
- <line num="51" type="stmt" count="5"/>
9762
- <line num="53" type="stmt" count="5"/>
9763
- <line num="54" type="stmt" count="5"/>
9764
- <line num="55" type="stmt" count="5"/>
9765
- <line num="56" type="stmt" count="5"/>
9766
- <line num="58" type="stmt" count="5"/>
9767
- <line num="59" type="stmt" count="5"/>
9768
- <line num="60" type="stmt" count="5"/>
9769
- <line num="61" type="stmt" count="5"/>
9770
- <line num="63" type="stmt" count="5"/>
9771
- <line num="64" type="stmt" count="5"/>
9772
- <line num="65" type="stmt" count="5"/>
9773
- <line num="66" type="stmt" count="5"/>
9774
- <line num="67" type="stmt" count="5"/>
9775
- <line num="68" type="stmt" count="5"/>
9776
- <line num="78" type="stmt" count="5"/>
9777
- <line num="80" type="stmt" count="5"/>
9778
- <line num="81" type="stmt" count="5"/>
9779
- <line num="82" type="stmt" count="5"/>
9780
- <line num="83" type="stmt" count="5"/>
9781
- <line num="84" type="stmt" count="5"/>
9782
- <line num="85" type="stmt" count="5"/>
9783
- <line num="86" type="stmt" count="5"/>
9784
- <line num="87" type="stmt" count="5"/>
9785
- <line num="88" type="stmt" count="5"/>
9786
- <line num="89" type="stmt" count="5"/>
9787
- <line num="90" type="stmt" count="5"/>
9788
- <line num="91" type="stmt" count="5"/>
9789
- <line num="92" type="stmt" count="5"/>
9790
- <line num="93" type="stmt" count="5"/>
9791
- <line num="94" type="stmt" count="5"/>
9792
- <line num="95" type="stmt" count="5"/>
9793
- <line num="96" type="stmt" count="5"/>
9794
- <line num="98" type="stmt" count="5"/>
9795
- <metrics loc="98" ncloc="69" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="56" elements="56" coveredelements="56"/>
9796
- </file>
9797
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-premium.php">
9798
- <line num="17" type="stmt" count="1"/>
9799
  <line num="19" type="stmt" count="1"/>
9800
  <line num="21" type="stmt" count="1"/>
9801
  <line num="23" type="stmt" count="1"/>
9802
- <line num="25" type="stmt" count="1"/>
9803
- <line num="27" type="stmt" count="1"/>
9804
- <line num="37" type="stmt" count="1"/>
 
 
 
 
 
9805
  <line num="38" type="stmt" count="1"/>
9806
  <line num="39" type="stmt" count="1"/>
9807
  <line num="40" type="stmt" count="1"/>
9808
- <line num="42" type="stmt" count="1"/>
9809
  <line num="43" type="stmt" count="1"/>
 
 
 
 
 
 
9810
  <line num="51" type="stmt" count="1"/>
9811
  <line num="53" type="stmt" count="1"/>
 
9812
  <line num="55" type="stmt" count="1"/>
9813
- <metrics loc="57" ncloc="36" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="15" coveredstatements="15" elements="15" coveredelements="15"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9814
  </file>
9815
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-settings.php">
9816
  <line num="17" type="stmt" count="0"/>
@@ -9828,12 +10394,12 @@
9828
  <line num="30" type="stmt" count="0"/>
9829
  <line num="31" type="stmt" count="0"/>
9830
  <line num="32" type="stmt" count="0"/>
9831
- <line num="33" type="stmt" count="0"/>
9832
  <line num="35" type="stmt" count="0"/>
9833
  <line num="36" type="stmt" count="0"/>
9834
  <line num="37" type="stmt" count="0"/>
9835
  <line num="38" type="stmt" count="0"/>
9836
- <line num="39" type="stmt" count="0"/>
9837
  <line num="41" type="stmt" count="0"/>
9838
  <line num="42" type="stmt" count="0"/>
9839
  <line num="43" type="stmt" count="0"/>
@@ -9886,12 +10452,12 @@
9886
  <line num="90" type="stmt" count="0"/>
9887
  <line num="91" type="stmt" count="0"/>
9888
  <line num="92" type="stmt" count="0"/>
9889
- <line num="93" type="stmt" count="0"/>
9890
- <line num="102" type="stmt" count="0"/>
9891
  <line num="113" type="stmt" count="0"/>
9892
  <line num="114" type="stmt" count="0"/>
9893
  <line num="115" type="stmt" count="0"/>
9894
- <line num="116" type="stmt" count="0"/>
9895
  <line num="119" type="stmt" count="0"/>
9896
  <line num="120" type="stmt" count="0"/>
9897
  <line num="121" type="stmt" count="0"/>
@@ -9900,31 +10466,29 @@
9900
  <line num="124" type="stmt" count="0"/>
9901
  <line num="125" type="stmt" count="0"/>
9902
  <line num="126" type="stmt" count="0"/>
9903
- <line num="127" type="stmt" count="0"/>
9904
- <line num="129" type="stmt" count="0"/>
9905
  <line num="132" type="stmt" count="0"/>
9906
- <line num="136" type="stmt" count="0"/>
 
9907
  <line num="146" type="stmt" count="0"/>
9908
  <line num="148" type="stmt" count="0"/>
9909
  <line num="149" type="stmt" count="0"/>
 
9910
  <line num="151" type="stmt" count="0"/>
9911
  <line num="152" type="stmt" count="0"/>
9912
  <line num="153" type="stmt" count="0"/>
9913
  <line num="154" type="stmt" count="0"/>
9914
  <line num="155" type="stmt" count="0"/>
9915
  <line num="156" type="stmt" count="0"/>
9916
- <line num="157" type="stmt" count="0"/>
9917
  <line num="158" type="stmt" count="0"/>
9918
- <line num="159" type="stmt" count="0"/>
9919
- <line num="161" type="stmt" count="0"/>
9920
- <line num="163" type="stmt" count="0"/>
9921
- <line num="165" type="stmt" count="0"/>
9922
  <line num="167" type="stmt" count="0"/>
9923
- <line num="169" type="stmt" count="0"/>
9924
  <line num="170" type="stmt" count="0"/>
9925
- <line num="173" type="stmt" count="0"/>
9926
- <line num="175" type="stmt" count="0"/>
9927
- <metrics loc="175" ncloc="128" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="111" coveredstatements="0" elements="111" coveredelements="0"/>
9928
  </file>
9929
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-support.php">
9930
  <line num="17" type="stmt" count="0"/>
@@ -9994,9 +10558,11 @@
9994
  <line num="93" type="stmt" count="0"/>
9995
  <line num="94" type="stmt" count="0"/>
9996
  <line num="95" type="stmt" count="0"/>
 
9997
  <line num="99" type="stmt" count="0"/>
9998
- <line num="103" type="stmt" count="0"/>
9999
  <line num="105" type="stmt" count="0"/>
 
10000
  <line num="107" type="stmt" count="0"/>
10001
  <line num="108" type="stmt" count="0"/>
10002
  <line num="109" type="stmt" count="0"/>
@@ -10011,28 +10577,28 @@
10011
  <line num="118" type="stmt" count="0"/>
10012
  <line num="119" type="stmt" count="0"/>
10013
  <line num="120" type="stmt" count="0"/>
10014
- <line num="121" type="stmt" count="0"/>
10015
  <line num="122" type="stmt" count="0"/>
 
10016
  <line num="124" type="stmt" count="0"/>
10017
  <line num="125" type="stmt" count="0"/>
10018
  <line num="126" type="stmt" count="0"/>
10019
  <line num="127" type="stmt" count="0"/>
10020
  <line num="128" type="stmt" count="0"/>
10021
- <line num="129" type="stmt" count="0"/>
10022
  <line num="130" type="stmt" count="0"/>
 
10023
  <line num="132" type="stmt" count="0"/>
10024
  <line num="133" type="stmt" count="0"/>
10025
  <line num="134" type="stmt" count="0"/>
10026
  <line num="135" type="stmt" count="0"/>
10027
  <line num="136" type="stmt" count="0"/>
10028
- <line num="137" type="stmt" count="0"/>
10029
  <line num="138" type="stmt" count="0"/>
 
10030
  <line num="140" type="stmt" count="0"/>
10031
  <line num="141" type="stmt" count="0"/>
10032
  <line num="142" type="stmt" count="0"/>
10033
  <line num="143" type="stmt" count="0"/>
10034
- <line num="144" type="stmt" count="0"/>
10035
  <line num="145" type="stmt" count="0"/>
 
10036
  <line num="147" type="stmt" count="0"/>
10037
  <line num="148" type="stmt" count="0"/>
10038
  <line num="149" type="stmt" count="0"/>
@@ -10043,12 +10609,8 @@
10043
  <line num="154" type="stmt" count="0"/>
10044
  <line num="155" type="stmt" count="0"/>
10045
  <line num="156" type="stmt" count="0"/>
10046
- <line num="157" type="stmt" count="0"/>
10047
- <line num="158" type="stmt" count="0"/>
10048
- <line num="160" type="stmt" count="0"/>
10049
- <line num="162" type="stmt" count="0"/>
10050
- <line num="164" type="stmt" count="0"/>
10051
- <metrics loc="164" ncloc="135" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="121" coveredstatements="0" elements="121" coveredelements="0"/>
10052
  </file>
10053
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-test.php">
10054
  <line num="19" type="stmt" count="0"/>
@@ -10413,12 +10975,12 @@
10413
  <line num="442" type="stmt" count="0"/>
10414
  <line num="445" type="stmt" count="0"/>
10415
  <line num="448" type="stmt" count="0"/>
10416
- <line num="450" type="stmt" count="0"/>
10417
  <line num="451" type="stmt" count="0"/>
10418
  <line num="453" type="stmt" count="0"/>
10419
  <line num="455" type="stmt" count="0"/>
10420
- <line num="459" type="stmt" count="0"/>
10421
- <metrics loc="459" ncloc="423" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="367" coveredstatements="0" elements="367" coveredelements="0"/>
10422
  </file>
10423
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-tools.php">
10424
  <line num="15" type="stmt" count="0"/>
@@ -10444,10 +11006,10 @@
10444
  <line num="37" type="stmt" count="0"/>
10445
  <line num="46" type="stmt" count="0"/>
10446
  <line num="57" type="stmt" count="0"/>
 
10447
  <line num="61" type="stmt" count="0"/>
10448
- <line num="65" type="stmt" count="0"/>
10449
- <line num="67" type="stmt" count="0"/>
10450
- <metrics loc="67" ncloc="37" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="26" coveredstatements="0" elements="26" coveredelements="0"/>
10451
  </file>
10452
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-transfers.php">
10453
  <line num="14" type="stmt" count="0"/>
@@ -10483,9 +11045,10 @@
10483
  <line num="66" type="stmt" count="0"/>
10484
  <line num="69" type="stmt" count="0"/>
10485
  <line num="71" type="stmt" count="0"/>
 
10486
  <line num="73" type="stmt" count="0"/>
10487
- <line num="74" type="stmt" count="0"/>
10488
- <metrics loc="74" ncloc="46" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="0" elements="35" coveredelements="0"/>
10489
  </file>
10490
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/remote/ftp.php">
10491
  <line num="20" type="stmt" count="0"/>
@@ -10574,63 +11137,430 @@
10574
  <line num="16" type="stmt" count="0"/>
10575
  <line num="18" type="stmt" count="0"/>
10576
  <line num="20" type="stmt" count="0"/>
10577
- <line num="21" type="stmt" count="0"/>
10578
- <line num="23" type="stmt" count="0"/>
10579
  <line num="24" type="stmt" count="0"/>
10580
  <line num="25" type="stmt" count="0"/>
10581
- <line num="26" type="stmt" count="0"/>
10582
  <line num="28" type="stmt" count="0"/>
10583
  <line num="30" type="stmt" count="0"/>
10584
  <line num="31" type="stmt" count="0"/>
10585
  <line num="32" type="stmt" count="0"/>
10586
- <line num="33" type="stmt" count="0"/>
10587
  <line num="34" type="stmt" count="0"/>
10588
  <line num="35" type="stmt" count="0"/>
10589
  <line num="36" type="stmt" count="0"/>
10590
  <line num="38" type="stmt" count="0"/>
10591
  <line num="39" type="stmt" count="0"/>
 
10592
  <line num="41" type="stmt" count="0"/>
10593
- <line num="42" type="stmt" count="0"/>
10594
  <line num="43" type="stmt" count="0"/>
10595
  <line num="44" type="stmt" count="0"/>
 
10596
  <line num="46" type="stmt" count="0"/>
10597
- <line num="47" type="stmt" count="0"/>
10598
  <line num="48" type="stmt" count="0"/>
10599
  <line num="49" type="stmt" count="0"/>
 
10600
  <line num="51" type="stmt" count="0"/>
10601
- <line num="52" type="stmt" count="0"/>
10602
- <line num="53" type="stmt" count="0"/>
10603
- <line num="55" type="stmt" count="0"/>
10604
  <line num="56" type="stmt" count="0"/>
10605
  <line num="57" type="stmt" count="0"/>
10606
  <line num="58" type="stmt" count="0"/>
10607
  <line num="61" type="stmt" count="0"/>
 
10608
  <line num="63" type="stmt" count="0"/>
10609
  <line num="64" type="stmt" count="0"/>
10610
  <line num="65" type="stmt" count="0"/>
10611
- <line num="68" type="stmt" count="0"/>
10612
  <line num="69" type="stmt" count="0"/>
10613
  <line num="70" type="stmt" count="0"/>
 
10614
  <line num="72" type="stmt" count="0"/>
10615
  <line num="73" type="stmt" count="0"/>
 
10616
  <line num="75" type="stmt" count="0"/>
10617
- <line num="76" type="stmt" count="0"/>
10618
  <line num="77" type="stmt" count="0"/>
10619
  <line num="78" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10620
  <line num="81" type="stmt" count="0"/>
10621
  <line num="82" type="stmt" count="0"/>
 
10622
  <line num="84" type="stmt" count="0"/>
10623
  <line num="85" type="stmt" count="0"/>
10624
  <line num="86" type="stmt" count="0"/>
 
 
10625
  <line num="89" type="stmt" count="0"/>
10626
- <line num="90" type="stmt" count="0"/>
10627
  <line num="91" type="stmt" count="0"/>
10628
  <line num="92" type="stmt" count="0"/>
10629
- <line num="93" type="stmt" count="0"/>
10630
- <line num="95" type="stmt" count="0"/>
10631
- <line num="96" type="stmt" count="0"/>
10632
- <line num="98" type="stmt" count="0"/>
10633
- <metrics loc="98" ncloc="83" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="59" coveredstatements="0" elements="59" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10634
  </file>
10635
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/backup-directory.php">
10636
  <line num="17" type="stmt" count="0"/>
@@ -10720,38 +11650,43 @@
10720
  <line num="76" type="stmt" count="0"/>
10721
  <line num="77" type="stmt" count="0"/>
10722
  <line num="78" type="stmt" count="0"/>
 
10723
  <line num="80" type="stmt" count="0"/>
10724
  <line num="81" type="stmt" count="0"/>
 
10725
  <line num="83" type="stmt" count="0"/>
10726
  <line num="85" type="stmt" count="0"/>
10727
  <line num="86" type="stmt" count="0"/>
10728
  <line num="88" type="stmt" count="0"/>
10729
- <line num="89" type="stmt" count="0"/>
10730
  <line num="91" type="stmt" count="0"/>
10731
- <line num="92" type="stmt" count="0"/>
10732
  <line num="93" type="stmt" count="0"/>
10733
  <line num="94" type="stmt" count="0"/>
10734
  <line num="96" type="stmt" count="0"/>
10735
  <line num="97" type="stmt" count="0"/>
 
10736
  <line num="99" type="stmt" count="0"/>
10737
  <line num="101" type="stmt" count="0"/>
10738
- <line num="103" type="stmt" count="0"/>
10739
- <line num="105" type="stmt" count="0"/>
10740
  <line num="106" type="stmt" count="0"/>
10741
- <line num="107" type="stmt" count="0"/>
10742
  <line num="108" type="stmt" count="0"/>
10743
- <line num="109" type="stmt" count="0"/>
10744
  <line num="110" type="stmt" count="0"/>
10745
  <line num="111" type="stmt" count="0"/>
 
10746
  <line num="113" type="stmt" count="0"/>
 
10747
  <line num="115" type="stmt" count="0"/>
10748
- <line num="117" type="stmt" count="0"/>
10749
  <line num="118" type="stmt" count="0"/>
10750
- <line num="119" type="stmt" count="0"/>
10751
- <line num="121" type="stmt" count="0"/>
10752
  <line num="122" type="stmt" count="0"/>
 
10753
  <line num="124" type="stmt" count="0"/>
10754
- <metrics loc="124" ncloc="98" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="77" coveredstatements="0" elements="77" coveredelements="0"/>
 
 
 
10755
  </file>
10756
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/compressor.php">
10757
  <line num="18" type="stmt" count="0"/>
@@ -10784,27 +11719,52 @@
10784
  <line num="52" type="stmt" count="0"/>
10785
  <line num="53" type="stmt" count="0"/>
10786
  <line num="54" type="stmt" count="0"/>
10787
- <line num="56" type="stmt" count="0"/>
10788
  <line num="58" type="stmt" count="0"/>
10789
  <line num="59" type="stmt" count="0"/>
 
 
10790
  <line num="62" type="stmt" count="0"/>
10791
- <line num="63" type="stmt" count="0"/>
10792
  <line num="64" type="stmt" count="0"/>
 
10793
  <line num="66" type="stmt" count="0"/>
 
10794
  <line num="68" type="stmt" count="0"/>
 
10795
  <line num="70" type="stmt" count="0"/>
10796
  <line num="72" type="stmt" count="0"/>
10797
  <line num="73" type="stmt" count="0"/>
 
10798
  <line num="75" type="stmt" count="0"/>
 
10799
  <line num="77" type="stmt" count="0"/>
10800
- <line num="78" type="stmt" count="0"/>
10801
  <line num="79" type="stmt" count="0"/>
10802
- <line num="80" type="stmt" count="0"/>
10803
  <line num="81" type="stmt" count="0"/>
10804
- <line num="84" type="stmt" count="0"/>
10805
  <line num="85" type="stmt" count="0"/>
10806
  <line num="86" type="stmt" count="0"/>
10807
- <metrics loc="86" ncloc="66" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="0" elements="50" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10808
  </file>
10809
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/connect-key.php">
10810
  <line num="17" type="stmt" count="0"/>
@@ -11735,20 +12695,16 @@
11735
  <line num="214" type="stmt" count="0"/>
11736
  <line num="215" type="stmt" count="0"/>
11737
  <line num="216" type="stmt" count="0"/>
11738
- <line num="217" type="stmt" count="0"/>
11739
  <line num="219" type="stmt" count="0"/>
11740
  <line num="220" type="stmt" count="0"/>
11741
  <line num="221" type="stmt" count="0"/>
11742
  <line num="222" type="stmt" count="0"/>
11743
  <line num="223" type="stmt" count="0"/>
11744
- <line num="224" type="stmt" count="0"/>
11745
  <line num="225" type="stmt" count="0"/>
11746
  <line num="226" type="stmt" count="0"/>
11747
- <line num="227" type="stmt" count="0"/>
11748
- <line num="229" type="stmt" count="0"/>
11749
- <line num="230" type="stmt" count="0"/>
11750
- <line num="232" type="stmt" count="0"/>
11751
- <metrics loc="232" ncloc="191" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="185" coveredstatements="0" elements="185" coveredelements="0"/>
11752
  </file>
11753
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/tools/view-logs.php">
11754
  <line num="18" type="stmt" count="0"/>
@@ -11867,8 +12823,8 @@
11867
  <line num="86" type="stmt" count="0"/>
11868
  <line num="87" type="stmt" count="0"/>
11869
  <line num="88" type="stmt" count="0"/>
 
11870
  <line num="90" type="stmt" count="0"/>
11871
- <line num="91" type="stmt" count="0"/>
11872
  <line num="92" type="stmt" count="0"/>
11873
  <line num="93" type="stmt" count="0"/>
11874
  <line num="94" type="stmt" count="0"/>
@@ -11882,7 +12838,9 @@
11882
  <line num="102" type="stmt" count="0"/>
11883
  <line num="103" type="stmt" count="0"/>
11884
  <line num="104" type="stmt" count="0"/>
11885
- <metrics loc="104" ncloc="65" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="74" coveredstatements="0" elements="74" coveredelements="0"/>
 
 
11886
  </file>
11887
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/transfers/overview.php">
11888
  <line num="16" type="stmt" count="0"/>
@@ -11973,9 +12931,9 @@
11973
  <class name="Boldgrid_Backup_Admin_Ftp_Hooks" namespace="global" fullPackage="Boldgrid.Backup.Admin.Ftp">
11974
  <metrics complexity="31" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="2" elements="140" coveredelements="3"/>
11975
  </class>
11976
- <line num="47" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
11977
- <line num="48" type="stmt" count="20"/>
11978
- <line num="49" type="stmt" count="20"/>
11979
  <line num="56" type="method" name="add_menu_items" visibility="public" complexity="1" crap="2" count="0"/>
11980
  <line num="57" type="stmt" count="0"/>
11981
  <line num="59" type="stmt" count="0"/>
@@ -12119,9 +13077,9 @@
12119
  <class name="Boldgrid_Backup_Admin_Ftp_Page" namespace="global" fullPackage="Boldgrid.Backup.Admin.Ftp">
12120
  <metrics complexity="21" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="116" coveredstatements="2" elements="121" coveredelements="3"/>
12121
  </class>
12122
- <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
12123
- <line num="40" type="stmt" count="20"/>
12124
- <line num="41" type="stmt" count="20"/>
12125
  <line num="48" type="method" name="enqueue_scripts" visibility="public" complexity="2" crap="6" count="0"/>
12126
  <line num="49" type="stmt" count="0"/>
12127
  <line num="50" type="stmt" count="0"/>
@@ -12246,14 +13204,14 @@
12246
  <class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
12247
  <metrics complexity="135" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="475" coveredstatements="14" elements="497" coveredelements="16"/>
12248
  </class>
12249
- <line num="247" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
12250
- <line num="248" type="stmt" count="20"/>
12251
- <line num="250" type="stmt" count="20"/>
12252
- <line num="251" type="stmt" count="20"/>
12253
- <line num="252" type="stmt" count="20"/>
12254
- <line num="253" type="stmt" count="20"/>
12255
- <line num="255" type="stmt" count="20"/>
12256
- <line num="256" type="stmt" count="20"/>
12257
  <line num="263" type="method" name="connect" visibility="public" complexity="10" crap="110" count="0"/>
12258
  <line num="264" type="stmt" count="0"/>
12259
  <line num="265" type="stmt" count="0"/>
@@ -12694,14 +13652,14 @@
12694
  <line num="1049" type="stmt" count="0"/>
12695
  <line num="1050" type="stmt" count="0"/>
12696
  <line num="1051" type="stmt" count="0"/>
12697
- <line num="1058" type="method" name="set_default_folder_name" visibility="public" complexity="1" crap="1" count="20"/>
12698
- <line num="1059" type="stmt" count="20"/>
12699
- <line num="1060" type="stmt" count="20"/>
12700
- <line num="1061" type="stmt" count="20"/>
12701
- <line num="1062" type="stmt" count="20"/>
12702
- <line num="1063" type="stmt" count="20"/>
12703
- <line num="1065" type="stmt" count="20"/>
12704
- <line num="1066" type="stmt" count="20"/>
12705
  <line num="1075" type="method" name="set_pass" visibility="public" complexity="1" crap="2" count="0"/>
12706
  <line num="1076" type="stmt" count="0"/>
12707
  <line num="1077" type="stmt" count="0"/>
@@ -12753,9 +13711,9 @@
12753
  <class name="Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin.Remote">
12754
  <metrics complexity="17" methods="12" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="33" coveredstatements="21" elements="45" coveredelements="30"/>
12755
  </class>
12756
- <line num="77" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
12757
- <line num="78" type="stmt" count="20"/>
12758
- <line num="79" type="stmt" count="20"/>
12759
  <line num="86" type="method" name="delete_settings" visibility="public" complexity="1" crap="2" count="0"/>
12760
  <line num="87" type="stmt" count="0"/>
12761
  <line num="88" type="stmt" count="0"/>
@@ -12804,9 +13762,9 @@
12804
  <class name="Boldgrid_Backup_Admin_Storage_Local" namespace="global" fullPackage="Boldgrid.Backup.Admin.Storage">
12805
  <metrics complexity="30" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="121" coveredstatements="2" elements="130" coveredelements="3"/>
12806
  </class>
12807
- <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
12808
- <line num="40" type="stmt" count="20"/>
12809
- <line num="41" type="stmt" count="20"/>
12810
  <line num="55" type="method" name="delete_local" visibility="public" complexity="1" crap="2" count="0"/>
12811
  <line num="56" type="stmt" count="0"/>
12812
  <line num="76" type="method" name="post_archive_files" visibility="public" complexity="4" crap="20" count="0"/>
@@ -14150,9 +15108,9 @@
14150
  <class name="Boldgrid_Backup_Download" namespace="global" fullPackage="Boldgrid.Backup">
14151
  <metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="2" elements="14" coveredelements="3"/>
14152
  </class>
14153
- <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
14154
- <line num="38" type="stmt" count="20"/>
14155
- <line num="39" type="stmt" count="20"/>
14156
  <line num="52" type="method" name="public_download" visibility="public" complexity="4" crap="20" count="0"/>
14157
  <line num="53" type="stmt" count="0"/>
14158
  <line num="54" type="stmt" count="0"/>
@@ -14257,7 +15215,7 @@
14257
  </file>
14258
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup.php">
14259
  <class name="Boldgrid_Backup" namespace="global" fullPackage="Boldgrid">
14260
- <metrics complexity="16" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="273" coveredstatements="0" elements="281" coveredelements="0"/>
14261
  </class>
14262
  <line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
14263
  <line num="67" type="stmt" count="0"/>
@@ -14275,31 +15233,30 @@
14275
  <line num="118" type="stmt" count="0"/>
14276
  <line num="123" type="stmt" count="0"/>
14277
  <line num="128" type="stmt" count="0"/>
14278
- <line num="133" type="stmt" count="0"/>
14279
- <line num="134" type="stmt" count="0"/>
14280
  <line num="135" type="stmt" count="0"/>
14281
- <line num="140" type="stmt" count="0"/>
14282
- <line num="145" type="stmt" count="0"/>
14283
- <line num="150" type="stmt" count="0"/>
14284
- <line num="155" type="stmt" count="0"/>
 
14285
  <line num="157" type="stmt" count="0"/>
14286
  <line num="159" type="stmt" count="0"/>
14287
  <line num="161" type="stmt" count="0"/>
14288
  <line num="163" type="stmt" count="0"/>
14289
- <line num="164" type="stmt" count="0"/>
14290
  <line num="165" type="stmt" count="0"/>
14291
  <line num="166" type="stmt" count="0"/>
14292
  <line num="167" type="stmt" count="0"/>
14293
  <line num="168" type="stmt" count="0"/>
14294
  <line num="169" type="stmt" count="0"/>
 
14295
  <line num="171" type="stmt" count="0"/>
14296
- <line num="172" type="stmt" count="0"/>
14297
  <line num="173" type="stmt" count="0"/>
14298
  <line num="174" type="stmt" count="0"/>
14299
  <line num="175" type="stmt" count="0"/>
 
14300
  <line num="177" type="stmt" count="0"/>
14301
  <line num="179" type="stmt" count="0"/>
14302
- <line num="180" type="stmt" count="0"/>
14303
  <line num="181" type="stmt" count="0"/>
14304
  <line num="182" type="stmt" count="0"/>
14305
  <line num="183" type="stmt" count="0"/>
@@ -14307,6 +15264,7 @@
14307
  <line num="185" type="stmt" count="0"/>
14308
  <line num="186" type="stmt" count="0"/>
14309
  <line num="187" type="stmt" count="0"/>
 
14310
  <line num="189" type="stmt" count="0"/>
14311
  <line num="191" type="stmt" count="0"/>
14312
  <line num="193" type="stmt" count="0"/>
@@ -14318,33 +15276,32 @@
14318
  <line num="205" type="stmt" count="0"/>
14319
  <line num="207" type="stmt" count="0"/>
14320
  <line num="209" type="stmt" count="0"/>
14321
- <line num="210" type="stmt" count="0"/>
14322
  <line num="211" type="stmt" count="0"/>
 
14323
  <line num="213" type="stmt" count="0"/>
14324
- <line num="214" type="stmt" count="0"/>
14325
  <line num="215" type="stmt" count="0"/>
14326
  <line num="216" type="stmt" count="0"/>
 
14327
  <line num="218" type="stmt" count="0"/>
14328
  <line num="220" type="stmt" count="0"/>
14329
- <line num="221" type="stmt" count="0"/>
14330
  <line num="223" type="stmt" count="0"/>
14331
  <line num="225" type="stmt" count="0"/>
14332
  <line num="227" type="stmt" count="0"/>
14333
- <line num="228" type="stmt" count="0"/>
14334
  <line num="229" type="stmt" count="0"/>
 
14335
  <line num="231" type="stmt" count="0"/>
14336
  <line num="233" type="stmt" count="0"/>
14337
  <line num="235" type="stmt" count="0"/>
14338
- <line num="238" type="stmt" count="0"/>
14339
- <line num="239" type="stmt" count="0"/>
14340
  <line num="240" type="stmt" count="0"/>
14341
  <line num="241" type="stmt" count="0"/>
14342
  <line num="242" type="stmt" count="0"/>
14343
  <line num="243" type="stmt" count="0"/>
 
14344
  <line num="245" type="stmt" count="0"/>
14345
- <line num="248" type="stmt" count="0"/>
14346
- <line num="251" type="stmt" count="0"/>
14347
- <line num="252" type="stmt" count="0"/>
14348
  <line num="253" type="stmt" count="0"/>
14349
  <line num="254" type="stmt" count="0"/>
14350
  <line num="255" type="stmt" count="0"/>
@@ -14355,192 +15312,201 @@
14355
  <line num="260" type="stmt" count="0"/>
14356
  <line num="261" type="stmt" count="0"/>
14357
  <line num="262" type="stmt" count="0"/>
 
 
14358
  <line num="265" type="stmt" count="0"/>
14359
- <line num="266" type="stmt" count="0"/>
14360
- <line num="267" type="stmt" count="0"/>
14361
  <line num="268" type="stmt" count="0"/>
14362
  <line num="269" type="stmt" count="0"/>
14363
  <line num="270" type="stmt" count="0"/>
 
14364
  <line num="272" type="stmt" count="0"/>
14365
  <line num="273" type="stmt" count="0"/>
14366
  <line num="274" type="stmt" count="0"/>
14367
  <line num="276" type="stmt" count="0"/>
14368
  <line num="277" type="stmt" count="0"/>
14369
  <line num="278" type="stmt" count="0"/>
14370
- <line num="279" type="stmt" count="0"/>
14371
  <line num="281" type="stmt" count="0"/>
14372
  <line num="282" type="stmt" count="0"/>
 
14373
  <line num="285" type="stmt" count="0"/>
14374
  <line num="286" type="stmt" count="0"/>
14375
- <line num="287" type="stmt" count="0"/>
14376
  <line num="289" type="stmt" count="0"/>
 
14377
  <line num="291" type="stmt" count="0"/>
14378
- <line num="294" type="stmt" count="0"/>
14379
  <line num="295" type="stmt" count="0"/>
14380
- <line num="297" type="stmt" count="0"/>
14381
- <line num="300" type="stmt" count="0"/>
14382
  <line num="301" type="stmt" count="0"/>
14383
- <line num="303" type="stmt" count="0"/>
14384
  <line num="304" type="stmt" count="0"/>
14385
- <line num="315" type="method" name="set_locale" visibility="private" complexity="1" crap="2" count="0"/>
14386
- <line num="316" type="stmt" count="0"/>
14387
- <line num="318" type="stmt" count="0"/>
14388
- <line num="319" type="stmt" count="0"/>
14389
- <line num="327" type="method" name="define_admin_hooks" visibility="private" complexity="5" crap="30" count="0"/>
14390
- <line num="329" type="stmt" count="0"/>
14391
- <line num="331" type="stmt" count="0"/>
14392
- <line num="334" type="stmt" count="0"/>
14393
- <line num="337" type="stmt" count="0"/>
 
14394
  <line num="338" type="stmt" count="0"/>
14395
- <line num="339" type="stmt" count="0"/>
14396
  <line num="341" type="stmt" count="0"/>
14397
  <line num="342" type="stmt" count="0"/>
14398
  <line num="343" type="stmt" count="0"/>
 
14399
  <line num="346" type="stmt" count="0"/>
14400
  <line num="347" type="stmt" count="0"/>
14401
- <line num="348" type="stmt" count="0"/>
14402
- <line num="349" type="stmt" count="0"/>
14403
  <line num="352" type="stmt" count="0"/>
14404
  <line num="353" type="stmt" count="0"/>
14405
- <line num="354" type="stmt" count="0"/>
14406
- <line num="355" type="stmt" count="0"/>
14407
  <line num="357" type="stmt" count="0"/>
14408
  <line num="358" type="stmt" count="0"/>
14409
  <line num="359" type="stmt" count="0"/>
14410
- <line num="360" type="stmt" count="0"/>
14411
  <line num="361" type="stmt" count="0"/>
 
 
14412
  <line num="364" type="stmt" count="0"/>
14413
  <line num="365" type="stmt" count="0"/>
14414
- <line num="366" type="stmt" count="0"/>
14415
- <line num="367" type="stmt" count="0"/>
14416
  <line num="370" type="stmt" count="0"/>
14417
  <line num="371" type="stmt" count="0"/>
14418
- <line num="372" type="stmt" count="0"/>
14419
- <line num="373" type="stmt" count="0"/>
14420
  <line num="376" type="stmt" count="0"/>
14421
  <line num="377" type="stmt" count="0"/>
14422
- <line num="378" type="stmt" count="0"/>
14423
- <line num="379" type="stmt" count="0"/>
14424
  <line num="382" type="stmt" count="0"/>
14425
  <line num="383" type="stmt" count="0"/>
14426
- <line num="384" type="stmt" count="0"/>
14427
- <line num="385" type="stmt" count="0"/>
14428
  <line num="388" type="stmt" count="0"/>
14429
  <line num="389" type="stmt" count="0"/>
14430
- <line num="390" type="stmt" count="0"/>
14431
- <line num="391" type="stmt" count="0"/>
14432
  <line num="394" type="stmt" count="0"/>
14433
  <line num="395" type="stmt" count="0"/>
14434
- <line num="396" type="stmt" count="0"/>
14435
- <line num="397" type="stmt" count="0"/>
14436
  <line num="399" type="stmt" count="0"/>
14437
  <line num="400" type="stmt" count="0"/>
14438
  <line num="401" type="stmt" count="0"/>
 
14439
  <line num="404" type="stmt" count="0"/>
14440
  <line num="405" type="stmt" count="0"/>
14441
- <line num="406" type="stmt" count="0"/>
14442
- <line num="407" type="stmt" count="0"/>
14443
  <line num="410" type="stmt" count="0"/>
14444
  <line num="411" type="stmt" count="0"/>
14445
- <line num="412" type="stmt" count="0"/>
14446
- <line num="413" type="stmt" count="0"/>
14447
  <line num="415" type="stmt" count="0"/>
14448
  <line num="416" type="stmt" count="0"/>
14449
  <line num="417" type="stmt" count="0"/>
14450
- <line num="418" type="stmt" count="0"/>
14451
  <line num="419" type="stmt" count="0"/>
14452
  <line num="420" type="stmt" count="0"/>
 
14453
  <line num="422" type="stmt" count="0"/>
 
14454
  <line num="424" type="stmt" count="0"/>
14455
  <line num="426" type="stmt" count="0"/>
14456
  <line num="428" type="stmt" count="0"/>
14457
- <line num="429" type="stmt" count="0"/>
14458
  <line num="430" type="stmt" count="0"/>
14459
  <line num="432" type="stmt" count="0"/>
14460
  <line num="433" type="stmt" count="0"/>
14461
- <line num="435" type="stmt" count="0"/>
 
14462
  <line num="437" type="stmt" count="0"/>
14463
  <line num="439" type="stmt" count="0"/>
14464
  <line num="441" type="stmt" count="0"/>
14465
  <line num="443" type="stmt" count="0"/>
14466
- <line num="444" type="stmt" count="0"/>
14467
  <line num="445" type="stmt" count="0"/>
14468
  <line num="447" type="stmt" count="0"/>
 
14469
  <line num="449" type="stmt" count="0"/>
14470
- <line num="450" type="stmt" count="0"/>
14471
  <line num="451" type="stmt" count="0"/>
14472
- <line num="452" type="stmt" count="0"/>
14473
  <line num="454" type="stmt" count="0"/>
 
14474
  <line num="456" type="stmt" count="0"/>
14475
  <line num="458" type="stmt" count="0"/>
14476
  <line num="460" type="stmt" count="0"/>
14477
  <line num="462" type="stmt" count="0"/>
14478
  <line num="464" type="stmt" count="0"/>
14479
- <line num="469" type="stmt" count="0"/>
14480
- <line num="471" type="stmt" count="0"/>
14481
  <line num="473" type="stmt" count="0"/>
14482
  <line num="475" type="stmt" count="0"/>
14483
  <line num="477" type="stmt" count="0"/>
14484
  <line num="479" type="stmt" count="0"/>
14485
  <line num="481" type="stmt" count="0"/>
14486
  <line num="483" type="stmt" count="0"/>
14487
- <line num="484" type="stmt" count="0"/>
14488
- <line num="486" type="stmt" count="0"/>
14489
  <line num="487" type="stmt" count="0"/>
14490
- <line num="489" type="stmt" count="0"/>
 
14491
  <line num="491" type="stmt" count="0"/>
14492
- <line num="492" type="stmt" count="0"/>
14493
  <line num="493" type="stmt" count="0"/>
14494
  <line num="495" type="stmt" count="0"/>
 
14495
  <line num="497" type="stmt" count="0"/>
14496
- <line num="498" type="stmt" count="0"/>
14497
  <line num="501" type="stmt" count="0"/>
14498
  <line num="502" type="stmt" count="0"/>
14499
- <line num="503" type="stmt" count="0"/>
14500
  <line num="506" type="stmt" count="0"/>
14501
  <line num="507" type="stmt" count="0"/>
14502
  <line num="510" type="stmt" count="0"/>
14503
- <line num="513" type="stmt" count="0"/>
14504
- <line num="516" type="stmt" count="0"/>
14505
- <line num="519" type="stmt" count="0"/>
14506
- <line num="521" type="stmt" count="0"/>
14507
  <line num="523" type="stmt" count="0"/>
14508
- <line num="524" type="stmt" count="0"/>
14509
- <line num="526" type="stmt" count="0"/>
14510
- <line num="528" type="stmt" count="0"/>
14511
- <line num="530" type="stmt" count="0"/>
14512
  <line num="531" type="stmt" count="0"/>
14513
- <line num="534" type="stmt" count="0"/>
 
 
14514
  <line num="537" type="stmt" count="0"/>
14515
  <line num="538" type="stmt" count="0"/>
14516
- <line num="540" type="stmt" count="0"/>
14517
  <line num="541" type="stmt" count="0"/>
14518
- <line num="542" type="stmt" count="0"/>
14519
- <line num="543" type="stmt" count="0"/>
14520
  <line num="544" type="stmt" count="0"/>
 
14521
  <line num="547" type="stmt" count="0"/>
14522
- <line num="548" type="stmt" count="0"/>
14523
  <line num="549" type="stmt" count="0"/>
 
 
14524
  <line num="552" type="stmt" count="0"/>
 
 
 
 
14525
  <line num="559" type="stmt" count="0"/>
14526
- <line num="560" type="stmt" count="0"/>
14527
- <line num="561" type="stmt" count="0"/>
14528
- <line num="563" type="stmt" count="0"/>
14529
- <line num="564" type="stmt" count="0"/>
14530
- <line num="565" type="stmt" count="0"/>
14531
- <line num="572" type="method" name="run" visibility="public" complexity="1" crap="2" count="0"/>
14532
  <line num="573" type="stmt" count="0"/>
14533
  <line num="574" type="stmt" count="0"/>
14534
- <line num="583" type="method" name="get_plugin_name" visibility="public" complexity="1" crap="2" count="0"/>
14535
- <line num="584" type="stmt" count="0"/>
 
14536
  <line num="585" type="stmt" count="0"/>
14537
- <line num="593" type="method" name="get_loader" visibility="public" complexity="1" crap="2" count="0"/>
14538
- <line num="594" type="stmt" count="0"/>
14539
- <line num="595" type="stmt" count="0"/>
14540
- <line num="603" type="method" name="get_version" visibility="public" complexity="1" crap="2" count="0"/>
14541
- <line num="604" type="stmt" count="0"/>
14542
- <line num="605" type="stmt" count="0"/>
14543
- <metrics loc="606" ncloc="368" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="273" coveredstatements="0" elements="281" coveredelements="0"/>
 
 
 
 
14544
  </file>
14545
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.cron.php">
14546
  <line num="17" type="stmt" count="0"/>
@@ -14608,9 +15574,13 @@
14608
  <line num="99" type="stmt" count="1"/>
14609
  <line num="100" type="stmt" count="1"/>
14610
  <line num="101" type="stmt" count="1"/>
14611
- <line num="102" type="stmt" count="1"/>
14612
  <line num="103" type="stmt" count="1"/>
14613
- <metrics loc="103" ncloc="55" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="40" coveredstatements="37" elements="40" coveredelements="37"/>
 
 
 
 
 
14614
  </file>
14615
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.rating-prompt.php">
14616
  <line num="17" type="stmt" count="0"/>
@@ -68645,940 +69615,15 @@
68645
  <metrics loc="510" ncloc="285" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="215" coveredstatements="0" elements="218" coveredelements="0"/>
68646
  </file>
68647
  </package>
68648
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/remote/test-class-boldgrid-backup-admin-remote-settings.php">
68649
- <class name="Test_Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Remote">
68650
- <metrics complexity="9" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="43" coveredstatements="43" elements="52" coveredelements="52"/>
68651
- </class>
68652
- <line num="49" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="8"/>
68653
- <line num="50" type="stmt" count="8"/>
68654
- <line num="52" type="stmt" count="8"/>
68655
- <line num="54" type="stmt" count="8"/>
68656
- <line num="55" type="stmt" count="8"/>
68657
- <line num="62" type="method" name="test_get_last_login" visibility="public" complexity="1" crap="1" count="1"/>
68658
- <line num="63" type="stmt" count="1"/>
68659
- <line num="65" type="stmt" count="1"/>
68660
- <line num="67" type="stmt" count="1"/>
68661
- <line num="68" type="stmt" count="1"/>
68662
- <line num="75" type="method" name="test_get_option" visibility="public" complexity="1" crap="1" count="1"/>
68663
- <line num="76" type="stmt" count="1"/>
68664
- <line num="78" type="stmt" count="1"/>
68665
- <line num="79" type="stmt" count="1"/>
68666
- <line num="86" type="method" name="test_get_setting" visibility="public" complexity="1" crap="1" count="1"/>
68667
- <line num="87" type="stmt" count="1"/>
68668
- <line num="89" type="stmt" count="1"/>
68669
- <line num="90" type="stmt" count="1"/>
68670
- <line num="97" type="method" name="test_get_settings" visibility="public" complexity="1" crap="1" count="1"/>
68671
- <line num="98" type="stmt" count="1"/>
68672
- <line num="100" type="stmt" count="1"/>
68673
- <line num="101" type="stmt" count="1"/>
68674
- <line num="108" type="method" name="test_is_last_login_valid" visibility="public" complexity="1" crap="1" count="1"/>
68675
- <line num="109" type="stmt" count="1"/>
68676
- <line num="112" type="stmt" count="1"/>
68677
- <line num="113" type="stmt" count="1"/>
68678
- <line num="116" type="stmt" count="1"/>
68679
- <line num="117" type="stmt" count="1"/>
68680
- <line num="120" type="stmt" count="1"/>
68681
- <line num="121" type="stmt" count="1"/>
68682
- <line num="124" type="stmt" count="1"/>
68683
- <line num="125" type="stmt" count="1"/>
68684
- <line num="126" type="stmt" count="1"/>
68685
- <line num="133" type="method" name="test_save_setting" visibility="public" complexity="1" crap="1" count="1"/>
68686
- <line num="134" type="stmt" count="1"/>
68687
- <line num="135" type="stmt" count="1"/>
68688
- <line num="137" type="stmt" count="1"/>
68689
- <line num="139" type="stmt" count="1"/>
68690
- <line num="140" type="stmt" count="1"/>
68691
- <line num="147" type="method" name="test_save_settings" visibility="public" complexity="1" crap="1" count="1"/>
68692
- <line num="149" type="stmt" count="1"/>
68693
- <line num="150" type="stmt" count="1"/>
68694
- <line num="151" type="stmt" count="1"/>
68695
- <line num="153" type="stmt" count="1"/>
68696
- <line num="155" type="stmt" count="1"/>
68697
- <line num="156" type="stmt" count="1"/>
68698
- <line num="163" type="method" name="test_set_last_login" visibility="public" complexity="1" crap="1" count="1"/>
68699
- <line num="164" type="stmt" count="1"/>
68700
- <line num="166" type="stmt" count="1"/>
68701
- <line num="168" type="stmt" count="1"/>
68702
- <line num="170" type="stmt" count="1"/>
68703
- <line num="171" type="stmt" count="1"/>
68704
- <metrics loc="172" ncloc="92" classes="1" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="43" coveredstatements="43" elements="52" coveredelements="52"/>
68705
- </file>
68706
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-ajax.php">
68707
- <class name="Test_Boldgrid_Backup_Admin_Ajax" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
68708
- <metrics complexity="5" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="33" coveredstatements="0" elements="36" coveredelements="0"/>
68709
- </class>
68710
- <line num="30" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
68711
- <line num="31" type="stmt" count="0"/>
68712
- <line num="33" type="stmt" count="0"/>
68713
- <line num="34" type="stmt" count="0"/>
68714
- <line num="36" type="stmt" count="0"/>
68715
- <line num="37" type="stmt" count="0"/>
68716
- <line num="44" type="method" name="test_wp_ajax_cli_cancel_success" visibility="public" complexity="2" crap="6" count="0"/>
68717
- <line num="45" type="stmt" count="0"/>
68718
- <line num="46" type="stmt" count="0"/>
68719
- <line num="48" type="stmt" count="0"/>
68720
- <line num="51" type="stmt" count="0"/>
68721
- <line num="52" type="stmt" count="0"/>
68722
- <line num="54" type="stmt" count="0"/>
68723
- <line num="58" type="stmt" count="0"/>
68724
- <line num="60" type="stmt" count="0"/>
68725
- <line num="62" type="stmt" count="0"/>
68726
- <line num="63" type="stmt" count="0"/>
68727
- <line num="64" type="stmt" count="0"/>
68728
- <line num="65" type="stmt" count="0"/>
68729
- <line num="66" type="stmt" count="0"/>
68730
- <line num="67" type="stmt" count="0"/>
68731
- <line num="74" type="method" name="test_wp_ajax_cli_cancel_failure" visibility="public" complexity="2" crap="6" count="0"/>
68732
- <line num="75" type="stmt" count="0"/>
68733
- <line num="76" type="stmt" count="0"/>
68734
- <line num="78" type="stmt" count="0"/>
68735
- <line num="81" type="stmt" count="0"/>
68736
- <line num="82" type="stmt" count="0"/>
68737
- <line num="84" type="stmt" count="0"/>
68738
- <line num="91" type="stmt" count="0"/>
68739
- <line num="93" type="stmt" count="0"/>
68740
- <line num="95" type="stmt" count="0"/>
68741
- <line num="96" type="stmt" count="0"/>
68742
- <line num="97" type="stmt" count="0"/>
68743
- <line num="98" type="stmt" count="0"/>
68744
- <line num="99" type="stmt" count="0"/>
68745
- <line num="100" type="stmt" count="0"/>
68746
- <metrics loc="101" ncloc="31" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="33" coveredstatements="0" elements="36" coveredelements="0"/>
68747
- </file>
68748
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-archive.php">
68749
- <class name="Test_Boldgrid_Backup_Admin_Archive" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
68750
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="4" elements="5" coveredelements="5"/>
68751
- </class>
68752
- <line num="26" type="method" name="test_init_by_key" visibility="public" complexity="1" crap="1" count="1"/>
68753
- <line num="27" type="stmt" count="1"/>
68754
- <line num="41" type="stmt" count="1"/>
68755
- <line num="42" type="stmt" count="1"/>
68756
- <line num="43" type="stmt" count="1"/>
68757
- <metrics loc="44" ncloc="9" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="4" elements="5" coveredelements="5"/>
68758
- </file>
68759
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-auto-rollback.php">
68760
- <class name="Test_Boldgrid_Backup_Auto_Rollback" namespace="global" fullPackage="Test.Boldgrid.Backup.Auto">
68761
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="10" elements="11" coveredelements="11"/>
68762
- </class>
68763
- <line num="26" type="method" name="test_get_time_data" visibility="public" complexity="1" crap="1" count="1"/>
68764
- <line num="27" type="stmt" count="1"/>
68765
- <line num="29" type="stmt" count="1"/>
68766
- <line num="31" type="stmt" count="1"/>
68767
- <line num="32" type="stmt" count="1"/>
68768
- <line num="33" type="stmt" count="1"/>
68769
- <line num="34" type="stmt" count="1"/>
68770
- <line num="37" type="stmt" count="1"/>
68771
- <line num="38" type="stmt" count="1"/>
68772
- <line num="39" type="stmt" count="1"/>
68773
- <line num="40" type="stmt" count="1"/>
68774
- <metrics loc="41" ncloc="17" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="10" elements="11" coveredelements="11"/>
68775
- </file>
68776
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-compressor.php">
68777
- <class name="Test_Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
68778
- <metrics complexity="10" methods="5" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="58" coveredstatements="58" elements="63" coveredelements="63"/>
68779
- </class>
68780
- <line num="32" type="method" name="setUp" visibility="public" complexity="2" crap="2" count="4"/>
68781
- <line num="33" type="stmt" count="4"/>
68782
- <line num="34" type="stmt" count="1"/>
68783
- <line num="35" type="stmt" count="1"/>
68784
- <line num="37" type="stmt" count="4"/>
68785
- <line num="39" type="stmt" count="4"/>
68786
- <line num="41" type="stmt" count="4"/>
68787
- <line num="43" type="stmt" count="4"/>
68788
- <line num="44" type="stmt" count="4"/>
68789
- <line num="51" type="method" name="test_archive_files" visibility="public" complexity="4" crap="4" count="1"/>
68790
- <line num="53" type="stmt" count="1"/>
68791
- <line num="54" type="stmt" count="1"/>
68792
- <line num="55" type="stmt" count="1"/>
68793
- <line num="56" type="stmt" count="1"/>
68794
- <line num="59" type="stmt" count="1"/>
68795
- <line num="60" type="stmt" count="1"/>
68796
- <line num="62" type="stmt" count="1"/>
68797
- <line num="65" type="stmt" count="1"/>
68798
- <line num="66" type="stmt" count="1"/>
68799
- <line num="69" type="stmt" count="1"/>
68800
- <line num="70" type="stmt" count="1"/>
68801
- <line num="80" type="stmt" count="1"/>
68802
- <line num="81" type="stmt" count="1"/>
68803
- <line num="82" type="stmt" count="1"/>
68804
- <line num="85" type="stmt" count="1"/>
68805
- <line num="88" type="stmt" count="1"/>
68806
- <line num="91" type="stmt" count="1"/>
68807
- <line num="94" type="stmt" count="1"/>
68808
- <line num="95" type="stmt" count="1"/>
68809
- <line num="107" type="stmt" count="1"/>
68810
- <line num="108" type="stmt" count="1"/>
68811
- <line num="109" type="stmt" count="1"/>
68812
- <line num="112" type="stmt" count="1"/>
68813
- <line num="113" type="stmt" count="1"/>
68814
- <line num="114" type="stmt" count="1"/>
68815
- <line num="121" type="stmt" count="1"/>
68816
- <line num="122" type="stmt" count="1"/>
68817
- <line num="123" type="stmt" count="1"/>
68818
- <line num="125" type="stmt" count="1"/>
68819
- <line num="127" type="stmt" count="1"/>
68820
- <line num="128" type="stmt" count="1"/>
68821
- <line num="129" type="stmt" count="1"/>
68822
- <line num="130" type="stmt" count="1"/>
68823
- <line num="137" type="method" name="test_is_available" visibility="public" complexity="1" crap="1" count="1"/>
68824
- <line num="138" type="stmt" count="1"/>
68825
- <line num="140" type="stmt" count="1"/>
68826
- <line num="142" type="stmt" count="1"/>
68827
- <line num="143" type="stmt" count="1"/>
68828
- <line num="150" type="method" name="test_is_default" visibility="public" complexity="2" crap="2" count="1"/>
68829
- <line num="152" type="stmt" count="1"/>
68830
- <line num="155" type="stmt" count="1"/>
68831
- <line num="156" type="stmt" count="1"/>
68832
- <line num="163" type="method" name="test_is_saved_compressor" visibility="public" complexity="1" crap="1" count="1"/>
68833
- <line num="165" type="stmt" count="1"/>
68834
- <line num="166" type="stmt" count="1"/>
68835
- <line num="167" type="stmt" count="1"/>
68836
- <line num="168" type="stmt" count="1"/>
68837
- <line num="171" type="stmt" count="1"/>
68838
- <line num="172" type="stmt" count="1"/>
68839
- <line num="173" type="stmt" count="1"/>
68840
- <line num="174" type="stmt" count="1"/>
68841
- <line num="175" type="stmt" count="1"/>
68842
- <line num="176" type="stmt" count="1"/>
68843
- <metrics loc="177" ncloc="70" classes="1" methods="5" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="58" coveredstatements="58" elements="63" coveredelements="63"/>
68844
- </file>
68845
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-core.php">
68846
- <class name="Test_Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
68847
- <metrics complexity="23" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="118" coveredstatements="115" elements="127" coveredelements="123"/>
68848
- </class>
68849
- <line num="41" type="method" name="assertDirNotEmpty" visibility="public" complexity="5" crap="5" count="1"/>
68850
- <line num="42" type="stmt" count="1"/>
68851
- <line num="43" type="stmt" count="1"/>
68852
- <line num="44" type="stmt" count="1"/>
68853
- <line num="45" type="stmt" count="1"/>
68854
- <line num="47" type="stmt" count="1"/>
68855
- <line num="48" type="stmt" count="1"/>
68856
- <line num="49" type="stmt" count="1"/>
68857
- <line num="50" type="stmt" count="1"/>
68858
- <line num="51" type="stmt" count="1"/>
68859
- <line num="52" type="stmt" count="1"/>
68860
- <line num="54" type="stmt" count="1"/>
68861
- <line num="66" type="stmt" count="1"/>
68862
- <line num="67" type="stmt" count="1"/>
68863
- <line num="110" type="method" name="dropTable" visibility="public" complexity="1" crap="1" count="2"/>
68864
- <line num="111" type="stmt" count="2"/>
68865
- <line num="113" type="stmt" count="2"/>
68866
- <line num="114" type="stmt" count="2"/>
68867
- <line num="124" type="method" name="createWpconfig" visibility="public" complexity="1" crap="1" count="1"/>
68868
- <line num="126" type="stmt" count="1"/>
68869
- <line num="127" type="stmt" count="1"/>
68870
- <line num="128" type="stmt" count="1"/>
68871
- <line num="129" type="stmt" count="1"/>
68872
- <line num="130" type="stmt" count="1"/>
68873
- <line num="132" type="stmt" count="1"/>
68874
- <line num="134" type="stmt" count="1"/>
68875
- <line num="135" type="stmt" count="1"/>
68876
- <line num="148" type="method" name="deleteBasic" visibility="public" complexity="7" crap="7" count="2"/>
68877
- <line num="149" type="stmt" count="2"/>
68878
- <line num="152" type="stmt" count="2"/>
68879
- <line num="153" type="stmt" count="2"/>
68880
- <line num="154" type="stmt" count="2"/>
68881
- <line num="155" type="stmt" count="2"/>
68882
- <line num="158" type="stmt" count="2"/>
68883
- <line num="159" type="stmt" count="2"/>
68884
- <line num="160" type="stmt" count="2"/>
68885
- <line num="163" type="stmt" count="2"/>
68886
- <line num="164" type="stmt" count="2"/>
68887
- <line num="165" type="stmt" count="2"/>
68888
- <line num="166" type="stmt" count="2"/>
68889
- <line num="167" type="stmt" count="2"/>
68890
- <line num="168" type="stmt" count="2"/>
68891
- <line num="170" type="stmt" count="2"/>
68892
- <line num="171" type="stmt" count="2"/>
68893
- <line num="172" type="stmt" count="2"/>
68894
- <line num="174" type="stmt" count="2"/>
68895
- <line num="176" type="stmt" count="2"/>
68896
- <line num="177" type="stmt" count="2"/>
68897
- <line num="178" type="stmt" count="2"/>
68898
- <line num="181" type="stmt" count="2"/>
68899
- <line num="182" type="stmt" count="2"/>
68900
- <line num="183" type="stmt" count="2"/>
68901
- <line num="184" type="stmt" count="2"/>
68902
- <line num="186" type="stmt" count="2"/>
68903
- <line num="187" type="stmt" count="2"/>
68904
- <line num="188" type="stmt" count="2"/>
68905
- <line num="189" type="stmt" count="2"/>
68906
- <line num="190" type="stmt" count="2"/>
68907
- <line num="192" type="stmt" count="2"/>
68908
- <line num="193" type="stmt" count="2"/>
68909
- <line num="194" type="stmt" count="2"/>
68910
- <line num="195" type="stmt" count="2"/>
68911
- <line num="198" type="stmt" count="2"/>
68912
- <line num="199" type="stmt" count="2"/>
68913
- <line num="201" type="stmt" count="2"/>
68914
- <line num="203" type="stmt" count="2"/>
68915
- <line num="212" type="method" name="getTables" visibility="public" complexity="2" crap="2" count="2"/>
68916
- <line num="213" type="stmt" count="2"/>
68917
- <line num="215" type="stmt" count="2"/>
68918
- <line num="217" type="stmt" count="2"/>
68919
- <line num="219" type="stmt" count="2"/>
68920
- <line num="221" type="stmt" count="2"/>
68921
- <line num="222" type="stmt" count="2"/>
68922
- <line num="224" type="stmt" count="2"/>
68923
- <line num="225" type="stmt" count="2"/>
68924
- <line num="227" type="stmt" count="2"/>
68925
- <line num="235" type="method" name="setUp" visibility="public" complexity="2" crap="2.15" count="3"/>
68926
- <line num="236" type="stmt" count="3"/>
68927
- <line num="238" type="stmt" count="3"/>
68928
- <line num="239" type="stmt" count="0"/>
68929
- <line num="240" type="stmt" count="0"/>
68930
- <line num="241" type="stmt" count="0"/>
68931
- <line num="243" type="stmt" count="3"/>
68932
- <line num="245" type="stmt" count="3"/>
68933
- <line num="247" type="stmt" count="3"/>
68934
- <line num="248" type="stmt" count="3"/>
68935
- <line num="255" type="method" name="test_archive_files" visibility="public" complexity="1" crap="1" count="1"/>
68936
- <line num="256" type="stmt" count="1"/>
68937
- <line num="259" type="stmt" count="1"/>
68938
- <line num="260" type="stmt" count="1"/>
68939
- <line num="273" type="stmt" count="1"/>
68940
- <line num="274" type="stmt" count="1"/>
68941
- <line num="275" type="stmt" count="1"/>
68942
- <line num="276" type="stmt" count="1"/>
68943
- <line num="278" type="stmt" count="1"/>
68944
- <line num="281" type="stmt" count="1"/>
68945
- <line num="284" type="stmt" count="1"/>
68946
- <line num="287" type="stmt" count="1"/>
68947
- <line num="288" type="stmt" count="1"/>
68948
- <line num="289" type="stmt" count="1"/>
68949
- <line num="290" type="stmt" count="1"/>
68950
- <line num="293" type="stmt" count="1"/>
68951
- <line num="294" type="stmt" count="1"/>
68952
- <line num="295" type="stmt" count="1"/>
68953
- <line num="302" type="method" name="test_restore_archive_file" visibility="public" complexity="2" crap="2" count="1"/>
68954
- <line num="310" type="stmt" count="1"/>
68955
- <line num="311" type="stmt" count="1"/>
68956
- <line num="312" type="stmt" count="1"/>
68957
- <line num="314" type="stmt" count="1"/>
68958
- <line num="317" type="stmt" count="1"/>
68959
- <line num="318" type="stmt" count="1"/>
68960
- <line num="319" type="stmt" count="1"/>
68961
- <line num="321" type="stmt" count="1"/>
68962
- <line num="323" type="stmt" count="1"/>
68963
- <line num="324" type="stmt" count="1"/>
68964
- <line num="334" type="method" name="test_restore_cli" visibility="public" complexity="2" crap="2" count="1"/>
68965
- <line num="335" type="stmt" count="1"/>
68966
- <line num="337" type="stmt" count="1"/>
68967
- <line num="338" type="stmt" count="1"/>
68968
- <line num="339" type="stmt" count="1"/>
68969
- <line num="341" type="stmt" count="1"/>
68970
- <line num="344" type="stmt" count="1"/>
68971
- <line num="345" type="stmt" count="1"/>
68972
- <line num="346" type="stmt" count="1"/>
68973
- <line num="349" type="stmt" count="1"/>
68974
- <line num="351" type="stmt" count="1"/>
68975
- <line num="352" type="stmt" count="1"/>
68976
- <metrics loc="353" ncloc="176" classes="1" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="118" coveredstatements="115" elements="127" coveredelements="123"/>
68977
- </file>
68978
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-cron.php">
68979
- <class name="Test_Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
68980
- <metrics complexity="6" methods="6" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="136" coveredstatements="136" elements="142" coveredelements="142"/>
68981
- </class>
68982
- <line num="78" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="5"/>
68983
- <line num="79" type="stmt" count="5"/>
68984
- <line num="80" type="stmt" count="5"/>
68985
- <line num="82" type="stmt" count="5"/>
68986
- <line num="83" type="stmt" count="5"/>
68987
- <line num="85" type="stmt" count="5"/>
68988
- <line num="86" type="stmt" count="5"/>
68989
- <line num="112" type="stmt" count="5"/>
68990
- <line num="114" type="stmt" count="5"/>
68991
- <line num="115" type="stmt" count="5"/>
68992
- <line num="116" type="stmt" count="5"/>
68993
- <line num="117" type="stmt" count="5"/>
68994
- <line num="119" type="stmt" count="5"/>
68995
- <line num="120" type="stmt" count="5"/>
68996
- <line num="122" type="stmt" count="5"/>
68997
- <line num="123" type="stmt" count="5"/>
68998
- <line num="125" type="stmt" count="5"/>
68999
- <line num="126" type="stmt" count="5"/>
69000
- <line num="129" type="stmt" count="5"/>
69001
- <line num="130" type="stmt" count="5"/>
69002
- <line num="131" type="stmt" count="5"/>
69003
- <line num="132" type="stmt" count="5"/>
69004
- <line num="133" type="stmt" count="5"/>
69005
- <line num="134" type="stmt" count="5"/>
69006
- <line num="141" type="method" name="test_filter_crontab_backup" visibility="public" complexity="1" crap="1" count="1"/>
69007
- <line num="142" type="stmt" count="1"/>
69008
- <line num="145" type="stmt" count="1"/>
69009
- <line num="146" type="stmt" count="1"/>
69010
- <line num="149" type="stmt" count="1"/>
69011
- <line num="152" type="stmt" count="1"/>
69012
- <line num="153" type="stmt" count="1"/>
69013
- <line num="154" type="stmt" count="1"/>
69014
- <line num="155" type="stmt" count="1"/>
69015
- <line num="156" type="stmt" count="1"/>
69016
- <line num="157" type="stmt" count="1"/>
69017
- <line num="158" type="stmt" count="1"/>
69018
- <line num="159" type="stmt" count="1"/>
69019
- <line num="160" type="stmt" count="1"/>
69020
- <line num="162" type="stmt" count="1"/>
69021
- <line num="163" type="stmt" count="1"/>
69022
- <line num="164" type="stmt" count="1"/>
69023
- <line num="165" type="stmt" count="1"/>
69024
- <line num="166" type="stmt" count="1"/>
69025
- <line num="167" type="stmt" count="1"/>
69026
- <line num="170" type="stmt" count="1"/>
69027
- <line num="171" type="stmt" count="1"/>
69028
- <line num="174" type="stmt" count="1"/>
69029
- <line num="177" type="stmt" count="1"/>
69030
- <line num="178" type="stmt" count="1"/>
69031
- <line num="179" type="stmt" count="1"/>
69032
- <line num="180" type="stmt" count="1"/>
69033
- <line num="181" type="stmt" count="1"/>
69034
- <line num="182" type="stmt" count="1"/>
69035
- <line num="183" type="stmt" count="1"/>
69036
- <line num="184" type="stmt" count="1"/>
69037
- <line num="185" type="stmt" count="1"/>
69038
- <line num="187" type="stmt" count="1"/>
69039
- <line num="188" type="stmt" count="1"/>
69040
- <line num="189" type="stmt" count="1"/>
69041
- <line num="190" type="stmt" count="1"/>
69042
- <line num="191" type="stmt" count="1"/>
69043
- <line num="192" type="stmt" count="1"/>
69044
- <line num="193" type="stmt" count="1"/>
69045
- <line num="200" type="method" name="test_filter_crontab_restore" visibility="public" complexity="1" crap="1" count="1"/>
69046
- <line num="201" type="stmt" count="1"/>
69047
- <line num="204" type="stmt" count="1"/>
69048
- <line num="205" type="stmt" count="1"/>
69049
- <line num="208" type="stmt" count="1"/>
69050
- <line num="211" type="stmt" count="1"/>
69051
- <line num="212" type="stmt" count="1"/>
69052
- <line num="213" type="stmt" count="1"/>
69053
- <line num="214" type="stmt" count="1"/>
69054
- <line num="215" type="stmt" count="1"/>
69055
- <line num="216" type="stmt" count="1"/>
69056
- <line num="217" type="stmt" count="1"/>
69057
- <line num="218" type="stmt" count="1"/>
69058
- <line num="220" type="stmt" count="1"/>
69059
- <line num="221" type="stmt" count="1"/>
69060
- <line num="222" type="stmt" count="1"/>
69061
- <line num="223" type="stmt" count="1"/>
69062
- <line num="224" type="stmt" count="1"/>
69063
- <line num="225" type="stmt" count="1"/>
69064
- <line num="226" type="stmt" count="1"/>
69065
- <line num="233" type="method" name="test_filter_crontab_run_jobs" visibility="public" complexity="1" crap="1" count="1"/>
69066
- <line num="234" type="stmt" count="1"/>
69067
- <line num="237" type="stmt" count="1"/>
69068
- <line num="238" type="stmt" count="1"/>
69069
- <line num="241" type="stmt" count="1"/>
69070
- <line num="244" type="stmt" count="1"/>
69071
- <line num="245" type="stmt" count="1"/>
69072
- <line num="246" type="stmt" count="1"/>
69073
- <line num="247" type="stmt" count="1"/>
69074
- <line num="248" type="stmt" count="1"/>
69075
- <line num="249" type="stmt" count="1"/>
69076
- <line num="250" type="stmt" count="1"/>
69077
- <line num="251" type="stmt" count="1"/>
69078
- <line num="253" type="stmt" count="1"/>
69079
- <line num="254" type="stmt" count="1"/>
69080
- <line num="255" type="stmt" count="1"/>
69081
- <line num="256" type="stmt" count="1"/>
69082
- <line num="257" type="stmt" count="1"/>
69083
- <line num="258" type="stmt" count="1"/>
69084
- <line num="259" type="stmt" count="1"/>
69085
- <line num="266" type="method" name="test_filter_crontab_site_check" visibility="public" complexity="1" crap="1" count="1"/>
69086
- <line num="267" type="stmt" count="1"/>
69087
- <line num="270" type="stmt" count="1"/>
69088
- <line num="271" type="stmt" count="1"/>
69089
- <line num="274" type="stmt" count="1"/>
69090
- <line num="277" type="stmt" count="1"/>
69091
- <line num="278" type="stmt" count="1"/>
69092
- <line num="279" type="stmt" count="1"/>
69093
- <line num="280" type="stmt" count="1"/>
69094
- <line num="281" type="stmt" count="1"/>
69095
- <line num="282" type="stmt" count="1"/>
69096
- <line num="283" type="stmt" count="1"/>
69097
- <line num="284" type="stmt" count="1"/>
69098
- <line num="285" type="stmt" count="1"/>
69099
- <line num="287" type="stmt" count="1"/>
69100
- <line num="288" type="stmt" count="1"/>
69101
- <line num="289" type="stmt" count="1"/>
69102
- <line num="290" type="stmt" count="1"/>
69103
- <line num="291" type="stmt" count="1"/>
69104
- <line num="292" type="stmt" count="1"/>
69105
- <line num="293" type="stmt" count="1"/>
69106
- <line num="300" type="method" name="test_filter_crontab_all" visibility="public" complexity="1" crap="1" count="1"/>
69107
- <line num="301" type="stmt" count="1"/>
69108
- <line num="304" type="stmt" count="1"/>
69109
- <line num="305" type="stmt" count="1"/>
69110
- <line num="308" type="stmt" count="1"/>
69111
- <line num="309" type="stmt" count="1"/>
69112
- <line num="311" type="stmt" count="1"/>
69113
- <line num="314" type="stmt" count="1"/>
69114
- <line num="315" type="stmt" count="1"/>
69115
- <line num="316" type="stmt" count="1"/>
69116
- <line num="317" type="stmt" count="1"/>
69117
- <line num="319" type="stmt" count="1"/>
69118
- <line num="320" type="stmt" count="1"/>
69119
- <line num="321" type="stmt" count="1"/>
69120
- <line num="322" type="stmt" count="1"/>
69121
- <line num="323" type="stmt" count="1"/>
69122
- <line num="324" type="stmt" count="1"/>
69123
- <line num="325" type="stmt" count="1"/>
69124
- <metrics loc="326" ncloc="189" classes="1" methods="6" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="136" coveredstatements="136" elements="142" coveredelements="142"/>
69125
- </file>
69126
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-crypt.php">
69127
- <class name="Test_Boldgrid_Backup_Admin_Crypt" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
69128
- <metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="28" elements="39" coveredelements="29"/>
69129
- </class>
69130
- <line num="26" type="method" name="setUp" visibility="public" complexity="2" crap="4.19" count="1"/>
69131
- <line num="33" type="stmt" count="1"/>
69132
- <line num="34" type="stmt" count="0"/>
69133
- <line num="35" type="stmt" count="0"/>
69134
- <line num="36" type="stmt" count="0"/>
69135
- <line num="37" type="stmt" count="0"/>
69136
- <line num="38" type="stmt" count="0"/>
69137
- <line num="39" type="stmt" count="0"/>
69138
- <line num="40" type="stmt" count="0"/>
69139
- <line num="41" type="stmt" count="0"/>
69140
- <line num="42" type="stmt" count="0"/>
69141
- <line num="43" type="stmt" count="1"/>
69142
- <line num="50" type="method" name="test_crypt" visibility="public" complexity="3" crap="3" count="1"/>
69143
- <line num="52" type="stmt" count="1"/>
69144
- <line num="53" type="stmt" count="1"/>
69145
- <line num="54" type="stmt" count="1"/>
69146
- <line num="55" type="stmt" count="1"/>
69147
- <line num="56" type="stmt" count="1"/>
69148
- <line num="57" type="stmt" count="1"/>
69149
- <line num="58" type="stmt" count="1"/>
69150
- <line num="60" type="stmt" count="1"/>
69151
- <line num="62" type="stmt" count="1"/>
69152
- <line num="63" type="stmt" count="1"/>
69153
- <line num="64" type="stmt" count="1"/>
69154
- <line num="67" type="stmt" count="1"/>
69155
- <line num="70" type="stmt" count="1"/>
69156
- <line num="71" type="stmt" count="1"/>
69157
- <line num="74" type="stmt" count="1"/>
69158
- <line num="75" type="stmt" count="1"/>
69159
- <line num="76" type="stmt" count="1"/>
69160
- <line num="77" type="stmt" count="1"/>
69161
- <line num="78" type="stmt" count="1"/>
69162
- <line num="80" type="stmt" count="1"/>
69163
- <line num="81" type="stmt" count="1"/>
69164
- <line num="82" type="stmt" count="1"/>
69165
- <line num="84" type="stmt" count="1"/>
69166
- <line num="85" type="stmt" count="1"/>
69167
- <line num="86" type="stmt" count="1"/>
69168
- <line num="87" type="stmt" count="1"/>
69169
- <metrics loc="88" ncloc="47" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="28" elements="39" coveredelements="29"/>
69170
- </file>
69171
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-dump.php">
69172
- <class name="Test_Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
69173
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="18" coveredstatements="18" elements="19" coveredelements="19"/>
69174
- </class>
69175
- <line num="26" type="method" name="test_get_connection_string" visibility="public" complexity="1" crap="1" count="1"/>
69176
- <line num="27" type="stmt" count="1"/>
69177
- <line num="30" type="stmt" count="1"/>
69178
- <line num="31" type="stmt" count="1"/>
69179
- <line num="32" type="stmt" count="1"/>
69180
- <line num="33" type="stmt" count="1"/>
69181
- <line num="36" type="stmt" count="1"/>
69182
- <line num="37" type="stmt" count="1"/>
69183
- <line num="38" type="stmt" count="1"/>
69184
- <line num="39" type="stmt" count="1"/>
69185
- <line num="42" type="stmt" count="1"/>
69186
- <line num="43" type="stmt" count="1"/>
69187
- <line num="44" type="stmt" count="1"/>
69188
- <line num="45" type="stmt" count="1"/>
69189
- <line num="48" type="stmt" count="1"/>
69190
- <line num="49" type="stmt" count="1"/>
69191
- <line num="50" type="stmt" count="1"/>
69192
- <line num="51" type="stmt" count="1"/>
69193
- <line num="52" type="stmt" count="1"/>
69194
- <metrics loc="53" ncloc="23" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="18" coveredstatements="18" elements="19" coveredelements="19"/>
69195
- </file>
69196
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-get.php">
69197
- <class name="Test_Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
69198
- <metrics complexity="2" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="35" elements="37" coveredelements="37"/>
69199
- </class>
69200
- <line num="26" type="method" name="test_filter_by_type" visibility="public" complexity="1" crap="1" count="1"/>
69201
- <line num="27" type="stmt" count="1"/>
69202
- <line num="29" type="stmt" count="1"/>
69203
- <line num="31" type="stmt" count="1"/>
69204
- <line num="38" type="stmt" count="1"/>
69205
- <line num="39" type="stmt" count="1"/>
69206
- <line num="42" type="stmt" count="1"/>
69207
- <line num="49" type="stmt" count="1"/>
69208
- <line num="50" type="stmt" count="1"/>
69209
- <line num="53" type="stmt" count="1"/>
69210
- <line num="56" type="stmt" count="1"/>
69211
- <line num="59" type="stmt" count="1"/>
69212
- <line num="66" type="stmt" count="1"/>
69213
- <line num="67" type="stmt" count="1"/>
69214
- <line num="68" type="stmt" count="1"/>
69215
- <line num="69" type="stmt" count="1"/>
69216
- <line num="70" type="stmt" count="1"/>
69217
- <line num="79" type="method" name="test_get_by_type" visibility="public" complexity="1" crap="1" count="1"/>
69218
- <line num="80" type="stmt" count="1"/>
69219
- <line num="82" type="stmt" count="1"/>
69220
- <line num="84" type="stmt" count="1"/>
69221
- <line num="91" type="stmt" count="1"/>
69222
- <line num="92" type="stmt" count="1"/>
69223
- <line num="93" type="stmt" count="1"/>
69224
- <line num="100" type="stmt" count="1"/>
69225
- <line num="101" type="stmt" count="1"/>
69226
- <line num="104" type="stmt" count="1"/>
69227
- <line num="105" type="stmt" count="1"/>
69228
- <line num="106" type="stmt" count="1"/>
69229
- <line num="107" type="stmt" count="1"/>
69230
- <line num="113" type="stmt" count="1"/>
69231
- <line num="114" type="stmt" count="1"/>
69232
- <line num="117" type="stmt" count="1"/>
69233
- <line num="118" type="stmt" count="1"/>
69234
- <line num="119" type="stmt" count="1"/>
69235
- <line num="120" type="stmt" count="1"/>
69236
- <line num="121" type="stmt" count="1"/>
69237
- <metrics loc="122" ncloc="44" classes="1" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="35" elements="37" coveredelements="37"/>
69238
- </file>
69239
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-notices.php">
69240
- <class name="Test_Boldgrid_Backup_Admin_Notice_Counts" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Notice">
69241
- <metrics complexity="12" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="58" coveredstatements="58" elements="67" coveredelements="67"/>
69242
- </class>
69243
- <line num="24" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="4"/>
69244
- <line num="25" type="stmt" count="4"/>
69245
- <line num="26" type="stmt" count="4"/>
69246
- <line num="27" type="method" name="test_notice_not_displayed_first_install" visibility="public" complexity="1" crap="1" count="1"/>
69247
- <line num="28" type="stmt" count="1"/>
69248
- <line num="29" type="stmt" count="1"/>
69249
- <line num="31" type="method" name="test_one_notice_displayed" visibility="public" complexity="1" crap="1" count="1"/>
69250
- <line num="32" type="stmt" count="1"/>
69251
- <line num="33" type="stmt" count="1"/>
69252
- <line num="35" type="method" name="test_new_feature_added" visibility="public" complexity="1" crap="1" count="1"/>
69253
- <line num="37" type="stmt" count="1"/>
69254
- <line num="38" type="stmt" count="1"/>
69255
- <line num="39" type="stmt" count="1"/>
69256
- <line num="40" type="stmt" count="1"/>
69257
- <line num="41" type="stmt" count="1"/>
69258
- <line num="42" type="stmt" count="1"/>
69259
- <line num="43" type="stmt" count="1"/>
69260
- <line num="45" type="method" name="test_mark_feature_read" visibility="public" complexity="1" crap="1" count="1"/>
69261
- <line num="46" type="stmt" count="1"/>
69262
- <line num="47" type="stmt" count="1"/>
69263
- <line num="48" type="stmt" count="1"/>
69264
- <line num="49" type="stmt" count="1"/>
69265
- <line num="51" type="method" name="notice_counts_in_nav" visibility="public" complexity="4" crap="4" count="4"/>
69266
- <line num="52" type="stmt" count="4"/>
69267
- <line num="53" type="stmt" count="4"/>
69268
- <line num="54" type="stmt" count="4"/>
69269
- <line num="55" type="stmt" count="1"/>
69270
- <line num="56" type="stmt" count="1"/>
69271
- <line num="57" type="stmt" count="1"/>
69272
- <line num="58" type="stmt" count="1"/>
69273
- <line num="59" type="stmt" count="4"/>
69274
- <line num="61" type="stmt" count="4"/>
69275
- <line num="63" type="stmt" count="4"/>
69276
- <line num="65" type="stmt" count="4"/>
69277
- <line num="66" type="stmt" count="4"/>
69278
- <line num="67" type="stmt" count="4"/>
69279
- <line num="68" type="stmt" count="4"/>
69280
- <line num="69" type="stmt" count="4"/>
69281
- <line num="70" type="stmt" count="4"/>
69282
- <line num="71" type="stmt" count="4"/>
69283
- <line num="74" type="method" name="get_plugin_data" visibility="public" complexity="1" crap="1" count="4"/>
69284
- <line num="77" type="stmt" count="4"/>
69285
- <line num="78" type="stmt" count="4"/>
69286
- <line num="79" type="stmt" count="4"/>
69287
- <line num="80" type="stmt" count="4"/>
69288
- <line num="81" type="stmt" count="4"/>
69289
- <line num="82" type="stmt" count="4"/>
69290
- <line num="83" type="stmt" count="4"/>
69291
- <line num="84" type="stmt" count="4"/>
69292
- <line num="85" type="stmt" count="4"/>
69293
- <line num="88" type="method" name="get_plugin_config" visibility="public" complexity="1" crap="1" count="4"/>
69294
- <line num="91" type="stmt" count="4"/>
69295
- <line num="92" type="stmt" count="4"/>
69296
- <line num="95" type="stmt" count="4"/>
69297
- <line num="96" type="stmt" count="4"/>
69298
- <line num="97" type="stmt" count="4"/>
69299
- <line num="98" type="stmt" count="4"/>
69300
- <line num="99" type="stmt" count="4"/>
69301
- <line num="100" type="stmt" count="4"/>
69302
- <line num="103" type="method" name="set_versions" visibility="public" complexity="1" crap="1" count="4"/>
69303
- <line num="107" type="stmt" count="4"/>
69304
- <line num="108" type="stmt" count="4"/>
69305
- <line num="109" type="stmt" count="4"/>
69306
- <line num="110" type="stmt" count="4"/>
69307
- <line num="111" type="stmt" count="4"/>
69308
- <line num="112" type="stmt" count="4"/>
69309
- <line num="113" type="stmt" count="4"/>
69310
- <metrics loc="114" ncloc="97" classes="1" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="58" coveredstatements="58" elements="67" coveredelements="67"/>
69311
- </file>
69312
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-premium-features-page.php">
69313
- <class name="Test_Boldgrid_Backup_Admin_Premium_Features_Page" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Premium.Features">
69314
- <metrics complexity="10" methods="7" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="68" coveredstatements="53" elements="75" coveredelements="58"/>
69315
- </class>
69316
- <line num="28" type="method" name="setUp" visibility="public" complexity="3" crap="3" count="3"/>
69317
- <line num="31" type="stmt" count="3"/>
69318
- <line num="32" type="stmt" count="3"/>
69319
- <line num="33" type="stmt" count="3"/>
69320
- <line num="35" type="stmt" count="3"/>
69321
- <line num="36" type="stmt" count="3"/>
69322
- <line num="37" type="stmt" count="3"/>
69323
- <line num="38" type="stmt" count="3"/>
69324
- <line num="39" type="stmt" count="3"/>
69325
- <line num="40" type="stmt" count="3"/>
69326
- <line num="41" type="stmt" count="3"/>
69327
- <line num="42" type="stmt" count="3"/>
69328
- <line num="43" type="stmt" count="3"/>
69329
- <line num="44" type="stmt" count="3"/>
69330
- <line num="47" type="stmt" count="3"/>
69331
- <line num="48" type="stmt" count="3"/>
69332
- <line num="49" type="stmt" count="3"/>
69333
- <line num="50" type="stmt" count="3"/>
69334
- <line num="51" type="stmt" count="3"/>
69335
- <line num="52" type="stmt" count="3"/>
69336
- <line num="54" type="stmt" count="3"/>
69337
- <line num="55" type="stmt" count="3"/>
69338
- <line num="56" type="stmt" count="3"/>
69339
- <line num="58" type="method" name="test_get_cards" visibility="public" complexity="1" crap="1" count="1"/>
69340
- <line num="59" type="stmt" count="1"/>
69341
- <line num="60" type="stmt" count="1"/>
69342
- <line num="61" type="stmt" count="1"/>
69343
- <line num="62" type="stmt" count="1"/>
69344
- <line num="64" type="method" name="test_admin_enqueue_scripts" visibility="public" complexity="2" crap="2" count="1"/>
69345
- <line num="65" type="stmt" count="1"/>
69346
- <line num="66" type="stmt" count="1"/>
69347
- <line num="67" type="stmt" count="1"/>
69348
- <line num="68" type="stmt" count="1"/>
69349
- <line num="69" type="stmt" count="1"/>
69350
- <line num="70" type="stmt" count="1"/>
69351
- <line num="71" type="stmt" count="1"/>
69352
- <line num="72" type="stmt" count="1"/>
69353
- <line num="73" type="stmt" count="1"/>
69354
- <line num="74" type="stmt" count="1"/>
69355
- <line num="75" type="stmt" count="1"/>
69356
- <line num="77" type="stmt" count="1"/>
69357
- <line num="79" type="method" name="test_page" visibility="public" complexity="1" crap="1" count="1"/>
69358
- <line num="80" type="stmt" count="1"/>
69359
- <line num="82" type="stmt" count="1"/>
69360
- <line num="83" type="stmt" count="1"/>
69361
- <line num="84" type="stmt" count="1"/>
69362
- <line num="85" type="stmt" count="1"/>
69363
- <line num="86" type="stmt" count="1"/>
69364
- <line num="88" type="method" name="get_plugin_data" visibility="public" complexity="1" crap="1" count="1"/>
69365
- <line num="91" type="stmt" count="1"/>
69366
- <line num="92" type="stmt" count="1"/>
69367
- <line num="93" type="stmt" count="1"/>
69368
- <line num="94" type="stmt" count="1"/>
69369
- <line num="95" type="stmt" count="1"/>
69370
- <line num="96" type="stmt" count="1"/>
69371
- <line num="97" type="stmt" count="1"/>
69372
- <line num="98" type="stmt" count="1"/>
69373
- <line num="99" type="stmt" count="1"/>
69374
- <line num="102" type="method" name="get_plugin_config" visibility="public" complexity="1" crap="2" count="0"/>
69375
- <line num="105" type="stmt" count="0"/>
69376
- <line num="106" type="stmt" count="0"/>
69377
- <line num="109" type="stmt" count="0"/>
69378
- <line num="110" type="stmt" count="0"/>
69379
- <line num="111" type="stmt" count="0"/>
69380
- <line num="112" type="stmt" count="0"/>
69381
- <line num="113" type="stmt" count="0"/>
69382
- <line num="114" type="stmt" count="0"/>
69383
- <line num="117" type="method" name="set_versions" visibility="public" complexity="1" crap="2" count="0"/>
69384
- <line num="121" type="stmt" count="0"/>
69385
- <line num="122" type="stmt" count="0"/>
69386
- <line num="123" type="stmt" count="0"/>
69387
- <line num="124" type="stmt" count="0"/>
69388
- <line num="125" type="stmt" count="0"/>
69389
- <line num="126" type="stmt" count="0"/>
69390
- <line num="127" type="stmt" count="0"/>
69391
- <metrics loc="128" ncloc="111" classes="1" methods="7" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="68" coveredstatements="53" elements="75" coveredelements="58"/>
69392
- </file>
69393
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-test.php">
69394
- <class name="Test_Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
69395
- <metrics complexity="2" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="10" coveredelements="10"/>
69396
- </class>
69397
- <line num="26" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="1"/>
69398
- <line num="27" type="stmt" count="1"/>
69399
- <line num="28" type="stmt" count="1"/>
69400
- <line num="35" type="method" name="test_get_cli_support" visibility="public" complexity="1" crap="1" count="1"/>
69401
- <line num="36" type="stmt" count="1"/>
69402
- <line num="39" type="stmt" count="1"/>
69403
- <line num="40" type="stmt" count="1"/>
69404
- <line num="41" type="stmt" count="1"/>
69405
- <line num="44" type="stmt" count="1"/>
69406
- <line num="45" type="stmt" count="1"/>
69407
- <metrics loc="46" ncloc="15" classes="1" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="10" coveredelements="10"/>
69408
- </file>
69409
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-time.php">
69410
- <class name="Test_Boldgrid_Backup_Admin_Time" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
69411
- <metrics complexity="5" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
69412
- </class>
69413
- <line num="26" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="3"/>
69414
- <line num="27" type="stmt" count="3"/>
69415
- <line num="28" type="stmt" count="3"/>
69416
- <line num="35" type="method" name="test_get_server_timezone" visibility="public" complexity="1" crap="1" count="1"/>
69417
- <line num="36" type="stmt" count="1"/>
69418
- <line num="38" type="stmt" count="1"/>
69419
- <line num="39" type="stmt" count="1"/>
69420
- <line num="46" type="method" name="test_get_settings_date" visibility="public" complexity="2" crap="2" count="1"/>
69421
- <line num="50" type="stmt" count="1"/>
69422
- <line num="51" type="stmt" count="1"/>
69423
- <line num="52" type="stmt" count="1"/>
69424
- <line num="53" type="stmt" count="1"/>
69425
- <line num="54" type="stmt" count="1"/>
69426
- <line num="62" type="stmt" count="1"/>
69427
- <line num="63" type="stmt" count="1"/>
69428
- <line num="66" type="stmt" count="1"/>
69429
- <line num="67" type="stmt" count="1"/>
69430
- <line num="68" type="stmt" count="1"/>
69431
- <line num="69" type="stmt" count="1"/>
69432
- <line num="71" type="stmt" count="1"/>
69433
- <line num="72" type="stmt" count="1"/>
69434
- <line num="75" type="stmt" count="1"/>
69435
- <line num="76" type="stmt" count="1"/>
69436
- <line num="79" type="stmt" count="1"/>
69437
- <line num="80" type="stmt" count="1"/>
69438
- <line num="83" type="stmt" count="1"/>
69439
- <line num="84" type="stmt" count="1"/>
69440
- <line num="85" type="stmt" count="1"/>
69441
- <line num="86" type="stmt" count="1"/>
69442
- <line num="89" type="stmt" count="1"/>
69443
- <line num="92" type="stmt" count="1"/>
69444
- <line num="93" type="stmt" count="1"/>
69445
- <line num="94" type="stmt" count="1"/>
69446
- <line num="95" type="stmt" count="1"/>
69447
- <line num="97" type="stmt" count="1"/>
69448
- <line num="98" type="stmt" count="1"/>
69449
- <line num="101" type="stmt" count="1"/>
69450
- <line num="104" type="stmt" count="1"/>
69451
- <line num="106" type="stmt" count="1"/>
69452
- <line num="107" type="stmt" count="1"/>
69453
- <line num="108" type="stmt" count="1"/>
69454
- <line num="110" type="stmt" count="1"/>
69455
- <line num="111" type="stmt" count="1"/>
69456
- <line num="114" type="stmt" count="1"/>
69457
- <line num="115" type="stmt" count="1"/>
69458
- <line num="116" type="stmt" count="1"/>
69459
- <line num="123" type="method" name="test_get_timezone_info" visibility="public" complexity="1" crap="1" count="1"/>
69460
- <line num="124" type="stmt" count="1"/>
69461
- <line num="126" type="stmt" count="1"/>
69462
- <line num="128" type="stmt" count="1"/>
69463
- <line num="129" type="stmt" count="1"/>
69464
- <line num="130" type="stmt" count="1"/>
69465
- <line num="131" type="stmt" count="1"/>
69466
- <line num="133" type="stmt" count="1"/>
69467
- <line num="134" type="stmt" count="1"/>
69468
- <metrics loc="135" ncloc="76" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
69469
- </file>
69470
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/bootstrap.php">
69471
- <line num="132" type="stmt" count="0"/>
69472
- <line num="133" type="stmt" count="0"/>
69473
- <line num="135" type="stmt" count="0"/>
69474
- <line num="137" type="stmt" count="0"/>
69475
- <line num="138" type="stmt" count="0"/>
69476
- <metrics loc="140" ncloc="106" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="5" coveredelements="0"/>
69477
- </file>
69478
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/cli/test-class-info.php">
69479
- <class name="Test_Boldgrid_Backup_Cli_Info" namespace="global" fullPackage="Test.Boldgrid.Backup.Cli">
69480
- <metrics complexity="16" methods="15" coveredmethods="14" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="61" elements="78" coveredelements="75"/>
69481
- </class>
69482
- <line num="45" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="12"/>
69483
- <line num="46" type="stmt" count="12"/>
69484
- <line num="47" type="stmt" count="12"/>
69485
- <line num="48" type="stmt" count="12"/>
69486
- <line num="49" type="stmt" count="12"/>
69487
- <line num="56" type="method" name="change_server_argv" visibility="public" complexity="1" crap="1" count="12"/>
69488
- <line num="58" type="stmt" count="12"/>
69489
- <line num="59" type="stmt" count="12"/>
69490
- <line num="60" type="stmt" count="12"/>
69491
- <line num="61" type="stmt" count="12"/>
69492
- <line num="62" type="stmt" count="12"/>
69493
- <line num="63" type="stmt" count="12"/>
69494
- <line num="64" type="stmt" count="12"/>
69495
- <line num="65" type="stmt" count="12"/>
69496
- <line num="66" type="stmt" count="12"/>
69497
- <line num="68" type="stmt" count="12"/>
69498
- <line num="69" type="stmt" count="12"/>
69499
- <line num="76" type="method" name="reset_server_argv" visibility="public" complexity="1" crap="1" count="1"/>
69500
- <line num="77" type="stmt" count="1"/>
69501
- <line num="78" type="stmt" count="1"/>
69502
- <line num="85" type="method" name="test_choose_method" visibility="public" complexity="1" crap="1" count="1"/>
69503
- <line num="87" type="stmt" count="1"/>
69504
- <line num="89" type="stmt" count="1"/>
69505
- <line num="90" type="stmt" count="1"/>
69506
- <line num="97" type="method" name="test_get_arg_value" visibility="public" complexity="1" crap="1" count="1"/>
69507
- <line num="98" type="stmt" count="1"/>
69508
- <line num="100" type="stmt" count="1"/>
69509
- <line num="101" type="stmt" count="1"/>
69510
- <line num="108" type="method" name="test_get_cli_args" visibility="public" complexity="1" crap="1" count="1"/>
69511
- <line num="109" type="stmt" count="1"/>
69512
- <line num="111" type="stmt" count="1"/>
69513
- <line num="112" type="stmt" count="1"/>
69514
- <line num="115" type="stmt" count="1"/>
69515
- <line num="116" type="stmt" count="1"/>
69516
- <line num="117" type="stmt" count="1"/>
69517
- <line num="118" type="stmt" count="1"/>
69518
- <line num="125" type="method" name="test_get_info" visibility="public" complexity="1" crap="1" count="1"/>
69519
- <line num="126" type="stmt" count="1"/>
69520
- <line num="128" type="stmt" count="1"/>
69521
- <line num="130" type="stmt" count="1"/>
69522
- <line num="131" type="stmt" count="1"/>
69523
- <line num="138" type="method" name="test_get_mode" visibility="public" complexity="1" crap="1" count="1"/>
69524
- <line num="139" type="stmt" count="1"/>
69525
- <line num="140" type="stmt" count="1"/>
69526
- <line num="147" type="method" name="test_has_arg_flag" visibility="public" complexity="1" crap="1" count="1"/>
69527
- <line num="148" type="stmt" count="1"/>
69528
- <line num="150" type="stmt" count="1"/>
69529
- <line num="152" type="stmt" count="1"/>
69530
- <line num="153" type="stmt" count="1"/>
69531
- <line num="160" type="method" name="test_have_execution_functions" visibility="public" complexity="1" crap="1" count="1"/>
69532
- <line num="161" type="stmt" count="1"/>
69533
- <line num="162" type="stmt" count="1"/>
69534
- <line num="169" type="method" name="test_has_errors" visibility="public" complexity="1" crap="1" count="1"/>
69535
- <line num="171" type="stmt" count="1"/>
69536
- <line num="172" type="stmt" count="1"/>
69537
- <line num="179" type="method" name="test_is_cli" visibility="public" complexity="1" crap="1" count="1"/>
69538
- <line num="181" type="stmt" count="1"/>
69539
- <line num="182" type="stmt" count="1"/>
69540
- <line num="189" type="method" name="test_get_results_filepath" visibility="public" complexity="1" crap="1" count="1"/>
69541
- <line num="190" type="stmt" count="1"/>
69542
- <line num="192" type="stmt" count="1"/>
69543
- <line num="193" type="stmt" count="1"/>
69544
- <line num="200" type="method" name="test_get_zip_arg" visibility="public" complexity="1" crap="1" count="1"/>
69545
- <line num="202" type="stmt" count="1"/>
69546
- <line num="203" type="stmt" count="1"/>
69547
- <line num="210" type="method" name="test_read_json_file" visibility="public" complexity="2" crap="2.02" count="1"/>
69548
- <line num="211" type="stmt" count="1"/>
69549
- <line num="213" type="stmt" count="1"/>
69550
- <line num="215" type="stmt" count="1"/>
69551
- <line num="216" type="stmt" count="0"/>
69552
- <line num="217" type="stmt" count="0"/>
69553
- <line num="218" type="stmt" count="1"/>
69554
- <line num="219" type="stmt" count="1"/>
69555
- <line num="221" type="stmt" count="1"/>
69556
- <line num="222" type="stmt" count="1"/>
69557
- <line num="223" type="stmt" count="1"/>
69558
- <line num="225" type="stmt" count="1"/>
69559
- <line num="226" type="stmt" count="1"/>
69560
- <metrics loc="227" ncloc="109" classes="1" methods="15" coveredmethods="14" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="61" elements="78" coveredelements="75"/>
69561
- </file>
69562
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/uninstall.php">
69563
- <line num="12" type="stmt" count="0"/>
69564
- <line num="13" type="stmt" count="0"/>
69565
- <line num="14" type="stmt" count="0"/>
69566
- <line num="17" type="stmt" count="0"/>
69567
- <line num="18" type="stmt" count="0"/>
69568
- <line num="19" type="stmt" count="0"/>
69569
- <line num="20" type="stmt" count="0"/>
69570
- <line num="21" type="stmt" count="0"/>
69571
- <line num="23" type="stmt" count="0"/>
69572
- <line num="24" type="stmt" count="0"/>
69573
- <line num="25" type="stmt" count="0"/>
69574
- <metrics loc="25" ncloc="13" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="0" elements="11" coveredelements="0"/>
69575
- </file>
69576
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/autoload.php">
69577
- <line num="5" type="stmt" count="0"/>
69578
- <line num="7" type="stmt" count="0"/>
69579
- <metrics loc="7" ncloc="5" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="0" elements="2" coveredelements="0"/>
69580
- </file>
69581
  <package name="Boldgrid\Library\Library">
 
 
 
 
 
 
 
 
69582
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Activity.php">
69583
  <class name="Activity" namespace="Boldgrid\Library\Library">
69584
  <metrics complexity="19" methods="9" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="0" elements="59" coveredelements="0"/>
@@ -69669,7 +69714,7 @@
69669
  </file>
69670
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Configs.php">
69671
  <class name="Configs" namespace="Boldgrid\Library\Library">
69672
- <metrics complexity="20" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="45" coveredstatements="5" elements="51" coveredelements="5"/>
69673
  </class>
69674
  <line num="41" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
69675
  <line num="42" type="stmt" count="0"/>
@@ -69691,38 +69736,37 @@
69691
  <line num="82" type="stmt" count="0"/>
69692
  <line num="83" type="stmt" count="0"/>
69693
  <line num="85" type="stmt" count="0"/>
69694
- <line num="97" type="method" name="get" visibility="public" complexity="3" crap="3.04" count="20"/>
69695
- <line num="98" type="stmt" count="20"/>
69696
- <line num="99" type="stmt" count="20"/>
69697
- <line num="100" type="stmt" count="20"/>
69698
- <line num="101" type="stmt" count="20"/>
69699
  <line num="102" type="stmt" count="0"/>
69700
- <line num="105" type="stmt" count="20"/>
69701
  <line num="119" type="method" name="getFileSlug" visibility="public" complexity="1" crap="2" count="0"/>
69702
  <line num="120" type="stmt" count="0"/>
69703
  <line num="122" type="stmt" count="0"/>
69704
  <line num="133" type="method" name="getPlugins" visibility="public" complexity="7" crap="56" count="0"/>
69705
  <line num="134" type="stmt" count="0"/>
69706
  <line num="136" type="stmt" count="0"/>
69707
- <line num="137" type="stmt" count="0"/>
 
69708
  <line num="140" type="stmt" count="0"/>
69709
  <line num="141" type="stmt" count="0"/>
69710
- <line num="142" type="stmt" count="0"/>
69711
  <line num="143" type="stmt" count="0"/>
 
69712
  <line num="145" type="stmt" count="0"/>
69713
  <line num="146" type="stmt" count="0"/>
69714
  <line num="147" type="stmt" count="0"/>
69715
- <line num="148" type="stmt" count="0"/>
69716
  <line num="149" type="stmt" count="0"/>
 
69717
  <line num="151" type="stmt" count="0"/>
69718
- <line num="152" type="stmt" count="0"/>
69719
  <line num="153" type="stmt" count="0"/>
69720
  <line num="155" type="stmt" count="0"/>
69721
- <line num="157" type="stmt" count="0"/>
69722
- <line num="167" type="method" name="setItem" visibility="public" complexity="1" crap="2" count="0"/>
69723
- <line num="168" type="stmt" count="0"/>
69724
- <line num="169" type="stmt" count="0"/>
69725
- <metrics loc="170" ncloc="83" classes="1" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="45" coveredstatements="5" elements="51" coveredelements="5"/>
69726
  </file>
69727
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Dashboard.php">
69728
  <class name="Dashboard" namespace="Boldgrid\Library\Library">
@@ -70591,11 +70635,11 @@
70591
  <class name="Settings" namespace="Boldgrid\Library\Library">
70592
  <metrics complexity="6" methods="5" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="3" elements="14" coveredelements="5"/>
70593
  </class>
70594
- <line num="35" type="method" name="get" visibility="public" complexity="1" crap="1" count="5"/>
70595
- <line num="36" type="stmt" count="5"/>
70596
- <line num="49" type="method" name="getKey" visibility="public" complexity="2" crap="2" count="5"/>
70597
- <line num="50" type="stmt" count="5"/>
70598
- <line num="52" type="stmt" count="5"/>
70599
  <line num="63" type="method" name="hasKey" visibility="public" complexity="1" crap="2" count="0"/>
70600
  <line num="64" type="stmt" count="0"/>
70601
  <line num="66" type="stmt" count="0"/>
@@ -70609,7 +70653,7 @@
70609
  </file>
70610
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Start.php">
70611
  <class name="Start" namespace="Boldgrid\Library\Library">
70612
- <metrics complexity="13" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="52" coveredstatements="0" elements="60" coveredelements="0"/>
70613
  </class>
70614
  <line num="56" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
70615
  <line num="57" type="stmt" count="0"/>
@@ -70635,43 +70679,42 @@
70635
  <line num="116" type="stmt" count="0"/>
70636
  <line num="119" type="stmt" count="0"/>
70637
  <line num="122" type="stmt" count="0"/>
70638
- <line num="125" type="stmt" count="0"/>
70639
  <line num="126" type="stmt" count="0"/>
70640
  <line num="129" type="stmt" count="0"/>
 
70641
  <line num="132" type="stmt" count="0"/>
70642
  <line num="134" type="stmt" count="0"/>
70643
  <line num="135" type="stmt" count="0"/>
 
70644
  <line num="137" type="stmt" count="0"/>
70645
  <line num="138" type="stmt" count="0"/>
70646
  <line num="139" type="stmt" count="0"/>
70647
- <line num="140" type="stmt" count="0"/>
70648
- <line num="141" type="stmt" count="0"/>
70649
- <line num="142" type="stmt" count="0"/>
70650
- <line num="149" type="method" name="loadPluginTextdomain" visibility="private" complexity="1" crap="2" count="0"/>
70651
- <line num="150" type="stmt" count="0"/>
70652
- <line num="151" type="stmt" count="0"/>
70653
- <line num="158" type="method" name="loadPluginInstaller" visibility="public" complexity="3" crap="12" count="0"/>
70654
  <line num="159" type="stmt" count="0"/>
70655
  <line num="160" type="stmt" count="0"/>
 
70656
  <line num="162" type="stmt" count="0"/>
70657
  <line num="163" type="stmt" count="0"/>
70658
  <line num="164" type="stmt" count="0"/>
70659
  <line num="165" type="stmt" count="0"/>
70660
  <line num="166" type="stmt" count="0"/>
70661
- <line num="167" type="stmt" count="0"/>
70662
- <line num="168" type="stmt" count="0"/>
70663
- <line num="169" type="stmt" count="0"/>
70664
- <line num="179" type="method" name="filterConfigs" visibility="public" complexity="2" crap="6" count="0"/>
70665
  <line num="180" type="stmt" count="0"/>
70666
  <line num="181" type="stmt" count="0"/>
70667
  <line num="182" type="stmt" count="0"/>
70668
  <line num="183" type="stmt" count="0"/>
70669
- <line num="184" type="stmt" count="0"/>
70670
  <line num="185" type="stmt" count="0"/>
70671
  <line num="186" type="stmt" count="0"/>
70672
- <line num="188" type="stmt" count="0"/>
70673
- <line num="189" type="stmt" count="0"/>
70674
- <metrics loc="190" ncloc="89" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="52" coveredstatements="0" elements="60" coveredelements="0"/>
70675
  </file>
70676
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui.php">
70677
  <class name="Ui" namespace="Boldgrid\Library\Library">
@@ -70758,76 +70801,6 @@
70758
  <line num="196" type="stmt" count="0"/>
70759
  <metrics loc="197" ncloc="103" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="76" coveredstatements="0" elements="79" coveredelements="0"/>
70760
  </file>
70761
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Update.php">
70762
- <class name="Update" namespace="Boldgrid\Library\Library">
70763
- <metrics complexity="32" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="0" elements="64" coveredelements="0"/>
70764
- </class>
70765
- <line num="43" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
70766
- <line num="44" type="stmt" count="0"/>
70767
- <line num="46" type="stmt" count="0"/>
70768
- <line num="47" type="stmt" count="0"/>
70769
- <line num="59" type="method" name="auto_update_core" visibility="public" complexity="3" crap="12" count="0"/>
70770
- <line num="60" type="stmt" count="0"/>
70771
- <line num="61" type="stmt" count="0"/>
70772
- <line num="62" type="stmt" count="0"/>
70773
- <line num="64" type="stmt" count="0"/>
70774
- <line num="65" type="stmt" count="0"/>
70775
- <line num="77" type="method" name="allow_major_auto_core_updates" visibility="public" complexity="4" crap="20" count="0"/>
70776
- <line num="78" type="stmt" count="0"/>
70777
- <line num="79" type="stmt" count="0"/>
70778
- <line num="80" type="stmt" count="0"/>
70779
- <line num="82" type="stmt" count="0"/>
70780
- <line num="83" type="stmt" count="0"/>
70781
- <line num="84" type="stmt" count="0"/>
70782
- <line num="96" type="method" name="allow_minor_auto_core_updates" visibility="public" complexity="4" crap="20" count="0"/>
70783
- <line num="97" type="stmt" count="0"/>
70784
- <line num="98" type="stmt" count="0"/>
70785
- <line num="99" type="stmt" count="0"/>
70786
- <line num="101" type="stmt" count="0"/>
70787
- <line num="102" type="stmt" count="0"/>
70788
- <line num="103" type="stmt" count="0"/>
70789
- <line num="115" type="method" name="allow_dev_auto_core_updates" visibility="public" complexity="4" crap="20" count="0"/>
70790
- <line num="116" type="stmt" count="0"/>
70791
- <line num="117" type="stmt" count="0"/>
70792
- <line num="118" type="stmt" count="0"/>
70793
- <line num="120" type="stmt" count="0"/>
70794
- <line num="121" type="stmt" count="0"/>
70795
- <line num="122" type="stmt" count="0"/>
70796
- <line num="134" type="method" name="auto_update_translation" visibility="public" complexity="4" crap="20" count="0"/>
70797
- <line num="135" type="stmt" count="0"/>
70798
- <line num="136" type="stmt" count="0"/>
70799
- <line num="137" type="stmt" count="0"/>
70800
- <line num="139" type="stmt" count="0"/>
70801
- <line num="140" type="stmt" count="0"/>
70802
- <line num="141" type="stmt" count="0"/>
70803
- <line num="154" type="method" name="auto_update_plugin" visibility="public" complexity="6" crap="42" count="0"/>
70804
- <line num="155" type="stmt" count="0"/>
70805
- <line num="156" type="stmt" count="0"/>
70806
- <line num="157" type="stmt" count="0"/>
70807
- <line num="160" type="stmt" count="0"/>
70808
- <line num="163" type="stmt" count="0"/>
70809
- <line num="164" type="stmt" count="0"/>
70810
- <line num="165" type="stmt" count="0"/>
70811
- <line num="166" type="stmt" count="0"/>
70812
- <line num="167" type="stmt" count="0"/>
70813
- <line num="168" type="stmt" count="0"/>
70814
- <line num="170" type="stmt" count="0"/>
70815
- <line num="171" type="stmt" count="0"/>
70816
- <line num="184" type="method" name="auto_update_theme" visibility="public" complexity="6" crap="42" count="0"/>
70817
- <line num="185" type="stmt" count="0"/>
70818
- <line num="186" type="stmt" count="0"/>
70819
- <line num="187" type="stmt" count="0"/>
70820
- <line num="190" type="stmt" count="0"/>
70821
- <line num="193" type="stmt" count="0"/>
70822
- <line num="194" type="stmt" count="0"/>
70823
- <line num="195" type="stmt" count="0"/>
70824
- <line num="196" type="stmt" count="0"/>
70825
- <line num="197" type="stmt" count="0"/>
70826
- <line num="198" type="stmt" count="0"/>
70827
- <line num="200" type="stmt" count="0"/>
70828
- <line num="201" type="stmt" count="0"/>
70829
- <metrics loc="202" ncloc="89" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="0" elements="64" coveredelements="0"/>
70830
- </file>
70831
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Usage.php">
70832
  <class name="Usage" namespace="Boldgrid\Library\Library">
70833
  <metrics complexity="14" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="48" coveredstatements="0" elements="54" coveredelements="0"/>
@@ -70889,6 +70862,1258 @@
70889
  <metrics loc="166" ncloc="83" classes="1" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="48" coveredstatements="0" elements="54" coveredelements="0"/>
70890
  </file>
70891
  </package>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70892
  <package name="Boldgrid\Library\Library\Api">
70893
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Api/Availability.php">
70894
  <class name="Availability" namespace="Boldgrid\Library\Library\Api">
@@ -71775,144 +73000,241 @@
71775
  <package name="Boldgrid\Library\Library\Plugin">
71776
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Checker.php">
71777
  <class name="Checker" namespace="Boldgrid\Library\Library\Plugin">
71778
- <metrics complexity="10" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="0" elements="39" coveredelements="0"/>
71779
  </class>
71780
- <line num="33" type="method" name="anonymous function" complexity="1" crap="2" count="0"/>
 
71781
  <line num="34" type="stmt" count="0"/>
71782
- <line num="35" type="stmt" count="0"/>
71783
  <line num="36" type="stmt" count="0"/>
71784
- <line num="43" type="method" name="run" visibility="public" complexity="2" crap="6" count="0"/>
71785
- <line num="45" type="stmt" count="0"/>
71786
- <line num="46" type="stmt" count="0"/>
71787
- <line num="47" type="stmt" count="0"/>
71788
  <line num="48" type="stmt" count="0"/>
71789
  <line num="49" type="stmt" count="0"/>
71790
  <line num="50" type="stmt" count="0"/>
 
71791
  <line num="52" type="stmt" count="0"/>
 
71792
  <line num="54" type="stmt" count="0"/>
71793
- <line num="55" type="stmt" count="0"/>
71794
  <line num="56" type="stmt" count="0"/>
71795
- <line num="57" type="stmt" count="0"/>
71796
- <line num="66" type="method" name="getPluginPattern" visibility="public" complexity="1" crap="2" count="0"/>
71797
- <line num="67" type="stmt" count="0"/>
71798
- <line num="68" type="stmt" count="0"/>
71799
- <line num="83" type="method" name="findUpdated" visibility="public" complexity="5" crap="30" count="0"/>
71800
- <line num="84" type="stmt" count="0"/>
71801
- <line num="86" type="stmt" count="0"/>
 
71802
  <line num="88" type="stmt" count="0"/>
71803
- <line num="91" type="stmt" count="0"/>
71804
  <line num="92" type="stmt" count="0"/>
71805
- <line num="93" type="stmt" count="0"/>
71806
- <line num="94" type="stmt" count="0"/>
71807
  <line num="97" type="stmt" count="0"/>
71808
  <line num="98" type="stmt" count="0"/>
71809
- <line num="99" type="stmt" count="0"/>
71810
- <line num="124" type="stmt" count="0"/>
71811
- <line num="125" type="stmt" count="0"/>
71812
- <line num="127" type="stmt" count="0"/>
71813
  <line num="128" type="stmt" count="0"/>
 
71814
  <line num="131" type="stmt" count="0"/>
71815
  <line num="132" type="stmt" count="0"/>
71816
- <line num="139" type="stmt" count="0"/>
71817
- <line num="140" type="stmt" count="0"/>
71818
- <line num="142" type="stmt" count="0"/>
71819
  <line num="143" type="stmt" count="0"/>
71820
- <metrics loc="144" ncloc="61" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="36" coveredstatements="0" elements="40" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71821
  </file>
71822
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Notice.php">
71823
  <class name="Notice" namespace="Boldgrid\Library\Library\Plugin">
71824
- <metrics complexity="23" methods="16" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="69" coveredstatements="61" elements="85" coveredelements="72"/>
71825
  </class>
71826
- <line num="89" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="21"/>
71827
- <line num="90" type="stmt" count="21"/>
71828
- <line num="92" type="stmt" count="21"/>
71829
- <line num="93" type="stmt" count="7"/>
71830
- <line num="94" type="stmt" count="7"/>
71831
- <line num="95" type="stmt" count="7"/>
71832
- <line num="96" type="stmt" count="7"/>
71833
- <line num="97" type="stmt" count="7"/>
71834
- <line num="98" type="stmt" count="7"/>
71835
- <line num="99" type="stmt" count="7"/>
71836
- <line num="100" type="stmt" count="14"/>
71837
- <line num="101" type="stmt" count="14"/>
71838
- <line num="102" type="stmt" count="14"/>
71839
- <line num="103" type="stmt" count="14"/>
71840
- <line num="104" type="stmt" count="14"/>
71841
- <line num="106" type="stmt" count="21"/>
71842
- <line num="115" type="method" name="getId" visibility="public" complexity="1" crap="1" count="1"/>
71843
- <line num="116" type="stmt" count="1"/>
71844
- <line num="126" type="method" name="setId" visibility="public" complexity="1" crap="1" count="21"/>
71845
- <line num="127" type="stmt" count="21"/>
71846
- <line num="128" type="stmt" count="21"/>
71847
- <line num="137" type="method" name="getPageSlug" visibility="public" complexity="1" crap="1" count="5"/>
71848
- <line num="138" type="stmt" count="5"/>
71849
- <line num="148" type="method" name="setPageSlug" visibility="public" complexity="1" crap="2" count="0"/>
71850
- <line num="149" type="stmt" count="0"/>
71851
- <line num="150" type="stmt" count="0"/>
71852
- <line num="159" type="method" name="getVersion" visibility="public" complexity="1" crap="2" count="0"/>
71853
- <line num="160" type="stmt" count="0"/>
71854
- <line num="170" type="method" name="setVersion" visibility="public" complexity="1" crap="2" count="0"/>
71855
- <line num="171" type="stmt" count="0"/>
71856
- <line num="172" type="stmt" count="0"/>
71857
- <line num="181" type="method" name="maybeShow" visibility="public" complexity="2" crap="2" count="5"/>
71858
- <line num="182" type="stmt" count="5"/>
71859
- <line num="183" type="stmt" count="5"/>
71860
- <line num="184" type="stmt" count="5"/>
71861
- <line num="186" type="stmt" count="5"/>
71862
- <line num="196" type="method" name="getIsUnread" visibility="public" complexity="2" crap="2" count="5"/>
71863
- <line num="197" type="stmt" count="5"/>
71864
- <line num="198" type="stmt" count="4"/>
71865
  <line num="200" type="stmt" count="1"/>
71866
- <line num="210" type="method" name="setIsUnread" visibility="public" complexity="1" crap="1" count="2"/>
71867
- <line num="211" type="stmt" count="2"/>
71868
- <line num="212" type="stmt" count="2"/>
71869
- <line num="213" type="stmt" count="2"/>
71870
- <line num="222" type="method" name="alreadyExists" visibility="public" complexity="1" crap="1" count="22"/>
71871
- <line num="223" type="stmt" count="22"/>
71872
- <line num="236" type="method" name="getFromOptions" visibility="private" complexity="3" crap="3" count="22"/>
71873
- <line num="237" type="stmt" count="22"/>
71874
- <line num="238" type="stmt" count="22"/>
71875
- <line num="240" type="stmt" count="22"/>
71876
- <line num="241" type="stmt" count="22"/>
71877
- <line num="242" type="stmt" count="8"/>
71878
- <line num="243" type="stmt" count="7"/>
71879
- <line num="245" type="stmt" count="1"/>
71880
- <line num="246" type="stmt" count="15"/>
71881
- <line num="247" type="stmt" count="15"/>
71882
- <line num="259" type="method" name="updateNoticeOption" visibility="public" complexity="2" crap="2" count="8"/>
71883
- <line num="260" type="stmt" count="8"/>
71884
- <line num="261" type="stmt" count="8"/>
71885
- <line num="262" type="stmt" count="7"/>
71886
- <line num="263" type="stmt" count="7"/>
71887
- <line num="264" type="stmt" count="7"/>
71888
- <line num="265" type="stmt" count="7"/>
71889
- <line num="266" type="stmt" count="7"/>
71890
- <line num="268" type="stmt" count="7"/>
71891
- <line num="269" type="stmt" count="1"/>
71892
- <line num="270" type="stmt" count="1"/>
71893
- <line num="271" type="stmt" count="1"/>
71894
- <line num="272" type="stmt" count="1"/>
71895
- <line num="273" type="stmt" count="1"/>
71896
- <line num="276" type="stmt" count="8"/>
71897
- <line num="277" type="stmt" count="8"/>
71898
- <line num="288" type="method" name="getPlugin" visibility="public" complexity="1" crap="2" count="0"/>
71899
- <line num="289" type="stmt" count="0"/>
71900
- <line num="301" type="method" name="setPlugin" visibility="public" complexity="1" crap="2" count="0"/>
71901
- <line num="302" type="stmt" count="0"/>
71902
- <line num="303" type="stmt" count="0"/>
71903
- <line num="318" type="method" name="noticeVersionChanged" visibility="private" complexity="2" crap="2" count="7"/>
71904
- <line num="319" type="stmt" count="7"/>
71905
- <line num="320" type="stmt" count="1"/>
71906
- <line num="321" type="stmt" count="1"/>
71907
- <line num="322" type="stmt" count="1"/>
71908
- <line num="323" type="stmt" count="7"/>
71909
- <line num="324" type="stmt" count="7"/>
71910
- <line num="326" type="stmt" count="7"/>
71911
- <metrics loc="327" ncloc="134" classes="1" methods="16" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="69" coveredstatements="61" elements="85" coveredelements="72"/>
 
 
71912
  </file>
71913
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Notices.php">
71914
  <class name="Notices" namespace="Boldgrid\Library\Library\Plugin">
71915
- <metrics complexity="3" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="0" elements="21" coveredelements="0"/>
71916
  </class>
71917
  <line num="38" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
71918
  <line num="40" type="stmt" count="0"/>
@@ -71928,307 +73250,569 @@
71928
  <line num="57" type="stmt" count="0"/>
71929
  <line num="58" type="stmt" count="0"/>
71930
  <line num="59" type="stmt" count="0"/>
71931
- <line num="61" type="stmt" count="0"/>
71932
  <line num="62" type="stmt" count="0"/>
71933
  <line num="63" type="stmt" count="0"/>
71934
- <line num="72" type="stmt" count="0"/>
71935
- <line num="74" type="stmt" count="0"/>
71936
- <line num="76" type="stmt" count="0"/>
71937
  <line num="77" type="stmt" count="0"/>
71938
- <metrics loc="78" ncloc="37" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="0" elements="21" coveredelements="0"/>
 
71939
  </file>
71940
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Page.php">
71941
  <class name="Page" namespace="Boldgrid\Library\Library\Plugin">
71942
- <metrics complexity="24" methods="13" coveredmethods="13" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="50" elements="63" coveredelements="63"/>
71943
- </class>
71944
- <line num="72" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="21"/>
71945
- <line num="74" type="stmt" count="21"/>
71946
- <line num="76" type="stmt" count="21"/>
71947
- <line num="78" type="stmt" count="21"/>
71948
- <line num="80" type="stmt" count="21"/>
71949
- <line num="81" type="stmt" count="21"/>
71950
- <line num="90" type="method" name="getPlugin" visibility="public" complexity="1" crap="1" count="21"/>
71951
- <line num="91" type="stmt" count="21"/>
71952
- <line num="99" type="method" name="setPlugin" visibility="private" complexity="1" crap="1" count="21"/>
71953
- <line num="100" type="stmt" count="21"/>
71954
- <line num="101" type="stmt" count="21"/>
71955
- <line num="110" type="method" name="getPluginConfig" visibility="public" complexity="1" crap="1" count="21"/>
71956
- <line num="111" type="stmt" count="21"/>
71957
- <line num="122" type="method" name="setPluginConfig" visibility="private" complexity="1" crap="1" count="21"/>
71958
- <line num="123" type="stmt" count="21"/>
71959
- <line num="124" type="stmt" count="21"/>
71960
- <line num="125" type="stmt" count="21"/>
71961
- <line num="134" type="method" name="getNotices" visibility="public" complexity="3" crap="3" count="5"/>
71962
- <line num="135" type="stmt" count="5"/>
71963
- <line num="136" type="stmt" count="5"/>
71964
- <line num="137" type="stmt" count="5"/>
71965
- <line num="138" type="stmt" count="5"/>
71966
- <line num="139" type="stmt" count="5"/>
71967
- <line num="140" type="stmt" count="5"/>
71968
- <line num="141" type="stmt" count="5"/>
71969
- <line num="152" type="method" name="getNoticeById" visibility="public" complexity="3" crap="3" count="1"/>
71970
- <line num="153" type="stmt" count="1"/>
71971
- <line num="154" type="stmt" count="1"/>
71972
- <line num="155" type="stmt" count="1"/>
71973
- <line num="157" type="stmt" count="1"/>
71974
- <line num="158" type="stmt" count="1"/>
71975
- <line num="165" type="method" name="setNotices" visibility="public" complexity="3" crap="3" count="21"/>
71976
- <line num="166" type="stmt" count="21"/>
71977
- <line num="167" type="stmt" count="21"/>
71978
- <line num="168" type="stmt" count="21"/>
71979
- <line num="169" type="stmt" count="21"/>
71980
- <line num="170" type="stmt" count="21"/>
71981
- <line num="171" type="stmt" count="21"/>
71982
- <line num="172" type="stmt" count="21"/>
71983
- <line num="173" type="stmt" count="21"/>
71984
- <line num="180" type="method" name="setAllNoticesRead" visibility="public" complexity="2" crap="2" count="2"/>
71985
- <line num="181" type="stmt" count="2"/>
71986
- <line num="182" type="stmt" count="2"/>
71987
- <line num="183" type="stmt" count="2"/>
71988
- <line num="184" type="stmt" count="2"/>
71989
- <line num="193" type="method" name="getUnreadCount" visibility="public" complexity="4" crap="4" count="5"/>
71990
- <line num="194" type="stmt" count="5"/>
71991
- <line num="195" type="stmt" count="5"/>
71992
- <line num="196" type="stmt" count="5"/>
71993
- <line num="197" type="stmt" count="3"/>
71994
- <line num="198" type="stmt" count="3"/>
71995
- <line num="199" type="stmt" count="5"/>
71996
- <line num="200" type="stmt" count="5"/>
71997
- <line num="212" type="method" name="getUnreadMarkup" visibility="public" complexity="2" crap="2" count="5"/>
71998
- <line num="213" type="stmt" count="5"/>
71999
- <line num="214" type="stmt" count="5"/>
72000
- <line num="215" type="stmt" count="3"/>
72001
- <line num="217" type="stmt" count="3"/>
72002
- <line num="228" type="method" name="getSlug" visibility="public" complexity="1" crap="1" count="6"/>
72003
- <line num="229" type="stmt" count="6"/>
72004
- <line num="239" type="method" name="setSlug" visibility="public" complexity="1" crap="1" count="21"/>
72005
- <line num="240" type="stmt" count="21"/>
72006
- <line num="241" type="stmt" count="21"/>
72007
- <metrics loc="242" ncloc="102" classes="1" methods="13" coveredmethods="13" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="50" elements="63" coveredelements="63"/>
72008
  </file>
72009
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Plugin.php">
72010
  <class name="Plugin" namespace="Boldgrid\Library\Library\Plugin">
72011
- <metrics complexity="55" methods="31" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="112" coveredstatements="50" elements="143" coveredelements="59"/>
72012
- </class>
72013
- <line num="123" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="20"/>
72014
- <line num="124" type="stmt" count="20"/>
72015
- <line num="126" type="stmt" count="20"/>
72016
- <line num="128" type="stmt" count="20"/>
72017
- <line num="130" type="stmt" count="20"/>
72018
- <line num="132" type="stmt" count="20"/>
72019
- <line num="134" type="stmt" count="20"/>
72020
- <line num="136" type="stmt" count="20"/>
72021
- <line num="137" type="stmt" count="20"/>
72022
- <line num="148" type="method" name="firstVersionCompare" visibility="public" complexity="1" crap="1" count="5"/>
72023
- <line num="150" type="stmt" count="5"/>
72024
- <line num="152" type="stmt" count="5"/>
72025
- <line num="162" type="method" name="getActivateUrl" visibility="public" complexity="1" crap="2" count="0"/>
72026
- <line num="163" type="stmt" count="0"/>
72027
- <line num="164" type="stmt" count="0"/>
72028
- <line num="165" type="stmt" count="0"/>
72029
- <line num="166" type="stmt" count="0"/>
72030
- <line num="176" type="method" name="getIcons" visibility="public" complexity="3" crap="12" count="0"/>
72031
- <line num="177" type="stmt" count="0"/>
72032
- <line num="179" type="stmt" count="0"/>
72033
- <line num="180" type="stmt" count="0"/>
72034
- <line num="181" type="stmt" count="0"/>
72035
- <line num="183" type="stmt" count="0"/>
72036
- <line num="193" type="method" name="getChildPlugins" visibility="public" complexity="1" crap="2" count="0"/>
72037
  <line num="194" type="stmt" count="0"/>
72038
- <line num="207" type="method" name="getConfig" visibility="public" complexity="4" crap="7.46" count="20"/>
72039
- <line num="208" type="stmt" count="20"/>
72040
- <line num="210" type="stmt" count="20"/>
72041
- <line num="211" type="stmt" count="20"/>
72042
- <line num="212" type="stmt" count="0"/>
 
 
72043
  <line num="213" type="stmt" count="0"/>
72044
- <line num="214" type="stmt" count="0"/>
72045
- <line num="215" type="stmt" count="0"/>
72046
- <line num="216" type="stmt" count="0"/>
72047
- <line num="217" type="stmt" count="0"/>
72048
- <line num="218" type="stmt" count="20"/>
72049
- <line num="231" type="method" name="getData" visibility="public" complexity="2" crap="6" count="0"/>
72050
- <line num="232" type="stmt" count="0"/>
72051
- <line num="234" type="stmt" count="0"/>
72052
- <line num="246" type="method" name="getDownloadUrl" visibility="public" complexity="1" crap="2" count="0"/>
72053
- <line num="247" type="stmt" count="0"/>
72054
- <line num="249" type="stmt" count="0"/>
72055
- <line num="251" type="stmt" count="0"/>
72056
- <line num="261" type="method" name="getInstallUrl" visibility="public" complexity="1" crap="2" count="0"/>
72057
- <line num="262" type="stmt" count="0"/>
72058
- <line num="263" type="stmt" count="0"/>
72059
- <line num="264" type="stmt" count="0"/>
72060
- <line num="265" type="stmt" count="0"/>
72061
- <line num="275" type="method" name="getIsInstalled" visibility="public" complexity="1" crap="2" count="0"/>
72062
- <line num="276" type="stmt" count="0"/>
72063
- <line num="286" type="method" name="getFile" visibility="public" complexity="1" crap="2" count="0"/>
72064
- <line num="287" type="stmt" count="0"/>
72065
- <line num="303" type="method" name="getFileSlug" visibility="public" complexity="1" crap="2" count="0"/>
72066
  <line num="304" type="stmt" count="0"/>
72067
  <line num="306" type="stmt" count="0"/>
72068
- <line num="316" type="method" name="getNewVersion" visibility="public" complexity="2" crap="6" count="0"/>
72069
- <line num="317" type="stmt" count="0"/>
72070
- <line num="319" type="stmt" count="0"/>
72071
- <line num="328" type="method" name="getPluginConfig" visibility="public" complexity="1" crap="1" count="21"/>
72072
- <line num="329" type="stmt" count="21"/>
72073
- <line num="339" type="method" name="getPluginData" visibility="public" complexity="3" crap="4.12" count="5"/>
72074
- <line num="340" type="stmt" count="5"/>
72075
- <line num="341" type="stmt" count="0"/>
72076
- <line num="342" type="stmt" count="0"/>
72077
- <line num="343" type="stmt" count="5"/>
72078
- <line num="353" type="method" name="getPluginsChecked" visibility="public" complexity="2" crap="2" count="5"/>
72079
- <line num="354" type="stmt" count="5"/>
72080
- <line num="356" type="stmt" count="5"/>
72081
- <line num="358" type="stmt" count="5"/>
72082
- <line num="368" type="method" name="getSlug" visibility="public" complexity="1" crap="2" count="0"/>
72083
- <line num="369" type="stmt" count="0"/>
72084
- <line num="378" type="method" name="setPages" visibility="public" complexity="3" crap="3" count="21"/>
72085
- <line num="379" type="stmt" count="21"/>
72086
- <line num="380" type="stmt" count="21"/>
72087
- <line num="381" type="stmt" count="21"/>
72088
- <line num="382" type="stmt" count="21"/>
72089
- <line num="383" type="stmt" count="21"/>
72090
- <line num="384" type="stmt" count="21"/>
72091
- <line num="385" type="stmt" count="21"/>
72092
- <line num="386" type="stmt" count="21"/>
72093
- <line num="395" type="method" name="setAllNoticesRead" visibility="public" complexity="2" crap="6" count="0"/>
72094
- <line num="396" type="stmt" count="0"/>
72095
- <line num="397" type="stmt" count="0"/>
72096
- <line num="398" type="stmt" count="0"/>
72097
- <line num="399" type="stmt" count="0"/>
72098
- <line num="409" type="method" name="getPages" visibility="public" complexity="1" crap="1" count="6"/>
72099
- <line num="410" type="stmt" count="6"/>
72100
- <line num="421" type="method" name="getPageBySlug" visibility="public" complexity="3" crap="3.58" count="6"/>
72101
- <line num="422" type="stmt" count="6"/>
72102
- <line num="423" type="stmt" count="6"/>
72103
- <line num="424" type="stmt" count="6"/>
72104
- <line num="426" type="stmt" count="0"/>
72105
- <line num="427" type="stmt" count="0"/>
72106
- <line num="434" type="method" name="setChildPlugins" visibility="public" complexity="3" crap="5.20" count="20"/>
72107
- <line num="435" type="stmt" count="20"/>
72108
- <line num="437" type="stmt" count="20"/>
72109
- <line num="438" type="stmt" count="20"/>
72110
- <line num="441" type="stmt" count="0"/>
72111
- <line num="442" type="stmt" count="0"/>
72112
- <line num="444" type="stmt" count="0"/>
72113
- <line num="445" type="stmt" count="0"/>
72114
- <line num="446" type="stmt" count="0"/>
72115
- <line num="455" type="method" name="setFile" visibility="public" complexity="2" crap="2" count="20"/>
72116
- <line num="456" type="stmt" count="20"/>
72117
- <line num="457" type="stmt" count="20"/>
72118
- <line num="464" type="method" name="setIsInstalled" visibility="public" complexity="1" crap="1" count="20"/>
72119
- <line num="465" type="stmt" count="20"/>
72120
- <line num="466" type="stmt" count="20"/>
72121
- <line num="467" type="stmt" count="20"/>
72122
- <line num="474" type="method" name="setPath" visibility="public" complexity="1" crap="1" count="20"/>
72123
- <line num="475" type="stmt" count="20"/>
72124
- <line num="476" type="stmt" count="20"/>
72125
- <line num="485" type="method" name="getUpdatePlugins" visibility="public" complexity="2" crap="6" count="0"/>
72126
  <line num="486" type="stmt" count="0"/>
72127
  <line num="487" type="stmt" count="0"/>
72128
  <line num="488" type="stmt" count="0"/>
72129
- <line num="490" type="stmt" count="0"/>
72130
- <line num="500" type="method" name="hasUpdate" visibility="public" complexity="1" crap="2" count="0"/>
72131
- <line num="501" type="stmt" count="0"/>
72132
- <line num="503" type="stmt" count="0"/>
72133
- <line num="513" type="method" name="isActive" visibility="public" complexity="1" crap="2" count="0"/>
72134
- <line num="514" type="stmt" count="0"/>
72135
- <line num="524" type="method" name="getFirstVersion" visibility="public" complexity="3" crap="3.01" count="5"/>
72136
- <line num="525" type="stmt" count="5"/>
72137
- <line num="527" type="stmt" count="5"/>
72138
- <line num="536" type="stmt" count="5"/>
72139
- <line num="537" type="stmt" count="5"/>
72140
- <line num="538" type="stmt" count="5"/>
72141
- <line num="539" type="stmt" count="5"/>
72142
- <line num="540" type="stmt" count="5"/>
72143
- <line num="542" type="stmt" count="0"/>
72144
- <line num="544" type="stmt" count="5"/>
72145
- <line num="556" type="method" name="getUnreadCount" visibility="public" complexity="2" crap="6" count="0"/>
72146
- <line num="557" type="stmt" count="0"/>
72147
- <line num="558" type="stmt" count="0"/>
72148
- <line num="559" type="stmt" count="0"/>
72149
- <line num="560" type="stmt" count="0"/>
72150
- <line num="561" type="stmt" count="0"/>
72151
- <line num="573" type="method" name="getUnreadMarkup" visibility="public" complexity="2" crap="6" count="0"/>
72152
- <line num="574" type="stmt" count="0"/>
72153
- <line num="575" type="stmt" count="0"/>
72154
- <line num="576" type="stmt" count="0"/>
72155
- <line num="578" type="stmt" count="0"/>
72156
- <metrics loc="581" ncloc="248" classes="1" methods="31" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="112" coveredstatements="50" elements="143" coveredelements="59"/>
72157
  </file>
72158
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Plugins.php">
72159
  <class name="Plugins" namespace="Boldgrid\Library\Library\Plugin">
72160
- <metrics complexity="3" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="0" elements="13" coveredelements="0"/>
72161
  </class>
72162
- <line num="30" type="method" name="getActive" visibility="public" complexity="3" crap="12" count="0"/>
72163
- <line num="32" type="stmt" count="0"/>
72164
- <line num="33" type="stmt" count="0"/>
72165
- <line num="34" type="stmt" count="0"/>
72166
- <line num="37" type="stmt" count="0"/>
72167
  <line num="38" type="stmt" count="0"/>
72168
- <line num="39" type="stmt" count="0"/>
72169
  <line num="40" type="stmt" count="0"/>
72170
- <line num="41" type="stmt" count="0"/>
72171
- <line num="42" type="stmt" count="0"/>
72172
  <line num="43" type="stmt" count="0"/>
 
72173
  <line num="45" type="stmt" count="0"/>
72174
  <line num="46" type="stmt" count="0"/>
72175
- <metrics loc="47" ncloc="21" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="0" elements="13" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72176
  </file>
72177
  </package>
72178
- <package name="Boldgrid\Library\Library\Ui">
72179
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui/Card.php">
72180
- <class name="Card" namespace="Boldgrid\Library\Library\Ui">
72181
- <metrics complexity="14" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="36" elements="44" coveredelements="38"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72182
  </class>
72183
- <line num="97" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="2"/>
72184
- <line num="98" type="stmt" count="2"/>
72185
- <line num="99" type="stmt" count="2"/>
72186
- <line num="108" type="method" name="maybeShowRibbon" visibility="public" complexity="3" crap="3" count="1"/>
72187
- <line num="110" type="stmt" count="1"/>
72188
- <line num="111" type="stmt" count="1"/>
72189
- <line num="112" type="stmt" count="1"/>
72190
- <line num="123" type="method" name="printCard" visibility="public" complexity="10" crap="10.27" count="1"/>
72191
- <line num="125" type="stmt" count="1"/>
 
72192
  <line num="126" type="stmt" count="0"/>
72193
  <line num="127" type="stmt" count="0"/>
72194
  <line num="128" type="stmt" count="1"/>
 
 
72195
  <line num="131" type="stmt" count="1"/>
72196
  <line num="132" type="stmt" count="1"/>
72197
- <line num="133" type="stmt" count="1"/>
72198
  <line num="134" type="stmt" count="1"/>
72199
- <line num="135" type="stmt" count="1"/>
72200
- <line num="138" type="stmt" count="1"/>
72201
  <line num="139" type="stmt" count="1"/>
72202
  <line num="140" type="stmt" count="1"/>
72203
- <line num="142" type="stmt" count="1"/>
72204
- <line num="143" type="stmt" count="1"/>
72205
- <line num="145" type="stmt" count="1"/>
72206
- <line num="147" type="stmt" count="1"/>
72207
- <line num="148" type="stmt" count="0"/>
72208
- <line num="149" type="stmt" count="0"/>
72209
- <line num="151" type="stmt" count="1"/>
72210
- <line num="152" type="stmt" count="1"/>
72211
- <line num="154" type="stmt" count="1"/>
72212
- <line num="155" type="stmt" count="1"/>
72213
- <line num="156" type="stmt" count="1"/>
72214
- <line num="158" type="stmt" count="1"/>
72215
- <line num="159" type="stmt" count="1"/>
72216
- <line num="160" type="stmt" count="1"/>
72217
- <line num="164" type="stmt" count="1"/>
72218
  <line num="167" type="stmt" count="1"/>
72219
- <line num="168" type="stmt" count="1"/>
72220
  <line num="169" type="stmt" count="1"/>
72221
  <line num="171" type="stmt" count="1"/>
 
72222
  <line num="173" type="stmt" count="1"/>
72223
  <line num="174" type="stmt" count="1"/>
72224
- <line num="175" type="stmt" count="1"/>
72225
- <line num="176" type="stmt" count="0"/>
72226
  <line num="178" type="stmt" count="1"/>
72227
- <metrics loc="179" ncloc="77" classes="1" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="36" elements="44" coveredelements="38"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72228
  </file>
72229
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui/Dashboard.php">
72230
  <class name="Dashboard" namespace="Boldgrid\Library\Library\Ui">
72231
- <metrics complexity="4" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="13" coveredstatements="7" elements="15" coveredelements="8"/>
72232
  </class>
72233
  <line num="42" type="method" name="enqueueScripts" visibility="public" complexity="1" crap="2" count="0"/>
72234
  <line num="43" type="stmt" count="0"/>
@@ -72237,15 +73821,15 @@
72237
  <line num="46" type="stmt" count="0"/>
72238
  <line num="47" type="stmt" count="0"/>
72239
  <line num="48" type="stmt" count="0"/>
72240
- <line num="55" type="method" name="printCards" visibility="public" complexity="3" crap="3" count="1"/>
72241
- <line num="57" type="stmt" count="1"/>
72242
- <line num="59" type="stmt" count="1"/>
72243
- <line num="60" type="stmt" count="1"/>
72244
- <line num="61" type="stmt" count="1"/>
72245
- <line num="62" type="stmt" count="1"/>
72246
- <line num="64" type="stmt" count="1"/>
72247
- <line num="65" type="stmt" count="1"/>
72248
- <metrics loc="66" ncloc="31" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="13" coveredstatements="7" elements="15" coveredelements="8"/>
72249
  </file>
72250
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui/Feature.php">
72251
  <class name="Feature" namespace="Boldgrid\Library\Library\Ui">
@@ -72270,6 +73854,22 @@
72270
  <line num="79" type="stmt" count="0"/>
72271
  <metrics loc="80" ncloc="32" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="15" coveredstatements="0" elements="17" coveredelements="0"/>
72272
  </file>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72273
  </package>
72274
  <package name="Boldgrid\Library\Library\Usage">
72275
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Usage/Helper.php">
@@ -73260,13 +74860,13 @@
73260
  <line num="84" type="stmt" count="0"/>
73261
  <line num="85" type="stmt" count="0"/>
73262
  <line num="87" type="stmt" count="0"/>
73263
- <line num="100" type="method" name="getWpFilesystem" visibility="public" complexity="2" crap="2.50" count="20"/>
73264
- <line num="101" type="stmt" count="20"/>
73265
- <line num="104" type="stmt" count="20"/>
73266
  <line num="105" type="stmt" count="0"/>
73267
  <line num="106" type="stmt" count="0"/>
73268
  <line num="107" type="stmt" count="0"/>
73269
- <line num="109" type="stmt" count="20"/>
73270
  <line num="120" type="method" name="getContents" visibility="public" complexity="3" crap="12" count="0"/>
73271
  <line num="121" type="stmt" count="0"/>
73272
  <line num="123" type="stmt" count="0"/>
@@ -73379,20 +74979,19 @@
73379
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/library.global.php">
73380
  <line num="6" type="stmt" count="0"/>
73381
  <line num="8" type="stmt" count="0"/>
73382
- <line num="9" type="stmt" count="0"/>
73383
  <line num="10" type="stmt" count="0"/>
73384
  <line num="11" type="stmt" count="0"/>
73385
  <line num="12" type="stmt" count="0"/>
73386
  <line num="13" type="stmt" count="0"/>
73387
  <line num="14" type="stmt" count="0"/>
73388
- <line num="17" type="stmt" count="0"/>
73389
- <line num="20" type="stmt" count="0"/>
73390
- <line num="23" type="stmt" count="0"/>
73391
- <line num="26" type="stmt" count="0"/>
73392
- <line num="29" type="stmt" count="0"/>
73393
- <line num="32" type="stmt" count="0"/>
73394
- <line num="35" type="stmt" count="0"/>
73395
- <line num="38" type="stmt" count="0"/>
73396
  <line num="39" type="stmt" count="0"/>
73397
  <line num="40" type="stmt" count="0"/>
73398
  <line num="41" type="stmt" count="0"/>
@@ -73404,7 +75003,7 @@
73404
  <line num="47" type="stmt" count="0"/>
73405
  <line num="48" type="stmt" count="0"/>
73406
  <line num="49" type="stmt" count="0"/>
73407
- <line num="52" type="stmt" count="0"/>
73408
  <line num="53" type="stmt" count="0"/>
73409
  <line num="54" type="stmt" count="0"/>
73410
  <line num="55" type="stmt" count="0"/>
@@ -73438,7 +75037,7 @@
73438
  <line num="83" type="stmt" count="0"/>
73439
  <line num="84" type="stmt" count="0"/>
73440
  <line num="85" type="stmt" count="0"/>
73441
- <line num="100" type="stmt" count="0"/>
73442
  <line num="101" type="stmt" count="0"/>
73443
  <line num="102" type="stmt" count="0"/>
73444
  <line num="103" type="stmt" count="0"/>
@@ -73462,7 +75061,7 @@
73462
  <line num="121" type="stmt" count="0"/>
73463
  <line num="122" type="stmt" count="0"/>
73464
  <line num="123" type="stmt" count="0"/>
73465
- <line num="126" type="stmt" count="0"/>
73466
  <line num="127" type="stmt" count="0"/>
73467
  <line num="128" type="stmt" count="0"/>
73468
  <line num="129" type="stmt" count="0"/>
@@ -73476,13 +75075,14 @@
73476
  <line num="137" type="stmt" count="0"/>
73477
  <line num="138" type="stmt" count="0"/>
73478
  <line num="139" type="stmt" count="0"/>
73479
- <line num="143" type="stmt" count="0"/>
73480
  <line num="144" type="stmt" count="0"/>
73481
- <metrics loc="144" ncloc="106" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="101" coveredstatements="0" elements="101" coveredelements="0"/>
 
73482
  </file>
73483
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Library/test-activity.php">
73484
  <class name="Test_Activty" namespace="global" fullPackage="Test">
73485
- <metrics complexity="10" methods="10" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="0" elements="54" coveredelements="0"/>
73486
  </class>
73487
  <line num="30" type="method" name="setup" visibility="public" complexity="1" crap="2" count="0"/>
73488
  <line num="31" type="stmt" count="0"/>
@@ -73515,34 +75115,30 @@
73515
  <line num="88" type="stmt" count="0"/>
73516
  <line num="90" type="stmt" count="0"/>
73517
  <line num="91" type="stmt" count="0"/>
73518
- <line num="102" type="method" name="testGetActivityConfigs" visibility="public" complexity="1" crap="2" count="0"/>
 
73519
  <line num="104" type="stmt" count="0"/>
73520
- <line num="114" type="method" name="testGetActivityCount" visibility="public" complexity="1" crap="2" count="0"/>
 
73521
  <line num="115" type="stmt" count="0"/>
73522
  <line num="117" type="stmt" count="0"/>
73523
  <line num="118" type="stmt" count="0"/>
73524
- <line num="127" type="method" name="testGetPluginActivities" visibility="public" complexity="1" crap="2" count="0"/>
73525
- <line num="128" type="stmt" count="0"/>
73526
- <line num="130" type="stmt" count="0"/>
73527
- <line num="131" type="stmt" count="0"/>
73528
- <line num="142" type="method" name="testMaybeAddRatingPrompt" visibility="public" complexity="1" crap="2" count="0"/>
73529
- <line num="144" type="stmt" count="0"/>
73530
- <line num="156" type="method" name="testSaveActivities" visibility="public" complexity="1" crap="2" count="0"/>
73531
- <line num="157" type="stmt" count="0"/>
73532
- <line num="159" type="stmt" count="0"/>
73533
- <line num="160" type="stmt" count="0"/>
73534
- <line num="162" type="stmt" count="0"/>
73535
- <line num="163" type="stmt" count="0"/>
73536
- <line num="173" type="method" name="testSavePluginActivities" visibility="public" complexity="1" crap="2" count="0"/>
73537
- <line num="174" type="stmt" count="0"/>
73538
- <line num="176" type="stmt" count="0"/>
73539
- <line num="178" type="stmt" count="0"/>
73540
- <line num="179" type="stmt" count="0"/>
73541
- <metrics loc="180" ncloc="84" classes="1" methods="10" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="0" elements="54" coveredelements="0"/>
73542
  </file>
73543
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Library/test-rating-prompt.php">
73544
  <class name="Test_Rating_Prompt" namespace="global" fullPackage="Test.Rating">
73545
- <metrics complexity="20" methods="20" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="246" coveredstatements="0" elements="266" coveredelements="0"/>
73546
  </class>
73547
  <line num="56" type="method" name="reset" visibility="public" complexity="1" crap="2" count="0"/>
73548
  <line num="57" type="stmt" count="0"/>
@@ -73659,513 +75255,257 @@
73659
  <line num="203" type="stmt" count="0"/>
73660
  <line num="204" type="stmt" count="0"/>
73661
  <line num="205" type="stmt" count="0"/>
73662
- <line num="212" type="method" name="testAdminNotices" visibility="public" complexity="1" crap="2" count="0"/>
73663
- <line num="214" type="stmt" count="0"/>
73664
- <line num="223" type="method" name="testAjaxDismiss" visibility="public" complexity="1" crap="2" count="0"/>
73665
- <line num="225" type="stmt" count="0"/>
73666
- <line num="232" type="method" name="testGetDecisionAttributes" visibility="public" complexity="1" crap="2" count="0"/>
73667
- <line num="239" type="stmt" count="0"/>
73668
- <line num="240" type="stmt" count="0"/>
73669
- <line num="241" type="stmt" count="0"/>
73670
- <line num="242" type="stmt" count="0"/>
73671
- <line num="243" type="stmt" count="0"/>
73672
- <line num="244" type="stmt" count="0"/>
73673
- <line num="252" type="stmt" count="0"/>
73674
- <line num="253" type="stmt" count="0"/>
73675
- <line num="254" type="stmt" count="0"/>
73676
- <line num="255" type="stmt" count="0"/>
73677
- <line num="256" type="stmt" count="0"/>
73678
- <line num="257" type="stmt" count="0"/>
73679
- <line num="264" type="stmt" count="0"/>
73680
- <line num="265" type="stmt" count="0"/>
73681
- <line num="266" type="stmt" count="0"/>
73682
- <line num="267" type="stmt" count="0"/>
73683
- <line num="268" type="stmt" count="0"/>
73684
- <line num="269" type="stmt" count="0"/>
73685
- <line num="280" type="method" name="testGetLastDismissal" visibility="public" complexity="1" crap="2" count="0"/>
73686
- <line num="282" type="stmt" count="0"/>
73687
- <line num="284" type="stmt" count="0"/>
73688
- <line num="285" type="stmt" count="0"/>
73689
- <line num="286" type="stmt" count="0"/>
73690
- <line num="287" type="stmt" count="0"/>
73691
- <line num="288" type="stmt" count="0"/>
73692
- <line num="290" type="stmt" count="0"/>
73693
- <line num="291" type="stmt" count="0"/>
73694
- <line num="294" type="stmt" count="0"/>
73695
- <line num="296" type="stmt" count="0"/>
73696
- <line num="297" type="stmt" count="0"/>
73697
- <line num="298" type="stmt" count="0"/>
73698
- <line num="299" type="stmt" count="0"/>
73699
- <line num="300" type="stmt" count="0"/>
73700
- <line num="302" type="stmt" count="0"/>
73701
- <line num="303" type="stmt" count="0"/>
73702
- <line num="304" type="stmt" count="0"/>
73703
- <line num="311" type="method" name="testAdminEnqueueScripts" visibility="public" complexity="1" crap="2" count="0"/>
73704
- <line num="313" type="stmt" count="0"/>
73705
- <line num="320" type="method" name="testGetPromptSlides" visibility="public" complexity="1" crap="2" count="0"/>
73706
- <line num="322" type="stmt" count="0"/>
73707
- <line num="329" type="method" name="testGetSlideMarkup" visibility="public" complexity="1" crap="2" count="0"/>
73708
- <line num="331" type="stmt" count="0"/>
73709
- <line num="340" type="method" name="testIsMinInterval" visibility="public" complexity="1" crap="2" count="0"/>
73710
- <line num="344" type="stmt" count="0"/>
73711
- <line num="346" type="stmt" count="0"/>
73712
- <line num="349" type="stmt" count="0"/>
73713
- <line num="350" type="stmt" count="0"/>
73714
- <line num="351" type="stmt" count="0"/>
73715
- <line num="353" type="stmt" count="0"/>
73716
- <line num="356" type="stmt" count="0"/>
73717
- <line num="357" type="stmt" count="0"/>
73718
- <line num="359" type="stmt" count="0"/>
73719
- <line num="360" type="stmt" count="0"/>
73720
- <line num="362" type="stmt" count="0"/>
73721
- <line num="365" type="stmt" count="0"/>
73722
- <line num="366" type="stmt" count="0"/>
73723
- <line num="367" type="stmt" count="0"/>
73724
- <line num="368" type="stmt" count="0"/>
73725
- <line num="370" type="stmt" count="0"/>
73726
- <line num="371" type="stmt" count="0"/>
73727
- <line num="378" type="method" name="testGetPrompt" visibility="public" complexity="1" crap="2" count="0"/>
73728
- <line num="379" type="stmt" count="0"/>
73729
- <line num="381" type="stmt" count="0"/>
73730
- <line num="383" type="stmt" count="0"/>
73731
- <line num="384" type="stmt" count="0"/>
73732
- <line num="391" type="method" name="testGetPrompts" visibility="public" complexity="1" crap="2" count="0"/>
73733
- <line num="392" type="stmt" count="0"/>
73734
- <line num="394" type="stmt" count="0"/>
73735
- <line num="396" type="stmt" count="0"/>
73736
- <line num="397" type="stmt" count="0"/>
73737
- <line num="404" type="method" name="testIsPluginDismissed" visibility="public" complexity="1" crap="2" count="0"/>
73738
- <line num="406" type="stmt" count="0"/>
73739
- <line num="408" type="stmt" count="0"/>
73740
- <line num="411" type="stmt" count="0"/>
73741
- <line num="412" type="stmt" count="0"/>
73742
- <line num="413" type="stmt" count="0"/>
73743
- <line num="414" type="stmt" count="0"/>
73744
- <line num="416" type="stmt" count="0"/>
73745
- <line num="419" type="stmt" count="0"/>
73746
- <line num="420" type="stmt" count="0"/>
73747
- <line num="421" type="stmt" count="0"/>
73748
- <line num="422" type="stmt" count="0"/>
73749
- <line num="424" type="stmt" count="0"/>
73750
- <line num="425" type="stmt" count="0"/>
73751
- <line num="432" type="method" name="testIsPrompt" visibility="public" complexity="1" crap="2" count="0"/>
73752
- <line num="433" type="stmt" count="0"/>
73753
- <line num="435" type="stmt" count="0"/>
73754
- <line num="437" type="stmt" count="0"/>
73755
- <line num="438" type="stmt" count="0"/>
73756
- <line num="445" type="method" name="testGetPluginPrompts" visibility="public" complexity="1" crap="2" count="0"/>
73757
- <line num="446" type="stmt" count="0"/>
73758
- <line num="448" type="stmt" count="0"/>
73759
- <line num="450" type="stmt" count="0"/>
73760
- <line num="451" type="stmt" count="0"/>
73761
- <line num="452" type="stmt" count="0"/>
73762
- <line num="454" type="stmt" count="0"/>
73763
- <line num="455" type="stmt" count="0"/>
73764
- <line num="456" type="stmt" count="0"/>
73765
- <line num="465" type="method" name="testGetNext" visibility="public" complexity="1" crap="2" count="0"/>
73766
- <line num="467" type="stmt" count="0"/>
73767
- <line num="469" type="stmt" count="0"/>
73768
- <line num="470" type="stmt" count="0"/>
73769
- <line num="473" type="stmt" count="0"/>
73770
- <line num="474" type="stmt" count="0"/>
73771
- <line num="475" type="stmt" count="0"/>
73772
- <line num="476" type="stmt" count="0"/>
73773
- <line num="477" type="stmt" count="0"/>
73774
- <line num="478" type="stmt" count="0"/>
73775
- <line num="480" type="stmt" count="0"/>
73776
- <line num="481" type="stmt" count="0"/>
73777
- <line num="484" type="stmt" count="0"/>
73778
- <line num="485" type="stmt" count="0"/>
73779
- <line num="486" type="stmt" count="0"/>
73780
- <line num="487" type="stmt" count="0"/>
73781
- <line num="488" type="stmt" count="0"/>
73782
- <line num="489" type="stmt" count="0"/>
73783
- <line num="490" type="stmt" count="0"/>
73784
- <line num="491" type="stmt" count="0"/>
73785
- <line num="493" type="stmt" count="0"/>
73786
- <line num="494" type="stmt" count="0"/>
73787
- <line num="495" type="stmt" count="0"/>
73788
- <line num="504" type="method" name="testUpdatePrompt" visibility="public" complexity="1" crap="2" count="0"/>
73789
- <line num="505" type="stmt" count="0"/>
73790
- <line num="507" type="stmt" count="0"/>
73791
- <line num="510" type="stmt" count="0"/>
73792
- <line num="511" type="stmt" count="0"/>
73793
- <line num="512" type="stmt" count="0"/>
73794
- <line num="515" type="stmt" count="0"/>
73795
- <line num="516" type="stmt" count="0"/>
73796
- <line num="517" type="stmt" count="0"/>
73797
- <line num="526" type="method" name="testSavePrompts" visibility="public" complexity="1" crap="2" count="0"/>
73798
- <line num="527" type="stmt" count="0"/>
73799
- <line num="529" type="stmt" count="0"/>
73800
- <line num="531" type="stmt" count="0"/>
73801
- <line num="533" type="stmt" count="0"/>
73802
- <line num="535" type="stmt" count="0"/>
73803
- <line num="536" type="stmt" count="0"/>
73804
- <line num="545" type="method" name="testUpdatePromptKey" visibility="public" complexity="1" crap="2" count="0"/>
73805
- <line num="546" type="stmt" count="0"/>
73806
- <line num="548" type="stmt" count="0"/>
73807
- <line num="549" type="stmt" count="0"/>
73808
- <line num="550" type="stmt" count="0"/>
73809
- <line num="552" type="stmt" count="0"/>
73810
- <line num="554" type="stmt" count="0"/>
73811
- <line num="556" type="stmt" count="0"/>
73812
- <line num="557" type="stmt" count="0"/>
73813
- <metrics loc="558" ncloc="327" classes="1" methods="20" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="246" coveredstatements="0" elements="266" coveredelements="0"/>
73814
- </file>
73815
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Plugin/test-notice.php">
73816
- <class name="Test_BoldGrid_Library_Library_Plugin_Notice" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Plugin">
73817
- <metrics complexity="19" methods="16" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="244" coveredstatements="0" elements="260" coveredelements="0"/>
73818
- </class>
73819
- <line num="43" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
73820
- <line num="45" type="stmt" count="0"/>
73821
- <line num="46" type="stmt" count="0"/>
73822
- <line num="47" type="stmt" count="0"/>
73823
- <line num="48" type="stmt" count="0"/>
73824
- <line num="49" type="stmt" count="0"/>
73825
- <line num="50" type="stmt" count="0"/>
73826
- <line num="52" type="stmt" count="0"/>
73827
- <line num="53" type="stmt" count="0"/>
73828
- <line num="65" type="method" name="set_settings_versions" visibility="public" complexity="1" crap="2" count="0"/>
73829
- <line num="66" type="stmt" count="0"/>
73830
- <line num="67" type="stmt" count="0"/>
73831
- <line num="68" type="stmt" count="0"/>
73832
- <line num="69" type="stmt" count="0"/>
73833
- <line num="70" type="stmt" count="0"/>
73834
- <line num="71" type="stmt" count="0"/>
73835
- <line num="72" type="stmt" count="0"/>
73836
- <line num="86" type="method" name="getPluginConfig" visibility="public" complexity="3" crap="12" count="0"/>
73837
- <line num="87" type="stmt" count="0"/>
73838
- <line num="88" type="stmt" count="0"/>
73839
- <line num="89" type="stmt" count="0"/>
73840
- <line num="90" type="stmt" count="0"/>
73841
- <line num="91" type="stmt" count="0"/>
73842
- <line num="92" type="stmt" count="0"/>
73843
- <line num="93" type="stmt" count="0"/>
73844
- <line num="94" type="stmt" count="0"/>
73845
- <line num="95" type="stmt" count="0"/>
73846
- <line num="96" type="stmt" count="0"/>
73847
- <line num="97" type="stmt" count="0"/>
73848
- <line num="98" type="stmt" count="0"/>
73849
- <line num="99" type="stmt" count="0"/>
73850
- <line num="100" type="stmt" count="0"/>
73851
- <line num="101" type="stmt" count="0"/>
73852
- <line num="102" type="stmt" count="0"/>
73853
- <line num="103" type="stmt" count="0"/>
73854
- <line num="104" type="stmt" count="0"/>
73855
- <line num="105" type="stmt" count="0"/>
73856
- <line num="106" type="stmt" count="0"/>
73857
- <line num="107" type="stmt" count="0"/>
73858
- <line num="108" type="stmt" count="0"/>
73859
- <line num="109" type="stmt" count="0"/>
73860
- <line num="110" type="stmt" count="0"/>
73861
- <line num="111" type="stmt" count="0"/>
73862
- <line num="112" type="stmt" count="0"/>
73863
- <line num="113" type="stmt" count="0"/>
73864
- <line num="114" type="stmt" count="0"/>
73865
- <line num="115" type="stmt" count="0"/>
73866
- <line num="116" type="stmt" count="0"/>
73867
- <line num="117" type="stmt" count="0"/>
73868
- <line num="124" type="method" name="getFirstVersion" visibility="public" complexity="1" crap="2" count="0"/>
73869
- <line num="126" type="stmt" count="0"/>
73870
- <line num="127" type="stmt" count="0"/>
73871
- <line num="128" type="stmt" count="0"/>
73872
- <line num="129" type="stmt" count="0"/>
73873
- <line num="132" type="stmt" count="0"/>
73874
- <line num="133" type="stmt" count="0"/>
73875
- <line num="134" type="stmt" count="0"/>
73876
- <line num="135" type="stmt" count="0"/>
73877
- <line num="136" type="stmt" count="0"/>
73878
- <line num="137" type="stmt" count="0"/>
73879
- <line num="138" type="stmt" count="0"/>
73880
- <line num="139" type="stmt" count="0"/>
73881
- <line num="140" type="stmt" count="0"/>
73882
- <line num="141" type="stmt" count="0"/>
73883
- <line num="142" type="stmt" count="0"/>
73884
- <line num="143" type="stmt" count="0"/>
73885
- <line num="150" type="method" name="getPluginsChecked" visibility="public" complexity="1" crap="2" count="0"/>
73886
- <line num="152" type="stmt" count="0"/>
73887
- <line num="153" type="stmt" count="0"/>
73888
- <line num="154" type="stmt" count="0"/>
73889
- <line num="155" type="stmt" count="0"/>
73890
- <line num="158" type="stmt" count="0"/>
73891
- <line num="161" type="stmt" count="0"/>
73892
- <line num="162" type="stmt" count="0"/>
73893
- <line num="163" type="stmt" count="0"/>
73894
- <line num="164" type="stmt" count="0"/>
73895
- <line num="165" type="stmt" count="0"/>
73896
- <line num="168" type="stmt" count="0"/>
73897
- <line num="169" type="stmt" count="0"/>
73898
- <line num="170" type="stmt" count="0"/>
73899
- <line num="171" type="stmt" count="0"/>
73900
- <line num="172" type="stmt" count="0"/>
73901
- <line num="173" type="stmt" count="0"/>
73902
- <line num="174" type="stmt" count="0"/>
73903
- <line num="175" type="stmt" count="0"/>
73904
- <line num="176" type="stmt" count="0"/>
73905
- <line num="177" type="stmt" count="0"/>
73906
- <line num="178" type="stmt" count="0"/>
73907
- <line num="179" type="stmt" count="0"/>
73908
- <line num="186" type="method" name="makeFakePlugin" visibility="public" complexity="2" crap="6" count="0"/>
73909
- <line num="187" type="stmt" count="0"/>
73910
- <line num="190" type="stmt" count="0"/>
73911
- <line num="191" type="stmt" count="0"/>
73912
- <line num="192" type="stmt" count="0"/>
73913
- <line num="193" type="stmt" count="0"/>
73914
- <line num="196" type="stmt" count="0"/>
73915
- <line num="197" type="stmt" count="0"/>
73916
- <line num="198" type="stmt" count="0"/>
73917
- <line num="199" type="stmt" count="0"/>
73918
- <line num="200" type="stmt" count="0"/>
73919
- <line num="201" type="stmt" count="0"/>
73920
- <line num="202" type="stmt" count="0"/>
73921
- <line num="203" type="stmt" count="0"/>
73922
- <line num="204" type="stmt" count="0"/>
73923
- <line num="205" type="stmt" count="0"/>
73924
- <line num="206" type="stmt" count="0"/>
73925
- <line num="207" type="stmt" count="0"/>
73926
- <line num="208" type="stmt" count="0"/>
73927
- <line num="209" type="stmt" count="0"/>
73928
- <line num="210" type="stmt" count="0"/>
73929
- <line num="211" type="stmt" count="0"/>
73930
- <line num="212" type="stmt" count="0"/>
73931
- <line num="213" type="stmt" count="0"/>
73932
- <line num="214" type="stmt" count="0"/>
73933
- <line num="215" type="stmt" count="0"/>
73934
- <line num="216" type="stmt" count="0"/>
73935
- <line num="217" type="stmt" count="0"/>
73936
- <line num="218" type="stmt" count="0"/>
73937
  <line num="220" type="stmt" count="0"/>
73938
  <line num="221" type="stmt" count="0"/>
73939
  <line num="222" type="stmt" count="0"/>
73940
  <line num="223" type="stmt" count="0"/>
73941
  <line num="224" type="stmt" count="0"/>
73942
- <line num="225" type="stmt" count="0"/>
73943
- <line num="226" type="stmt" count="0"/>
73944
- <line num="227" type="stmt" count="0"/>
73945
- <line num="228" type="stmt" count="0"/>
73946
- <line num="229" type="stmt" count="0"/>
73947
- <line num="230" type="stmt" count="0"/>
73948
- <line num="231" type="stmt" count="0"/>
73949
  <line num="233" type="stmt" count="0"/>
 
 
73950
  <line num="236" type="stmt" count="0"/>
73951
  <line num="237" type="stmt" count="0"/>
73952
- <line num="238" type="stmt" count="0"/>
73953
- <line num="239" type="stmt" count="0"/>
73954
- <line num="240" type="stmt" count="0"/>
73955
- <line num="241" type="stmt" count="0"/>
73956
- <line num="242" type="stmt" count="0"/>
73957
- <line num="243" type="stmt" count="0"/>
73958
- <line num="250" type="method" name="testSetIsUnread" visibility="public" complexity="1" crap="2" count="0"/>
73959
- <line num="252" type="stmt" count="0"/>
73960
- <line num="253" type="stmt" count="0"/>
73961
- <line num="254" type="stmt" count="0"/>
73962
- <line num="255" type="stmt" count="0"/>
73963
- <line num="256" type="stmt" count="0"/>
73964
- <line num="257" type="stmt" count="0"/>
73965
- <line num="258" type="stmt" count="0"/>
73966
- <line num="259" type="stmt" count="0"/>
73967
  <line num="262" type="stmt" count="0"/>
 
73968
  <line num="265" type="stmt" count="0"/>
73969
  <line num="266" type="stmt" count="0"/>
73970
- <line num="269" type="stmt" count="0"/>
 
73971
  <line num="270" type="stmt" count="0"/>
73972
  <line num="271" type="stmt" count="0"/>
73973
- <line num="274" type="method" name="testSetNoticeId" visibility="public" complexity="1" crap="2" count="0"/>
73974
- <line num="275" type="stmt" count="0"/>
73975
  <line num="276" type="stmt" count="0"/>
 
73976
  <line num="278" type="stmt" count="0"/>
73977
  <line num="279" type="stmt" count="0"/>
73978
  <line num="280" type="stmt" count="0"/>
73979
- <line num="281" type="stmt" count="0"/>
73980
  <line num="282" type="stmt" count="0"/>
73981
- <line num="285" type="method" name="testSetPageSlug" visibility="public" complexity="1" crap="2" count="0"/>
73982
- <line num="286" type="stmt" count="0"/>
73983
- <line num="287" type="stmt" count="0"/>
73984
- <line num="288" type="stmt" count="0"/>
73985
- <line num="289" type="stmt" count="0"/>
73986
- <line num="290" type="stmt" count="0"/>
73987
- <line num="291" type="stmt" count="0"/>
73988
- <line num="292" type="stmt" count="0"/>
73989
- <line num="295" type="method" name="testSetNoticeVersion" visibility="public" complexity="1" crap="2" count="0"/>
73990
- <line num="296" type="stmt" count="0"/>
73991
  <line num="297" type="stmt" count="0"/>
73992
  <line num="299" type="stmt" count="0"/>
73993
- <line num="300" type="stmt" count="0"/>
73994
- <line num="301" type="stmt" count="0"/>
73995
  <line num="302" type="stmt" count="0"/>
73996
  <line num="303" type="stmt" count="0"/>
73997
- <line num="306" type="method" name="testNoticeIfFirstInstall" visibility="public" complexity="1" crap="2" count="0"/>
73998
- <line num="307" type="stmt" count="0"/>
73999
- <line num="308" type="stmt" count="0"/>
74000
  <line num="309" type="stmt" count="0"/>
74001
  <line num="310" type="stmt" count="0"/>
74002
- <line num="311" type="stmt" count="0"/>
74003
  <line num="312" type="stmt" count="0"/>
74004
- <line num="319" type="method" name="testAlreadyExists" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
74005
  <line num="321" type="stmt" count="0"/>
74006
- <line num="322" type="stmt" count="0"/>
74007
  <line num="323" type="stmt" count="0"/>
74008
  <line num="324" type="stmt" count="0"/>
74009
- <line num="325" type="stmt" count="0"/>
74010
- <line num="326" type="stmt" count="0"/>
74011
- <line num="327" type="stmt" count="0"/>
74012
- <line num="328" type="stmt" count="0"/>
74013
- <line num="331" type="stmt" count="0"/>
74014
  <line num="334" type="stmt" count="0"/>
74015
- <line num="335" type="stmt" count="0"/>
74016
  <line num="336" type="stmt" count="0"/>
74017
- <line num="339" type="method" name="testGetPlugin" visibility="public" complexity="1" crap="2" count="0"/>
74018
- <line num="340" type="stmt" count="0"/>
74019
- <line num="341" type="stmt" count="0"/>
74020
- <line num="342" type="stmt" count="0"/>
74021
- <line num="349" type="method" name="testMaybeShow" visibility="public" complexity="1" crap="2" count="0"/>
 
 
74022
  <line num="359" type="stmt" count="0"/>
74023
- <line num="360" type="stmt" count="0"/>
74024
  <line num="361" type="stmt" count="0"/>
74025
- <line num="362" type="stmt" count="0"/>
74026
- <line num="363" type="stmt" count="0"/>
74027
  <line num="364" type="stmt" count="0"/>
74028
  <line num="365" type="stmt" count="0"/>
74029
  <line num="366" type="stmt" count="0"/>
74030
  <line num="367" type="stmt" count="0"/>
 
 
 
 
 
 
74031
  <line num="378" type="stmt" count="0"/>
74032
- <line num="379" type="stmt" count="0"/>
74033
- <line num="380" type="stmt" count="0"/>
74034
- <line num="381" type="stmt" count="0"/>
74035
- <line num="382" type="stmt" count="0"/>
74036
- <line num="383" type="stmt" count="0"/>
74037
- <line num="384" type="stmt" count="0"/>
74038
- <line num="385" type="stmt" count="0"/>
74039
  <line num="386" type="stmt" count="0"/>
74040
- <line num="397" type="stmt" count="0"/>
74041
- <line num="398" type="stmt" count="0"/>
 
 
74042
  <line num="399" type="stmt" count="0"/>
74043
- <line num="400" type="stmt" count="0"/>
74044
  <line num="401" type="stmt" count="0"/>
74045
- <line num="402" type="stmt" count="0"/>
74046
- <line num="403" type="stmt" count="0"/>
74047
- <line num="404" type="stmt" count="0"/>
74048
- <line num="405" type="stmt" count="0"/>
74049
- <line num="416" type="stmt" count="0"/>
74050
- <line num="417" type="stmt" count="0"/>
74051
- <line num="418" type="stmt" count="0"/>
74052
- <line num="419" type="stmt" count="0"/>
74053
  <line num="420" type="stmt" count="0"/>
74054
- <line num="421" type="stmt" count="0"/>
74055
  <line num="422" type="stmt" count="0"/>
74056
  <line num="423" type="stmt" count="0"/>
74057
- <line num="424" type="stmt" count="0"/>
74058
- <line num="425" type="stmt" count="0"/>
74059
- <line num="428" type="method" name="testNoticeVersionChanged" visibility="public" complexity="1" crap="2" count="0"/>
74060
  <line num="429" type="stmt" count="0"/>
74061
  <line num="430" type="stmt" count="0"/>
74062
  <line num="431" type="stmt" count="0"/>
74063
- <line num="432" type="stmt" count="0"/>
74064
  <line num="433" type="stmt" count="0"/>
74065
  <line num="434" type="stmt" count="0"/>
74066
- <line num="435" type="stmt" count="0"/>
74067
  <line num="437" type="stmt" count="0"/>
 
74068
  <line num="439" type="stmt" count="0"/>
74069
  <line num="440" type="stmt" count="0"/>
74070
  <line num="441" type="stmt" count="0"/>
 
74071
  <line num="443" type="stmt" count="0"/>
74072
  <line num="444" type="stmt" count="0"/>
74073
- <line num="447" type="method" name="testSetPlugin" visibility="public" complexity="1" crap="2" count="0"/>
 
74074
  <line num="448" type="stmt" count="0"/>
74075
- <line num="449" type="stmt" count="0"/>
74076
- <line num="450" type="stmt" count="0"/>
74077
- <line num="451" type="stmt" count="0"/>
74078
- <line num="452" type="stmt" count="0"/>
74079
- <metrics loc="453" ncloc="294" classes="1" methods="16" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="244" coveredstatements="0" elements="260" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74080
  </file>
74081
- <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Plugin/test-page.php">
74082
- <class name="Test_BoldGrid_Library_Library_Plugin_Page" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Plugin">
74083
- <metrics complexity="21" methods="12" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="125" coveredstatements="0" elements="137" coveredelements="0"/>
74084
  </class>
74085
- <line num="40" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
 
 
74086
  <line num="42" type="stmt" count="0"/>
74087
  <line num="43" type="stmt" count="0"/>
74088
- <line num="44" type="stmt" count="0"/>
74089
  <line num="45" type="stmt" count="0"/>
74090
  <line num="46" type="stmt" count="0"/>
74091
- <line num="47" type="stmt" count="0"/>
74092
- <line num="49" type="method" name="getPluginConfig" visibility="public" complexity="3" crap="12" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74093
  <line num="50" type="stmt" count="0"/>
74094
  <line num="51" type="stmt" count="0"/>
74095
- <line num="52" type="stmt" count="0"/>
74096
  <line num="53" type="stmt" count="0"/>
74097
  <line num="54" type="stmt" count="0"/>
74098
  <line num="55" type="stmt" count="0"/>
74099
  <line num="56" type="stmt" count="0"/>
74100
  <line num="57" type="stmt" count="0"/>
74101
  <line num="58" type="stmt" count="0"/>
74102
- <line num="59" type="stmt" count="0"/>
74103
- <line num="60" type="stmt" count="0"/>
74104
- <line num="61" type="stmt" count="0"/>
74105
- <line num="62" type="stmt" count="0"/>
74106
- <line num="63" type="stmt" count="0"/>
74107
- <line num="64" type="stmt" count="0"/>
74108
- <line num="65" type="stmt" count="0"/>
74109
  <line num="66" type="stmt" count="0"/>
74110
  <line num="67" type="stmt" count="0"/>
74111
- <line num="68" type="stmt" count="0"/>
74112
  <line num="69" type="stmt" count="0"/>
74113
  <line num="70" type="stmt" count="0"/>
74114
  <line num="71" type="stmt" count="0"/>
74115
- <line num="72" type="stmt" count="0"/>
74116
- <line num="73" type="stmt" count="0"/>
74117
- <line num="74" type="stmt" count="0"/>
74118
- <line num="75" type="stmt" count="0"/>
74119
- <line num="76" type="stmt" count="0"/>
74120
- <line num="77" type="stmt" count="0"/>
74121
- <line num="78" type="stmt" count="0"/>
74122
  <line num="79" type="stmt" count="0"/>
74123
  <line num="80" type="stmt" count="0"/>
74124
- <line num="87" type="method" name="getFirstVersion" visibility="public" complexity="1" crap="2" count="0"/>
74125
- <line num="89" type="stmt" count="0"/>
74126
- <line num="90" type="stmt" count="0"/>
74127
- <line num="91" type="stmt" count="0"/>
74128
  <line num="92" type="stmt" count="0"/>
 
74129
  <line num="95" type="stmt" count="0"/>
74130
  <line num="96" type="stmt" count="0"/>
74131
  <line num="97" type="stmt" count="0"/>
74132
  <line num="98" type="stmt" count="0"/>
74133
- <line num="99" type="stmt" count="0"/>
74134
- <line num="100" type="stmt" count="0"/>
74135
- <line num="101" type="stmt" count="0"/>
74136
- <line num="102" type="stmt" count="0"/>
74137
- <line num="103" type="stmt" count="0"/>
74138
- <line num="104" type="stmt" count="0"/>
74139
- <line num="105" type="stmt" count="0"/>
74140
  <line num="106" type="stmt" count="0"/>
74141
- <line num="113" type="method" name="getPluginsChecked" visibility="public" complexity="1" crap="2" count="0"/>
74142
- <line num="115" type="stmt" count="0"/>
74143
- <line num="116" type="stmt" count="0"/>
74144
- <line num="117" type="stmt" count="0"/>
74145
- <line num="118" type="stmt" count="0"/>
74146
- <line num="121" type="stmt" count="0"/>
 
 
 
74147
  <line num="124" type="stmt" count="0"/>
74148
  <line num="125" type="stmt" count="0"/>
74149
- <line num="126" type="stmt" count="0"/>
74150
- <line num="127" type="stmt" count="0"/>
74151
- <line num="128" type="stmt" count="0"/>
74152
- <line num="131" type="stmt" count="0"/>
74153
- <line num="132" type="stmt" count="0"/>
74154
  <line num="133" type="stmt" count="0"/>
74155
  <line num="134" type="stmt" count="0"/>
74156
- <line num="135" type="stmt" count="0"/>
74157
  <line num="136" type="stmt" count="0"/>
74158
  <line num="137" type="stmt" count="0"/>
74159
- <line num="138" type="stmt" count="0"/>
74160
- <line num="139" type="stmt" count="0"/>
74161
- <line num="140" type="stmt" count="0"/>
74162
- <line num="141" type="stmt" count="0"/>
74163
- <line num="142" type="stmt" count="0"/>
74164
- <line num="144" type="method" name="testGetNoticeById" visibility="public" complexity="1" crap="2" count="0"/>
74165
  <line num="145" type="stmt" count="0"/>
74166
  <line num="146" type="stmt" count="0"/>
74167
- <line num="147" type="stmt" count="0"/>
74168
- <line num="150" type="method" name="testGetNotices" visibility="public" complexity="4" crap="20" count="0"/>
74169
  <line num="151" type="stmt" count="0"/>
74170
  <line num="152" type="stmt" count="0"/>
74171
  <line num="153" type="stmt" count="0"/>
@@ -74173,201 +75513,222 @@
74173
  <line num="155" type="stmt" count="0"/>
74174
  <line num="156" type="stmt" count="0"/>
74175
  <line num="157" type="stmt" count="0"/>
74176
- <line num="158" type="stmt" count="0"/>
74177
  <line num="159" type="stmt" count="0"/>
74178
  <line num="160" type="stmt" count="0"/>
74179
  <line num="161" type="stmt" count="0"/>
74180
- <line num="162" type="stmt" count="0"/>
74181
- <line num="163" type="stmt" count="0"/>
74182
- <line num="164" type="stmt" count="0"/>
74183
- <line num="165" type="stmt" count="0"/>
74184
- <line num="168" type="method" name="testGetPlugin" visibility="public" complexity="1" crap="2" count="0"/>
74185
  <line num="169" type="stmt" count="0"/>
74186
  <line num="170" type="stmt" count="0"/>
74187
- <line num="173" type="method" name="testGetPluginConfig" visibility="public" complexity="1" crap="2" count="0"/>
74188
  <line num="174" type="stmt" count="0"/>
74189
  <line num="175" type="stmt" count="0"/>
74190
- <line num="178" type="method" name="testGetUnreadCount" visibility="public" complexity="3" crap="12" count="0"/>
74191
- <line num="179" type="stmt" count="0"/>
74192
- <line num="180" type="stmt" count="0"/>
74193
- <line num="181" type="stmt" count="0"/>
74194
- <line num="182" type="stmt" count="0"/>
74195
  <line num="183" type="stmt" count="0"/>
74196
  <line num="184" type="stmt" count="0"/>
74197
  <line num="185" type="stmt" count="0"/>
74198
  <line num="186" type="stmt" count="0"/>
74199
  <line num="187" type="stmt" count="0"/>
74200
- <line num="189" type="method" name="testGetUnreadCountMarkup" visibility="public" complexity="3" crap="12" count="0"/>
74201
- <line num="190" type="stmt" count="0"/>
 
74202
  <line num="192" type="stmt" count="0"/>
74203
  <line num="193" type="stmt" count="0"/>
74204
  <line num="194" type="stmt" count="0"/>
74205
  <line num="195" type="stmt" count="0"/>
74206
  <line num="196" type="stmt" count="0"/>
74207
  <line num="198" type="stmt" count="0"/>
74208
- <line num="200" type="stmt" count="0"/>
74209
- <line num="201" type="stmt" count="0"/>
74210
- <line num="202" type="stmt" count="0"/>
74211
- <line num="205" type="method" name="testSetAllNoticesRead" visibility="public" complexity="1" crap="2" count="0"/>
74212
- <line num="206" type="stmt" count="0"/>
74213
  <line num="208" type="stmt" count="0"/>
74214
- <line num="209" type="stmt" count="0"/>
74215
  <line num="210" type="stmt" count="0"/>
74216
  <line num="211" type="stmt" count="0"/>
74217
- <line num="212" type="stmt" count="0"/>
74218
- <line num="214" type="method" name="testGetNonExistNotice" visibility="public" complexity="1" crap="2" count="0"/>
74219
- <line num="215" type="stmt" count="0"/>
74220
- <line num="216" type="stmt" count="0"/>
74221
- <line num="217" type="stmt" count="0"/>
74222
- <metrics loc="218" ncloc="160" classes="1" methods="12" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="125" coveredstatements="0" elements="137" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74223
  </file>
74224
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Plugin/test-plugin.php">
74225
  <class name="Test_BoldGrid_Library_Library_Plugin_Plugin" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Plugin">
74226
- <metrics complexity="17" methods="13" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="145" coveredstatements="0" elements="158" coveredelements="0"/>
74227
  </class>
74228
- <line num="41" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74229
  <line num="43" type="stmt" count="0"/>
 
74230
  <line num="45" type="stmt" count="0"/>
74231
  <line num="46" type="stmt" count="0"/>
74232
  <line num="47" type="stmt" count="0"/>
74233
  <line num="48" type="stmt" count="0"/>
74234
- <line num="49" type="stmt" count="0"/>
74235
- <line num="56" type="method" name="resetConfigs" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
74236
  <line num="57" type="stmt" count="0"/>
 
74237
  <line num="59" type="stmt" count="0"/>
74238
  <line num="60" type="stmt" count="0"/>
74239
- <line num="61" type="stmt" count="0"/>
74240
- <line num="63" type="method" name="getPluginConfig" visibility="public" complexity="3" crap="12" count="0"/>
74241
- <line num="64" type="stmt" count="0"/>
74242
- <line num="65" type="stmt" count="0"/>
74243
- <line num="66" type="stmt" count="0"/>
74244
- <line num="67" type="stmt" count="0"/>
74245
  <line num="68" type="stmt" count="0"/>
74246
  <line num="69" type="stmt" count="0"/>
74247
  <line num="70" type="stmt" count="0"/>
74248
- <line num="71" type="stmt" count="0"/>
74249
- <line num="72" type="stmt" count="0"/>
74250
- <line num="73" type="stmt" count="0"/>
74251
- <line num="74" type="stmt" count="0"/>
74252
- <line num="75" type="stmt" count="0"/>
74253
- <line num="76" type="stmt" count="0"/>
74254
- <line num="77" type="stmt" count="0"/>
74255
  <line num="78" type="stmt" count="0"/>
74256
  <line num="79" type="stmt" count="0"/>
74257
  <line num="80" type="stmt" count="0"/>
74258
- <line num="81" type="stmt" count="0"/>
74259
  <line num="82" type="stmt" count="0"/>
74260
  <line num="83" type="stmt" count="0"/>
74261
- <line num="90" type="method" name="testGetDownloadUrl" visibility="public" complexity="1" crap="2" count="0"/>
74262
  <line num="91" type="stmt" count="0"/>
74263
- <line num="93" type="stmt" count="0"/>
 
74264
  <line num="95" type="stmt" count="0"/>
74265
- <line num="96" type="stmt" count="0"/>
74266
- <line num="103" type="method" name="testFirstVersionCompare" visibility="public" complexity="1" crap="2" count="0"/>
74267
- <line num="105" type="stmt" count="0"/>
74268
  <line num="106" type="stmt" count="0"/>
74269
  <line num="107" type="stmt" count="0"/>
74270
- <line num="108" type="stmt" count="0"/>
74271
- <line num="111" type="stmt" count="0"/>
74272
- <line num="112" type="stmt" count="0"/>
74273
- <line num="113" type="stmt" count="0"/>
74274
- <line num="114" type="stmt" count="0"/>
74275
  <line num="115" type="stmt" count="0"/>
74276
  <line num="116" type="stmt" count="0"/>
74277
- <line num="117" type="stmt" count="0"/>
74278
  <line num="118" type="stmt" count="0"/>
74279
  <line num="119" type="stmt" count="0"/>
74280
- <line num="120" type="stmt" count="0"/>
74281
- <line num="121" type="stmt" count="0"/>
74282
- <line num="122" type="stmt" count="0"/>
74283
- <line num="123" type="stmt" count="0"/>
74284
- <line num="124" type="stmt" count="0"/>
74285
- <line num="131" type="method" name="testGetFirstVersion" visibility="public" complexity="1" crap="2" count="0"/>
74286
- <line num="133" type="stmt" count="0"/>
74287
- <line num="134" type="stmt" count="0"/>
74288
- <line num="135" type="stmt" count="0"/>
74289
- <line num="136" type="stmt" count="0"/>
74290
- <line num="139" type="stmt" count="0"/>
74291
  <line num="140" type="stmt" count="0"/>
74292
  <line num="141" type="stmt" count="0"/>
74293
- <line num="142" type="stmt" count="0"/>
74294
  <line num="143" type="stmt" count="0"/>
74295
  <line num="144" type="stmt" count="0"/>
74296
- <line num="145" type="stmt" count="0"/>
74297
- <line num="146" type="stmt" count="0"/>
74298
- <line num="147" type="stmt" count="0"/>
74299
- <line num="148" type="stmt" count="0"/>
74300
- <line num="149" type="stmt" count="0"/>
74301
- <line num="150" type="stmt" count="0"/>
74302
- <line num="157" type="method" name="testGetPluginsChecked" visibility="public" complexity="1" crap="2" count="0"/>
74303
- <line num="159" type="stmt" count="0"/>
74304
- <line num="160" type="stmt" count="0"/>
74305
- <line num="161" type="stmt" count="0"/>
74306
- <line num="162" type="stmt" count="0"/>
74307
  <line num="165" type="stmt" count="0"/>
74308
- <line num="166" type="stmt" count="0"/>
74309
- <line num="169" type="stmt" count="0"/>
74310
- <line num="170" type="stmt" count="0"/>
74311
- <line num="171" type="stmt" count="0"/>
74312
- <line num="172" type="stmt" count="0"/>
74313
- <line num="173" type="stmt" count="0"/>
74314
  <line num="176" type="stmt" count="0"/>
74315
  <line num="177" type="stmt" count="0"/>
74316
  <line num="178" type="stmt" count="0"/>
74317
- <line num="179" type="stmt" count="0"/>
74318
  <line num="180" type="stmt" count="0"/>
74319
  <line num="181" type="stmt" count="0"/>
74320
- <line num="182" type="stmt" count="0"/>
74321
- <line num="183" type="stmt" count="0"/>
74322
- <line num="184" type="stmt" count="0"/>
74323
- <line num="185" type="stmt" count="0"/>
74324
- <line num="186" type="stmt" count="0"/>
74325
- <line num="187" type="stmt" count="0"/>
74326
- <line num="189" type="method" name="testGetSetPages" visibility="public" complexity="1" crap="2" count="0"/>
74327
  <line num="190" type="stmt" count="0"/>
74328
- <line num="191" type="stmt" count="0"/>
74329
  <line num="192" type="stmt" count="0"/>
74330
- <line num="194" type="method" name="testGetUnreadCount" visibility="public" complexity="1" crap="2" count="0"/>
74331
- <line num="195" type="stmt" count="0"/>
74332
- <line num="197" type="stmt" count="0"/>
74333
- <line num="198" type="stmt" count="0"/>
74334
- <line num="199" type="stmt" count="0"/>
74335
- <line num="201" type="method" name="testGetUnreadMarkup" visibility="public" complexity="1" crap="2" count="0"/>
74336
  <line num="202" type="stmt" count="0"/>
74337
  <line num="204" type="stmt" count="0"/>
74338
  <line num="205" type="stmt" count="0"/>
74339
  <line num="206" type="stmt" count="0"/>
74340
- <line num="208" type="method" name="testNoNoticesMarkup" visibility="public" complexity="1" crap="2" count="0"/>
74341
- <line num="209" type="stmt" count="0"/>
74342
- <line num="211" type="stmt" count="0"/>
74343
- <line num="212" type="stmt" count="0"/>
74344
- <line num="213" type="stmt" count="0"/>
74345
- <line num="214" type="stmt" count="0"/>
74346
  <line num="215" type="stmt" count="0"/>
74347
- <line num="217" type="method" name="testTwoPagesWithNotices" visibility="public" complexity="1" crap="2" count="0"/>
74348
  <line num="218" type="stmt" count="0"/>
74349
- <line num="219" type="stmt" count="0"/>
74350
  <line num="220" type="stmt" count="0"/>
74351
- <line num="221" type="stmt" count="0"/>
74352
  <line num="222" type="stmt" count="0"/>
74353
  <line num="223" type="stmt" count="0"/>
74354
- <line num="224" type="stmt" count="0"/>
74355
- <line num="225" type="stmt" count="0"/>
74356
- <line num="226" type="stmt" count="0"/>
74357
- <line num="227" type="stmt" count="0"/>
74358
- <line num="229" type="stmt" count="0"/>
74359
- <line num="230" type="stmt" count="0"/>
74360
  <line num="231" type="stmt" count="0"/>
74361
  <line num="232" type="stmt" count="0"/>
74362
- <line num="233" type="stmt" count="0"/>
74363
- <line num="235" type="method" name="testGetPageBySlug" visibility="public" complexity="3" crap="12" count="0"/>
74364
- <line num="236" type="stmt" count="0"/>
74365
- <line num="237" type="stmt" count="0"/>
74366
- <line num="238" type="stmt" count="0"/>
74367
- <line num="239" type="stmt" count="0"/>
74368
- <line num="240" type="stmt" count="0"/>
74369
- <line num="241" type="stmt" count="0"/>
74370
- <line num="242" type="stmt" count="0"/>
74371
  <line num="243" type="stmt" count="0"/>
74372
  <line num="244" type="stmt" count="0"/>
74373
  <line num="245" type="stmt" count="0"/>
@@ -74375,15 +75736,169 @@
74375
  <line num="248" type="stmt" count="0"/>
74376
  <line num="249" type="stmt" count="0"/>
74377
  <line num="250" type="stmt" count="0"/>
74378
- <line num="251" type="stmt" count="0"/>
74379
- <line num="252" type="stmt" count="0"/>
74380
- <line num="253" type="stmt" count="0"/>
74381
- <line num="254" type="stmt" count="0"/>
74382
- <line num="255" type="stmt" count="0"/>
74383
- <line num="256" type="stmt" count="0"/>
74384
- <line num="258" type="stmt" count="0"/>
74385
- <line num="259" type="stmt" count="0"/>
74386
- <metrics loc="260" ncloc="193" classes="1" methods="13" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="145" coveredstatements="0" elements="158" coveredelements="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74387
  </file>
74388
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Util/test-plugin.php">
74389
  <class name="Test_BoldGrid_Library_Util_Plugin" namespace="global" fullPackage="Test.BoldGrid.Library.Util">
@@ -74449,8 +75964,14 @@
74449
  <line num="38" type="stmt" count="0"/>
74450
  <line num="39" type="stmt" count="0"/>
74451
  <line num="40" type="stmt" count="0"/>
 
74452
  <line num="42" type="stmt" count="0"/>
74453
- <metrics loc="43" ncloc="32" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="28" coveredstatements="0" elements="28" coveredelements="0"/>
 
 
 
 
 
74454
  </file>
74455
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/test-reseller.php">
74456
  <class name="Test_BoldGrid_Libarary_Reseller" namespace="global" fullPackage="Test.BoldGrid.Libarary">
@@ -75149,7 +76670,7 @@
75149
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
75150
  </file>
75151
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
75152
- <class name="ComposerStaticInit003a36ea3ce708618a9d533403417f74" namespace="Composer\Autoload">
75153
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
75154
  </class>
75155
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -75241,7 +76762,7 @@
75241
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
75242
  </file>
75243
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
75244
- <class name="ComposerAutoloaderInit003a36ea3ce708618a9d533403417f74" namespace="global">
75245
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
75246
  </class>
75247
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -94460,6 +95981,6 @@
94460
  <line num="16" type="stmt" count="0"/>
94461
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
94462
  </file>
94463
- <metrics files="944" loc="189393" ncloc="115444" classes="854" methods="3512" coveredmethods="274" conditionals="0" coveredconditionals="0" statements="85141" coveredstatements="3997" elements="88653" coveredelements="4271"/>
94464
  </project>
94465
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1594136465">
3
+ <project timestamp="1594136465">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
7
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
8
  </class>
9
+ <line num="29" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
10
+ <line num="30" type="stmt" count="0"/>
11
+ <line num="32" type="stmt" count="0"/>
12
+ <line num="34" type="stmt" count="0"/>
13
+ <line num="36" type="stmt" count="0"/>
14
+ <line num="37" type="stmt" count="0"/>
15
+ <line num="39" type="stmt" count="0"/>
16
+ <line num="40" type="stmt" count="0"/>
17
+ <line num="42" type="stmt" count="0"/>
18
+ <line num="44" type="stmt" count="0"/>
19
+ <line num="46" type="stmt" count="0"/>
20
+ <line num="47" type="stmt" count="0"/>
21
+ <line num="48" type="stmt" count="0"/>
22
+ <line num="49" type="stmt" count="0"/>
23
+ <line num="50" type="stmt" count="0"/>
24
+ <line num="51" type="stmt" count="0"/>
25
+ <line num="53" type="stmt" count="0"/>
26
+ <line num="54" type="stmt" count="0"/>
27
+ <metrics loc="55" ncloc="32" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
28
  </file>
29
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-backups.php">
30
  <class name="Backups" namespace="Boldgrid\Backup\Admin\Card">
47
  </file>
48
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-database-encryption.php">
49
  <class name="Database_Encryption" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Database">
50
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
51
  </class>
52
+ <line num="29" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
53
+ <line num="30" type="stmt" count="0"/>
54
+ <line num="32" type="stmt" count="0"/>
55
+ <line num="34" type="stmt" count="0"/>
56
+ <line num="36" type="stmt" count="0"/>
57
+ <line num="37" type="stmt" count="0"/>
58
+ <line num="39" type="stmt" count="0"/>
59
+ <line num="40" type="stmt" count="0"/>
60
+ <line num="42" type="stmt" count="0"/>
61
+ <line num="44" type="stmt" count="0"/>
62
+ <line num="46" type="stmt" count="0"/>
63
+ <line num="47" type="stmt" count="0"/>
64
+ <line num="48" type="stmt" count="0"/>
65
+ <line num="49" type="stmt" count="0"/>
66
+ <line num="50" type="stmt" count="0"/>
67
+ <line num="51" type="stmt" count="0"/>
68
+ <line num="53" type="stmt" count="0"/>
69
+ <line num="54" type="stmt" count="0"/>
70
+ <metrics loc="55" ncloc="32" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
71
  </file>
72
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-dream-objects.php">
73
  <class name="Dream_Objects" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Dream">
74
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
75
+ </class>
76
+ <line num="30" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
77
+ <line num="31" type="stmt" count="0"/>
78
+ <line num="33" type="stmt" count="0"/>
79
+ <line num="35" type="stmt" count="0"/>
80
+ <line num="37" type="stmt" count="0"/>
81
+ <line num="38" type="stmt" count="0"/>
82
+ <line num="40" type="stmt" count="0"/>
83
+ <line num="41" type="stmt" count="0"/>
84
+ <line num="43" type="stmt" count="0"/>
85
+ <line num="45" type="stmt" count="0"/>
86
+ <line num="47" type="stmt" count="0"/>
87
+ <line num="48" type="stmt" count="0"/>
88
+ <line num="49" type="stmt" count="0"/>
89
+ <line num="50" type="stmt" count="0"/>
90
+ <line num="51" type="stmt" count="0"/>
91
+ <line num="52" type="stmt" count="0"/>
92
+ <line num="54" type="stmt" count="0"/>
93
+ <line num="55" type="stmt" count="0"/>
94
+ <metrics loc="56" ncloc="32" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
95
  </file>
96
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-find-modified-files.php">
97
  <class name="Find_Modified_Files" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Find.Modified">
98
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="0" elements="15" coveredelements="0"/>
99
  </class>
100
+ <line num="27" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
101
+ <line num="28" type="stmt" count="0"/>
102
+ <line num="30" type="stmt" count="0"/>
103
+ <line num="32" type="stmt" count="0"/>
104
+ <line num="34" type="stmt" count="0"/>
105
+ <line num="36" type="stmt" count="0"/>
106
+ <line num="37" type="stmt" count="0"/>
107
+ <line num="39" type="stmt" count="0"/>
108
+ <line num="40" type="stmt" count="0"/>
109
+ <line num="42" type="stmt" count="0"/>
110
+ <line num="44" type="stmt" count="0"/>
111
+ <line num="45" type="stmt" count="0"/>
112
+ <line num="46" type="stmt" count="0"/>
113
+ <line num="47" type="stmt" count="0"/>
114
+ <line num="48" type="stmt" count="0"/>
115
+ <metrics loc="49" ncloc="28" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="0" elements="15" coveredelements="0"/>
116
  </file>
117
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-google-drive.php">
118
  <class name="Google_Drive" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Google">
119
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
120
+ </class>
121
+ <line num="30" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
122
+ <line num="31" type="stmt" count="0"/>
123
+ <line num="33" type="stmt" count="0"/>
124
+ <line num="35" type="stmt" count="0"/>
125
+ <line num="37" type="stmt" count="0"/>
126
+ <line num="39" type="stmt" count="0"/>
127
+ <line num="40" type="stmt" count="0"/>
128
+ <line num="42" type="stmt" count="0"/>
129
+ <line num="43" type="stmt" count="0"/>
130
+ <line num="45" type="stmt" count="0"/>
131
+ <line num="47" type="stmt" count="0"/>
132
+ <line num="49" type="stmt" count="0"/>
133
+ <line num="50" type="stmt" count="0"/>
134
+ <line num="51" type="stmt" count="0"/>
135
+ <line num="52" type="stmt" count="0"/>
136
+ <line num="53" type="stmt" count="0"/>
137
+ <line num="54" type="stmt" count="0"/>
138
+ <line num="55" type="stmt" count="0"/>
139
+ <metrics loc="56" ncloc="32" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
140
  </file>
141
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-historical-versions.php">
142
  <class name="Historical_Versions" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Historical">
143
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
144
+ </class>
145
+ <line num="30" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
146
+ <line num="31" type="stmt" count="0"/>
147
+ <line num="33" type="stmt" count="0"/>
148
+ <line num="35" type="stmt" count="0"/>
149
+ <line num="37" type="stmt" count="0"/>
150
+ <line num="39" type="stmt" count="0"/>
151
+ <line num="40" type="stmt" count="0"/>
152
+ <line num="42" type="stmt" count="0"/>
153
+ <line num="43" type="stmt" count="0"/>
154
+ <line num="45" type="stmt" count="0"/>
155
+ <line num="47" type="stmt" count="0"/>
156
+ <line num="49" type="stmt" count="0"/>
157
+ <line num="50" type="stmt" count="0"/>
158
+ <line num="51" type="stmt" count="0"/>
159
+ <line num="52" type="stmt" count="0"/>
160
+ <line num="53" type="stmt" count="0"/>
161
+ <line num="54" type="stmt" count="0"/>
162
+ <line num="55" type="stmt" count="0"/>
163
+ <metrics loc="56" ncloc="32" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
164
  </file>
165
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-history.php">
166
  <class name="History" namespace="Boldgrid\Backup\Admin\Card">
167
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
168
+ </class>
169
+ <line num="30" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
170
+ <line num="31" type="stmt" count="0"/>
171
+ <line num="33" type="stmt" count="0"/>
172
+ <line num="35" type="stmt" count="0"/>
173
+ <line num="37" type="stmt" count="0"/>
174
+ <line num="39" type="stmt" count="0"/>
175
+ <line num="40" type="stmt" count="0"/>
176
+ <line num="42" type="stmt" count="0"/>
177
+ <line num="43" type="stmt" count="0"/>
178
+ <line num="45" type="stmt" count="0"/>
179
+ <line num="47" type="stmt" count="0"/>
180
+ <line num="49" type="stmt" count="0"/>
181
+ <line num="50" type="stmt" count="0"/>
182
+ <line num="51" type="stmt" count="0"/>
183
+ <line num="52" type="stmt" count="0"/>
184
+ <line num="53" type="stmt" count="0"/>
185
+ <line num="54" type="stmt" count="0"/>
186
+ <line num="55" type="stmt" count="0"/>
187
+ <metrics loc="56" ncloc="32" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
188
  </file>
189
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-one-click-restoration.php">
190
  <class name="One_Click_Restoration" namespace="Boldgrid\Backup\Admin\Card" fullPackage="One.Click">
191
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
192
+ </class>
193
+ <line num="30" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
194
+ <line num="31" type="stmt" count="0"/>
195
+ <line num="33" type="stmt" count="0"/>
196
+ <line num="35" type="stmt" count="0"/>
197
+ <line num="37" type="stmt" count="0"/>
198
+ <line num="39" type="stmt" count="0"/>
199
+ <line num="40" type="stmt" count="0"/>
200
+ <line num="42" type="stmt" count="0"/>
201
+ <line num="43" type="stmt" count="0"/>
202
+ <line num="45" type="stmt" count="0"/>
203
+ <line num="47" type="stmt" count="0"/>
204
+ <line num="49" type="stmt" count="0"/>
205
+ <line num="50" type="stmt" count="0"/>
206
+ <line num="51" type="stmt" count="0"/>
207
+ <line num="52" type="stmt" count="0"/>
208
+ <line num="53" type="stmt" count="0"/>
209
+ <line num="54" type="stmt" count="0"/>
210
+ <line num="55" type="stmt" count="0"/>
211
+ <metrics loc="56" ncloc="32" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
212
  </file>
213
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-plugin-editor-tools.php">
214
  <class name="Plugin_Editor_Tools" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Plugin.Editor">
215
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
216
+ </class>
217
+ <line num="30" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
218
+ <line num="31" type="stmt" count="0"/>
219
+ <line num="33" type="stmt" count="0"/>
220
+ <line num="35" type="stmt" count="0"/>
221
+ <line num="37" type="stmt" count="0"/>
222
+ <line num="39" type="stmt" count="0"/>
223
+ <line num="40" type="stmt" count="0"/>
224
+ <line num="42" type="stmt" count="0"/>
225
+ <line num="43" type="stmt" count="0"/>
226
+ <line num="45" type="stmt" count="0"/>
227
+ <line num="47" type="stmt" count="0"/>
228
+ <line num="49" type="stmt" count="0"/>
229
+ <line num="50" type="stmt" count="0"/>
230
+ <line num="51" type="stmt" count="0"/>
231
+ <line num="52" type="stmt" count="0"/>
232
+ <line num="53" type="stmt" count="0"/>
233
+ <line num="54" type="stmt" count="0"/>
234
+ <line num="55" type="stmt" count="0"/>
235
+ <metrics loc="56" ncloc="32" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="0" elements="18" coveredelements="0"/>
236
  </file>
237
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-premium.php">
238
  <class name="Premium" namespace="Boldgrid\Backup\Admin\Card">
270
  <line num="69" type="stmt" count="0"/>
271
  <metrics loc="70" ncloc="39" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="0" elements="30" coveredelements="0"/>
272
  </file>
273
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-timely-auto-updates.php">
274
+ <class name="Timely_Auto_Updates" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Timely.Auto">
275
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="0" elements="15" coveredelements="0"/>
276
  </class>
277
  <line num="29" type="method" name="init" visibility="public" complexity="1" crap="2" count="0"/>
278
  <line num="30" type="stmt" count="0"/>
279
  <line num="32" type="stmt" count="0"/>
280
  <line num="34" type="stmt" count="0"/>
281
  <line num="36" type="stmt" count="0"/>
282
+ <line num="37" type="stmt" count="0"/>
283
  <line num="38" type="stmt" count="0"/>
284
  <line num="39" type="stmt" count="0"/>
285
+ <line num="41" type="stmt" count="0"/>
286
+ <line num="43" type="stmt" count="0"/>
287
+ <line num="44" type="stmt" count="0"/>
288
+ <line num="45" type="stmt" count="0"/>
289
+ <line num="46" type="stmt" count="0"/>
290
+ <line num="48" type="stmt" count="0"/>
291
+ <line num="49" type="stmt" count="0"/>
292
+ <metrics loc="50" ncloc="27" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="0" elements="15" coveredelements="0"/>
293
+ </file>
294
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-updates.php">
295
+ <class name="Updates" namespace="Boldgrid\Backup\Admin\Card">
296
+ <metrics complexity="2" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="0" elements="15" coveredelements="0"/>
297
+ </class>
298
+ <line num="29" type="method" name="init" visibility="public" complexity="2" crap="6" count="0"/>
299
+ <line num="31" type="stmt" count="0"/>
300
+ <line num="33" type="stmt" count="0"/>
301
+ <line num="35" type="stmt" count="0"/>
302
+ <line num="37" type="stmt" count="0"/>
303
+ <line num="39" type="stmt" count="0"/>
304
  <line num="41" type="stmt" count="0"/>
305
  <line num="42" type="stmt" count="0"/>
306
  <line num="43" type="stmt" count="0"/>
307
+ <line num="44" type="stmt" count="0"/>
308
+ <line num="45" type="stmt" count="0"/>
309
+ <line num="46" type="stmt" count="0"/>
310
+ <line num="47" type="stmt" count="0"/>
311
+ <line num="48" type="stmt" count="0"/>
312
+ <line num="49" type="stmt" count="0"/>
313
+ <metrics loc="50" ncloc="25" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="0" elements="15" coveredelements="0"/>
314
  </file>
315
  </package>
316
  <package name="Boldgrid\Backup\Admin\Card\Feature">
567
  <line num="33" type="stmt" count="0"/>
568
  <metrics loc="34" ncloc="13" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="0" elements="5" coveredelements="0"/>
569
  </file>
570
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/feature/class-timely-auto-updates.php">
571
+ <class name="Timely_Auto_Updates" namespace="Boldgrid\Backup\Admin\Card\Feature" fullPackage="Timely.Auto">
572
+ <metrics complexity="2" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="0" elements="20" coveredelements="0"/>
573
+ </class>
574
+ <line num="30" type="method" name="init" visibility="public" complexity="2" crap="6" count="0"/>
575
+ <line num="31" type="stmt" count="0"/>
576
+ <line num="33" type="stmt" count="0"/>
577
+ <line num="35" type="stmt" count="0"/>
578
+ <line num="38" type="stmt" count="0"/>
579
+ <line num="40" type="stmt" count="0"/>
580
+ <line num="42" type="stmt" count="0"/>
581
+ <line num="43" type="stmt" count="0"/>
582
+ <line num="44" type="stmt" count="0"/>
583
+ <line num="45" type="stmt" count="0"/>
584
+ <line num="46" type="stmt" count="0"/>
585
+ <line num="47" type="stmt" count="0"/>
586
+ <line num="49" type="stmt" count="0"/>
587
+ <line num="50" type="stmt" count="0"/>
588
+ <line num="51" type="stmt" count="0"/>
589
+ <line num="52" type="stmt" count="0"/>
590
+ <line num="53" type="stmt" count="0"/>
591
+ <line num="54" type="stmt" count="0"/>
592
+ <line num="55" type="stmt" count="0"/>
593
+ <line num="56" type="stmt" count="0"/>
594
+ <metrics loc="57" ncloc="29" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="0" elements="20" coveredelements="0"/>
595
+ </file>
596
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/feature/class-versions.php">
597
  <class name="Versions" namespace="Boldgrid\Backup\Admin\Card\Feature">
598
  <metrics complexity="4" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="0" elements="31" coveredelements="0"/>
635
  <class name="Boldgrid_Backup_Admin_Archive_Actions" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
636
  <metrics complexity="15" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="107" coveredstatements="2" elements="114" coveredelements="3"/>
637
  </class>
638
+ <line num="38" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
639
+ <line num="39" type="stmt" count="29"/>
640
+ <line num="40" type="stmt" count="29"/>
641
  <line num="47" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
642
  <line num="48" type="stmt" count="0"/>
643
  <line num="49" type="stmt" count="0"/>
753
  </file>
754
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-browser.php">
755
  <class name="Boldgrid_Backup_Admin_Archive_Browser" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
756
+ <metrics complexity="42" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="156" coveredstatements="2" elements="163" coveredelements="3"/>
757
  </class>
758
+ <line num="43" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
759
+ <line num="44" type="stmt" count="29"/>
760
+ <line num="45" type="stmt" count="29"/>
761
+ <line num="55" type="method" name="authorize" visibility="public" complexity="4" crap="20" count="0"/>
762
  <line num="56" type="stmt" count="0"/>
763
  <line num="57" type="stmt" count="0"/>
764
  <line num="58" type="stmt" count="0"/>
 
765
  <line num="61" type="stmt" count="0"/>
766
  <line num="62" type="stmt" count="0"/>
767
  <line num="63" type="stmt" count="0"/>
768
+ <line num="64" type="stmt" count="0"/>
769
+ <line num="65" type="stmt" count="0"/>
770
+ <line num="81" type="method" name="get_sql_details" visibility="public" complexity="10" crap="110" count="0"/>
771
  <line num="82" type="stmt" count="0"/>
772
  <line num="83" type="stmt" count="0"/>
773
  <line num="84" type="stmt" count="0"/>
774
+ <line num="85" type="stmt" count="0"/>
775
+ <line num="86" type="stmt" count="0"/>
776
+ <line num="99" type="stmt" count="0"/>
777
  <line num="100" type="stmt" count="0"/>
778
+ <line num="102" type="stmt" count="0"/>
 
779
  <line num="105" type="stmt" count="0"/>
780
+ <line num="106" type="stmt" count="0"/>
781
  <line num="107" type="stmt" count="0"/>
782
+ <line num="109" type="stmt" count="0"/>
783
  <line num="112" type="stmt" count="0"/>
 
784
  <line num="114" type="stmt" count="0"/>
785
+ <line num="115" type="stmt" count="0"/>
786
  <line num="116" type="stmt" count="0"/>
787
  <line num="118" type="stmt" count="0"/>
788
  <line num="120" type="stmt" count="0"/>
789
  <line num="122" type="stmt" count="0"/>
 
790
  <line num="124" type="stmt" count="0"/>
791
  <line num="125" type="stmt" count="0"/>
792
  <line num="126" type="stmt" count="0"/>
793
  <line num="127" type="stmt" count="0"/>
794
  <line num="128" type="stmt" count="0"/>
795
+ <line num="129" type="stmt" count="0"/>
796
  <line num="130" type="stmt" count="0"/>
797
  <line num="132" type="stmt" count="0"/>
798
  <line num="134" type="stmt" count="0"/>
799
  <line num="136" type="stmt" count="0"/>
 
800
  <line num="138" type="stmt" count="0"/>
801
  <line num="139" type="stmt" count="0"/>
802
  <line num="140" type="stmt" count="0"/>
803
  <line num="141" type="stmt" count="0"/>
804
  <line num="142" type="stmt" count="0"/>
805
+ <line num="143" type="stmt" count="0"/>
806
  <line num="144" type="stmt" count="0"/>
807
+ <line num="146" type="stmt" count="0"/>
808
+ <line num="147" type="stmt" count="0"/>
809
  <line num="150" type="stmt" count="0"/>
810
  <line num="152" type="stmt" count="0"/>
811
+ <line num="154" type="stmt" count="0"/>
812
  <line num="155" type="stmt" count="0"/>
 
813
  <line num="157" type="stmt" count="0"/>
814
+ <line num="158" type="stmt" count="0"/>
815
  <line num="159" type="stmt" count="0"/>
816
  <line num="161" type="stmt" count="0"/>
817
+ <line num="163" type="stmt" count="0"/>
818
+ <line num="164" type="stmt" count="0"/>
 
819
  <line num="169" type="stmt" count="0"/>
820
  <line num="170" type="stmt" count="0"/>
821
  <line num="171" type="stmt" count="0"/>
822
  <line num="172" type="stmt" count="0"/>
823
+ <line num="173" type="stmt" count="0"/>
824
+ <line num="174" type="stmt" count="0"/>
825
  <line num="177" type="stmt" count="0"/>
826
+ <line num="179" type="stmt" count="0"/>
827
  <line num="180" type="stmt" count="0"/>
828
+ <line num="182" type="stmt" count="0"/>
829
  <line num="183" type="stmt" count="0"/>
 
830
  <line num="185" type="stmt" count="0"/>
831
  <line num="186" type="stmt" count="0"/>
832
+ <line num="187" type="stmt" count="0"/>
833
  <line num="188" type="stmt" count="0"/>
834
+ <line num="190" type="stmt" count="0"/>
835
+ <line num="200" type="method" name="wp_ajax_browse_archive" visibility="public" complexity="8" crap="72" count="0"/>
836
  <line num="201" type="stmt" count="0"/>
837
  <line num="203" type="stmt" count="0"/>
 
838
  <line num="205" type="stmt" count="0"/>
839
  <line num="206" type="stmt" count="0"/>
840
  <line num="207" type="stmt" count="0"/>
841
+ <line num="208" type="stmt" count="0"/>
842
  <line num="209" type="stmt" count="0"/>
843
  <line num="211" type="stmt" count="0"/>
844
+ <line num="213" type="stmt" count="0"/>
 
845
  <line num="221" type="stmt" count="0"/>
846
+ <line num="222" type="stmt" count="0"/>
847
  <line num="223" type="stmt" count="0"/>
848
  <line num="225" type="stmt" count="0"/>
849
  <line num="227" type="stmt" count="0"/>
850
  <line num="229" type="stmt" count="0"/>
851
+ <line num="231" type="stmt" count="0"/>
852
  <line num="232" type="stmt" count="0"/>
853
+ <line num="234" type="stmt" count="0"/>
 
854
  <line num="247" type="stmt" count="0"/>
855
  <line num="248" type="stmt" count="0"/>
856
  <line num="249" type="stmt" count="0"/>
857
+ <line num="250" type="stmt" count="0"/>
858
  <line num="251" type="stmt" count="0"/>
 
859
  <line num="253" type="stmt" count="0"/>
860
+ <line num="254" type="stmt" count="0"/>
861
+ <line num="255" type="stmt" count="0"/>
862
+ <line num="258" type="stmt" count="0"/>
863
  <line num="259" type="stmt" count="0"/>
864
  <line num="261" type="stmt" count="0"/>
865
  <line num="263" type="stmt" count="0"/>
866
+ <line num="265" type="stmt" count="0"/>
867
+ <line num="266" type="stmt" count="0"/>
868
+ <line num="276" type="method" name="wp_ajax_file_actions" visibility="public" complexity="5" crap="30" count="0"/>
869
  <line num="277" type="stmt" count="0"/>
 
870
  <line num="279" type="stmt" count="0"/>
871
  <line num="280" type="stmt" count="0"/>
872
  <line num="281" type="stmt" count="0"/>
873
  <line num="282" type="stmt" count="0"/>
874
+ <line num="283" type="stmt" count="0"/>
875
+ <line num="284" type="stmt" count="0"/>
876
  <line num="287" type="stmt" count="0"/>
 
877
  <line num="289" type="stmt" count="0"/>
878
+ <line num="290" type="stmt" count="0"/>
879
+ <line num="291" type="stmt" count="0"/>
880
  <line num="301" type="stmt" count="0"/>
881
+ <line num="303" type="stmt" count="0"/>
882
+ <line num="304" type="stmt" count="0"/>
883
+ <line num="314" type="method" name="wp_ajax_restore_db" visibility="public" complexity="7" crap="56" count="0"/>
884
  <line num="315" type="stmt" count="0"/>
 
885
  <line num="317" type="stmt" count="0"/>
886
  <line num="318" type="stmt" count="0"/>
887
  <line num="319" type="stmt" count="0"/>
888
  <line num="320" type="stmt" count="0"/>
889
+ <line num="321" type="stmt" count="0"/>
890
  <line num="322" type="stmt" count="0"/>
891
+ <line num="324" type="stmt" count="0"/>
892
  <line num="325" type="stmt" count="0"/>
893
+ <line num="327" type="stmt" count="0"/>
894
  <line num="328" type="stmt" count="0"/>
 
895
  <line num="330" type="stmt" count="0"/>
896
  <line num="331" type="stmt" count="0"/>
897
  <line num="332" type="stmt" count="0"/>
898
+ <line num="333" type="stmt" count="0"/>
899
  <line num="334" type="stmt" count="0"/>
900
  <line num="335" type="stmt" count="0"/>
901
  <line num="336" type="stmt" count="0"/>
902
  <line num="338" type="stmt" count="0"/>
903
+ <line num="339" type="stmt" count="0"/>
904
+ <line num="340" type="stmt" count="0"/>
905
+ <line num="342" type="stmt" count="0"/>
906
+ <line num="352" type="method" name="wp_ajax_view_db" visibility="public" complexity="7" crap="56" count="0"/>
907
  <line num="353" type="stmt" count="0"/>
 
908
  <line num="355" type="stmt" count="0"/>
909
  <line num="356" type="stmt" count="0"/>
910
+ <line num="357" type="stmt" count="0"/>
911
  <line num="358" type="stmt" count="0"/>
912
+ <line num="359" type="stmt" count="0"/>
913
  <line num="360" type="stmt" count="0"/>
 
914
  <line num="362" type="stmt" count="0"/>
 
915
  <line num="364" type="stmt" count="0"/>
916
+ <line num="365" type="stmt" count="0"/>
917
  <line num="366" type="stmt" count="0"/>
918
+ <line num="367" type="stmt" count="0"/>
919
+ <line num="368" type="stmt" count="0"/>
920
+ <line num="370" type="stmt" count="0"/>
921
+ <metrics loc="371" ncloc="241" classes="1" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="156" coveredstatements="2" elements="163" coveredelements="3"/>
922
  </file>
923
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-details.php">
924
  <class name="Boldgrid_Backup_Admin_Archive_Details" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
925
+ <metrics complexity="20" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="100" coveredstatements="2" elements="106" coveredelements="3"/>
926
  </class>
927
+ <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
928
+ <line num="49" type="stmt" count="29"/>
929
+ <line num="50" type="stmt" count="29"/>
930
  <line num="60" type="method" name="get_url" visibility="public" complexity="1" crap="2" count="0"/>
931
  <line num="61" type="stmt" count="0"/>
932
  <line num="69" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
974
  <line num="132" type="stmt" count="0"/>
975
  <line num="134" type="stmt" count="0"/>
976
  <line num="135" type="stmt" count="0"/>
977
+ <line num="136" type="stmt" count="0"/>
978
+ <line num="138" type="stmt" count="0"/>
979
  <line num="140" type="stmt" count="0"/>
980
  <line num="141" type="stmt" count="0"/>
981
  <line num="142" type="stmt" count="0"/>
982
+ <line num="143" type="stmt" count="0"/>
983
  <line num="147" type="stmt" count="0"/>
984
  <line num="148" type="stmt" count="0"/>
985
  <line num="149" type="stmt" count="0"/>
986
  <line num="150" type="stmt" count="0"/>
987
  <line num="151" type="stmt" count="0"/>
988
  <line num="152" type="stmt" count="0"/>
989
+ <line num="153" type="stmt" count="0"/>
990
  <line num="155" type="stmt" count="0"/>
991
  <line num="156" type="stmt" count="0"/>
992
+ <line num="157" type="stmt" count="0"/>
993
  <line num="161" type="stmt" count="0"/>
994
  <line num="162" type="stmt" count="0"/>
995
+ <line num="163" type="stmt" count="0"/>
996
  <line num="165" type="stmt" count="0"/>
997
+ <line num="166" type="stmt" count="0"/>
998
+ <line num="167" type="stmt" count="0"/>
999
+ <line num="169" type="stmt" count="0"/>
1000
+ <line num="170" type="stmt" count="0"/>
1001
+ <line num="171" type="stmt" count="0"/>
1002
+ <line num="178" type="stmt" count="0"/>
1003
  <line num="180" type="stmt" count="0"/>
1004
+ <line num="181" type="stmt" count="0"/>
1005
+ <line num="183" type="stmt" count="0"/>
1006
+ <line num="188" type="stmt" count="0"/>
1007
  <line num="189" type="stmt" count="0"/>
1008
  <line num="190" type="stmt" count="0"/>
 
 
1009
  <line num="194" type="stmt" count="0"/>
1010
  <line num="195" type="stmt" count="0"/>
1011
+ <line num="209" type="method" name="validate_nonce" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
 
1012
  <line num="210" type="stmt" count="0"/>
1013
+ <line num="218" type="method" name="wp_ajax_update" visibility="public" complexity="11" crap="132" count="0"/>
1014
+ <line num="219" type="stmt" count="0"/>
1015
+ <line num="220" type="stmt" count="0"/>
1016
+ <line num="221" type="stmt" count="0"/>
1017
+ <line num="223" type="stmt" count="0"/>
1018
+ <line num="224" type="stmt" count="0"/>
1019
+ <line num="225" type="stmt" count="0"/>
1020
+ <line num="227" type="stmt" count="0"/>
1021
+ <line num="228" type="stmt" count="0"/>
1022
+ <line num="229" type="stmt" count="0"/>
1023
+ <line num="231" type="stmt" count="0"/>
1024
+ <line num="233" type="stmt" count="0"/>
1025
+ <line num="234" type="stmt" count="0"/>
1026
+ <line num="235" type="stmt" count="0"/>
1027
+ <line num="238" type="stmt" count="0"/>
1028
+ <line num="240" type="stmt" count="0"/>
1029
+ <line num="241" type="stmt" count="0"/>
1030
+ <line num="242" type="stmt" count="0"/>
1031
+ <line num="244" type="stmt" count="0"/>
1032
+ <line num="245" type="stmt" count="0"/>
1033
+ <metrics loc="246" ncloc="150" classes="1" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="100" coveredstatements="2" elements="106" coveredelements="3"/>
1034
  </file>
1035
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-fail.php">
1036
  <class name="Boldgrid_Backup_Admin_Archive_Fail" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
1037
  <metrics complexity="9" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="42" coveredstatements="3" elements="47" coveredelements="4"/>
1038
  </class>
1039
+ <line num="56" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
1040
+ <line num="57" type="stmt" count="29"/>
1041
+ <line num="59" type="stmt" count="29"/>
1042
+ <line num="60" type="stmt" count="29"/>
1043
  <line num="70" type="method" name="archive_files_init" visibility="public" complexity="1" crap="2" count="0"/>
1044
  <line num="71" type="stmt" count="0"/>
1045
  <line num="88" type="stmt" count="0"/>
1087
  </file>
1088
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-log.php">
1089
  <class name="Boldgrid_Backup_Admin_Archive_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
1090
+ <metrics complexity="20" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="35" elements="63" coveredelements="37"/>
1091
  </class>
1092
+ <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
1093
+ <line num="38" type="stmt" count="29"/>
1094
+ <line num="39" type="stmt" count="29"/>
1095
  <line num="49" type="method" name="delete_by_zip" visibility="public" complexity="2" crap="2.03" count="1"/>
1096
  <line num="50" type="stmt" count="1"/>
1097
  <line num="52" type="stmt" count="1"/>
1107
  <line num="77" type="stmt" count="4"/>
1108
  <line num="78" type="stmt" count="0"/>
1109
  <line num="81" type="stmt" count="4"/>
1110
+ <line num="94" type="method" name="path_from_zip" visibility="public" complexity="1" crap="1" count="5"/>
1111
+ <line num="95" type="stmt" count="5"/>
1112
  <line num="107" type="method" name="post_restore" visibility="public" complexity="2" crap="6" count="0"/>
1113
  <line num="108" type="stmt" count="0"/>
1114
  <line num="109" type="stmt" count="0"/>
1117
  <line num="117" type="stmt" count="0"/>
1118
  <line num="120" type="stmt" count="0"/>
1119
  <line num="121" type="stmt" count="0"/>
1120
+ <line num="135" type="method" name="restore_by_zip" visibility="public" complexity="4" crap="4.59" count="1"/>
1121
+ <line num="136" type="stmt" count="1"/>
1122
+ <line num="138" type="stmt" count="1"/>
1123
  <line num="139" type="stmt" count="0"/>
1124
+ <line num="142" type="stmt" count="1"/>
1125
+ <line num="143" type="stmt" count="1"/>
1126
+ <line num="146" type="stmt" count="1"/>
1127
+ <line num="147" type="stmt" count="1"/>
1128
+ <line num="148" type="stmt" count="1"/>
1129
+ <line num="149" type="stmt" count="1"/>
1130
  <line num="153" type="stmt" count="0"/>
1131
  <line num="154" type="stmt" count="0"/>
1132
  <line num="156" type="stmt" count="0"/>
1152
  <line num="208" type="stmt" count="0"/>
1153
  <line num="212" type="stmt" count="4"/>
1154
  <line num="214" type="stmt" count="4"/>
1155
+ <metrics loc="216" ncloc="104" classes="1" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="35" elements="63" coveredelements="37"/>
1156
  </file>
1157
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive.php">
1158
  <class name="Boldgrid_Backup_Admin_Archive" namespace="global" fullPackage="Boldgrid.Backup.Admin">
1159
+ <metrics complexity="71" methods="22" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="195" coveredstatements="69" elements="217" coveredelements="77"/>
1160
  </class>
1161
+ <line num="116" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
1162
+ <line num="117" type="stmt" count="29"/>
1163
+ <line num="118" type="stmt" count="29"/>
1164
  <line num="128" type="method" name="delete" visibility="public" complexity="1" crap="1" count="1"/>
1165
  <line num="129" type="stmt" count="1"/>
1166
  <line num="131" type="stmt" count="1"/>
1177
  <line num="176" type="stmt" count="0"/>
1178
  <line num="178" type="stmt" count="0"/>
1179
  <line num="180" type="stmt" count="0"/>
1180
+ <line num="192" type="method" name="get_file" visibility="public" complexity="5" crap="15.55" count="1"/>
1181
+ <line num="193" type="stmt" count="1"/>
1182
+ <line num="194" type="stmt" count="1"/>
1183
  <line num="197" type="stmt" count="0"/>
1184
  <line num="199" type="stmt" count="0"/>
1185
  <line num="202" type="stmt" count="0"/>
1186
  <line num="203" type="stmt" count="0"/>
1187
  <line num="204" type="stmt" count="0"/>
1188
  <line num="206" type="stmt" count="0"/>
1189
+ <line num="217" type="method" name="get_dump_file" visibility="public" complexity="1" crap="1" count="1"/>
1190
+ <line num="223" type="stmt" count="1"/>
1191
  <line num="233" type="method" name="get_filesize" visibility="public" complexity="1" crap="2" count="0"/>
1192
  <line num="234" type="stmt" count="0"/>
1193
+ <line num="244" type="method" name="init" visibility="public" complexity="7" crap="7" count="5"/>
1194
+ <line num="245" type="stmt" count="5"/>
1195
+ <line num="247" type="stmt" count="5"/>
1196
  <line num="248" type="stmt" count="2"/>
1197
+ <line num="251" type="stmt" count="5"/>
1198
+ <line num="253" type="stmt" count="5"/>
1199
+ <line num="254" type="stmt" count="5"/>
1200
+ <line num="256" type="stmt" count="5"/>
1201
+ <line num="257" type="stmt" count="5"/>
1202
+ <line num="260" type="stmt" count="5"/>
1203
+ <line num="261" type="stmt" count="5"/>
1204
+ <line num="262" type="stmt" count="1"/>
1205
+ <line num="263" type="stmt" count="1"/>
1206
+ <line num="265" type="stmt" count="5"/>
1207
  <line num="266" type="stmt" count="4"/>
1208
  <line num="268" type="stmt" count="4"/>
1209
  <line num="269" type="stmt" count="4"/>
1210
+ <line num="277" type="stmt" count="5"/>
1211
+ <line num="279" type="stmt" count="5"/>
1212
+ <line num="280" type="stmt" count="5"/>
1213
  <line num="292" type="method" name="init_by_filename" visibility="public" complexity="1" crap="1" count="1"/>
1214
  <line num="293" type="stmt" count="1"/>
1215
  <line num="295" type="stmt" count="1"/>
1230
  <line num="338" type="stmt" count="0"/>
1231
  <line num="339" type="stmt" count="0"/>
1232
  <line num="340" type="stmt" count="0"/>
1233
+ <line num="350" type="method" name="is_archive" visibility="public" complexity="4" crap="4.25" count="1"/>
1234
+ <line num="351" type="stmt" count="1"/>
1235
+ <line num="353" type="stmt" count="1"/>
1236
  <line num="354" type="stmt" count="0"/>
1237
+ <line num="357" type="stmt" count="1"/>
1238
+ <line num="358" type="stmt" count="1"/>
1239
  <line num="359" type="stmt" count="0"/>
1240
+ <line num="361" type="stmt" count="1"/>
1241
+ <line num="363" type="stmt" count="1"/>
1242
+ <line num="377" type="method" name="is_site_archive" visibility="public" complexity="4" crap="4.18" count="6"/>
1243
+ <line num="378" type="stmt" count="6"/>
1244
+ <line num="381" type="stmt" count="6"/>
1245
+ <line num="382" type="stmt" count="6"/>
1246
+ <line num="383" type="stmt" count="6"/>
1247
+ <line num="387" type="stmt" count="5"/>
1248
  <line num="388" type="stmt" count="0"/>
1249
+ <line num="392" type="stmt" count="5"/>
1250
  <line num="393" type="stmt" count="0"/>
1251
+ <line num="396" type="stmt" count="5"/>
1252
  <line num="410" type="method" name="is_stored_locally" visibility="public" complexity="2" crap="6" count="0"/>
1253
  <line num="411" type="stmt" count="0"/>
1254
  <line num="413" type="stmt" count="0"/>
1257
  <line num="428" type="stmt" count="0"/>
1258
  <line num="430" type="stmt" count="0"/>
1259
  <line num="431" type="stmt" count="0"/>
1260
+ <line num="439" type="method" name="reset" visibility="public" complexity="1" crap="1" count="6"/>
1261
+ <line num="440" type="stmt" count="6"/>
1262
+ <line num="441" type="stmt" count="6"/>
1263
+ <line num="442" type="stmt" count="6"/>
1264
+ <line num="443" type="stmt" count="6"/>
1265
+ <line num="444" type="stmt" count="6"/>
1266
+ <line num="445" type="stmt" count="6"/>
1267
+ <line num="446" type="stmt" count="6"/>
1268
  <line num="457" type="method" name="set_attribute" visibility="public" complexity="3" crap="12" count="0"/>
1269
  <line num="458" type="stmt" count="0"/>
1270
  <line num="461" type="stmt" count="0"/>
1375
  <line num="701" type="stmt" count="4"/>
1376
  <line num="702" type="stmt" count="4"/>
1377
  <line num="703" type="stmt" count="4"/>
1378
+ <metrics loc="704" ncloc="341" classes="1" methods="22" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="195" coveredstatements="69" elements="217" coveredelements="77"/>
1379
  </file>
1380
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archiver-utility.php">
1381
  <class name="Boldgrid_Backup_Admin_Archiver_Utility" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archiver">
1382
  <metrics complexity="8" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="7" elements="13" coveredelements="8"/>
1383
  </class>
1384
+ <line num="38" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
1385
+ <line num="39" type="stmt" count="29"/>
1386
+ <line num="40" type="stmt" count="29"/>
1387
  <line num="51" type="method" name="is_full_backup" visibility="public" complexity="7" crap="11.30" count="4"/>
1388
  <line num="52" type="stmt" count="4"/>
1389
  <line num="53" type="stmt" count="0"/>
1400
  <class name="Boldgrid_Backup_Admin_Archives_All" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archives">
1401
  <metrics complexity="20" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="3" elements="60" coveredelements="4"/>
1402
  </class>
1403
+ <line num="97" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
1404
+ <line num="98" type="stmt" count="29"/>
1405
+ <line num="100" type="stmt" count="29"/>
1406
+ <line num="101" type="stmt" count="29"/>
1407
  <line num="110" type="method" name="add" visibility="public" complexity="6" crap="42" count="0"/>
1408
  <line num="111" type="stmt" count="0"/>
1409
  <line num="113" type="stmt" count="0"/>
1466
  <class name="Boldgrid_Backup_Admin_Archives" namespace="global" fullPackage="Boldgrid.Backup.Admin">
1467
  <metrics complexity="28" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="123" coveredstatements="2" elements="129" coveredelements="3"/>
1468
  </class>
1469
+ <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
1470
+ <line num="38" type="stmt" count="29"/>
1471
+ <line num="39" type="stmt" count="29"/>
1472
  <line num="54" type="method" name="get_location_type" visibility="public" complexity="4" crap="20" count="0"/>
1473
  <line num="55" type="stmt" count="0"/>
1474
  <line num="56" type="stmt" count="0"/>
1599
  </file>
1600
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-auto-rollback.php">
1601
  <class name="Boldgrid_Backup_Admin_Auto_Rollback" namespace="global" fullPackage="Boldgrid.Backup.Admin.Auto">
1602
+ <metrics complexity="110" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="423" coveredstatements="29" elements="449" coveredelements="31"/>
1603
  </class>
1604
+ <line num="139" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="29"/>
1605
+ <line num="140" type="stmt" count="29"/>
1606
+ <line num="142" type="stmt" count="29"/>
1607
+ <line num="143" type="stmt" count="29"/>
1608
+ <line num="145" type="stmt" count="29"/>
1609
+ <line num="146" type="stmt" count="29"/>
1610
  <line num="159" type="method" name="add_cron" visibility="public" complexity="6" crap="42" count="0"/>
1611
  <line num="160" type="stmt" count="0"/>
1612
  <line num="163" type="stmt" count="0"/>
1702
  <line num="340" type="stmt" count="0"/>
1703
  <line num="346" type="stmt" count="0"/>
1704
  <line num="347" type="stmt" count="0"/>
1705
+ <line num="360" type="method" name="enqueue_update_selectors" visibility="public" complexity="1" crap="2" count="0"/>
1706
  <line num="361" type="stmt" count="0"/>
1707
+ <line num="363" type="stmt" count="0"/>
1708
  <line num="364" type="stmt" count="0"/>
1709
  <line num="365" type="stmt" count="0"/>
1710
  <line num="366" type="stmt" count="0"/>
1711
  <line num="367" type="stmt" count="0"/>
1712
+ <line num="369" type="stmt" count="0"/>
1713
+ <line num="373" type="stmt" count="0"/>
1714
  <line num="374" type="stmt" count="0"/>
1715
  <line num="375" type="stmt" count="0"/>
1716
+ <line num="377" type="stmt" count="0"/>
1717
+ <line num="379" type="stmt" count="0"/>
1718
  <line num="380" type="stmt" count="0"/>
1719
+ <line num="393" type="method" name="notice_countdown_show" visibility="public" complexity="13" crap="182" count="0"/>
1720
+ <line num="395" type="stmt" count="0"/>
1721
+ <line num="396" type="stmt" count="0"/>
 
1722
  <line num="398" type="stmt" count="0"/>
1723
+ <line num="399" type="stmt" count="0"/>
1724
  <line num="400" type="stmt" count="0"/>
 
1725
  <line num="402" type="stmt" count="0"/>
1726
+ <line num="403" type="stmt" count="0"/>
1727
  <line num="404" type="stmt" count="0"/>
1728
+ <line num="430" type="stmt" count="0"/>
1729
+ <line num="433" type="stmt" count="0"/>
1730
+ <line num="434" type="stmt" count="0"/>
1731
+ <line num="438" type="stmt" count="0"/>
1732
+ <line num="439" type="stmt" count="0"/>
1733
+ <line num="442" type="stmt" count="0"/>
1734
+ <line num="443" type="stmt" count="0"/>
1735
+ <line num="449" type="stmt" count="0"/>
1736
+ <line num="450" type="stmt" count="0"/>
1737
  <line num="451" type="stmt" count="0"/>
1738
+ <line num="464" type="stmt" count="0"/>
1739
+ <line num="465" type="stmt" count="0"/>
1740
+ <line num="468" type="stmt" count="0"/>
1741
+ <line num="469" type="stmt" count="0"/>
1742
  <line num="470" type="stmt" count="0"/>
1743
  <line num="471" type="stmt" count="0"/>
 
1744
  <line num="473" type="stmt" count="0"/>
1745
  <line num="475" type="stmt" count="0"/>
1746
+ <line num="483" type="stmt" count="0"/>
1747
+ <line num="484" type="stmt" count="0"/>
1748
  <line num="485" type="stmt" count="0"/>
1749
+ <line num="503" type="method" name="notice_countdown_get" visibility="public" complexity="5" crap="30" count="0"/>
1750
+ <line num="506" type="stmt" count="0"/>
1751
+ <line num="507" type="stmt" count="0"/>
1752
  <line num="508" type="stmt" count="0"/>
 
1753
  <line num="510" type="stmt" count="0"/>
1754
+ <line num="511" type="stmt" count="0"/>
1755
  <line num="512" type="stmt" count="0"/>
1756
  <line num="513" type="stmt" count="0"/>
 
1757
  <line num="515" type="stmt" count="0"/>
1758
+ <line num="516" type="stmt" count="0"/>
1759
  <line num="518" type="stmt" count="0"/>
1760
+ <line num="519" type="stmt" count="0"/>
1761
  <line num="521" type="stmt" count="0"/>
1762
+ <line num="524" type="stmt" count="0"/>
1763
+ <line num="525" type="stmt" count="0"/>
1764
  <line num="526" type="stmt" count="0"/>
 
1765
  <line num="528" type="stmt" count="0"/>
1766
+ <line num="529" type="stmt" count="0"/>
1767
+ <line num="533" type="stmt" count="0"/>
1768
+ <line num="536" type="stmt" count="0"/>
1769
+ <line num="539" type="stmt" count="0"/>
1770
+ <line num="542" type="stmt" count="0"/>
1771
+ <line num="546" type="stmt" count="0"/>
1772
+ <line num="547" type="stmt" count="0"/>
1773
  <line num="549" type="stmt" count="0"/>
1774
+ <line num="550" type="stmt" count="0"/>
1775
  <line num="552" type="stmt" count="0"/>
1776
+ <line num="553" type="stmt" count="0"/>
1777
  <line num="554" type="stmt" count="0"/>
1778
+ <line num="558" type="stmt" count="0"/>
1779
+ <line num="562" type="stmt" count="0"/>
1780
+ <line num="566" type="stmt" count="0"/>
 
1781
  <line num="568" type="stmt" count="0"/>
1782
+ <line num="573" type="stmt" count="0"/>
1783
+ <line num="576" type="stmt" count="0"/>
1784
  <line num="578" type="stmt" count="0"/>
1785
+ <line num="588" type="method" name="get_deadline" visibility="public" complexity="2" crap="6" count="0"/>
1786
+ <line num="590" type="stmt" count="0"/>
1787
+ <line num="593" type="stmt" count="0"/>
1788
+ <line num="594" type="stmt" count="0"/>
1789
  <line num="596" type="stmt" count="0"/>
1790
+ <line num="610" type="method" name="get_time_data" visibility="public" complexity="6" crap="6.26" count="2"/>
1791
+ <line num="611" type="stmt" count="2"/>
1792
+ <line num="612" type="stmt" count="2"/>
1793
+ <line num="615" type="stmt" count="1"/>
1794
+ <line num="618" type="stmt" count="1"/>
1795
+ <line num="621" type="stmt" count="1"/>
1796
+ <line num="622" type="stmt" count="1"/>
1797
  <line num="623" type="stmt" count="1"/>
1798
+ <line num="626" type="stmt" count="1"/>
 
1799
  <line num="628" type="stmt" count="1"/>
1800
+ <line num="629" type="stmt" count="1"/>
1801
  <line num="630" type="stmt" count="1"/>
1802
  <line num="631" type="stmt" count="1"/>
1803
  <line num="632" type="stmt" count="1"/>
1804
  <line num="633" type="stmt" count="1"/>
1805
+ <line num="636" type="stmt" count="1"/>
1806
+ <line num="637" type="stmt" count="0"/>
1807
+ <line num="638" type="stmt" count="0"/>
1808
+ <line num="641" type="stmt" count="1"/>
1809
+ <line num="642" type="stmt" count="0"/>
1810
+ <line num="643" type="stmt" count="0"/>
1811
+ <line num="646" type="stmt" count="1"/>
1812
+ <line num="647" type="stmt" count="1"/>
1813
  <line num="648" type="stmt" count="1"/>
1814
+ <line num="649" type="stmt" count="0"/>
1815
+ <line num="652" type="stmt" count="1"/>
 
1816
  <line num="654" type="stmt" count="1"/>
1817
+ <line num="664" type="method" name="is_enabled" visibility="public" complexity="2" crap="6" count="0"/>
1818
+ <line num="665" type="stmt" count="0"/>
1819
  <line num="667" type="stmt" count="0"/>
1820
+ <line num="677" type="method" name="notice_trigger_get" visibility="public" complexity="9" crap="90" count="0"/>
1821
+ <line num="678" type="stmt" count="0"/>
1822
+ <line num="679" type="stmt" count="0"/>
1823
  <line num="680" type="stmt" count="0"/>
 
1824
  <line num="682" type="stmt" count="0"/>
1825
+ <line num="683" type="stmt" count="0"/>
1826
+ <line num="686" type="stmt" count="0"/>
1827
  <line num="688" type="stmt" count="0"/>
1828
+ <line num="689" type="stmt" count="0"/>
1829
+ <line num="692" type="stmt" count="0"/>
1830
+ <line num="693" type="stmt" count="0"/>
1831
  <line num="694" type="stmt" count="0"/>
1832
  <line num="695" type="stmt" count="0"/>
 
1833
  <line num="697" type="stmt" count="0"/>
1834
+ <line num="698" type="stmt" count="0"/>
1835
  <line num="700" type="stmt" count="0"/>
1836
  <line num="702" type="stmt" count="0"/>
1837
+ <line num="703" type="stmt" count="0"/>
1838
  <line num="704" type="stmt" count="0"/>
1839
  <line num="705" type="stmt" count="0"/>
1840
  <line num="706" type="stmt" count="0"/>
1845
  <line num="711" type="stmt" count="0"/>
1846
  <line num="712" type="stmt" count="0"/>
1847
  <line num="713" type="stmt" count="0"/>
 
1848
  <line num="715" type="stmt" count="0"/>
1849
+ <line num="716" type="stmt" count="0"/>
1850
  <line num="717" type="stmt" count="0"/>
1851
  <line num="718" type="stmt" count="0"/>
1852
  <line num="719" type="stmt" count="0"/>
1853
  <line num="720" type="stmt" count="0"/>
1854
  <line num="721" type="stmt" count="0"/>
1855
  <line num="722" type="stmt" count="0"/>
 
1856
  <line num="724" type="stmt" count="0"/>
1857
+ <line num="734" type="method" name="notice_backup_get" visibility="public" complexity="3" crap="12" count="0"/>
1858
+ <line num="735" type="stmt" count="0"/>
1859
+ <line num="736" type="stmt" count="0"/>
1860
  <line num="737" type="stmt" count="0"/>
1861
  <line num="738" type="stmt" count="0"/>
 
1862
  <line num="740" type="stmt" count="0"/>
1863
  <line num="742" type="stmt" count="0"/>
1864
+ <line num="743" type="stmt" count="0"/>
1865
  <line num="744" type="stmt" count="0"/>
1866
  <line num="745" type="stmt" count="0"/>
1867
  <line num="746" type="stmt" count="0"/>
1868
  <line num="747" type="stmt" count="0"/>
1869
  <line num="748" type="stmt" count="0"/>
1870
  <line num="749" type="stmt" count="0"/>
 
1871
  <line num="751" type="stmt" count="0"/>
1872
  <line num="753" type="stmt" count="0"/>
1873
  <line num="755" type="stmt" count="0"/>
1874
+ <line num="756" type="stmt" count="0"/>
1875
  <line num="757" type="stmt" count="0"/>
1876
  <line num="758" type="stmt" count="0"/>
1877
  <line num="759" type="stmt" count="0"/>
 
1878
  <line num="761" type="stmt" count="0"/>
1879
+ <line num="773" type="method" name="notice_backup_show" visibility="public" complexity="14" crap="210" count="0"/>
1880
+ <line num="774" type="stmt" count="0"/>
1881
+ <line num="781" type="stmt" count="0"/>
1882
+ <line num="782" type="stmt" count="0"/>
1883
  <line num="783" type="stmt" count="0"/>
1884
  <line num="784" type="stmt" count="0"/>
1885
  <line num="785" type="stmt" count="0"/>
1886
+ <line num="788" type="stmt" count="0"/>
1887
+ <line num="794" type="stmt" count="0"/>
1888
+ <line num="795" type="stmt" count="0"/>
1889
+ <line num="802" type="stmt" count="0"/>
1890
+ <line num="803" type="stmt" count="0"/>
1891
+ <line num="807" type="stmt" count="0"/>
1892
+ <line num="808" type="stmt" count="0"/>
1893
+ <line num="811" type="stmt" count="0"/>
1894
+ <line num="815" type="stmt" count="0"/>
1895
+ <line num="816" type="stmt" count="0"/>
1896
  <line num="817" type="stmt" count="0"/>
 
1897
  <line num="819" type="stmt" count="0"/>
1898
+ <line num="820" type="stmt" count="0"/>
1899
  <line num="821" type="stmt" count="0"/>
 
1900
  <line num="823" type="stmt" count="0"/>
1901
+ <line num="824" type="stmt" count="0"/>
1902
  <line num="825" type="stmt" count="0"/>
1903
  <line num="826" type="stmt" count="0"/>
1904
+ <line num="835" type="stmt" count="0"/>
1905
+ <line num="844" type="stmt" count="0"/>
1906
+ <line num="845" type="stmt" count="0"/>
1907
  <line num="846" type="stmt" count="0"/>
1908
  <line num="847" type="stmt" count="0"/>
1909
  <line num="848" type="stmt" count="0"/>
1910
  <line num="849" type="stmt" count="0"/>
 
1911
  <line num="851" type="stmt" count="0"/>
1912
+ <line num="852" type="stmt" count="0"/>
1913
  <line num="854" type="stmt" count="0"/>
1914
+ <line num="855" type="stmt" count="0"/>
1915
+ <line num="859" type="stmt" count="0"/>
1916
+ <line num="862" type="stmt" count="0"/>
1917
+ <line num="863" type="stmt" count="0"/>
1918
+ <line num="867" type="stmt" count="0"/>
1919
+ <line num="868" type="stmt" count="0"/>
1920
  <line num="870" type="stmt" count="0"/>
1921
+ <line num="873" type="stmt" count="0"/>
1922
+ <line num="881" type="stmt" count="0"/>
1923
+ <line num="882" type="stmt" count="0"/>
1924
  <line num="883" type="stmt" count="0"/>
1925
  <line num="884" type="stmt" count="0"/>
1926
  <line num="885" type="stmt" count="0"/>
1927
+ <line num="901" type="method" name="notice_deadline_show" visibility="public" complexity="5" crap="30" count="0"/>
1928
+ <line num="909" type="stmt" count="0"/>
1929
+ <line num="910" type="stmt" count="0"/>
1930
+ <line num="914" type="stmt" count="0"/>
 
1931
  <line num="916" type="stmt" count="0"/>
1932
+ <line num="919" type="stmt" count="0"/>
1933
+ <line num="920" type="stmt" count="0"/>
1934
+ <line num="924" type="stmt" count="0"/>
1935
+ <line num="927" type="stmt" count="0"/>
1936
+ <line num="928" type="stmt" count="0"/>
1937
+ <line num="935" type="stmt" count="0"/>
1938
+ <line num="946" type="method" name="set_update_trigger" visibility="public" complexity="5" crap="30" count="0"/>
1939
+ <line num="947" type="stmt" count="0"/>
1940
+ <line num="948" type="stmt" count="0"/>
1941
+ <line num="951" type="stmt" count="0"/>
1942
  <line num="953" type="stmt" count="0"/>
1943
+ <line num="954" type="stmt" count="0"/>
1944
+ <line num="957" type="stmt" count="0"/>
1945
  <line num="959" type="stmt" count="0"/>
1946
+ <line num="960" type="stmt" count="0"/>
1947
+ <line num="971" type="method" name="notice_activated_get" visibility="public" complexity="7" crap="56" count="0"/>
1948
+ <line num="973" type="stmt" count="0"/>
1949
  <line num="975" type="stmt" count="0"/>
1950
  <line num="977" type="stmt" count="0"/>
1951
  <line num="979" type="stmt" count="0"/>
1952
  <line num="981" type="stmt" count="0"/>
1953
  <line num="983" type="stmt" count="0"/>
1954
  <line num="985" type="stmt" count="0"/>
1955
+ <line num="986" type="stmt" count="0"/>
1956
  <line num="987" type="stmt" count="0"/>
 
1957
  <line num="989" type="stmt" count="0"/>
1958
+ <line num="990" type="stmt" count="0"/>
1959
  <line num="991" type="stmt" count="0"/>
1960
  <line num="992" type="stmt" count="0"/>
1961
  <line num="993" type="stmt" count="0"/>
1965
  <line num="997" type="stmt" count="0"/>
1966
  <line num="998" type="stmt" count="0"/>
1967
  <line num="999" type="stmt" count="0"/>
1968
+ <line num="1002" type="stmt" count="0"/>
 
1969
  <line num="1004" type="stmt" count="0"/>
1970
+ <line num="1005" type="stmt" count="0"/>
1971
  <line num="1006" type="stmt" count="0"/>
 
1972
  <line num="1008" type="stmt" count="0"/>
1973
+ <line num="1011" type="stmt" count="0"/>
1974
+ <line num="1012" type="stmt" count="0"/>
1975
  <line num="1013" type="stmt" count="0"/>
 
1976
  <line num="1015" type="stmt" count="0"/>
1977
+ <line num="1029" type="method" name="notice_activated_show" visibility="public" complexity="2" crap="6" count="0"/>
1978
+ <line num="1035" type="stmt" count="0"/>
1979
+ <line num="1036" type="stmt" count="0"/>
1980
+ <line num="1039" type="stmt" count="0"/>
1981
  <line num="1041" type="stmt" count="0"/>
1982
+ <line num="1042" type="stmt" count="0"/>
1983
+ <line num="1051" type="method" name="wp_ajax_cancel" visibility="public" complexity="4" crap="20" count="0"/>
1984
+ <line num="1053" type="stmt" count="0"/>
1985
+ <line num="1054" type="stmt" count="0"/>
1986
  <line num="1056" type="stmt" count="0"/>
1987
  <line num="1058" type="stmt" count="0"/>
1988
+ <line num="1059" type="stmt" count="0"/>
1989
+ <line num="1062" type="stmt" count="0"/>
1990
+ <line num="1063" type="stmt" count="0"/>
1991
  <line num="1064" type="stmt" count="0"/>
 
1992
  <line num="1066" type="stmt" count="0"/>
1993
  <line num="1068" type="stmt" count="0"/>
1994
+ <line num="1069" type="stmt" count="0"/>
1995
+ <line num="1072" type="stmt" count="0"/>
1996
+ <line num="1075" type="stmt" count="0"/>
1997
+ <line num="1078" type="stmt" count="0"/>
1998
+ <line num="1079" type="stmt" count="0"/>
1999
+ <line num="1088" type="method" name="wp_ajax_get_deadline" visibility="public" complexity="3" crap="12" count="0"/>
2000
+ <line num="1090" type="stmt" count="0"/>
2001
+ <line num="1091" type="stmt" count="0"/>
2002
  <line num="1092" type="stmt" count="0"/>
2003
+ <line num="1095" type="stmt" count="0"/>
2004
+ <line num="1098" type="stmt" count="0"/>
2005
+ <line num="1099" type="stmt" count="0"/>
2006
  <line num="1100" type="stmt" count="0"/>
2007
+ <line num="1103" type="stmt" count="0"/>
2008
+ <line num="1104" type="stmt" count="0"/>
2009
+ <line num="1114" type="method" name="wp_ajax_get_countdown_notice" visibility="public" complexity="3" crap="12" count="0"/>
2010
+ <line num="1115" type="stmt" count="0"/>
2011
+ <line num="1116" type="stmt" count="0"/>
2012
  <line num="1117" type="stmt" count="0"/>
 
2013
  <line num="1119" type="stmt" count="0"/>
2014
+ <line num="1120" type="stmt" count="0"/>
2015
  <line num="1121" type="stmt" count="0"/>
2016
  <line num="1122" type="stmt" count="0"/>
 
2017
  <line num="1124" type="stmt" count="0"/>
2018
+ <line num="1125" type="stmt" count="0"/>
2019
  <line num="1127" type="stmt" count="0"/>
2020
+ <line num="1128" type="stmt" count="0"/>
2021
+ <line num="1137" type="method" name="wp_ajax_get_protect_notice" visibility="public" complexity="4" crap="20" count="0"/>
2022
+ <line num="1138" type="stmt" count="0"/>
2023
+ <line num="1139" type="stmt" count="0"/>
2024
  <line num="1140" type="stmt" count="0"/>
 
2025
  <line num="1142" type="stmt" count="0"/>
2026
+ <line num="1143" type="stmt" count="0"/>
2027
  <line num="1145" type="stmt" count="0"/>
2028
+ <line num="1146" type="stmt" count="0"/>
2029
  <line num="1147" type="stmt" count="0"/>
 
2030
  <line num="1149" type="stmt" count="0"/>
2031
+ <line num="1150" type="stmt" count="0"/>
2032
  <line num="1151" type="stmt" count="0"/>
2033
  <line num="1152" type="stmt" count="0"/>
2034
+ <line num="1155" type="stmt" count="0"/>
2035
+ <line num="1156" type="stmt" count="0"/>
2036
+ <line num="1167" type="method" name="validate_rollback_option" visibility="public" complexity="4" crap="20" count="0"/>
2037
+ <line num="1168" type="stmt" count="0"/>
2038
+ <line num="1169" type="stmt" count="0"/>
2039
  <line num="1170" type="stmt" count="0"/>
 
2040
  <line num="1172" type="stmt" count="0"/>
2041
+ <line num="1173" type="stmt" count="0"/>
2042
  <line num="1174" type="stmt" count="0"/>
2043
  <line num="1175" type="stmt" count="0"/>
 
2044
  <line num="1177" type="stmt" count="0"/>
2045
+ <line num="1189" type="method" name="wp_ajax_cli_cancel" visibility="public" complexity="3" crap="12" count="0"/>
2046
+ <line num="1190" type="stmt" count="0"/>
2047
  <line num="1192" type="stmt" count="0"/>
2048
+ <line num="1193" type="stmt" count="0"/>
2049
  <line num="1194" type="stmt" count="0"/>
2050
  <line num="1195" type="stmt" count="0"/>
2051
  <line num="1196" type="stmt" count="0"/>
 
2052
  <line num="1198" type="stmt" count="0"/>
2053
+ <metrics loc="1199" ncloc="660" classes="1" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="423" coveredstatements="29" elements="449" coveredelements="31"/>
2054
+ </file>
2055
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-auto-updates.php">
2056
+ <class name="Boldgrid_Backup_Admin_Auto_Updates" namespace="global" fullPackage="Boldgrid.Backup.Admin.Auto">
2057
+ <metrics complexity="29" methods="8" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="71" coveredstatements="71" elements="79" coveredelements="79"/>
2058
+ </class>
2059
+ <line num="60" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="7"/>
2060
+ <line num="62" type="stmt" count="7"/>
2061
+ <line num="63" type="stmt" count="7"/>
2062
+ <line num="64" type="stmt" count="7"/>
2063
+ <line num="65" type="stmt" count="7"/>
2064
+ <line num="66" type="stmt" count="7"/>
2065
+ <line num="67" type="stmt" count="7"/>
2066
+ <line num="74" type="method" name="set_settings" visibility="public" complexity="2" crap="2" count="7"/>
2067
+ <line num="75" type="stmt" count="7"/>
2068
+ <line num="76" type="stmt" count="7"/>
2069
+ <line num="77" type="stmt" count="6"/>
2070
+ <line num="78" type="stmt" count="6"/>
2071
+ <line num="79" type="stmt" count="2"/>
2072
+ <line num="80" type="stmt" count="2"/>
2073
+ <line num="83" type="stmt" count="7"/>
2074
+ <line num="92" type="method" name="get_days" visibility="public" complexity="3" crap="3" count="2"/>
2075
+ <line num="93" type="stmt" count="2"/>
2076
+ <line num="94" type="stmt" count="2"/>
2077
+ <line num="96" type="stmt" count="2"/>
2078
+ <line num="108" type="method" name="maybe_update_plugin" visibility="public" complexity="4" crap="4" count="1"/>
2079
+ <line num="109" type="stmt" count="1"/>
2080
+ <line num="110" type="stmt" count="1"/>
2081
+ <line num="111" type="stmt" count="1"/>
2082
+ <line num="113" type="stmt" count="1"/>
2083
+ <line num="114" type="stmt" count="1"/>
2084
+ <line num="115" type="stmt" count="1"/>
2085
+ <line num="116" type="stmt" count="1"/>
2086
+ <line num="117" type="stmt" count="1"/>
2087
+ <line num="119" type="stmt" count="1"/>
2088
+ <line num="131" type="method" name="maybe_update_theme" visibility="public" complexity="4" crap="4" count="1"/>
2089
+ <line num="132" type="stmt" count="1"/>
2090
+ <line num="133" type="stmt" count="1"/>
2091
+ <line num="134" type="stmt" count="1"/>
2092
+ <line num="135" type="stmt" count="1"/>
2093
+ <line num="136" type="stmt" count="1"/>
2094
+ <line num="137" type="stmt" count="1"/>
2095
+ <line num="139" type="stmt" count="1"/>
2096
+ <line num="140" type="stmt" count="1"/>
2097
+ <line num="142" type="stmt" count="1"/>
2098
+ <line num="157" type="method" name="auto_update_plugins" visibility="public" complexity="4" crap="4" count="1"/>
2099
+ <line num="159" type="stmt" count="1"/>
2100
+ <line num="160" type="stmt" count="1"/>
2101
+ <line num="161" type="stmt" count="1"/>
2102
+ <line num="162" type="stmt" count="1"/>
2103
+ <line num="163" type="stmt" count="1"/>
2104
+ <line num="164" type="stmt" count="1"/>
2105
+ <line num="165" type="stmt" count="1"/>
2106
+ <line num="167" type="stmt" count="1"/>
2107
+ <line num="170" type="stmt" count="1"/>
2108
+ <line num="185" type="method" name="auto_update_themes" visibility="public" complexity="4" crap="4" count="1"/>
2109
+ <line num="187" type="stmt" count="1"/>
2110
+ <line num="188" type="stmt" count="1"/>
2111
+ <line num="189" type="stmt" count="1"/>
2112
+ <line num="190" type="stmt" count="1"/>
2113
+ <line num="191" type="stmt" count="1"/>
2114
+ <line num="192" type="stmt" count="1"/>
2115
+ <line num="193" type="stmt" count="1"/>
2116
+ <line num="195" type="stmt" count="1"/>
2117
+ <line num="198" type="stmt" count="1"/>
2118
+ <line num="209" type="method" name="auto_update_core" visibility="public" complexity="7" crap="7" count="1"/>
2119
+ <line num="211" type="stmt" count="1"/>
2120
+ <line num="212" type="stmt" count="1"/>
2121
+ <line num="213" type="stmt" count="1"/>
2122
+ <line num="214" type="stmt" count="1"/>
2123
+ <line num="215" type="stmt" count="1"/>
2124
+ <line num="216" type="stmt" count="1"/>
2125
+ <line num="218" type="stmt" count="1"/>
2126
+ <line num="219" type="stmt" count="1"/>
2127
+ <line num="220" type="stmt" count="1"/>
2128
+ <line num="221" type="stmt" count="1"/>
2129
+ <line num="223" type="stmt" count="1"/>
2130
+ <line num="224" type="stmt" count="1"/>
2131
+ <line num="225" type="stmt" count="1"/>
2132
+ <line num="226" type="stmt" count="1"/>
2133
+ <line num="228" type="stmt" count="1"/>
2134
+ <line num="229" type="stmt" count="1"/>
2135
+ <line num="230" type="stmt" count="1"/>
2136
+ <line num="231" type="stmt" count="1"/>
2137
+ <line num="232" type="stmt" count="1"/>
2138
+ <metrics loc="233" ncloc="114" classes="1" methods="8" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="71" coveredstatements="71" elements="79" coveredelements="79"/>
2139
  </file>
2140
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-backup-dir.php">
2141
  <class name="Boldgrid_Backup_Admin_Backup_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Backup">
2142
+ <metrics complexity="63" methods="14" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="205" coveredstatements="143" elements="219" coveredelements="150"/>
2143
  </class>
2144
+ <line num="64" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
2145
+ <line num="65" type="stmt" count="29"/>
2146
+ <line num="66" type="stmt" count="29"/>
2147
  <line num="75" type="method" name="can_exec_write" visibility="public" complexity="1" crap="1" count="1"/>
2148
  <line num="76" type="stmt" count="1"/>
2149
  <line num="78" type="stmt" count="1"/>
2150
+ <line num="89" type="method" name="create" visibility="public" complexity="11" crap="11.15" count="3"/>
2151
+ <line num="90" type="stmt" count="3"/>
2152
+ <line num="93" type="stmt" count="3"/>
2153
+ <line num="96" type="stmt" count="3"/>
2154
+ <line num="98" type="stmt" count="3"/>
2155
+ <line num="100" type="stmt" count="3"/>
2156
+ <line num="102" type="stmt" count="3"/>
2157
+ <line num="103" type="stmt" count="3"/>
2158
+ <line num="104" type="stmt" count="3"/>
2159
+ <line num="108" type="stmt" count="3"/>
2160
+ <line num="109" type="stmt" count="3"/>
2161
+ <line num="110" type="stmt" count="3"/>
2162
+ <line num="111" type="stmt" count="3"/>
2163
+ <line num="113" type="stmt" count="3"/>
2164
+ <line num="114" type="stmt" count="3"/>
2165
+ <line num="115" type="stmt" count="3"/>
2166
+ <line num="116" type="stmt" count="3"/>
2167
+ <line num="118" type="stmt" count="3"/>
2168
+ <line num="119" type="stmt" count="3"/>
2169
+ <line num="120" type="stmt" count="3"/>
2170
+ <line num="121" type="stmt" count="3"/>
2171
+ <line num="123" type="stmt" count="3"/>
2172
+ <line num="124" type="stmt" count="3"/>
2173
+ <line num="125" type="stmt" count="3"/>
2174
+ <line num="127" type="stmt" count="3"/>
2175
+ <line num="128" type="stmt" count="3"/>
2176
+ <line num="129" type="stmt" count="3"/>
2177
+ <line num="130" type="stmt" count="3"/>
2178
+ <line num="140" type="stmt" count="3"/>
2179
+ <line num="142" type="stmt" count="3"/>
2180
+ <line num="143" type="stmt" count="3"/>
2181
+ <line num="144" type="stmt" count="3"/>
2182
+ <line num="145" type="stmt" count="3"/>
2183
  <line num="146" type="stmt" count="1"/>
2184
  <line num="147" type="stmt" count="1"/>
2185
  <line num="148" type="stmt" count="1"/>
2186
  <line num="149" type="stmt" count="0"/>
2187
  <line num="150" type="stmt" count="0"/>
2188
  <line num="152" type="stmt" count="1"/>
2189
+ <line num="153" type="stmt" count="3"/>
2190
+ <line num="154" type="stmt" count="3"/>
2191
+ <line num="155" type="stmt" count="3"/>
2192
  <line num="156" type="stmt" count="1"/>
2193
  <line num="157" type="stmt" count="1"/>
2194
  <line num="158" type="stmt" count="0"/>
2200
  <line num="166" type="stmt" count="0"/>
2201
  <line num="168" type="stmt" count="1"/>
2202
  <line num="169" type="stmt" count="1"/>
2203
+ <line num="170" type="stmt" count="3"/>
2204
+ <line num="171" type="stmt" count="3"/>
2205
+ <line num="172" type="stmt" count="3"/>
2206
+ <line num="174" type="stmt" count="3"/>
2207
  <line num="184" type="method" name="dirlist" visibility="public" complexity="2" crap="2" count="4"/>
2208
  <line num="185" type="stmt" count="4"/>
2209
  <line num="187" type="stmt" count="4"/>
2228
  <line num="227" type="stmt" count="4"/>
2229
  <line num="228" type="stmt" count="4"/>
2230
  <line num="230" type="stmt" count="4"/>
2231
+ <line num="240" type="method" name="get" visibility="public" complexity="4" crap="4" count="7"/>
2232
+ <line num="243" type="stmt" count="7"/>
2233
+ <line num="244" type="stmt" count="5"/>
2234
+ <line num="248" type="stmt" count="3"/>
2235
+ <line num="249" type="stmt" count="3"/>
2236
+ <line num="250" type="stmt" count="3"/>
2237
+ <line num="251" type="stmt" count="1"/>
2238
+ <line num="253" type="stmt" count="1"/>
2239
  <line num="256" type="stmt" count="2"/>
2240
+ <line num="267" type="method" name="get_logs_dir" visibility="public" complexity="7" crap="7" count="7"/>
2241
+ <line num="268" type="stmt" count="7"/>
2242
+ <line num="270" type="stmt" count="7"/>
2243
+ <line num="273" type="stmt" count="7"/>
2244
+ <line num="283" type="stmt" count="7"/>
2245
+ <line num="284" type="stmt" count="7"/>
2246
+ <line num="287" type="stmt" count="7"/>
2247
+ <line num="288" type="stmt" count="7"/>
2248
+ <line num="289" type="stmt" count="7"/>
2249
+ <line num="292" type="stmt" count="7"/>
2250
+ <line num="294" type="stmt" count="7"/>
2251
+ <line num="295" type="stmt" count="7"/>
2252
+ <line num="296" type="stmt" count="7"/>
2253
+ <line num="298" type="stmt" count="7"/>
2254
+ <line num="308" type="stmt" count="7"/>
2255
  <line num="309" type="stmt" count="1"/>
2256
  <line num="310" type="stmt" count="1"/>
2257
+ <line num="312" type="stmt" count="7"/>
2258
  <line num="321" type="method" name="get_possible_dirs" visibility="public" complexity="3" crap="4.46" count="2"/>
2259
  <line num="322" type="stmt" count="2"/>
2260
  <line num="325" type="stmt" count="2"/>
2350
  <line num="564" type="stmt" count="0"/>
2351
  <line num="565" type="stmt" count="0"/>
2352
  <line num="567" type="stmt" count="2"/>
2353
+ <line num="579" type="method" name="set" visibility="public" complexity="3" crap="3.10" count="3"/>
2354
+ <line num="581" type="stmt" count="3"/>
2355
  <line num="582" type="stmt" count="0"/>
2356
+ <line num="585" type="stmt" count="3"/>
2357
+ <line num="586" type="stmt" count="3"/>
2358
  <line num="587" type="stmt" count="0"/>
2359
+ <line num="590" type="stmt" count="3"/>
2360
+ <line num="592" type="stmt" count="3"/>
2361
+ <line num="593" type="stmt" count="3"/>
2362
+ <line num="594" type="stmt" count="3"/>
2363
+ <metrics loc="595" ncloc="329" classes="1" methods="14" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="205" coveredstatements="143" elements="219" coveredelements="150"/>
2364
  </file>
2365
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php">
2366
  <class name="Boldgrid_Backup_Admin_Cli" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2468
  <class name="Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2469
  <metrics complexity="8" methods="6" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="7" elements="17" coveredelements="11"/>
2470
  </class>
2471
+ <line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="8"/>
2472
+ <line num="47" type="stmt" count="8"/>
2473
+ <line num="48" type="stmt" count="8"/>
2474
+ <line num="50" type="stmt" count="8"/>
2475
+ <line num="51" type="stmt" count="8"/>
2476
  <line num="74" type="method" name="archive_files" visibility="public" complexity="1" crap="2" count="0"/>
2477
  <line num="75" type="stmt" count="0"/>
2478
  <line num="86" type="method" name="is_available" visibility="public" complexity="1" crap="1" count="1"/>
2491
  <class name="Boldgrid_Backup_Admin_Compressors" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2492
  <metrics complexity="17" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="11" elements="36" coveredelements="14"/>
2493
  </class>
2494
+ <line num="50" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="29"/>
2495
+ <line num="51" type="stmt" count="29"/>
2496
+ <line num="57" type="stmt" count="29"/>
2497
+ <line num="58" type="stmt" count="29"/>
2498
+ <line num="59" type="stmt" count="29"/>
2499
+ <line num="60" type="stmt" count="29"/>
2500
  <line num="69" type="method" name="get" visibility="public" complexity="3" crap="3.07" count="4"/>
2501
  <line num="70" type="stmt" count="4"/>
2502
  <line num="71" type="stmt" count="4"/>
2531
  </file>
2532
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-config.php">
2533
  <class name="Boldgrid_Backup_Admin_Config" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2534
+ <metrics complexity="55" methods="13" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="74" elements="142" coveredelements="79"/>
2535
  </class>
2536
+ <line num="131" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="29"/>
2537
+ <line num="133" type="stmt" count="29"/>
2538
+ <line num="134" type="stmt" count="29"/>
2539
+ <line num="135" type="stmt" count="29"/>
2540
+ <line num="137" type="stmt" count="29"/>
2541
+ <line num="138" type="stmt" count="29"/>
2542
+ <line num="139" type="stmt" count="29"/>
2543
+ <line num="140" type="stmt" count="29"/>
2544
+ <line num="142" type="stmt" count="29"/>
2545
+ <line num="143" type="stmt" count="29"/>
2546
  <line num="152" type="method" name="get_home_directory" visibility="public" complexity="18" crap="83.95" count="2"/>
2547
  <line num="154" type="stmt" count="2"/>
2548
  <line num="155" type="stmt" count="0"/>
2591
  <line num="256" type="stmt" count="0"/>
2592
  <line num="267" type="method" name="get_default_retention" visibility="public" complexity="1" crap="1" count="7"/>
2593
  <line num="268" type="stmt" count="7"/>
2594
+ <line num="277" type="method" name="set_lang" visibility="public" complexity="1" crap="1" count="29"/>
2595
+ <line num="278" type="stmt" count="29"/>
2596
+ <line num="279" type="stmt" count="29"/>
2597
+ <line num="280" type="stmt" count="29"/>
2598
+ <line num="281" type="stmt" count="29"/>
2599
+ <line num="282" type="stmt" count="29"/>
2600
+ <line num="283" type="stmt" count="29"/>
2601
+ <line num="284" type="stmt" count="29"/>
2602
+ <line num="285" type="stmt" count="29"/>
2603
+ <line num="286" type="stmt" count="29"/>
2604
+ <line num="287" type="stmt" count="29"/>
2605
+ <line num="289" type="stmt" count="29"/>
2606
  <line num="301" type="method" name="custom_upload_dir" visibility="public" complexity="1" crap="2" count="0"/>
2607
  <line num="303" type="stmt" count="0"/>
2608
  <line num="306" type="stmt" count="0"/>
2675
  <line num="470" type="stmt" count="1"/>
2676
  <line num="471" type="stmt" count="1"/>
2677
  <line num="473" type="stmt" count="1"/>
2678
+ <metrics loc="475" ncloc="203" classes="1" methods="13" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="74" elements="142" coveredelements="79"/>
2679
  </file>
2680
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core-files.php">
2681
  <class name="Boldgrid_Backup_Admin_Core_Files" namespace="global" fullPackage="Boldgrid.Backup.Admin.Core">
2682
  <metrics complexity="6" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="8" elements="11" coveredelements="9"/>
2683
  </class>
2684
+ <line num="71" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
2685
+ <line num="72" type="stmt" count="29"/>
2686
+ <line num="73" type="stmt" count="29"/>
2687
  <line num="83" type="method" name="is_core_file" visibility="public" complexity="5" crap="5.07" count="4"/>
2688
  <line num="84" type="stmt" count="4"/>
2689
  <line num="85" type="stmt" count="0"/>
2696
  </file>
2697
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php">
2698
  <class name="Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2699
+ <metrics complexity="235" methods="29" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="1116" coveredstatements="538" elements="1145" coveredelements="542"/>
2700
  </class>
2701
+ <line num="600" type="method" name="__construct" visibility="public" complexity="8" crap="8.07" count="29"/>
2702
+ <line num="601" type="stmt" count="29"/>
2703
+ <line num="602" type="stmt" count="29"/>
2704
+ <line num="603" type="stmt" count="29"/>
2705
+ <line num="605" type="stmt" count="29"/>
2706
+ <line num="607" type="stmt" count="29"/>
2707
+ <line num="608" type="stmt" count="29"/>
2708
+ <line num="609" type="stmt" count="29"/>
2709
+ <line num="611" type="stmt" count="29"/>
2710
+ <line num="613" type="stmt" count="29"/>
2711
+ <line num="616" type="stmt" count="29"/>
2712
+ <line num="619" type="stmt" count="29"/>
2713
+ <line num="622" type="stmt" count="29"/>
2714
+ <line num="625" type="stmt" count="29"/>
2715
+ <line num="628" type="stmt" count="29"/>
2716
+ <line num="631" type="stmt" count="29"/>
2717
+ <line num="634" type="stmt" count="29"/>
2718
+ <line num="638" type="stmt" count="29"/>
2719
+ <line num="640" type="stmt" count="29"/>
2720
+ <line num="642" type="stmt" count="29"/>
2721
+ <line num="644" type="stmt" count="29"/>
2722
+ <line num="646" type="stmt" count="29"/>
2723
+ <line num="648" type="stmt" count="29"/>
2724
+ <line num="650" type="stmt" count="29"/>
2725
+ <line num="652" type="stmt" count="29"/>
2726
+ <line num="654" type="stmt" count="29"/>
2727
+ <line num="656" type="stmt" count="29"/>
2728
+ <line num="658" type="stmt" count="29"/>
2729
+ <line num="660" type="stmt" count="29"/>
2730
+ <line num="662" type="stmt" count="29"/>
2731
+ <line num="664" type="stmt" count="29"/>
2732
+ <line num="666" type="stmt" count="29"/>
2733
+ <line num="668" type="stmt" count="29"/>
2734
+ <line num="670" type="stmt" count="29"/>
2735
+ <line num="672" type="stmt" count="29"/>
2736
+ <line num="674" type="stmt" count="29"/>
2737
+ <line num="676" type="stmt" count="29"/>
2738
+ <line num="678" type="stmt" count="29"/>
2739
+ <line num="680" type="stmt" count="29"/>
2740
+ <line num="682" type="stmt" count="29"/>
2741
+ <line num="684" type="stmt" count="29"/>
2742
+ <line num="686" type="stmt" count="29"/>
2743
+ <line num="688" type="stmt" count="29"/>
2744
+ <line num="690" type="stmt" count="29"/>
2745
+ <line num="692" type="stmt" count="29"/>
2746
+ <line num="694" type="stmt" count="29"/>
2747
+ <line num="696" type="stmt" count="29"/>
2748
+ <line num="698" type="stmt" count="29"/>
2749
+ <line num="700" type="stmt" count="29"/>
2750
+ <line num="702" type="stmt" count="29"/>
2751
+ <line num="704" type="stmt" count="29"/>
2752
+ <line num="706" type="stmt" count="29"/>
2753
+ <line num="708" type="stmt" count="29"/>
2754
+ <line num="710" type="stmt" count="29"/>
2755
+ <line num="712" type="stmt" count="29"/>
2756
+ <line num="714" type="stmt" count="29"/>
2757
+ <line num="716" type="stmt" count="29"/>
2758
+ <line num="718" type="stmt" count="29"/>
2759
+ <line num="724" type="stmt" count="29"/>
2760
+ <line num="726" type="stmt" count="29"/>
2761
+ <line num="730" type="stmt" count="29"/>
2762
+ <line num="731" type="stmt" count="0"/>
2763
+ <line num="732" type="stmt" count="0"/>
2764
+ <line num="735" type="stmt" count="29"/>
2765
+ <line num="737" type="stmt" count="29"/>
2766
+ <line num="740" type="stmt" count="29"/>
2767
+ <line num="741" type="stmt" count="29"/>
2768
+ <line num="744" type="stmt" count="29"/>
2769
+ <line num="745" type="stmt" count="0"/>
2770
+ <line num="746" type="stmt" count="0"/>
2771
+ <line num="749" type="stmt" count="29"/>
2772
+ <line num="750" type="stmt" count="29"/>
2773
+ <line num="751" type="stmt" count="0"/>
2774
+ <line num="752" type="stmt" count="0"/>
2775
+ <line num="753" type="stmt" count="29"/>
2776
+ <line num="754" type="stmt" count="0"/>
2777
+ <line num="755" type="stmt" count="0"/>
2778
+ <line num="756" type="stmt" count="29"/>
2779
+ <line num="765" type="method" name="get_backup_identifier" visibility="public" complexity="5" crap="5.79" count="34"/>
2780
+ <line num="767" type="stmt" count="34"/>
2781
+ <line num="768" type="stmt" count="7"/>
2782
+ <line num="772" type="stmt" count="29"/>
2783
+ <line num="775" type="stmt" count="29"/>
2784
+ <line num="776" type="stmt" count="28"/>
2785
+ <line num="778" type="stmt" count="28"/>
2786
+ <line num="782" type="stmt" count="1"/>
2787
+ <line num="784" type="stmt" count="1"/>
2788
+ <line num="786" type="stmt" count="1"/>
2789
+ <line num="789" type="stmt" count="1"/>
2790
+ <line num="790" type="stmt" count="0"/>
2791
+ <line num="792" type="stmt" count="0"/>
2792
+ <line num="793" type="stmt" count="0"/>
2793
+ <line num="794" type="stmt" count="0"/>
2794
+ <line num="796" type="stmt" count="0"/>
2795
+ <line num="797" type="stmt" count="0"/>
2796
+ <line num="800" type="stmt" count="1"/>
2797
+ <line num="802" type="stmt" count="1"/>
2798
+ <line num="804" type="stmt" count="1"/>
2799
+ <line num="816" type="method" name="get_core" visibility="public" complexity="1" crap="1" count="14"/>
2800
+ <line num="817" type="stmt" count="14"/>
2801
+ <line num="827" type="method" name="init_premium" visibility="public" complexity="5" crap="30" count="0"/>
 
 
 
 
 
 
 
2802
  <line num="828" type="stmt" count="0"/>
 
2803
  <line num="830" type="stmt" count="0"/>
 
 
 
 
 
2804
  <line num="836" type="stmt" count="0"/>
2805
+ <line num="837" type="stmt" count="0"/>
 
 
 
2806
  <line num="845" type="stmt" count="0"/>
2807
  <line num="846" type="stmt" count="0"/>
 
2808
  <line num="848" type="stmt" count="0"/>
2809
  <line num="849" type="stmt" count="0"/>
2810
  <line num="851" type="stmt" count="0"/>
2811
  <line num="852" type="stmt" count="0"/>
2812
+ <line num="854" type="stmt" count="0"/>
2813
  <line num="855" type="stmt" count="0"/>
2814
+ <line num="856" type="stmt" count="0"/>
2815
+ <line num="857" type="stmt" count="0"/>
2816
  <line num="858" type="stmt" count="0"/>
2817
  <line num="859" type="stmt" count="0"/>
2818
  <line num="860" type="stmt" count="0"/>
2819
+ <line num="861" type="stmt" count="0"/>
2820
+ <line num="862" type="stmt" count="0"/>
2821
+ <line num="864" type="stmt" count="0"/>
2822
+ <line num="866" type="stmt" count="0"/>
2823
+ <line num="867" type="stmt" count="0"/>
2824
+ <line num="869" type="stmt" count="0"/>
2825
+ <line num="871" type="stmt" count="0"/>
2826
+ <line num="872" type="stmt" count="0"/>
2827
+ <line num="873" type="stmt" count="0"/>
2828
+ <line num="874" type="stmt" count="0"/>
2829
+ <line num="875" type="stmt" count="0"/>
2830
+ <line num="877" type="stmt" count="0"/>
2831
  <line num="878" type="stmt" count="0"/>
2832
+ <line num="879" type="stmt" count="0"/>
2833
+ <line num="881" type="stmt" count="0"/>
2834
+ <line num="884" type="stmt" count="0"/>
2835
+ <line num="885" type="stmt" count="0"/>
2836
+ <line num="886" type="stmt" count="0"/>
2837
+ <line num="901" type="method" name="execute_command" visibility="public" complexity="6" crap="6.04" count="5"/>
2838
+ <line num="903" type="stmt" count="5"/>
 
 
2839
  <line num="904" type="stmt" count="0"/>
2840
+ <line num="908" type="stmt" count="5"/>
2841
+ <line num="909" type="stmt" count="1"/>
2842
+ <line num="910" type="stmt" count="1"/>
2843
+ <line num="913" type="stmt" count="5"/>
2844
+ <line num="914" type="stmt" count="5"/>
2845
+ <line num="915" type="stmt" count="5"/>
2846
+ <line num="917" type="stmt" count="5"/>
2847
+ <line num="919" type="stmt" count="5"/>
2848
+ <line num="929" type="method" name="add_menu_items" visibility="public" complexity="5" crap="30" count="0"/>
 
 
 
 
 
 
 
2849
  <line num="930" type="stmt" count="0"/>
 
2850
  <line num="933" type="stmt" count="0"/>
2851
  <line num="934" type="stmt" count="0"/>
2852
+ <line num="935" type="stmt" count="0"/>
2853
  <line num="936" type="stmt" count="0"/>
2854
+ <line num="937" type="stmt" count="0"/>
2855
+ <line num="938" type="stmt" count="0"/>
2856
  <line num="939" type="stmt" count="0"/>
2857
  <line num="940" type="stmt" count="0"/>
2858
  <line num="941" type="stmt" count="0"/>
2859
  <line num="942" type="stmt" count="0"/>
2860
+ <line num="945" type="stmt" count="0"/>
2861
+ <line num="948" type="stmt" count="0"/>
2862
+ <line num="951" type="stmt" count="0"/>
 
 
2863
  <line num="952" type="stmt" count="0"/>
 
2864
  <line num="954" type="stmt" count="0"/>
2865
  <line num="955" type="stmt" count="0"/>
2866
  <line num="956" type="stmt" count="0"/>
2867
+ <line num="958" type="stmt" count="0"/>
2868
  <line num="959" type="stmt" count="0"/>
2869
  <line num="960" type="stmt" count="0"/>
2870
  <line num="962" type="stmt" count="0"/>
2886
  <line num="985" type="stmt" count="0"/>
2887
  <line num="986" type="stmt" count="0"/>
2888
  <line num="988" type="stmt" count="0"/>
2889
+ <line num="991" type="stmt" count="0"/>
2890
+ <line num="992" type="stmt" count="0"/>
2891
+ <line num="993" type="stmt" count="0"/>
2892
+ <line num="994" type="stmt" count="0"/>
2893
  <line num="995" type="stmt" count="0"/>
2894
  <line num="996" type="stmt" count="0"/>
 
2895
  <line num="998" type="stmt" count="0"/>
2896
  <line num="999" type="stmt" count="0"/>
2897
+ <line num="1001" type="stmt" count="0"/>
2898
+ <line num="1004" type="stmt" count="0"/>
 
2899
  <line num="1005" type="stmt" count="0"/>
2900
+ <line num="1006" type="stmt" count="0"/>
2901
+ <line num="1007" type="stmt" count="0"/>
2902
  <line num="1008" type="stmt" count="0"/>
2903
  <line num="1009" type="stmt" count="0"/>
 
2904
  <line num="1011" type="stmt" count="0"/>
2905
  <line num="1012" type="stmt" count="0"/>
2906
+ <line num="1014" type="stmt" count="0"/>
 
 
 
2907
  <line num="1021" type="stmt" count="0"/>
2908
  <line num="1022" type="stmt" count="0"/>
2909
  <line num="1023" type="stmt" count="0"/>
2925
  <line num="1047" type="stmt" count="0"/>
2926
  <line num="1048" type="stmt" count="0"/>
2927
  <line num="1049" type="stmt" count="0"/>
2928
+ <line num="1050" type="stmt" count="0"/>
2929
  <line num="1051" type="stmt" count="0"/>
2930
  <line num="1052" type="stmt" count="0"/>
2931
+ <line num="1054" type="stmt" count="0"/>
2932
  <line num="1055" type="stmt" count="0"/>
2933
+ <line num="1057" type="stmt" count="0"/>
2934
+ <line num="1060" type="stmt" count="0"/>
2935
+ <line num="1061" type="stmt" count="0"/>
2936
+ <line num="1062" type="stmt" count="0"/>
2937
+ <line num="1063" type="stmt" count="0"/>
2938
+ <line num="1064" type="stmt" count="0"/>
2939
  <line num="1065" type="stmt" count="0"/>
2940
+ <line num="1067" type="stmt" count="0"/>
2941
  <line num="1068" type="stmt" count="0"/>
 
2942
  <line num="1070" type="stmt" count="0"/>
2943
+ <line num="1073" type="stmt" count="0"/>
 
2944
  <line num="1074" type="stmt" count="0"/>
2945
+ <line num="1075" type="stmt" count="0"/>
2946
+ <line num="1077" type="stmt" count="0"/>
2947
+ <line num="1078" type="stmt" count="0"/>
2948
+ <line num="1079" type="stmt" count="0"/>
2949
+ <line num="1081" type="stmt" count="0"/>
2950
  <line num="1082" type="stmt" count="0"/>
 
2951
  <line num="1084" type="stmt" count="0"/>
2952
+ <line num="1091" type="stmt" count="0"/>
2953
+ <line num="1092" type="stmt" count="0"/>
2954
+ <line num="1094" type="stmt" count="0"/>
2955
+ <line num="1095" type="stmt" count="0"/>
2956
+ <line num="1096" type="stmt" count="0"/>
2957
+ <line num="1097" type="stmt" count="0"/>
2958
+ <line num="1098" type="stmt" count="0"/>
2959
  <line num="1100" type="stmt" count="0"/>
 
 
 
 
 
2960
  <line num="1108" type="stmt" count="0"/>
2961
  <line num="1109" type="stmt" count="0"/>
2962
  <line num="1110" type="stmt" count="0"/>
2963
+ <line num="1111" type="stmt" count="0"/>
2964
  <line num="1112" type="stmt" count="0"/>
2965
  <line num="1113" type="stmt" count="0"/>
2966
+ <line num="1114" type="stmt" count="0"/>
2967
+ <line num="1115" type="stmt" count="0"/>
2968
+ <line num="1116" type="stmt" count="0"/>
2969
+ <line num="1125" type="method" name="admin_enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
2970
+ <line num="1126" type="stmt" count="0"/>
2971
+ <line num="1127" type="stmt" count="0"/>
2972
+ <line num="1128" type="stmt" count="0"/>
2973
+ <line num="1129" type="stmt" count="0"/>
2974
  <line num="1131" type="stmt" count="0"/>
2975
+ <line num="1133" type="stmt" count="0"/>
2976
+ <line num="1134" type="stmt" count="0"/>
2977
+ <line num="1135" type="stmt" count="0"/>
2978
+ <line num="1136" type="stmt" count="0"/>
2979
  <line num="1138" type="stmt" count="0"/>
2980
+ <line num="1139" type="stmt" count="0"/>
2981
+ <line num="1151" type="method" name="backup_database" visibility="private" complexity="7" crap="13.12" count="4"/>
2982
+ <line num="1156" type="stmt" count="4"/>
2983
+ <line num="1157" type="stmt" count="0"/>
2984
+ <line num="1161" type="stmt" count="4"/>
2985
+ <line num="1163" type="stmt" count="0"/>
2986
+ <line num="1164" type="stmt" count="0"/>
 
 
 
 
2987
  <line num="1168" type="stmt" count="4"/>
2988
+ <line num="1171" type="stmt" count="4"/>
 
2989
  <line num="1174" type="stmt" count="4"/>
2990
  <line num="1176" type="stmt" count="0"/>
2991
  <line num="1178" type="stmt" count="0"/>
2992
  <line num="1180" type="stmt" count="0"/>
2993
  <line num="1181" type="stmt" count="0"/>
2994
+ <line num="1185" type="stmt" count="4"/>
2995
+ <line num="1188" type="stmt" count="4"/>
2996
+ <line num="1190" type="stmt" count="4"/>
2997
+ <line num="1193" type="stmt" count="4"/>
2998
+ <line num="1194" type="stmt" count="4"/>
2999
+ <line num="1195" type="stmt" count="0"/>
3000
+ <line num="1199" type="stmt" count="4"/>
3001
+ <line num="1200" type="stmt" count="4"/>
3002
+ <line num="1202" type="stmt" count="0"/>
3003
+ <line num="1204" type="stmt" count="0"/>
3004
+ <line num="1206" type="stmt" count="0"/>
3005
+ <line num="1207" type="stmt" count="0"/>
3006
+ <line num="1209" type="stmt" count="4"/>
3007
+ <line num="1210" type="stmt" count="4"/>
3008
+ <line num="1212" type="stmt" count="0"/>
3009
+ <line num="1214" type="stmt" count="0"/>
3010
+ <line num="1216" type="stmt" count="0"/>
3011
+ <line num="1217" type="stmt" count="0"/>
3012
+ <line num="1221" type="stmt" count="4"/>
3013
+ <line num="1224" type="stmt" count="4"/>
3014
+ <line num="1244" type="method" name="restore_database" visibility="private" complexity="9" crap="27.27" count="1"/>
3015
  <line num="1246" type="stmt" count="1"/>
3016
+ <line num="1248" type="stmt" count="0"/>
3017
+ <line num="1249" type="stmt" count="0"/>
3018
+ <line num="1250" type="stmt" count="0"/>
3019
+ <line num="1252" type="stmt" count="0"/>
3020
+ <line num="1254" type="stmt" count="0"/>
3021
+ <line num="1258" type="stmt" count="1"/>
3022
+ <line num="1260" type="stmt" count="0"/>
3023
+ <line num="1262" type="stmt" count="0"/>
3024
+ <line num="1266" type="stmt" count="1"/>
3025
+ <line num="1269" type="stmt" count="1"/>
3026
+ <line num="1272" type="stmt" count="1"/>
3027
+ <line num="1273" type="stmt" count="1"/>
3028
+ <line num="1275" type="stmt" count="1"/>
3029
+ <line num="1277" type="stmt" count="1"/>
3030
+ <line num="1283" type="stmt" count="0"/>
3031
+ <line num="1284" type="stmt" count="0"/>
3032
+ <line num="1287" type="stmt" count="1"/>
3033
+ <line num="1288" type="stmt" count="1"/>
3034
+ <line num="1290" type="stmt" count="1"/>
3035
+ <line num="1291" type="stmt" count="0"/>
3036
  <line num="1292" type="stmt" count="0"/>
3037
  <line num="1293" type="stmt" count="0"/>
3038
+ <line num="1297" type="stmt" count="1"/>
 
 
3039
  <line num="1299" type="stmt" count="0"/>
3040
+ <line num="1302" type="stmt" count="0"/>
3041
+ <line num="1303" type="stmt" count="0"/>
3042
+ <line num="1306" type="stmt" count="1"/>
3043
+ <line num="1309" type="stmt" count="1"/>
3044
+ <line num="1310" type="stmt" count="1"/>
 
3045
  <line num="1313" type="stmt" count="1"/>
3046
+ <line num="1315" type="stmt" count="0"/>
3047
+ <line num="1317" type="stmt" count="0"/>
3048
+ <line num="1319" type="stmt" count="0"/>
3049
+ <line num="1320" type="stmt" count="0"/>
3050
+ <line num="1321" type="stmt" count="0"/>
3051
+ <line num="1322" type="stmt" count="0"/>
3052
+ <line num="1324" type="stmt" count="0"/>
3053
+ <line num="1326" type="stmt" count="0"/>
3054
+ <line num="1327" type="stmt" count="0"/>
3055
  <line num="1328" type="stmt" count="0"/>
3056
+ <line num="1331" type="stmt" count="1"/>
3057
+ <line num="1334" type="stmt" count="0"/>
3058
  <line num="1336" type="stmt" count="0"/>
3059
+ <line num="1337" type="stmt" count="0"/>
3060
+ <line num="1340" type="stmt" count="1"/>
3061
+ <line num="1351" type="method" name="get_filelist" visibility="public" complexity="10" crap="10.11" count="4"/>
3062
+ <line num="1354" type="stmt" count="4"/>
3063
+ <line num="1355" type="stmt" count="0"/>
3064
+ <line num="1359" type="stmt" count="4"/>
3065
  <line num="1362" type="stmt" count="4"/>
3066
+ <line num="1363" type="stmt" count="0"/>
3067
+ <line num="1367" type="stmt" count="4"/>
 
 
 
3068
  <line num="1370" type="stmt" count="4"/>
3069
+ <line num="1371" type="stmt" count="4"/>
3070
+ <line num="1372" type="stmt" count="4"/>
3071
+ <line num="1375" type="stmt" count="4"/>
3072
+ <line num="1378" type="stmt" count="4"/>
 
 
 
 
3073
  <line num="1389" type="stmt" count="4"/>
3074
+ <line num="1390" type="stmt" count="4"/>
3075
  <line num="1391" type="stmt" count="4"/>
3076
  <line num="1392" type="stmt" count="4"/>
3077
+ <line num="1393" type="stmt" count="4"/>
3078
+ <line num="1395" type="stmt" count="4"/>
3079
+ <line num="1397" type="stmt" count="4"/>
3080
  <line num="1400" type="stmt" count="4"/>
3081
+ <line num="1401" type="stmt" count="0"/>
3082
  <line num="1403" type="stmt" count="4"/>
3083
+ <line num="1404" type="stmt" count="4"/>
3084
  <line num="1407" type="stmt" count="4"/>
3085
  <line num="1408" type="stmt" count="4"/>
3086
+ <line num="1411" type="stmt" count="0"/>
3087
+ <line num="1413" type="stmt" count="4"/>
3088
+ <line num="1416" type="stmt" count="4"/>
3089
+ <line num="1418" type="stmt" count="4"/>
3090
+ <line num="1419" type="stmt" count="4"/>
3091
+ <line num="1421" type="stmt" count="4"/>
3092
+ <line num="1423" type="stmt" count="4"/>
3093
+ <line num="1427" type="stmt" count="4"/>
3094
+ <line num="1430" type="stmt" count="4"/>
3095
  <line num="1433" type="stmt" count="4"/>
3096
+ <line num="1434" type="stmt" count="4"/>
3097
+ <line num="1435" type="stmt" count="4"/>
3098
+ <line num="1436" type="stmt" count="4"/>
3099
  <line num="1438" type="stmt" count="4"/>
3100
  <line num="1441" type="stmt" count="4"/>
3101
+ <line num="1457" type="method" name="get_filtered_filelist" visibility="public" complexity="8" crap="8.30" count="4"/>
 
 
 
 
 
 
 
3102
  <line num="1460" type="stmt" count="4"/>
3103
+ <line num="1461" type="stmt" count="0"/>
3104
+ <line num="1465" type="stmt" count="4"/>
3105
+ <line num="1468" type="stmt" count="4"/>
3106
+ <line num="1469" type="stmt" count="0"/>
3107
  <line num="1473" type="stmt" count="4"/>
3108
+ <line num="1476" type="stmt" count="4"/>
3109
+ <line num="1479" type="stmt" count="4"/>
3110
+ <line num="1480" type="stmt" count="4"/>
3111
+ <line num="1482" type="stmt" count="4"/>
3112
+ <line num="1483" type="stmt" count="0"/>
3113
+ <line num="1486" type="stmt" count="4"/>
3114
  <line num="1487" type="stmt" count="4"/>
3115
  <line num="1490" type="stmt" count="4"/>
3116
+ <line num="1491" type="stmt" count="4"/>
3117
+ <line num="1494" type="stmt" count="4"/>
3118
+ <line num="1497" type="stmt" count="4"/>
3119
+ <line num="1500" type="stmt" count="4"/>
3120
+ <line num="1512" type="method" name="generate_archive_path" visibility="public" complexity="3" crap="3.00" count="4"/>
3121
+ <line num="1514" type="stmt" count="4"/>
 
 
 
 
 
 
 
3122
  <line num="1517" type="stmt" count="4"/>
 
3123
  <line num="1520" type="stmt" count="4"/>
3124
+ <line num="1521" type="stmt" count="0"/>
3125
+ <line num="1525" type="stmt" count="4"/>
3126
+ <line num="1528" type="stmt" count="4"/>
3127
+ <line num="1530" type="stmt" count="4"/>
3128
+ <line num="1531" type="stmt" count="4"/>
3129
+ <line num="1532" type="stmt" count="4"/>
3130
+ <line num="1533" type="stmt" count="4"/>
3131
+ <line num="1534" type="stmt" count="4"/>
3132
+ <line num="1535" type="stmt" count="4"/>
3133
+ <line num="1536" type="stmt" count="4"/>
3134
+ <line num="1539" type="stmt" count="4"/>
3135
+ <line num="1542" type="stmt" count="4"/>
3136
+ <line num="1544" type="stmt" count="4"/>
3137
+ <line num="1546" type="stmt" count="4"/>
3138
+ <line num="1547" type="stmt" count="4"/>
3139
  <line num="1549" type="stmt" count="4"/>
3140
+ <line num="1564" type="method" name="archive_files" visibility="public" complexity="49" crap="69.65" count="4"/>
3141
+ <line num="1565" type="stmt" count="4"/>
3142
+ <line num="1567" type="stmt" count="4"/>
3143
+ <line num="1568" type="stmt" count="4"/>
3144
+ <line num="1570" type="stmt" count="4"/>
3145
+ <line num="1572" type="stmt" count="4"/>
3146
+ <line num="1578" type="stmt" count="4"/>
3147
+ <line num="1580" type="stmt" count="4"/>
3148
+ <line num="1581" type="stmt" count="4"/>
 
 
3149
  <line num="1582" type="stmt" count="4"/>
3150
+ <line num="1589" type="stmt" count="4"/>
3151
+ <line num="1591" type="stmt" count="4"/>
3152
+ <line num="1592" type="stmt" count="4"/>
 
3153
  <line num="1593" type="stmt" count="4"/>
 
 
3154
  <line num="1604" type="stmt" count="4"/>
3155
+ <line num="1605" type="stmt" count="0"/>
3156
+ <line num="1606" type="stmt" count="0"/>
3157
+ <line num="1607" type="stmt" count="0"/>
 
 
 
3158
  <line num="1611" type="stmt" count="4"/>
3159
+ <line num="1613" type="stmt" count="0"/>
3160
+ <line num="1615" type="stmt" count="0"/>
3161
+ <line num="1616" type="stmt" count="0"/>
3162
+ <line num="1618" type="stmt" count="0"/>
 
 
 
 
3163
  <line num="1622" type="stmt" count="4"/>
 
 
 
 
 
 
 
 
3164
  <line num="1631" type="stmt" count="4"/>
3165
+ <line num="1632" type="stmt" count="4"/>
3166
+ <line num="1633" type="stmt" count="4"/>
3167
  <line num="1634" type="stmt" count="4"/>
3168
+ <line num="1635" type="stmt" count="4"/>
3169
  <line num="1636" type="stmt" count="4"/>
3170
+ <line num="1637" type="stmt" count="4"/>
3171
+ <line num="1638" type="stmt" count="4"/>
3172
  <line num="1639" type="stmt" count="4"/>
3173
+ <line num="1640" type="stmt" count="4"/>
3174
  <line num="1641" type="stmt" count="4"/>
3175
+ <line num="1643" type="stmt" count="4"/>
 
3176
  <line num="1644" type="stmt" count="4"/>
3177
+ <line num="1645" type="stmt" count="4"/>
3178
+ <line num="1646" type="stmt" count="4"/>
3179
+ <line num="1648" type="stmt" count="4"/>
3180
+ <line num="1649" type="stmt" count="4"/>
3181
  <line num="1650" type="stmt" count="4"/>
3182
+ <line num="1651" type="stmt" count="4"/>
3183
+ <line num="1652" type="stmt" count="4"/>
3184
+ <line num="1653" type="stmt" count="4"/>
3185
+ <line num="1654" type="stmt" count="4"/>
3186
  <line num="1655" type="stmt" count="4"/>
3187
  <line num="1656" type="stmt" count="4"/>
3188
  <line num="1657" type="stmt" count="4"/>
3189
+ <line num="1658" type="stmt" count="4"/>
3190
+ <line num="1659" type="stmt" count="4"/>
3191
  <line num="1660" type="stmt" count="4"/>
3192
  <line num="1663" type="stmt" count="4"/>
3193
+ <line num="1664" type="stmt" count="0"/>
3194
+ <line num="1665" type="stmt" count="4"/>
3195
+ <line num="1666" type="stmt" count="0"/>
3196
+ <line num="1667" type="stmt" count="0"/>
3197
  <line num="1668" type="stmt" count="4"/>
3198
+ <line num="1669" type="stmt" count="0"/>
3199
  <line num="1670" type="stmt" count="4"/>
3200
+ <line num="1671" type="stmt" count="0"/>
3201
+ <line num="1672" type="stmt" count="0"/>
3202
  <line num="1673" type="stmt" count="4"/>
3203
+ <line num="1676" type="stmt" count="4"/>
3204
+ <line num="1679" type="stmt" count="4"/>
3205
+ <line num="1680" type="stmt" count="0"/>
 
 
3206
  <line num="1684" type="stmt" count="4"/>
3207
+ <line num="1685" type="stmt" count="4"/>
3208
+ <line num="1686" type="stmt" count="4"/>
3209
+ <line num="1689" type="stmt" count="4"/>
3210
+ <line num="1692" type="stmt" count="4"/>
3211
+ <line num="1695" type="stmt" count="4"/>
3212
+ <line num="1696" type="stmt" count="4"/>
3213
+ <line num="1697" type="stmt" count="4"/>
3214
+ <line num="1699" type="stmt" count="4"/>
3215
+ <line num="1701" type="stmt" count="4"/>
3216
+ <line num="1702" type="stmt" count="4"/>
3217
+ <line num="1704" type="stmt" count="4"/>
3218
+ <line num="1706" type="stmt" count="0"/>
3219
  <line num="1707" type="stmt" count="0"/>
3220
+ <line num="1708" type="stmt" count="0"/>
3221
+ <line num="1710" type="stmt" count="4"/>
3222
+ <line num="1713" type="stmt" count="4"/>
3223
  <line num="1716" type="stmt" count="4"/>
3224
+ <line num="1719" type="stmt" count="4"/>
 
 
3225
  <line num="1722" type="stmt" count="4"/>
3226
+ <line num="1723" type="stmt" count="0"/>
3227
+ <line num="1725" type="stmt" count="0"/>
3228
+ <line num="1726" type="stmt" count="0"/>
3229
+ <line num="1728" type="stmt" count="0"/>
 
 
 
 
3230
  <line num="1732" type="stmt" count="4"/>
3231
+ <line num="1735" type="stmt" count="4"/>
3232
+ <line num="1736" type="stmt" count="0"/>
3233
+ <line num="1740" type="stmt" count="4"/>
3234
+ <line num="1741" type="stmt" count="4"/>
3235
  <line num="1744" type="stmt" count="4"/>
3236
+ <line num="1745" type="stmt" count="4"/>
3237
  <line num="1746" type="stmt" count="4"/>
3238
  <line num="1747" type="stmt" count="4"/>
3239
+ <line num="1749" type="stmt" count="4"/>
3240
+ <line num="1751" type="stmt" count="4"/>
3241
  <line num="1752" type="stmt" count="4"/>
3242
+ <line num="1753" type="stmt" count="4"/>
3243
  <line num="1754" type="stmt" count="4"/>
3244
  <line num="1755" type="stmt" count="4"/>
3245
  <line num="1756" type="stmt" count="4"/>
3246
+ <line num="1757" type="stmt" count="4"/>
3247
  <line num="1758" type="stmt" count="4"/>
3248
+ <line num="1759" type="stmt" count="4"/>
3249
+ <line num="1761" type="stmt" count="4"/>
3250
+ <line num="1773" type="stmt" count="4"/>
3251
+ <line num="1775" type="stmt" count="4"/>
3252
+ <line num="1776" type="stmt" count="4"/>
3253
+ <line num="1779" type="stmt" count="4"/>
3254
+ <line num="1781" type="stmt" count="4"/>
3255
+ <line num="1783" type="stmt" count="4"/>
3256
+ <line num="1784" type="stmt" count="4"/>
3257
+ <line num="1785" type="stmt" count="4"/>
3258
+ <line num="1787" type="stmt" count="4"/>
3259
+ <line num="1793" type="stmt" count="4"/>
3260
+ <line num="1794" type="stmt" count="4"/>
3261
+ <line num="1795" type="stmt" count="1"/>
3262
+ <line num="1796" type="stmt" count="1"/>
3263
+ <line num="1797" type="stmt" count="1"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
3264
  <line num="1798" type="stmt" count="4"/>
3265
  <line num="1799" type="stmt" count="4"/>
3266
+ <line num="1800" type="stmt" count="4"/>
3267
+ <line num="1801" type="stmt" count="4"/>
3268
+ <line num="1802" type="stmt" count="1"/>
3269
  <line num="1804" type="stmt" count="0"/>
3270
  <line num="1805" type="stmt" count="0"/>
3271
+ <line num="1806" type="stmt" count="1"/>
3272
+ <line num="1808" type="stmt" count="0"/>
3273
+ <line num="1809" type="stmt" count="0"/>
3274
+ <line num="1810" type="stmt" count="1"/>
3275
+ <line num="1812" type="stmt" count="0"/>
3276
+ <line num="1813" type="stmt" count="0"/>
3277
+ <line num="1814" type="stmt" count="1"/>
3278
+ <line num="1816" type="stmt" count="0"/>
3279
+ <line num="1817" type="stmt" count="0"/>
3280
+ <line num="1818" type="stmt" count="1"/>
3281
+ <line num="1819" type="stmt" count="1"/>
3282
+ <line num="1820" type="stmt" count="1"/>
3283
+ <line num="1821" type="stmt" count="1"/>
3284
  <line num="1822" type="stmt" count="0"/>
3285
  <line num="1823" type="stmt" count="0"/>
3286
+ <line num="1824" type="stmt" count="0"/>
3287
  <line num="1825" type="stmt" count="4"/>
3288
+ <line num="1827" type="stmt" count="4"/>
3289
+ <line num="1828" type="stmt" count="4"/>
3290
  <line num="1831" type="stmt" count="4"/>
3291
+ <line num="1832" type="stmt" count="4"/>
3292
+ <line num="1833" type="stmt" count="0"/>
3293
+ <line num="1834" type="stmt" count="0"/>
3294
+ <line num="1835" type="stmt" count="4"/>
3295
  <line num="1836" type="stmt" count="4"/>
3296
+ <line num="1837" type="stmt" count="4"/>
3297
+ <line num="1838" type="stmt" count="4"/>
3298
  <line num="1839" type="stmt" count="4"/>
3299
  <line num="1840" type="stmt" count="4"/>
3300
+ <line num="1841" type="stmt" count="4"/>
3301
+ <line num="1842" type="stmt" count="4"/>
3302
  <line num="1843" type="stmt" count="4"/>
3303
+ <line num="1845" type="stmt" count="4"/>
3304
  <line num="1846" type="stmt" count="4"/>
 
3305
  <line num="1848" type="stmt" count="4"/>
3306
+ <line num="1850" type="stmt" count="4"/>
3307
+ <line num="1851" type="stmt" count="0"/>
3308
+ <line num="1852" type="stmt" count="0"/>
3309
+ <line num="1854" type="stmt" count="4"/>
3310
+ <line num="1855" type="stmt" count="0"/>
3311
+ <line num="1858" type="stmt" count="4"/>
3312
+ <line num="1860" type="stmt" count="4"/>
3313
+ <line num="1862" type="stmt" count="4"/>
3314
+ <line num="1865" type="stmt" count="4"/>
3315
+ <line num="1868" type="stmt" count="4"/>
3316
+ <line num="1869" type="stmt" count="4"/>
3317
+ <line num="1872" type="stmt" count="4"/>
3318
+ <line num="1875" type="stmt" count="4"/>
3319
+ <line num="1876" type="stmt" count="4"/>
3320
+ <line num="1877" type="stmt" count="4"/>
3321
  <line num="1910" type="stmt" count="4"/>
3322
+ <line num="1921" type="stmt" count="4"/>
 
 
 
 
 
3323
  <line num="1922" type="stmt" count="4"/>
3324
+ <line num="1924" type="stmt" count="4"/>
3325
+ <line num="1925" type="stmt" count="4"/>
3326
  <line num="1926" type="stmt" count="4"/>
3327
+ <line num="1928" type="stmt" count="4"/>
3328
  <line num="1929" type="stmt" count="4"/>
3329
  <line num="1932" type="stmt" count="4"/>
3330
+ <line num="1934" type="stmt" count="4"/>
3331
+ <line num="1936" type="stmt" count="4"/>
3332
+ <line num="1939" type="stmt" count="4"/>
3333
+ <line num="1941" type="stmt" count="4"/>
3334
+ <line num="1942" type="stmt" count="4"/>
3335
+ <line num="1945" type="stmt" count="4"/>
3336
+ <line num="1946" type="stmt" count="0"/>
3337
+ <line num="1947" type="stmt" count="0"/>
3338
+ <line num="1949" type="stmt" count="4"/>
3339
+ <line num="1951" type="stmt" count="4"/>
3340
+ <line num="1952" type="stmt" count="0"/>
3341
+ <line num="1953" type="stmt" count="0"/>
3342
+ <line num="1955" type="stmt" count="4"/>
3343
+ <line num="1956" type="stmt" count="4"/>
3344
+ <line num="1958" type="stmt" count="4"/>
3345
+ <line num="1961" type="stmt" count="4"/>
3346
+ <line num="1982" type="method" name="get_archive_list" visibility="public" complexity="11" crap="11.15" count="6"/>
3347
+ <line num="1984" type="stmt" count="6"/>
3348
+ <line num="1987" type="stmt" count="6"/>
3349
+ <line num="1990" type="stmt" count="6"/>
3350
+ <line num="1991" type="stmt" count="6"/>
3351
+ <line num="1992" type="stmt" count="6"/>
3352
+ <line num="1995" type="stmt" count="6"/>
3353
+ <line num="1996" type="stmt" count="0"/>
3354
+ <line num="2000" type="stmt" count="6"/>
3355
+ <line num="2003" type="stmt" count="6"/>
3356
+ <line num="2004" type="stmt" count="0"/>
3357
+ <line num="2008" type="stmt" count="6"/>
3358
+ <line num="2009" type="stmt" count="0"/>
3359
+ <line num="2011" type="stmt" count="6"/>
3360
+ <line num="2012" type="stmt" count="5"/>
3361
+ <line num="2015" type="stmt" count="6"/>
3362
+ <line num="2016" type="stmt" count="5"/>
3363
+ <line num="2019" type="stmt" count="6"/>
3364
+ <line num="2021" type="stmt" count="6"/>
3365
+ <line num="2024" type="stmt" count="6"/>
3366
+ <line num="2027" type="stmt" count="6"/>
3367
+ <line num="2028" type="stmt" count="6"/>
3368
+ <line num="2030" type="stmt" count="5"/>
3369
+ <line num="2033" type="stmt" count="5"/>
3370
+ <line num="2034" type="stmt" count="0"/>
3371
+ <line num="2039" type="stmt" count="5"/>
3372
+ <line num="2040" type="stmt" count="5"/>
3373
+ <line num="2041" type="stmt" count="5"/>
3374
+ <line num="2042" type="stmt" count="5"/>
3375
+ <line num="2043" type="stmt" count="5"/>
3376
+ <line num="2044" type="stmt" count="5"/>
3377
+ <line num="2045" type="stmt" count="5"/>
3378
+ <line num="2046" type="stmt" count="5"/>
3379
+ <line num="2050" type="stmt" count="5"/>
3380
+ <line num="2051" type="stmt" count="1"/>
3381
+ <line num="2053" type="stmt" count="5"/>
3382
+ <line num="2054" type="stmt" count="6"/>
3383
+ <line num="2057" type="stmt" count="6"/>
3384
+ <line num="2068" type="method" name="delete_archive_file" visibility="public" complexity="11" crap="132" count="0"/>
3385
+ <line num="2071" type="stmt" count="0"/>
3386
  <line num="2072" type="stmt" count="0"/>
 
 
3387
  <line num="2076" type="stmt" count="0"/>
3388
+ <line num="2079" type="stmt" count="0"/>
3389
  <line num="2082" type="stmt" count="0"/>
3390
  <line num="2083" type="stmt" count="0"/>
3391
+ <line num="2084" type="stmt" count="0"/>
3392
+ <line num="2085" type="stmt" count="0"/>
3393
  <line num="2087" type="stmt" count="0"/>
3394
+ <line num="2088" type="stmt" count="0"/>
3395
+ <line num="2089" type="stmt" count="0"/>
3396
+ <line num="2091" type="stmt" count="0"/>
3397
  <line num="2093" type="stmt" count="0"/>
3398
+ <line num="2097" type="stmt" count="0"/>
 
3399
  <line num="2098" type="stmt" count="0"/>
3400
+ <line num="2099" type="stmt" count="0"/>
3401
+ <line num="2101" type="stmt" count="0"/>
3402
+ <line num="2102" type="stmt" count="0"/>
3403
  <line num="2103" type="stmt" count="0"/>
 
3404
  <line num="2105" type="stmt" count="0"/>
3405
+ <line num="2107" type="stmt" count="0"/>
 
3406
  <line num="2111" type="stmt" count="0"/>
3407
  <line num="2112" type="stmt" count="0"/>
 
3408
  <line num="2116" type="stmt" count="0"/>
3409
+ <line num="2119" type="stmt" count="0"/>
3410
  <line num="2121" type="stmt" count="0"/>
3411
  <line num="2122" type="stmt" count="0"/>
3412
  <line num="2123" type="stmt" count="0"/>
3413
  <line num="2125" type="stmt" count="0"/>
3414
+ <line num="2127" type="stmt" count="0"/>
3415
+ <line num="2132" type="stmt" count="0"/>
 
 
3416
  <line num="2133" type="stmt" count="0"/>
3417
  <line num="2134" type="stmt" count="0"/>
3418
+ <line num="2137" type="stmt" count="0"/>
3419
+ <line num="2139" type="stmt" count="0"/>
3420
+ <line num="2140" type="stmt" count="0"/>
3421
+ <line num="2141" type="stmt" count="0"/>
3422
+ <line num="2143" type="stmt" count="0"/>
3423
+ <line num="2145" type="stmt" count="0"/>
3424
+ <line num="2150" type="stmt" count="0"/>
3425
+ <line num="2151" type="stmt" count="0"/>
3426
+ <line num="2152" type="stmt" count="0"/>
3427
+ <line num="2154" type="stmt" count="0"/>
3428
+ <line num="2157" type="stmt" count="0"/>
3429
+ <line num="2158" type="stmt" count="0"/>
3430
+ <line num="2159" type="stmt" count="0"/>
3431
+ <line num="2160" type="stmt" count="0"/>
3432
+ <line num="2162" type="stmt" count="0"/>
3433
  <line num="2163" type="stmt" count="0"/>
3434
+ <line num="2173" type="stmt" count="0"/>
3435
+ <line num="2176" type="stmt" count="0"/>
3436
+ <line num="2189" type="method" name="get_dump_file" visibility="public" complexity="9" crap="25.08" count="1"/>
3437
+ <line num="2191" type="stmt" count="1"/>
3438
+ <line num="2192" type="stmt" count="0"/>
3439
+ <line num="2212" type="stmt" count="1"/>
3440
+ <line num="2213" type="stmt" count="1"/>
3441
+ <line num="2214" type="stmt" count="1"/>
3442
+ <line num="2215" type="stmt" count="1"/>
3443
+ <line num="2219" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
3444
  <line num="2222" type="stmt" count="0"/>
3445
+ <line num="2225" type="stmt" count="0"/>
 
3446
  <line num="2226" type="stmt" count="0"/>
3447
+ <line num="2230" type="stmt" count="0"/>
3448
+ <line num="2231" type="stmt" count="0"/>
3449
+ <line num="2232" type="method" name="anonymous function" complexity="3" crap="12" count="0"/>
3450
+ <line num="2233" type="stmt" count="0"/>
3451
+ <line num="2234" type="stmt" count="0"/>
3452
+ <line num="2237" type="stmt" count="0"/>
3453
+ <line num="2238" type="stmt" count="0"/>
3454
+ <line num="2241" type="stmt" count="0"/>
3455
+ <line num="2243" type="stmt" count="0"/>
3456
+ <line num="2250" type="stmt" count="0"/>
3457
+ <line num="2251" type="stmt" count="0"/>
3458
+ <line num="2252" type="stmt" count="0"/>
3459
+ <line num="2253" type="stmt" count="0"/>
3460
+ <line num="2255" type="stmt" count="0"/>
3461
  <line num="2258" type="stmt" count="0"/>
3462
+ <line num="2271" type="method" name="restore_archive_file" visibility="public" complexity="28" crap="65.94" count="1"/>
3463
+ <line num="2272" type="stmt" count="1"/>
 
 
 
 
 
3464
  <line num="2274" type="stmt" count="1"/>
3465
  <line num="2275" type="stmt" count="1"/>
3466
+ <line num="2276" type="stmt" count="1"/>
3467
+ <line num="2279" type="stmt" count="1"/>
3468
+ <line num="2281" type="stmt" count="1"/>
 
 
3469
  <line num="2284" type="stmt" count="1"/>
3470
  <line num="2285" type="stmt" count="0"/>
3471
  <line num="2286" type="stmt" count="0"/>
3472
  <line num="2287" type="stmt" count="0"/>
3473
  <line num="2291" type="stmt" count="1"/>
3474
+ <line num="2292" type="stmt" count="0"/>
3475
+ <line num="2293" type="stmt" count="0"/>
3476
+ <line num="2294" type="stmt" count="0"/>
3477
+ <line num="2298" type="stmt" count="1"/>
3478
+ <line num="2299" type="stmt" count="1"/>
 
3479
  <line num="2302" type="stmt" count="1"/>
3480
+ <line num="2303" type="stmt" count="1"/>
3481
+ <line num="2304" type="stmt" count="1"/>
3482
  <line num="2305" type="stmt" count="0"/>
3483
+ <line num="2306" type="stmt" count="0"/>
3484
+ <line num="2307" type="stmt" count="0"/>
3485
  <line num="2311" type="stmt" count="1"/>
3486
  <line num="2312" type="stmt" count="1"/>
3487
+ <line num="2313" type="stmt" count="1"/>
3488
  <line num="2314" type="stmt" count="0"/>
3489
  <line num="2315" type="stmt" count="0"/>
3490
+ <line num="2316" type="stmt" count="0"/>
3491
  <line num="2320" type="stmt" count="1"/>
 
3492
  <line num="2322" type="stmt" count="1"/>
3493
  <line num="2323" type="stmt" count="1"/>
3494
+ <line num="2324" type="stmt" count="0"/>
3495
+ <line num="2325" type="stmt" count="0"/>
3496
+ <line num="2326" type="stmt" count="0"/>
3497
+ <line num="2329" type="stmt" count="1"/>
 
3498
  <line num="2331" type="stmt" count="1"/>
3499
+ <line num="2332" type="stmt" count="0"/>
3500
+ <line num="2333" type="stmt" count="0"/>
3501
+ <line num="2334" type="stmt" count="0"/>
3502
+ <line num="2337" type="stmt" count="1"/>
3503
+ <line num="2339" type="stmt" count="1"/>
3504
+ <line num="2340" type="stmt" count="1"/>
3505
+ <line num="2341" type="stmt" count="1"/>
3506
+ <line num="2342" type="stmt" count="0"/>
3507
+ <line num="2343" type="stmt" count="0"/>
3508
+ <line num="2344" type="stmt" count="0"/>
3509
  <line num="2349" type="stmt" count="1"/>
3510
+ <line num="2350" type="stmt" count="1"/>
3511
+ <line num="2351" type="stmt" count="1"/>
3512
+ <line num="2352" type="stmt" count="1"/>
3513
+ <line num="2353" type="stmt" count="1"/>
3514
  <line num="2354" type="stmt" count="1"/>
3515
+ <line num="2355" type="stmt" count="1"/>
3516
+ <line num="2356" type="stmt" count="1"/>
3517
+ <line num="2357" type="stmt" count="1"/>
3518
  <line num="2360" type="stmt" count="1"/>
 
3519
  <line num="2362" type="stmt" count="1"/>
3520
+ <line num="2371" type="stmt" count="1"/>
3521
+ <line num="2377" type="stmt" count="1"/>
3522
+ <line num="2378" type="stmt" count="1"/>
 
 
3523
  <line num="2379" type="stmt" count="0"/>
3524
  <line num="2380" type="stmt" count="0"/>
3525
  <line num="2381" type="stmt" count="0"/>
3526
+ <line num="2383" type="stmt" count="1"/>
3527
+ <line num="2384" type="stmt" count="0"/>
3528
+ <line num="2387" type="stmt" count="1"/>
3529
+ <line num="2388" type="stmt" count="1"/>
3530
+ <line num="2389" type="stmt" count="1"/>
3531
+ <line num="2390" type="stmt" count="1"/>
3532
+ <line num="2391" type="stmt" count="1"/>
3533
  <line num="2393" type="stmt" count="1"/>
3534
+ <line num="2394" type="stmt" count="0"/>
3535
+ <line num="2404" type="stmt" count="0"/>
3536
+ <line num="2406" type="stmt" count="0"/>
3537
+ <line num="2407" type="stmt" count="0"/>
3538
+ <line num="2408" type="stmt" count="0"/>
3539
+ <line num="2409" type="stmt" count="0"/>
3540
  <line num="2410" type="stmt" count="0"/>
3541
+ <line num="2412" type="stmt" count="0"/>
 
 
 
 
 
 
3542
  <line num="2422" type="stmt" count="1"/>
3543
+ <line num="2431" type="stmt" count="1"/>
3544
+ <line num="2432" type="stmt" count="1"/>
3545
+ <line num="2433" type="stmt" count="1"/>
3546
+ <line num="2434" type="stmt" count="1"/>
 
 
 
3547
  <line num="2435" type="stmt" count="1"/>
3548
+ <line num="2438" type="stmt" count="1"/>
3549
+ <line num="2439" type="stmt" count="0"/>
3550
+ <line num="2440" type="stmt" count="0"/>
3551
+ <line num="2442" type="stmt" count="1"/>
3552
+ <line num="2443" type="stmt" count="0"/>
3553
+ <line num="2445" type="stmt" count="0"/>
3554
+ <line num="2446" type="stmt" count="0"/>
3555
+ <line num="2447" type="stmt" count="0"/>
3556
+ <line num="2448" type="stmt" count="0"/>
3557
+ <line num="2451" type="stmt" count="1"/>
3558
+ <line num="2452" type="stmt" count="1"/>
3559
+ <line num="2455" type="stmt" count="1"/>
3560
  <line num="2456" type="stmt" count="1"/>
3561
+ <line num="2459" type="stmt" count="1"/>
3562
+ <line num="2460" type="stmt" count="0"/>
3563
+ <line num="2461" type="stmt" count="0"/>
3564
+ <line num="2462" type="stmt" count="0"/>
3565
+ <line num="2464" type="stmt" count="1"/>
3566
  <line num="2465" type="stmt" count="1"/>
3567
+ <line num="2466" type="stmt" count="1"/>
3568
+ <line num="2469" type="stmt" count="1"/>
3569
+ <line num="2472" type="stmt" count="1"/>
3570
+ <line num="2475" type="stmt" count="1"/>
3571
+ <line num="2476" type="stmt" count="1"/>
3572
+ <line num="2479" type="stmt" count="1"/>
3573
+ <line num="2483" type="stmt" count="1"/>
3574
+ <line num="2485" type="stmt" count="1"/>
3575
+ <line num="2486" type="stmt" count="1"/>
3576
+ <line num="2489" type="stmt" count="1"/>
3577
+ <line num="2492" type="stmt" count="1"/>
3578
+ <line num="2494" type="stmt" count="1"/>
3579
+ <line num="2496" type="stmt" count="1"/>
3580
+ <line num="2499" type="stmt" count="1"/>
3581
+ <line num="2512" type="method" name="page_archives" visibility="public" complexity="4" crap="20" count="0"/>
3582
+ <line num="2513" type="stmt" count="0"/>
3583
+ <line num="2516" type="stmt" count="0"/>
 
 
 
3584
  <line num="2518" type="stmt" count="0"/>
3585
  <line num="2521" type="stmt" count="0"/>
 
3586
  <line num="2524" type="stmt" count="0"/>
3587
  <line num="2525" type="stmt" count="0"/>
3588
+ <line num="2527" type="stmt" count="0"/>
3589
  <line num="2530" type="stmt" count="0"/>
3590
+ <line num="2531" type="stmt" count="0"/>
3591
+ <line num="2532" type="stmt" count="0"/>
3592
  <line num="2534" type="stmt" count="0"/>
3593
  <line num="2535" type="stmt" count="0"/>
3594
+ <line num="2538" type="stmt" count="0"/>
 
3595
  <line num="2541" type="stmt" count="0"/>
3596
+ <line num="2544" type="stmt" count="0"/>
3597
+ <line num="2546" type="stmt" count="0"/>
3598
+ <line num="2547" type="stmt" count="0"/>
3599
+ <line num="2548" type="stmt" count="0"/>
3600
+ <line num="2551" type="stmt" count="0"/>
3601
  <line num="2553" type="stmt" count="0"/>
3602
+ <line num="2556" type="stmt" count="0"/>
 
3603
  <line num="2557" type="stmt" count="0"/>
3604
  <line num="2558" type="stmt" count="0"/>
3605
+ <line num="2560" type="stmt" count="0"/>
 
3606
  <line num="2563" type="stmt" count="0"/>
3607
  <line num="2564" type="stmt" count="0"/>
3608
+ <line num="2573" type="method" name="boldgrid_backup_now_callback" visibility="public" complexity="10" crap="110" count="0"/>
 
 
 
 
 
 
3609
  <line num="2576" type="stmt" count="0"/>
3610
  <line num="2577" type="stmt" count="0"/>
3611
+ <line num="2578" type="stmt" count="0"/>
3612
+ <line num="2580" type="stmt" count="0"/>
3613
+ <line num="2581" type="stmt" count="0"/>
3614
  <line num="2582" type="stmt" count="0"/>
3615
+ <line num="2585" type="stmt" count="0"/>
 
3616
  <line num="2586" type="stmt" count="0"/>
3617
  <line num="2587" type="stmt" count="0"/>
3618
+ <line num="2589" type="stmt" count="0"/>
3619
+ <line num="2590" type="stmt" count="0"/>
3620
+ <line num="2591" type="stmt" count="0"/>
3621
+ <line num="2593" type="stmt" count="0"/>
3622
+ <line num="2595" type="stmt" count="0"/>
3623
+ <line num="2596" type="stmt" count="0"/>
3624
  <line num="2597" type="stmt" count="0"/>
3625
+ <line num="2599" type="stmt" count="0"/>
3626
+ <line num="2600" type="stmt" count="0"/>
3627
+ <line num="2602" type="stmt" count="0"/>
3628
+ <line num="2605" type="stmt" count="0"/>
3629
+ <line num="2606" type="stmt" count="0"/>
3630
+ <line num="2607" type="stmt" count="0"/>
3631
+ <line num="2608" type="stmt" count="0"/>
3632
+ <line num="2609" type="stmt" count="0"/>
3633
+ <line num="2611" type="stmt" count="0"/>
3634
  <line num="2612" type="stmt" count="0"/>
3635
+ <line num="2614" type="stmt" count="0"/>
3636
  <line num="2615" type="stmt" count="0"/>
3637
  <line num="2616" type="stmt" count="0"/>
 
 
 
 
 
 
3638
  <line num="2625" type="stmt" count="0"/>
3639
+ <line num="2626" type="stmt" count="0"/>
3640
+ <line num="2638" type="method" name="download_archive_file_callback" visibility="public" complexity="10" crap="110" count="0"/>
 
 
 
 
3641
  <line num="2640" type="stmt" count="0"/>
 
 
3642
  <line num="2643" type="stmt" count="0"/>
3643
+ <line num="2644" type="stmt" count="0"/>
3644
+ <line num="2645" type="stmt" count="0"/>
3645
  <line num="2646" type="stmt" count="0"/>
3646
  <line num="2649" type="stmt" count="0"/>
3647
  <line num="2650" type="stmt" count="0"/>
3648
  <line num="2651" type="stmt" count="0"/>
3649
  <line num="2652" type="stmt" count="0"/>
3650
+ <line num="2653" type="stmt" count="0"/>
3651
  <line num="2657" type="stmt" count="0"/>
3652
  <line num="2658" type="stmt" count="0"/>
3653
+ <line num="2659" type="stmt" count="0"/>
3654
+ <line num="2660" type="stmt" count="0"/>
3655
  <line num="2661" type="stmt" count="0"/>
3656
+ <line num="2665" type="stmt" count="0"/>
 
 
 
3657
  <line num="2668" type="stmt" count="0"/>
3658
+ <line num="2669" type="stmt" count="0"/>
3659
  <line num="2670" type="stmt" count="0"/>
3660
  <line num="2671" type="stmt" count="0"/>
3661
+ <line num="2674" type="stmt" count="0"/>
3662
+ <line num="2677" type="stmt" count="0"/>
3663
+ <line num="2678" type="stmt" count="0"/>
3664
+ <line num="2679" type="stmt" count="0"/>
3665
+ <line num="2680" type="stmt" count="0"/>
3666
+ <line num="2684" type="stmt" count="0"/>
3667
+ <line num="2685" type="stmt" count="0"/>
3668
+ <line num="2686" type="stmt" count="0"/>
3669
+ <line num="2689" type="stmt" count="0"/>
3670
+ <line num="2690" type="stmt" count="0"/>
3671
  <line num="2691" type="stmt" count="0"/>
3672
+ <line num="2692" type="stmt" count="0"/>
3673
  <line num="2694" type="stmt" count="0"/>
3674
+ <line num="2696" type="stmt" count="0"/>
3675
+ <line num="2698" type="stmt" count="0"/>
3676
+ <line num="2699" type="stmt" count="0"/>
3677
  <line num="2700" type="stmt" count="0"/>
3678
+ <line num="2703" type="stmt" count="0"/>
3679
+ <line num="2704" type="stmt" count="0"/>
3680
+ <line num="2714" type="method" name="page_backup_test" visibility="public" complexity="6" crap="42" count="0"/>
3681
+ <line num="2716" type="stmt" count="0"/>
 
 
3682
  <line num="2719" type="stmt" count="0"/>
3683
+ <line num="2722" type="stmt" count="0"/>
3684
+ <line num="2725" type="stmt" count="0"/>
3685
  <line num="2728" type="stmt" count="0"/>
 
3686
  <line num="2730" type="stmt" count="0"/>
3687
+ <line num="2733" type="stmt" count="0"/>
 
 
3688
  <line num="2736" type="stmt" count="0"/>
 
 
3689
  <line num="2739" type="stmt" count="0"/>
3690
+ <line num="2742" type="stmt" count="0"/>
3691
+ <line num="2745" type="stmt" count="0"/>
 
 
3692
  <line num="2747" type="stmt" count="0"/>
 
 
 
 
 
3693
  <line num="2755" type="stmt" count="0"/>
3694
+ <line num="2756" type="stmt" count="0"/>
3695
+ <line num="2757" type="stmt" count="0"/>
3696
+ <line num="2758" type="stmt" count="0"/>
3697
+ <line num="2759" type="stmt" count="0"/>
3698
+ <line num="2762" type="stmt" count="0"/>
3699
+ <line num="2763" type="stmt" count="0"/>
3700
+ <line num="2764" type="stmt" count="0"/>
3701
+ <line num="2765" type="stmt" count="0"/>
3702
+ <line num="2766" type="stmt" count="0"/>
3703
+ <line num="2767" type="stmt" count="0"/>
3704
+ <line num="2768" type="stmt" count="0"/>
3705
+ <line num="2769" type="stmt" count="0"/>
3706
+ <line num="2771" type="stmt" count="0"/>
3707
+ <line num="2774" type="stmt" count="0"/>
3708
+ <line num="2775" type="stmt" count="0"/>
3709
+ <line num="2776" type="stmt" count="0"/>
3710
+ <line num="2777" type="stmt" count="0"/>
3711
+ <line num="2778" type="stmt" count="0"/>
3712
+ <line num="2779" type="stmt" count="0"/>
3713
+ <line num="2781" type="stmt" count="0"/>
3714
+ <line num="2782" type="stmt" count="0"/>
3715
+ <line num="2783" type="stmt" count="0"/>
3716
+ <line num="2785" type="stmt" count="0"/>
3717
+ <line num="2786" type="stmt" count="0"/>
3718
+ <line num="2787" type="stmt" count="0"/>
3719
+ <line num="2789" type="stmt" count="0"/>
3720
+ <line num="2790" type="stmt" count="0"/>
3721
+ <line num="2792" type="stmt" count="0"/>
3722
+ <line num="2793" type="stmt" count="0"/>
3723
+ <line num="2794" type="stmt" count="0"/>
3724
+ <line num="2801" type="stmt" count="0"/>
3725
+ <line num="2803" type="stmt" count="0"/>
3726
+ <line num="2804" type="stmt" count="0"/>
3727
+ <line num="2806" type="stmt" count="0"/>
3728
+ <line num="2811" type="stmt" count="0"/>
3729
+ <line num="2812" type="stmt" count="0"/>
3730
+ <line num="2813" type="stmt" count="0"/>
3731
+ <line num="2817" type="stmt" count="0"/>
3732
+ <line num="2818" type="stmt" count="0"/>
3733
+ <line num="2833" type="method" name="set_doing_cron" visibility="public" complexity="3" crap="3" count="29"/>
3734
+ <line num="2834" type="stmt" count="29"/>
3735
+ <line num="2835" type="stmt" count="29"/>
3736
+ <line num="2842" type="method" name="set_lang" visibility="public" complexity="1" crap="1" count="29"/>
3737
+ <line num="2847" type="stmt" count="29"/>
3738
+ <line num="2849" type="stmt" count="29"/>
3739
+ <line num="2850" type="stmt" count="29"/>
3740
+ <line num="2851" type="stmt" count="29"/>
3741
+ <line num="2852" type="stmt" count="29"/>
3742
+ <line num="2853" type="stmt" count="29"/>
3743
+ <line num="2854" type="stmt" count="29"/>
3744
+ <line num="2856" type="stmt" count="29"/>
3745
+ <line num="2857" type="stmt" count="29"/>
3746
+ <line num="2859" type="stmt" count="29"/>
3747
+ <line num="2860" type="stmt" count="29"/>
3748
+ <line num="2861" type="stmt" count="29"/>
3749
+ <line num="2862" type="stmt" count="29"/>
3750
+ <line num="2863" type="stmt" count="29"/>
3751
+ <line num="2864" type="stmt" count="29"/>
3752
+ <line num="2866" type="stmt" count="29"/>
3753
+ <line num="2867" type="stmt" count="29"/>
3754
+ <line num="2868" type="stmt" count="29"/>
3755
+ <line num="2874" type="stmt" count="29"/>
3756
+ <line num="2876" type="stmt" count="29"/>
3757
+ <line num="2877" type="stmt" count="29"/>
3758
+ <line num="2878" type="stmt" count="29"/>
3759
+ <line num="2879" type="stmt" count="29"/>
3760
+ <line num="2880" type="stmt" count="29"/>
3761
+ <line num="2882" type="stmt" count="29"/>
3762
+ <line num="2885" type="stmt" count="29"/>
3763
+ <line num="2886" type="stmt" count="29"/>
3764
+ <line num="2888" type="stmt" count="29"/>
3765
+ <line num="2890" type="stmt" count="29"/>
3766
+ <line num="2902" type="method" name="set_time_limit" visibility="public" complexity="2" crap="2" count="4"/>
3767
+ <line num="2903" type="stmt" count="4"/>
3768
+ <line num="2905" type="stmt" count="4"/>
3769
+ <line num="2906" type="stmt" count="4"/>
3770
+ <line num="2913" type="method" name="wp_ajax_restore" visibility="public" complexity="6" crap="42" count="0"/>
3771
+ <line num="2914" type="stmt" count="0"/>
3772
+ <line num="2915" type="stmt" count="0"/>
3773
+ <line num="2918" type="stmt" count="0"/>
3774
+ <line num="2919" type="stmt" count="0"/>
3775
  <line num="2920" type="stmt" count="0"/>
3776
+ <line num="2922" type="stmt" count="0"/>
3777
  <line num="2923" type="stmt" count="0"/>
3778
  <line num="2924" type="stmt" count="0"/>
3779
+ <line num="2927" type="stmt" count="0"/>
3780
  <line num="2928" type="stmt" count="0"/>
3781
+ <line num="2929" type="stmt" count="0"/>
3782
  <line num="2931" type="stmt" count="0"/>
3783
  <line num="2932" type="stmt" count="0"/>
3784
+ <line num="2933" type="stmt" count="0"/>
3785
+ <line num="2935" type="stmt" count="0"/>
3786
+ <line num="2948" type="stmt" count="0"/>
3787
+ <line num="2949" type="stmt" count="0"/>
3788
+ <line num="2951" type="stmt" count="0"/>
3789
+ <line num="2952" type="stmt" count="0"/>
3790
+ <line num="2953" type="stmt" count="0"/>
3791
+ <line num="2954" type="stmt" count="0"/>
3792
+ <line num="2955" type="stmt" count="0"/>
3793
+ <line num="2957" type="stmt" count="0"/>
3794
+ <line num="2958" type="stmt" count="0"/>
3795
+ <line num="2959" type="stmt" count="0"/>
3796
+ <line num="2960" type="stmt" count="0"/>
3797
+ <line num="2962" type="stmt" count="0"/>
3798
  <line num="2964" type="stmt" count="0"/>
3799
  <line num="2965" type="stmt" count="0"/>
3800
+ <line num="2981" type="method" name="boldgrid_backup_now_auto" visibility="public" complexity="4" crap="20" count="0"/>
3801
+ <line num="2983" type="stmt" count="0"/>
3802
+ <line num="2986" type="stmt" count="0"/>
3803
+ <line num="2987" type="stmt" count="0"/>
3804
+ <line num="2991" type="stmt" count="0"/>
3805
+ <line num="2994" type="stmt" count="0"/>
3806
+ <line num="2995" type="stmt" count="0"/>
3807
+ <line num="2999" type="stmt" count="0"/>
3808
+ <line num="3000" type="stmt" count="0"/>
3809
+ <line num="3011" type="method" name="enforce_retention" visibility="public" complexity="8" crap="8.07" count="4"/>
3810
+ <line num="3012" type="stmt" count="4"/>
3811
+ <line num="3013" type="stmt" count="4"/>
3812
+ <line num="3014" type="stmt" count="4"/>
3813
+ <line num="3016" type="stmt" count="4"/>
3814
+ <line num="3017" type="stmt" count="4"/>
3815
+ <line num="3019" type="stmt" count="4"/>
3816
+ <line num="3020" type="stmt" count="4"/>
3817
+ <line num="3023" type="stmt" count="4"/>
3818
+ <line num="3024" type="stmt" count="4"/>
3819
+ <line num="3025" type="stmt" count="4"/>
3820
+ <line num="3026" type="stmt" count="4"/>
3821
+ <line num="3027" type="stmt" count="0"/>
3822
+ <line num="3028" type="stmt" count="0"/>
3823
+ <line num="3029" type="stmt" count="0"/>
3824
+ <line num="3030" type="stmt" count="4"/>
3825
+ <line num="3031" type="stmt" count="4"/>
3826
+ <line num="3032" type="stmt" count="4"/>
3827
+ <line num="3035" type="stmt" count="4"/>
3828
+ <line num="3038" type="stmt" count="4"/>
3829
+ <line num="3039" type="stmt" count="4"/>
3830
+ <line num="3040" type="stmt" count="4"/>
3831
+ <line num="3044" type="stmt" count="1"/>
3832
+ <line num="3047" type="stmt" count="1"/>
3833
+ <line num="3050" type="stmt" count="1"/>
3834
+ <line num="3051" type="stmt" count="1"/>
3835
+ <line num="3052" type="stmt" count="1"/>
3836
+ <line num="3055" type="stmt" count="1"/>
3837
+ <line num="3058" type="stmt" count="1"/>
3838
+ <line num="3061" type="stmt" count="1"/>
3839
+ <line num="3063" type="stmt" count="1"/>
3840
+ <line num="3064" type="stmt" count="1"/>
3841
+ <line num="3073" type="stmt" count="1"/>
3842
+ <line num="3074" type="stmt" count="1"/>
3843
+ <line num="3075" type="stmt" count="0"/>
3844
+ <line num="3077" type="stmt" count="1"/>
3845
+ <line num="3079" type="stmt" count="1"/>
3846
+ <line num="3080" type="stmt" count="1"/>
3847
+ <line num="3081" type="stmt" count="1"/>
3848
+ <line num="3088" type="method" name="add_thickbox" visibility="public" complexity="2" crap="6" count="0"/>
3849
+ <line num="3089" type="stmt" count="0"/>
3850
+ <line num="3090" type="stmt" count="0"/>
3851
+ <line num="3091" type="stmt" count="0"/>
3852
+ <line num="3092" type="stmt" count="0"/>
3853
+ <metrics loc="3093" ncloc="1611" classes="1" methods="29" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="1123" coveredstatements="538" elements="1152" coveredelements="542"/>
3854
  </file>
3855
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cron-log.php">
3856
  <class name="Boldgrid_Backup_Admin_Cron_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin.Cron">
3857
  <metrics complexity="26" methods="8" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="3" elements="90" coveredelements="4"/>
3858
  </class>
3859
+ <line num="56" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
3860
+ <line num="57" type="stmt" count="29"/>
3861
+ <line num="59" type="stmt" count="29"/>
3862
+ <line num="60" type="stmt" count="29"/>
3863
  <line num="72" type="method" name="add_log" visibility="public" complexity="4" crap="20" count="0"/>
3864
  <line num="73" type="stmt" count="0"/>
3865
  <line num="74" type="stmt" count="0"/>
3952
  <class name="Boldgrid_Backup_Admin_Cron_Test" namespace="global" fullPackage="Boldgrid.Backup.Admin.Cron">
3953
  <metrics complexity="17" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="66" coveredstatements="5" elements="72" coveredelements="6"/>
3954
  </class>
3955
+ <line num="65" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
3956
+ <line num="66" type="stmt" count="29"/>
3957
+ <line num="68" type="stmt" count="29"/>
3958
+ <line num="69" type="stmt" count="29"/>
3959
+ <line num="70" type="stmt" count="29"/>
3960
+ <line num="71" type="stmt" count="29"/>
3961
  <line num="80" type="method" name="clean_up" visibility="public" complexity="1" crap="2" count="0"/>
3962
  <line num="81" type="stmt" count="0"/>
3963
  <line num="82" type="stmt" count="0"/>
4030
  <class name="Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Boldgrid.Backup.Admin">
4031
  <metrics complexity="131" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="434" coveredstatements="88" elements="460" coveredelements="90"/>
4032
  </class>
4033
+ <line num="87" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
4034
+ <line num="89" type="stmt" count="29"/>
4035
+ <line num="90" type="stmt" count="29"/>
4036
  <line num="97" type="method" name="get_cron_command" visibility="public" complexity="1" crap="2" count="0"/>
4037
  <line num="98" type="stmt" count="0"/>
4038
  <line num="114" type="method" name="add_cron_entry" visibility="public" complexity="9" crap="90" count="0"/>
4533
  <class name="Boldgrid_Backup_Admin_Dashboard_Widget" namespace="global" fullPackage="Boldgrid.Backup.Admin.Dashboard">
4534
  <metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="18" coveredstatements="2" elements="20" coveredelements="3"/>
4535
  </class>
4536
+ <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
4537
+ <line num="38" type="stmt" count="29"/>
4538
+ <line num="39" type="stmt" count="29"/>
4539
  <line num="50" type="method" name="filter_feature" visibility="public" complexity="4" crap="20" count="0"/>
4540
  <line num="52" type="stmt" count="0"/>
4541
  <line num="53" type="stmt" count="0"/>
4557
  </file>
4558
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-dashboard.php">
4559
  <class name="Boldgrid_Backup_Admin_Dashboard" namespace="global" fullPackage="Boldgrid.Backup.Admin">
4560
+ <metrics complexity="5" methods="4" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="2" elements="39" coveredelements="3"/>
4561
  </class>
4562
+ <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
4563
+ <line num="38" type="stmt" count="29"/>
4564
+ <line num="39" type="stmt" count="29"/>
4565
  <line num="48" type="method" name="admin_enqueue_scripts" visibility="public" complexity="2" crap="6" count="0"/>
4566
  <line num="49" type="stmt" count="0"/>
4567
  <line num="50" type="stmt" count="0"/>
4580
  <line num="81" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
4581
  <line num="82" type="stmt" count="0"/>
4582
  <line num="83" type="stmt" count="0"/>
4583
+ <line num="84" type="stmt" count="0"/>
4584
+ <line num="86" type="stmt" count="0"/>
4585
+ <line num="87" type="stmt" count="0"/>
4586
+ <line num="88" type="stmt" count="0"/>
4587
+ <line num="90" type="stmt" count="0"/>
4588
+ <line num="91" type="stmt" count="0"/>
4589
+ <line num="93" type="stmt" count="0"/>
4590
+ <line num="94" type="stmt" count="0"/>
4591
+ <line num="95" type="stmt" count="0"/>
4592
+ <line num="102" type="stmt" count="0"/>
4593
+ <line num="104" type="stmt" count="0"/>
4594
+ <line num="105" type="stmt" count="0"/>
4595
+ <line num="107" type="stmt" count="0"/>
4596
+ <line num="112" type="stmt" count="0"/>
4597
+ <line num="113" type="stmt" count="0"/>
4598
+ <line num="114" type="stmt" count="0"/>
4599
+ <line num="118" type="stmt" count="0"/>
4600
+ <line num="119" type="stmt" count="0"/>
4601
+ <metrics loc="120" ncloc="68" classes="1" methods="4" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="2" elements="39" coveredelements="3"/>
4602
  </file>
4603
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-dump.php">
4604
  <class name="Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4605
+ <metrics complexity="25" methods="5" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="109" coveredstatements="64" elements="114" coveredelements="66"/>
4606
  </class>
4607
+ <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
4608
+ <line num="40" type="stmt" count="29"/>
4609
+ <line num="41" type="stmt" count="29"/>
4610
+ <line num="53" type="method" name="dump" visibility="public" complexity="6" crap="6.13" count="4"/>
4611
  <line num="54" type="stmt" count="4"/>
4612
  <line num="56" type="stmt" count="4"/>
4613
  <line num="57" type="stmt" count="4"/>
4614
  <line num="58" type="stmt" count="0"/>
4615
  <line num="70" type="stmt" count="4"/>
4616
+ <line num="72" type="stmt" count="4"/>
4617
+ <line num="74" type="stmt" count="4"/>
 
4618
  <line num="76" type="stmt" count="4"/>
4619
  <line num="77" type="stmt" count="4"/>
4620
+ <line num="78" type="stmt" count="4"/>
4621
+ <line num="80" type="stmt" count="4"/>
4622
+ <line num="87" type="stmt" count="4"/>
4623
  <line num="90" type="stmt" count="4"/>
4624
  <line num="91" type="stmt" count="4"/>
4625
  <line num="92" type="stmt" count="4"/>
4626
  <line num="93" type="stmt" count="4"/>
4627
+ <line num="94" type="stmt" count="4"/>
4628
  <line num="106" type="stmt" count="4"/>
4629
  <line num="107" type="stmt" count="4"/>
4630
+ <line num="108" type="stmt" count="4"/>
4631
  <line num="110" type="stmt" count="4"/>
4632
+ <line num="111" type="stmt" count="3"/>
4633
+ <line num="112" type="stmt" count="3"/>
4634
+ <line num="113" type="stmt" count="3"/>
4635
+ <line num="115" type="stmt" count="0"/>
4636
+ <line num="116" type="stmt" count="0"/>
 
4637
  <line num="118" type="stmt" count="0"/>
4638
+ <line num="119" type="stmt" count="0"/>
4639
+ <line num="121" type="stmt" count="3"/>
4640
+ <line num="124" type="stmt" count="4"/>
4641
+ <line num="125" type="stmt" count="4"/>
4642
  <line num="126" type="stmt" count="4"/>
4643
+ <line num="127" type="stmt" count="4"/>
4644
+ <line num="129" type="stmt" count="4"/>
4645
+ <line num="130" type="stmt" count="4"/>
4646
+ <line num="131" type="stmt" count="4"/>
4647
+ <line num="132" type="stmt" count="0"/>
4648
+ <line num="140" type="stmt" count="4"/>
4649
+ <line num="142" type="stmt" count="4"/>
4650
+ <line num="154" type="method" name="get_connection_string" visibility="public" complexity="9" crap="9" count="5"/>
4651
+ <line num="155" type="stmt" count="5"/>
4652
+ <line num="158" type="stmt" count="5"/>
4653
  <line num="159" type="stmt" count="5"/>
4654
+ <line num="160" type="stmt" count="5"/>
4655
+ <line num="163" type="stmt" count="5"/>
4656
+ <line num="170" type="stmt" count="5"/>
4657
+ <line num="171" type="stmt" count="5"/>
4658
+ <line num="173" type="stmt" count="5"/>
 
4659
  <line num="174" type="stmt" count="1"/>
4660
+ <line num="175" type="stmt" count="1"/>
4661
+ <line num="176" type="stmt" count="5"/>
4662
+ <line num="179" type="stmt" count="5"/>
4663
+ <line num="186" type="stmt" count="1"/>
4664
+ <line num="187" type="stmt" count="1"/>
4665
+ <line num="188" type="stmt" count="1"/>
4666
+ <line num="190" type="stmt" count="1"/>
4667
+ <line num="192" type="stmt" count="1"/>
4668
+ <line num="193" type="stmt" count="1"/>
4669
+ <line num="194" type="stmt" count="1"/>
4670
+ <line num="195" type="stmt" count="1"/>
4671
+ <line num="196" type="stmt" count="1"/>
4672
+ <line num="198" type="stmt" count="1"/>
4673
+ <line num="199" type="stmt" count="5"/>
4674
+ <line num="201" type="stmt" count="5"/>
4675
+ <line num="202" type="stmt" count="5"/>
4676
+ <line num="203" type="stmt" count="5"/>
4677
+ <line num="204" type="stmt" count="5"/>
4678
+ <line num="205" type="stmt" count="5"/>
4679
+ <line num="207" type="stmt" count="5"/>
4680
+ <line num="219" type="method" name="get_insert_count" visibility="public" complexity="7" crap="56" count="0"/>
4681
+ <line num="220" type="stmt" count="0"/>
 
4682
  <line num="221" type="stmt" count="0"/>
4683
+ <line num="223" type="stmt" count="0"/>
4684
+ <line num="225" type="stmt" count="0"/>
4685
  <line num="228" type="stmt" count="0"/>
4686
  <line num="229" type="stmt" count="0"/>
4687
+ <line num="230" type="stmt" count="0"/>
4688
  <line num="232" type="stmt" count="0"/>
4689
+ <line num="235" type="stmt" count="0"/>
4690
+ <line num="242" type="stmt" count="0"/>
4691
+ <line num="243" type="stmt" count="0"/>
4692
+ <line num="245" type="stmt" count="0"/>
4693
+ <line num="246" type="stmt" count="0"/>
4694
+ <line num="247" type="stmt" count="0"/>
4695
+ <line num="250" type="stmt" count="0"/>
4696
+ <line num="252" type="stmt" count="0"/>
 
 
 
 
 
 
4697
  <line num="267" type="stmt" count="0"/>
4698
+ <line num="268" type="stmt" count="0"/>
4699
  <line num="269" type="stmt" count="0"/>
4700
+ <line num="271" type="stmt" count="0"/>
4701
+ <line num="272" type="stmt" count="0"/>
4702
+ <line num="273" type="stmt" count="0"/>
4703
+ <line num="274" type="stmt" count="0"/>
4704
+ <line num="275" type="stmt" count="0"/>
4705
+ <line num="277" type="stmt" count="0"/>
4706
+ <line num="278" type="stmt" count="0"/>
4707
+ <line num="280" type="stmt" count="0"/>
4708
+ <line num="281" type="stmt" count="0"/>
4709
  <line num="283" type="stmt" count="0"/>
4710
+ <line num="295" type="method" name="get_insert_tables" visibility="public" complexity="2" crap="6" count="0"/>
4711
+ <line num="296" type="stmt" count="0"/>
4712
+ <line num="297" type="stmt" count="0"/>
4713
+ <line num="312" type="stmt" count="0"/>
4714
+ <line num="313" type="stmt" count="0"/>
4715
+ <line num="314" type="stmt" count="0"/>
4716
+ <line num="315" type="stmt" count="0"/>
4717
+ <line num="316" type="stmt" count="0"/>
4718
+ <line num="317" type="stmt" count="0"/>
4719
+ <line num="320" type="stmt" count="0"/>
4720
+ <line num="322" type="stmt" count="0"/>
4721
+ <metrics loc="324" ncloc="170" classes="1" methods="5" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="109" coveredstatements="64" elements="114" coveredelements="66"/>
4722
  </file>
4723
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-get.php">
4724
  <class name="Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4725
  <metrics complexity="11" methods="5" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="35" elements="49" coveredelements="38"/>
4726
  </class>
4727
+ <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
4728
+ <line num="40" type="stmt" count="29"/>
4729
+ <line num="41" type="stmt" count="29"/>
4730
  <line num="55" type="method" name="get_by_type" visibility="public" complexity="3" crap="3.00" count="6"/>
4731
  <line num="56" type="stmt" count="6"/>
4732
  <line num="58" type="stmt" count="6"/>
4777
  </file>
4778
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php">
4779
  <class name="Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4780
+ <metrics complexity="44" methods="13" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="113" coveredstatements="110" elements="126" coveredelements="121"/>
4781
  </class>
4782
+ <line num="45" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="13"/>
4783
+ <line num="47" type="stmt" count="13"/>
4784
+ <line num="48" type="stmt" count="1"/>
4785
+ <line num="49" type="stmt" count="1"/>
4786
+ <line num="50" type="stmt" count="13"/>
4787
+ <line num="63" type="method" name="get_lines" visibility="public" complexity="2" crap="2" count="2"/>
4788
+ <line num="64" type="stmt" count="2"/>
4789
+ <line num="65" type="stmt" count="1"/>
4790
+ <line num="67" type="stmt" count="2"/>
4791
+ <line num="77" type="method" name="import" visibility="public" complexity="3" crap="3" count="2"/>
4792
+ <line num="78" type="stmt" count="2"/>
4793
+ <line num="80" type="stmt" count="2"/>
4794
+ <line num="82" type="stmt" count="1"/>
4795
+ <line num="84" type="stmt" count="1"/>
4796
+ <line num="86" type="stmt" count="1"/>
4797
+ <line num="87" type="stmt" count="1"/>
4798
+ <line num="90" type="stmt" count="2"/>
4799
+ <line num="92" type="stmt" count="2"/>
4800
+ <line num="94" type="stmt" count="1"/>
4801
+ <line num="96" type="stmt" count="1"/>
4802
+ <line num="98" type="stmt" count="1"/>
4803
+ <line num="99" type="stmt" count="1"/>
4804
+ <line num="102" type="stmt" count="1"/>
4805
+ <line num="104" type="stmt" count="1"/>
4806
+ <line num="118" type="method" name="import_from_archive" visibility="public" complexity="3" crap="3.14" count="1"/>
4807
+ <line num="119" type="stmt" count="1"/>
4808
+ <line num="120" type="stmt" count="1"/>
4809
+ <line num="121" type="stmt" count="1"/>
4810
+ <line num="122" type="stmt" count="1"/>
4811
  <line num="123" type="stmt" count="1"/>
4812
+ <line num="124" type="stmt" count="1"/>
4813
+ <line num="127" type="stmt" count="0"/>
4814
+ <line num="129" type="stmt" count="0"/>
4815
+ <line num="148" type="method" name="import_lines" visibility="public" complexity="7" crap="7" count="3"/>
4816
+ <line num="149" type="stmt" count="3"/>
4817
+ <line num="150" type="stmt" count="1"/>
4818
+ <line num="154" type="stmt" count="3"/>
4819
+ <line num="156" type="stmt" count="3"/>
4820
+ <line num="158" type="stmt" count="3"/>
4821
+ <line num="160" type="stmt" count="3"/>
4822
+ <line num="161" type="stmt" count="1"/>
4823
+ <line num="164" type="stmt" count="3"/>
4824
+ <line num="167" type="stmt" count="3"/>
4825
+ <line num="168" type="stmt" count="3"/>
4826
+ <line num="169" type="stmt" count="3"/>
4827
+ <line num="170" type="stmt" count="1"/>
4828
+ <line num="173" type="stmt" count="3"/>
4829
+ <line num="174" type="stmt" count="3"/>
4830
+ <line num="175" type="stmt" count="3"/>
4831
+ <line num="177" type="stmt" count="2"/>
4832
+ <line num="191" type="method" name="import_string" visibility="public" complexity="2" crap="2.02" count="1"/>
4833
+ <line num="192" type="stmt" count="1"/>
4834
+ <line num="194" type="stmt" count="1"/>
4835
+ <line num="196" type="stmt" count="1"/>
4836
+ <line num="197" type="stmt" count="0"/>
4837
+ <line num="200" type="stmt" count="1"/>
4838
+ <line num="202" type="stmt" count="1"/>
4839
+ <line num="215" type="method" name="fix_view_statements" visibility="public" complexity="7" crap="7" count="3"/>
4840
+ <line num="217" type="stmt" count="3"/>
4841
+ <line num="219" type="stmt" count="3"/>
4842
+ <line num="220" type="stmt" count="3"/>
4843
+ <line num="221" type="stmt" count="3"/>
4844
+ <line num="222" type="stmt" count="3"/>
4845
+ <line num="223" type="stmt" count="3"/>
4846
+ <line num="225" type="stmt" count="3"/>
4847
+ <line num="226" type="stmt" count="1"/>
4848
+ <line num="229" type="stmt" count="3"/>
4849
+ <line num="231" type="stmt" count="3"/>
4850
+ <line num="232" type="stmt" count="1"/>
4851
+ <line num="235" type="stmt" count="3"/>
4852
+ <line num="237" type="stmt" count="3"/>
4853
+ <line num="238" type="stmt" count="3"/>
4854
+ <line num="239" type="stmt" count="2"/>
4855
+ <line num="240" type="stmt" count="2"/>
4856
+ <line num="241" type="stmt" count="3"/>
4857
+ <line num="243" type="stmt" count="3"/>
4858
+ <line num="245" type="stmt" count="3"/>
4859
+ <line num="258" type="method" name="fix_definer" visibility="public" complexity="3" crap="3" count="3"/>
4860
+ <line num="259" type="stmt" count="3"/>
4861
+ <line num="260" type="stmt" count="3"/>
4862
+ <line num="261" type="stmt" count="3"/>
4863
+ <line num="262" type="stmt" count="3"/>
4864
+ <line num="263" type="stmt" count="1"/>
4865
+ <line num="264" type="stmt" count="1"/>
4866
+ <line num="265" type="stmt" count="3"/>
4867
+ <line num="268" type="stmt" count="3"/>
4868
+ <line num="269" type="stmt" count="3"/>
4869
+ <line num="270" type="stmt" count="3"/>
4870
+ <line num="271" type="stmt" count="1"/>
4871
+ <line num="274" type="stmt" count="3"/>
4872
+ <line num="285" type="method" name="has_db_privileges" visibility="public" complexity="3" crap="3" count="6"/>
4873
+ <line num="286" type="stmt" count="6"/>
4874
+ <line num="287" type="stmt" count="6"/>
4875
+ <line num="288" type="stmt" count="6"/>
4876
+ <line num="290" type="stmt" count="1"/>
4877
+ <line num="291" type="stmt" count="1"/>
4878
+ <line num="293" type="stmt" count="1"/>
4879
+ <line num="305" type="method" name="get_db_privileges" visibility="public" complexity="7" crap="7" count="6"/>
4880
+ <line num="306" type="stmt" count="6"/>
4881
+ <line num="308" type="stmt" count="6"/>
4882
+ <line num="309" type="stmt" count="6"/>
4883
+ <line num="310" type="stmt" count="6"/>
4884
+ <line num="311" type="stmt" count="6"/>
4885
+ <line num="312" type="stmt" count="6"/>
4886
+ <line num="314" type="stmt" count="6"/>
4887
+ <line num="315" type="stmt" count="5"/>
4888
+ <line num="317" type="stmt" count="1"/>
4889
+ <line num="318" type="stmt" count="1"/>
4890
+ <line num="320" type="stmt" count="1"/>
4891
+ <line num="321" type="stmt" count="1"/>
4892
+ <line num="333" type="method" name="show_grants_query" visibility="public" complexity="1" crap="1" count="5"/>
4893
+ <line num="334" type="stmt" count="5"/>
4894
+ <line num="335" type="stmt" count="5"/>
4895
+ <line num="336" type="stmt" count="5"/>
4896
+ <line num="351" type="method" name="exec_import" visibility="public" complexity="1" crap="1" count="2"/>
4897
+ <line num="352" type="stmt" count="2"/>
4898
+ <line num="363" type="method" name="get_grants_array" visibility="public" complexity="3" crap="3" count="2"/>
4899
+ <line num="364" type="stmt" count="2"/>
4900
+ <line num="366" type="stmt" count="2"/>
4901
+ <line num="367" type="stmt" count="2"/>
4902
+ <line num="368" type="stmt" count="2"/>
4903
+ <line num="370" type="stmt" count="2"/>
4904
+ <line num="371" type="stmt" count="2"/>
4905
+ <line num="372" type="stmt" count="2"/>
4906
+ <line num="373" type="stmt" count="2"/>
4907
+ <line num="375" type="stmt" count="2"/>
4908
+ <metrics loc="377" ncloc="207" classes="1" methods="13" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="113" coveredstatements="110" elements="126" coveredelements="121"/>
4909
  </file>
4910
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-omit.php">
4911
  <class name="Boldgrid_Backup_Admin_Db_Omit" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4912
  <metrics complexity="37" methods="11" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="39" elements="95" coveredelements="42"/>
4913
  </class>
4914
+ <line num="61" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
4915
+ <line num="62" type="stmt" count="29"/>
4916
+ <line num="63" type="stmt" count="29"/>
4917
  <line num="74" type="method" name="email_part" visibility="public" complexity="3" crap="3" count="4"/>
4918
  <line num="75" type="stmt" count="4"/>
4919
  <line num="78" type="stmt" count="4"/>
5010
  </file>
5011
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-email.php">
5012
  <class name="Boldgrid_Backup_Admin_Email" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5013
+ <metrics complexity="16" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="55" elements="90" coveredelements="57"/>
5014
  </class>
5015
+ <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5016
+ <line num="49" type="stmt" count="29"/>
5017
+ <line num="50" type="stmt" count="29"/>
5018
  <line num="63" type="method" name="fill_generic_template" visibility="public" complexity="2" crap="6" count="0"/>
5019
  <line num="64" type="stmt" count="0"/>
5020
  <line num="66" type="stmt" count="0"/>
5027
  <line num="77" type="stmt" count="0"/>
5028
  <line num="79" type="stmt" count="0"/>
5029
  <line num="81" type="stmt" count="0"/>
5030
+ <line num="89" type="method" name="init_ads" visibility="public" complexity="2" crap="2.69" count="4"/>
5031
  <line num="90" type="stmt" count="4"/>
5032
  <line num="91" type="stmt" count="4"/>
5033
+ <line num="93" type="stmt" count="0"/>
5034
+ <line num="94" type="stmt" count="0"/>
5035
+ <line num="96" type="stmt" count="0"/>
5036
+ <line num="97" type="stmt" count="0"/>
5037
+ <line num="98" type="stmt" count="0"/>
5038
  <line num="99" type="stmt" count="4"/>
5039
  <line num="101" type="stmt" count="4"/>
5040
  <line num="111" type="method" name="post_archive_parts" visibility="public" complexity="3" crap="3" count="4"/>
5102
  <line num="266" type="stmt" count="0"/>
5103
  <line num="267" type="stmt" count="0"/>
5104
  <line num="268" type="stmt" count="0"/>
5105
+ <metrics loc="269" ncloc="130" classes="1" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="55" elements="90" coveredelements="57"/>
5106
  </file>
5107
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-filelist.php">
5108
  <class name="Boldgrid_Backup_Admin_Filelist" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5109
  <metrics complexity="7" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="7" elements="23" coveredelements="9"/>
5110
  </class>
5111
+ <line num="73" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5112
+ <line num="74" type="stmt" count="29"/>
5113
+ <line num="75" type="stmt" count="29"/>
5114
  <line num="84" type="method" name="get_size" visibility="public" complexity="4" crap="20" count="0"/>
5115
  <line num="92" type="stmt" count="0"/>
5116
  <line num="93" type="stmt" count="0"/>
5135
  </file>
5136
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-folder-exclusion.php">
5137
  <class name="Boldgrid_Backup_Admin_Folder_Exclusion" namespace="global" fullPackage="Boldgrid.Backup.Admin.Folder">
5138
+ <metrics complexity="57" methods="10" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="150" coveredstatements="74" elements="160" coveredelements="77"/>
5139
  </class>
5140
+ <line num="113" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5141
+ <line num="114" type="stmt" count="29"/>
5142
+ <line num="131" type="stmt" count="29"/>
5143
+ <line num="132" type="stmt" count="29"/>
5144
+ <line num="133" type="stmt" count="29"/>
5145
  <line num="143" type="method" name="allow_file" visibility="public" complexity="11" crap="11.97" count="4"/>
5146
  <line num="145" type="stmt" count="4"/>
5147
  <line num="146" type="stmt" count="0"/>
5220
  <line num="316" type="stmt" count="0"/>
5221
  <line num="317" type="stmt" count="0"/>
5222
  <line num="318" type="stmt" count="0"/>
5223
+ <line num="329" type="method" name="from_settings" visibility="public" complexity="16" crap="33.31" count="8"/>
5224
+ <line num="330" type="stmt" count="8"/>
5225
  <line num="331" type="stmt" count="0"/>
5226
+ <line num="334" type="stmt" count="8"/>
5227
+ <line num="335" type="stmt" count="8"/>
5228
+ <line num="345" type="stmt" count="8"/>
5229
  <line num="346" type="stmt" count="0"/>
5230
+ <line num="353" type="stmt" count="8"/>
5231
  <line num="354" type="stmt" count="0"/>
5232
  <line num="355" type="stmt" count="0"/>
5233
+ <line num="358" type="stmt" count="8"/>
5234
  <line num="359" type="stmt" count="7"/>
5235
+ <line num="362" type="stmt" count="3"/>
5236
  <line num="363" type="stmt" count="0"/>
5237
+ <line num="364" type="stmt" count="3"/>
5238
  <line num="369" type="stmt" count="0"/>
5239
+ <line num="370" type="stmt" count="3"/>
5240
+ <line num="378" type="stmt" count="1"/>
5241
+ <line num="379" type="stmt" count="3"/>
5242
  <line num="380" type="stmt" count="0"/>
5243
  <line num="381" type="stmt" count="0"/>
5244
  <line num="382" type="stmt" count="0"/>
5245
  <line num="383" type="stmt" count="0"/>
5246
  <line num="384" type="stmt" count="0"/>
5247
+ <line num="386" type="stmt" count="3"/>
5248
  <line num="387" type="stmt" count="2"/>
5249
  <line num="388" type="stmt" count="2"/>
5250
+ <line num="390" type="stmt" count="3"/>
5251
  <line num="405" type="method" name="is_match" visibility="public" complexity="3" crap="3.02" count="4"/>
5252
  <line num="406" type="stmt" count="4"/>
5253
  <line num="407" type="stmt" count="0"/>
5297
  <line num="512" type="stmt" count="0"/>
5298
  <line num="514" type="stmt" count="0"/>
5299
  <line num="515" type="stmt" count="0"/>
5300
+ <metrics loc="516" ncloc="251" classes="1" methods="10" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="150" coveredstatements="74" elements="160" coveredelements="77"/>
5301
  </file>
5302
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-go-pro.php">
5303
  <class name="Boldgrid_Backup_Admin_Go_Pro" namespace="global" fullPackage="Boldgrid.Backup.Admin.Go">
5304
+ <metrics complexity="17" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="72" coveredstatements="2" elements="77" coveredelements="3"/>
5305
  </class>
5306
+ <line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5307
+ <line num="47" type="stmt" count="29"/>
5308
+ <line num="48" type="stmt" count="29"/>
5309
  <line num="60" type="method" name="get_admin_notices" visibility="public" complexity="8" crap="72" count="0"/>
5310
  <line num="61" type="stmt" count="0"/>
5311
  <line num="64" type="stmt" count="0"/>
5371
  <line num="163" type="stmt" count="0"/>
5372
  <line num="165" type="stmt" count="0"/>
5373
  <line num="166" type="stmt" count="0"/>
5374
+ <line num="177" type="method" name="get_premium_button" visibility="public" complexity="2" crap="6" count="0"/>
5375
+ <line num="178" type="stmt" count="0"/>
5376
+ <line num="180" type="stmt" count="0"/>
5377
+ <line num="182" type="stmt" count="0"/>
5378
+ <line num="183" type="stmt" count="0"/>
5379
+ <line num="185" type="stmt" count="0"/>
5380
+ <line num="197" type="method" name="get_premium_url" visibility="public" complexity="1" crap="2" count="0"/>
5381
+ <line num="198" type="stmt" count="0"/>
5382
+ <line num="200" type="stmt" count="0"/>
5383
+ <metrics loc="202" ncloc="112" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="72" coveredstatements="2" elements="77" coveredelements="3"/>
5384
  </file>
5385
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-home-dir.php">
5386
  <class name="Boldgrid_Backup_Admin_Home_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Home">
5387
  <metrics complexity="6" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="2" elements="12" coveredelements="3"/>
5388
  </class>
5389
+ <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5390
+ <line num="38" type="stmt" count="29"/>
5391
+ <line num="39" type="stmt" count="29"/>
5392
  <line num="51" type="method" name="get_for_disk" visibility="public" complexity="5" crap="30" count="0"/>
5393
  <line num="52" type="stmt" count="0"/>
5394
  <line num="53" type="stmt" count="0"/>
5437
  </file>
5438
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress-tmp.php">
5439
  <class name="Boldgrid_Backup_Admin_In_Progress_Tmp" namespace="global" fullPackage="Boldgrid.Backup.Admin.In.Progress">
5440
+ <metrics complexity="12" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="48" coveredstatements="2" elements="53" coveredelements="3"/>
5441
  </class>
5442
+ <line num="48" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="29"/>
5443
+ <line num="49" type="stmt" count="29"/>
5444
+ <line num="50" type="stmt" count="29"/>
5445
  <line num="59" type="method" name="get" visibility="public" complexity="4" crap="20" count="0"/>
5446
  <line num="60" type="stmt" count="0"/>
5447
  <line num="62" type="stmt" count="0"/>
5455
  <line num="72" type="stmt" count="0"/>
5456
  <line num="73" type="stmt" count="0"/>
5457
  <line num="76" type="stmt" count="0"/>
5458
+ <line num="86" type="method" name="get_system_zip" visibility="private" complexity="2" crap="6" count="0"/>
5459
  <line num="87" type="stmt" count="0"/>
 
5460
  <line num="89" type="stmt" count="0"/>
5461
  <line num="90" type="stmt" count="0"/>
5462
+ <line num="92" type="stmt" count="0"/>
 
5463
  <line num="94" type="stmt" count="0"/>
5464
  <line num="96" type="stmt" count="0"/>
5465
  <line num="97" type="stmt" count="0"/>
5466
+ <line num="98" type="stmt" count="0"/>
5467
+ <line num="99" type="stmt" count="0"/>
5468
  <line num="100" type="stmt" count="0"/>
 
5469
  <line num="102" type="stmt" count="0"/>
5470
+ <line num="112" type="method" name="get_pcl_zip" visibility="private" complexity="2" crap="6" count="0"/>
5471
+ <line num="113" type="stmt" count="0"/>
5472
+ <line num="115" type="stmt" count="0"/>
5473
  <line num="116" type="stmt" count="0"/>
5474
+ <line num="118" type="stmt" count="0"/>
5475
+ <line num="120" type="stmt" count="0"/>
5476
+ <line num="122" type="stmt" count="0"/>
5477
  <line num="123" type="stmt" count="0"/>
5478
  <line num="124" type="stmt" count="0"/>
5479
  <line num="125" type="stmt" count="0"/>
5480
  <line num="126" type="stmt" count="0"/>
5481
+ <line num="128" type="stmt" count="0"/>
5482
+ <line num="142" type="method" name="get_php_zip" visibility="private" complexity="2" crap="6" count="0"/>
5483
+ <line num="143" type="stmt" count="0"/>
5484
+ <line num="145" type="stmt" count="0"/>
5485
  <line num="146" type="stmt" count="0"/>
5486
+ <line num="148" type="stmt" count="0"/>
5487
+ <line num="151" type="stmt" count="0"/>
5488
+ <line num="153" type="stmt" count="0"/>
5489
  <line num="154" type="stmt" count="0"/>
5490
  <line num="155" type="stmt" count="0"/>
5491
  <line num="156" type="stmt" count="0"/>
5492
+ <line num="158" type="stmt" count="0"/>
5493
  <line num="159" type="stmt" count="0"/>
5494
+ <line num="161" type="stmt" count="0"/>
5495
+ <metrics loc="163" ncloc="87" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="48" coveredstatements="2" elements="53" coveredelements="3"/>
 
5496
  </file>
5497
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress.php">
5498
  <class name="Boldgrid_Backup_Admin_In_Progress" namespace="global" fullPackage="Boldgrid.Backup.Admin.In">
5499
  <metrics complexity="27" methods="12" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="97" coveredstatements="7" elements="109" coveredelements="9"/>
5500
  </class>
5501
+ <line num="57" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5502
+ <line num="58" type="stmt" count="29"/>
5503
+ <line num="60" type="stmt" count="29"/>
5504
+ <line num="61" type="stmt" count="29"/>
5505
  <line num="71" type="method" name="add_notice" visibility="public" complexity="4" crap="20" count="0"/>
5506
  <line num="72" type="stmt" count="0"/>
5507
  <line num="74" type="stmt" count="0"/>
5613
  <class name="Boldgrid_Backup_Admin_Jobs" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5614
  <metrics complexity="28" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="93" coveredstatements="2" elements="102" coveredelements="3"/>
5615
  </class>
5616
+ <line num="68" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5617
+ <line num="69" type="stmt" count="29"/>
5618
+ <line num="70" type="stmt" count="29"/>
5619
  <line num="80" type="method" name="add" visibility="public" complexity="2" crap="6" count="0"/>
5620
  <line num="81" type="stmt" count="0"/>
5621
  <line num="82" type="stmt" count="0"/>
5771
  <class name="Boldgrid_Backup_Admin_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5772
  <metrics complexity="23" methods="11" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="59" elements="93" coveredelements="66"/>
5773
  </class>
5774
+ <line num="78" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="33"/>
5775
+ <line num="79" type="stmt" count="33"/>
5776
+ <line num="80" type="stmt" count="33"/>
5777
  <line num="91" type="method" name="add" visibility="public" complexity="2" crap="2" count="4"/>
5778
  <line num="97" type="stmt" count="4"/>
5779
  <line num="98" type="stmt" count="4"/>
5861
  <line num="300" type="stmt" count="0"/>
5862
  <line num="301" type="stmt" count="0"/>
5863
  <line num="302" type="stmt" count="0"/>
5864
+ <line num="312" type="method" name="signal_handler" visibility="public" complexity="1" crap="2" count="0"/>
5865
+ <line num="313" type="stmt" count="0"/>
5866
+ <line num="315" type="stmt" count="0"/>
5867
+ <metrics loc="317" ncloc="135" classes="1" methods="11" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="59" elements="93" coveredelements="66"/>
5868
  </file>
5869
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-notice.php">
5870
  <class name="Boldgrid_Backup_Admin_Notice" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5871
+ <metrics complexity="29" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="121" coveredstatements="2" elements="132" coveredelements="3"/>
5872
  </class>
5873
+ <line num="58" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
5874
+ <line num="59" type="stmt" count="29"/>
5875
+ <line num="60" type="stmt" count="29"/>
5876
  <line num="71" type="method" name="add_user_notice" visibility="public" complexity="1" crap="2" count="0"/>
5877
  <line num="72" type="stmt" count="0"/>
5878
  <line num="74" type="stmt" count="0"/>
5939
  <line num="226" type="stmt" count="0"/>
5940
  <line num="228" type="stmt" count="0"/>
5941
  <line num="230" type="stmt" count="0"/>
5942
+ <line num="238" type="method" name="display_autoupdate_notice" visibility="public" complexity="8" crap="72" count="0"/>
5943
+ <line num="240" type="stmt" count="0"/>
5944
  <line num="241" type="stmt" count="0"/>
5945
  <line num="242" type="stmt" count="0"/>
5946
+ <line num="243" type="stmt" count="0"/>
5947
  <line num="244" type="stmt" count="0"/>
5948
  <line num="245" type="stmt" count="0"/>
5949
  <line num="246" type="stmt" count="0"/>
5950
+ <line num="247" type="stmt" count="0"/>
5951
  <line num="248" type="stmt" count="0"/>
5952
+ <line num="249" type="stmt" count="0"/>
5953
  <line num="250" type="stmt" count="0"/>
5954
  <line num="251" type="stmt" count="0"/>
5955
+ <line num="252" type="stmt" count="0"/>
5956
+ <line num="253" type="stmt" count="0"/>
5957
+ <line num="255" type="stmt" count="0"/>
5958
+ <line num="256" type="stmt" count="0"/>
5959
+ <line num="257" type="stmt" count="0"/>
5960
+ <line num="258" type="stmt" count="0"/>
5961
+ <line num="259" type="stmt" count="0"/>
5962
+ <line num="260" type="stmt" count="0"/>
5963
+ <line num="261" type="stmt" count="0"/>
5964
+ <line num="262" type="stmt" count="0"/>
5965
+ <line num="263" type="stmt" count="0"/>
5966
+ <line num="265" type="stmt" count="0"/>
5967
+ <line num="266" type="stmt" count="0"/>
5968
+ <line num="268" type="stmt" count="0"/>
5969
+ <line num="269" type="stmt" count="0"/>
5970
+ <line num="271" type="stmt" count="0"/>
5971
  <line num="272" type="stmt" count="0"/>
5972
  <line num="273" type="stmt" count="0"/>
5973
+ <line num="274" type="stmt" count="0"/>
5974
+ <line num="275" type="stmt" count="0"/>
5975
  <line num="276" type="stmt" count="0"/>
5976
  <line num="278" type="stmt" count="0"/>
5977
+ <line num="280" type="stmt" count="0"/>
5978
  <line num="281" type="stmt" count="0"/>
5979
+ <line num="283" type="stmt" count="0"/>
5980
  <line num="284" type="stmt" count="0"/>
5981
  <line num="285" type="stmt" count="0"/>
5982
  <line num="286" type="stmt" count="0"/>
 
5983
  <line num="288" type="stmt" count="0"/>
5984
+ <line num="290" type="stmt" count="0"/>
5985
  <line num="291" type="stmt" count="0"/>
5986
+ <line num="303" type="method" name="plugin_renamed_notice" visibility="public" complexity="3" crap="12" count="0"/>
5987
+ <line num="304" type="stmt" count="0"/>
5988
+ <line num="312" type="stmt" count="0"/>
5989
+ <line num="313" type="stmt" count="0"/>
5990
+ <line num="316" type="stmt" count="0"/>
5991
+ <line num="318" type="stmt" count="0"/>
5992
+ <line num="319" type="stmt" count="0"/>
5993
+ <line num="321" type="stmt" count="0"/>
5994
+ <line num="322" type="stmt" count="0"/>
5995
+ <line num="324" type="stmt" count="0"/>
5996
+ <line num="325" type="stmt" count="0"/>
5997
+ <line num="326" type="stmt" count="0"/>
5998
+ <line num="327" type="stmt" count="0"/>
5999
+ <line num="328" type="stmt" count="0"/>
6000
+ <line num="329" type="stmt" count="0"/>
6001
+ <line num="331" type="stmt" count="0"/>
6002
+ <line num="333" type="stmt" count="0"/>
6003
+ <line num="334" type="stmt" count="0"/>
6004
+ <line num="335" type="stmt" count="0"/>
6005
+ <metrics loc="336" ncloc="191" classes="1" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="121" coveredstatements="2" elements="132" coveredelements="3"/>
6006
  </file>
6007
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-plugin-notices.php">
6008
  <class name="Boldgrid_Backup_Admin_Plugin_Notices" namespace="global" fullPackage="Boldgrid.Backup.Admin.Plugin">
6051
  </file>
6052
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-premium-features.php">
6053
  <class name="Boldgrid_Backup_Admin_Premium_Features" namespace="global" fullPackage="Boldgrid.Backup.Admin.Premium">
6054
+ <metrics complexity="6" methods="4" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="49" coveredstatements="24" elements="53" coveredelements="27"/>
6055
  </class>
6056
+ <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
6057
+ <line num="49" type="stmt" count="29"/>
6058
+ <line num="50" type="stmt" count="29"/>
6059
+ <line num="59" type="method" name="admin_enqueue_scripts" visibility="public" complexity="3" crap="3" count="1"/>
6060
+ <line num="60" type="stmt" count="1"/>
6061
  <line num="61" type="stmt" count="1"/>
6062
  <line num="62" type="stmt" count="1"/>
6063
  <line num="63" type="stmt" count="1"/>
6064
  <line num="65" type="stmt" count="1"/>
6065
  <line num="66" type="stmt" count="1"/>
6066
+ <line num="67" type="stmt" count="1"/>
6067
+ <line num="68" type="stmt" count="1"/>
6068
+ <line num="77" type="method" name="get_cards" visibility="public" complexity="1" crap="1" count="1"/>
6069
+ <line num="78" type="stmt" count="1"/>
6070
+ <line num="80" type="stmt" count="1"/>
6071
+ <line num="82" type="stmt" count="1"/>
6072
+ <line num="83" type="stmt" count="1"/>
6073
+ <line num="84" type="stmt" count="1"/>
6074
+ <line num="85" type="stmt" count="1"/>
6075
+ <line num="86" type="stmt" count="1"/>
6076
+ <line num="87" type="stmt" count="1"/>
6077
+ <line num="88" type="stmt" count="1"/>
6078
+ <line num="89" type="stmt" count="1"/>
6079
+ <line num="90" type="stmt" count="1"/>
6080
+ <line num="91" type="stmt" count="1"/>
6081
+ <line num="92" type="stmt" count="1"/>
6082
+ <line num="94" type="stmt" count="1"/>
6083
+ <line num="104" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
6084
+ <line num="106" type="stmt" count="0"/>
6085
+ <line num="107" type="stmt" count="0"/>
6086
+ <line num="108" type="stmt" count="0"/>
6087
+ <line num="110" type="stmt" count="0"/>
6088
+ <line num="111" type="stmt" count="0"/>
6089
+ <line num="112" type="stmt" count="0"/>
6090
+ <line num="114" type="stmt" count="0"/>
6091
+ <line num="115" type="stmt" count="0"/>
6092
+ <line num="117" type="stmt" count="0"/>
6093
+ <line num="118" type="stmt" count="0"/>
6094
+ <line num="119" type="stmt" count="0"/>
6095
+ <line num="121" type="stmt" count="0"/>
6096
+ <line num="128" type="stmt" count="0"/>
6097
+ <line num="130" type="stmt" count="0"/>
6098
+ <line num="131" type="stmt" count="0"/>
6099
+ <line num="133" type="stmt" count="0"/>
6100
+ <line num="138" type="stmt" count="0"/>
6101
+ <line num="139" type="stmt" count="0"/>
6102
+ <line num="140" type="stmt" count="0"/>
6103
+ <line num="144" type="stmt" count="0"/>
6104
+ <line num="146" type="stmt" count="0"/>
6105
+ <line num="148" type="stmt" count="0"/>
6106
+ <line num="149" type="stmt" count="0"/>
6107
+ <line num="150" type="stmt" count="0"/>
6108
+ <line num="151" type="stmt" count="0"/>
6109
+ <metrics loc="153" ncloc="91" classes="1" methods="4" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="49" coveredstatements="24" elements="53" coveredelements="27"/>
6110
  </file>
6111
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-remote.php">
6112
  <class name="Boldgrid_Backup_Admin_Remote" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6113
  <metrics complexity="18" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="2" elements="40" coveredelements="3"/>
6114
  </class>
6115
+ <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
6116
+ <line num="38" type="stmt" count="29"/>
6117
+ <line num="39" type="stmt" count="29"/>
6118
  <line num="56" type="method" name="any_enabled" visibility="public" complexity="8" crap="72" count="0"/>
6119
  <line num="57" type="stmt" count="0"/>
6120
  <line num="59" type="stmt" count="0"/>
6176
  <class name="Boldgrid_Backup_Admin_Restore_Helper" namespace="global" fullPackage="Boldgrid.Backup.Admin.Restore">
6177
  <metrics complexity="44" methods="10" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="103" coveredstatements="15" elements="113" coveredelements="16"/>
6178
  </class>
6179
+ <line num="68" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="29"/>
6180
+ <line num="69" type="stmt" count="29"/>
6181
+ <line num="70" type="stmt" count="29"/>
6182
  <line num="79" type="method" name="get_last_error" visibility="public" complexity="2" crap="6" count="0"/>
6183
  <line num="80" type="stmt" count="0"/>
6184
  <line num="82" type="stmt" count="0"/>
6295
  <class name="Boldgrid_Backup_Admin_Scheduler" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6296
  <metrics complexity="12" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="2" elements="35" coveredelements="3"/>
6297
  </class>
6298
+ <line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
6299
+ <line num="47" type="stmt" count="29"/>
6300
+ <line num="48" type="stmt" count="29"/>
6301
  <line num="55" type="method" name="clear_all_schedules" visibility="public" complexity="1" crap="2" count="0"/>
6302
  <line num="56" type="stmt" count="0"/>
6303
  <line num="57" type="stmt" count="0"/>
6334
  </file>
6335
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-settings.php">
6336
  <class name="Boldgrid_Backup_Admin_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6337
+ <metrics complexity="154" methods="17" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="468" coveredstatements="100" elements="485" coveredelements="104"/>
6338
  </class>
6339
+ <line num="50" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
6340
+ <line num="52" type="stmt" count="29"/>
6341
+ <line num="54" type="stmt" count="29"/>
6342
+ <line num="55" type="stmt" count="29"/>
6343
  <line num="67" type="method" name="get_dow_count" visibility="public" complexity="5" crap="30" count="0"/>
6344
  <line num="68" type="stmt" count="0"/>
6345
  <line num="70" type="stmt" count="0"/>
6350
  <line num="78" type="stmt" count="0"/>
6351
  <line num="79" type="stmt" count="0"/>
6352
  <line num="81" type="stmt" count="0"/>
6353
+ <line num="92" type="method" name="get_setting" visibility="public" complexity="2" crap="2" count="2"/>
6354
+ <line num="93" type="stmt" count="2"/>
6355
+ <line num="95" type="stmt" count="2"/>
6356
+ <line num="108" type="method" name="get_settings" visibility="public" complexity="37" crap="39.60" count="8"/>
6357
+ <line num="110" type="stmt" count="8"/>
6358
+ <line num="112" type="stmt" count="8"/>
6359
  <line num="113" type="stmt" count="4"/>
6360
+ <line num="117" type="stmt" count="8"/>
6361
+ <line num="118" type="stmt" count="8"/>
6362
+ <line num="121" type="stmt" count="8"/>
6363
+ <line num="124" type="stmt" count="1"/>
6364
+ <line num="125" type="stmt" count="1"/>
6365
+ <line num="126" type="stmt" count="1"/>
6366
+ <line num="127" type="stmt" count="1"/>
6367
+ <line num="128" type="stmt" count="1"/>
6368
+ <line num="129" type="stmt" count="1"/>
6369
+ <line num="130" type="stmt" count="1"/>
6370
+ <line num="131" type="stmt" count="1"/>
6371
+ <line num="132" type="stmt" count="1"/>
6372
+ <line num="133" type="stmt" count="1"/>
6373
+ <line num="134" type="stmt" count="1"/>
6374
+ <line num="135" type="stmt" count="1"/>
6375
+ <line num="136" type="stmt" count="1"/>
6376
+ <line num="137" type="stmt" count="1"/>
6377
+ <line num="138" type="stmt" count="1"/>
6378
+ <line num="139" type="stmt" count="1"/>
6379
+ <line num="140" type="stmt" count="1"/>
6380
+ <line num="141" type="stmt" count="1"/>
6381
+ <line num="142" type="stmt" count="1"/>
6382
+ <line num="143" type="stmt" count="1"/>
6383
+ <line num="144" type="stmt" count="1"/>
6384
+ <line num="147" type="stmt" count="1"/>
6385
+ <line num="148" type="stmt" count="1"/>
6386
+ <line num="149" type="stmt" count="1"/>
6387
  <line num="150" type="stmt" count="0"/>
6388
+ <line num="151" type="stmt" count="1"/>
6389
+ <line num="152" type="stmt" count="1"/>
6390
+ <line num="153" type="stmt" count="1"/>
6391
  <line num="154" type="stmt" count="0"/>
6392
+ <line num="155" type="stmt" count="1"/>
6393
+ <line num="156" type="stmt" count="1"/>
6394
+ <line num="157" type="stmt" count="1"/>
6395
  <line num="158" type="stmt" count="0"/>
6396
+ <line num="161" type="stmt" count="1"/>
6397
+ <line num="162" type="stmt" count="1"/>
6398
+ <line num="163" type="stmt" count="1"/>
6399
  <line num="164" type="stmt" count="0"/>
6400
+ <line num="165" type="stmt" count="1"/>
6401
+ <line num="166" type="stmt" count="1"/>
6402
+ <line num="167" type="stmt" count="1"/>
6403
  <line num="168" type="stmt" count="0"/>
6404
+ <line num="171" type="stmt" count="1"/>
6405
  <line num="172" type="stmt" count="0"/>
6406
  <line num="173" type="stmt" count="0"/>
6407
+ <line num="176" type="stmt" count="1"/>
6408
+ <line num="177" type="stmt" count="1"/>
6409
  <line num="178" type="stmt" count="0"/>
6410
+ <line num="180" type="stmt" count="1"/>
6411
+ <line num="181" type="stmt" count="1"/>
6412
+ <line num="182" type="stmt" count="1"/>
6413
  <line num="183" type="stmt" count="0"/>
6414
+ <line num="186" type="stmt" count="1"/>
6415
+ <line num="187" type="stmt" count="1"/>
6416
+ <line num="188" type="stmt" count="1"/>
6417
+ <line num="190" type="stmt" count="1"/>
6418
  <line num="191" type="stmt" count="0"/>
6419
  <line num="192" type="stmt" count="0"/>
6420
+ <line num="193" type="stmt" count="1"/>
6421
  <line num="196" type="stmt" count="7"/>
6422
  <line num="197" type="stmt" count="7"/>
6423
  <line num="198" type="stmt" count="7"/>
6435
  <line num="214" type="stmt" count="7"/>
6436
  <line num="215" type="stmt" count="7"/>
6437
  <line num="217" type="stmt" count="7"/>
6438
+ <line num="220" type="stmt" count="8"/>
6439
  <line num="221" type="stmt" count="0"/>
6440
  <line num="222" type="stmt" count="0"/>
6441
+ <line num="225" type="stmt" count="8"/>
6442
+ <line num="226" type="stmt" count="1"/>
6443
+ <line num="227" type="stmt" count="1"/>
6444
+ <line num="229" type="stmt" count="8"/>
6445
+ <line num="230" type="stmt" count="8"/>
6446
+ <line num="231" type="stmt" count="8"/>
6447
+ <line num="234" type="stmt" count="8"/>
6448
+ <line num="235" type="stmt" count="8"/>
6449
+ <line num="238" type="stmt" count="8"/>
6450
+ <line num="239" type="stmt" count="8"/>
6451
+ <line num="241" type="stmt" count="8"/>
6452
+ <line num="242" type="stmt" count="8"/>
6453
+ <line num="244" type="stmt" count="8"/>
6454
+ <line num="245" type="stmt" count="8"/>
6455
+ <line num="247" type="stmt" count="8"/>
6456
+ <line num="248" type="stmt" count="8"/>
6457
+ <line num="251" type="stmt" count="8"/>
6458
+ <line num="252" type="stmt" count="8"/>
6459
+ <line num="253" type="stmt" count="8"/>
6460
+ <line num="256" type="stmt" count="8"/>
6461
+ <line num="259" type="stmt" count="8"/>
6462
  <line num="271" type="method" name="has_full_protection" visibility="public" complexity="2" crap="6" count="0"/>
6463
  <line num="272" type="stmt" count="0"/>
6464
  <line num="282" type="method" name="has_remote_configured" visibility="public" complexity="4" crap="20" count="0"/>
6503
  <line num="390" type="method" name="is_all_tables" visibility="public" complexity="1" crap="2" count="0"/>
6504
  <line num="391" type="stmt" count="0"/>
6505
  <line num="393" type="stmt" count="0"/>
6506
+ <line num="405" type="method" name="move_backups" visibility="public" complexity="3" crap="12" count="0"/>
6507
  <line num="406" type="stmt" count="0"/>
6508
  <line num="408" type="stmt" count="0"/>
6509
  <line num="409" type="stmt" count="0"/>
6518
  <line num="424" type="stmt" count="0"/>
6519
  <line num="425" type="stmt" count="0"/>
6520
  <line num="427" type="stmt" count="0"/>
6521
+ <line num="441" type="method" name="update_settings" visibility="private" complexity="65" crap="4290" count="0"/>
6522
  <line num="442" type="stmt" count="0"/>
6523
  <line num="445" type="stmt" count="0"/>
6524
  <line num="446" type="stmt" count="0"/>
6620
  <line num="607" type="stmt" count="0"/>
6621
  <line num="608" type="stmt" count="0"/>
6622
  <line num="610" type="stmt" count="0"/>
6623
+ <line num="617" type="stmt" count="0"/>
6624
+ <line num="618" type="stmt" count="0"/>
6625
  <line num="619" type="stmt" count="0"/>
6626
+ <line num="628" type="stmt" count="0"/>
6627
+ <line num="629" type="stmt" count="0"/>
6628
+ <line num="630" type="stmt" count="0"/>
6629
+ <line num="631" type="stmt" count="0"/>
6630
+ <line num="632" type="stmt" count="0"/>
6631
+ <line num="633" type="stmt" count="0"/>
6632
+ <line num="634" type="stmt" count="0"/>
6633
+ <line num="636" type="stmt" count="0"/>
6634
+ <line num="646" type="stmt" count="0"/>
6635
+ <line num="647" type="stmt" count="0"/>
6636
+ <line num="648" type="stmt" count="0"/>
 
 
6637
  <line num="649" type="stmt" count="0"/>
6638
+ <line num="650" type="stmt" count="0"/>
6639
+ <line num="651" type="stmt" count="0"/>
6640
+ <line num="658" type="stmt" count="0"/>
6641
+ <line num="661" type="stmt" count="0"/>
6642
  <line num="662" type="stmt" count="0"/>
6643
+ <line num="663" type="stmt" count="0"/>
6644
+ <line num="664" type="stmt" count="0"/>
 
 
6645
  <line num="671" type="stmt" count="0"/>
6646
  <line num="674" type="stmt" count="0"/>
6647
  <line num="675" type="stmt" count="0"/>
6648
+ <line num="676" type="stmt" count="0"/>
6649
+ <line num="679" type="stmt" count="0"/>
6650
+ <line num="680" type="stmt" count="0"/>
6651
  <line num="683" type="stmt" count="0"/>
6652
  <line num="684" type="stmt" count="0"/>
6653
+ <line num="690" type="stmt" count="0"/>
6654
  <line num="691" type="stmt" count="0"/>
6655
  <line num="692" type="stmt" count="0"/>
6656
+ <line num="693" type="stmt" count="0"/>
6657
  <line num="700" type="stmt" count="0"/>
6658
  <line num="701" type="stmt" count="0"/>
 
 
 
6659
  <line num="708" type="stmt" count="0"/>
6660
  <line num="709" type="stmt" count="0"/>
6661
  <line num="710" type="stmt" count="0"/>
6662
+ <line num="717" type="stmt" count="0"/>
6663
+ <line num="718" type="stmt" count="0"/>
6664
+ <line num="719" type="stmt" count="0"/>
 
 
6665
  <line num="720" type="stmt" count="0"/>
 
 
6666
  <line num="723" type="stmt" count="0"/>
6667
+ <line num="724" type="stmt" count="0"/>
6668
+ <line num="725" type="stmt" count="0"/>
6669
+ <line num="727" type="stmt" count="0"/>
6670
+ <line num="728" type="stmt" count="0"/>
6671
  <line num="729" type="stmt" count="0"/>
6672
  <line num="730" type="stmt" count="0"/>
6673
  <line num="731" type="stmt" count="0"/>
6674
  <line num="732" type="stmt" count="0"/>
6675
+ <line num="734" type="stmt" count="0"/>
6676
+ <line num="735" type="stmt" count="0"/>
 
6677
  <line num="739" type="stmt" count="0"/>
6678
  <line num="740" type="stmt" count="0"/>
6679
+ <line num="741" type="stmt" count="0"/>
6680
  <line num="742" type="stmt" count="0"/>
 
 
6681
  <line num="745" type="stmt" count="0"/>
6682
+ <line num="748" type="stmt" count="0"/>
6683
  <line num="749" type="stmt" count="0"/>
6684
  <line num="750" type="stmt" count="0"/>
6685
  <line num="751" type="stmt" count="0"/>
6686
+ <line num="752" type="stmt" count="0"/>
6687
+ <line num="755" type="stmt" count="0"/>
6688
+ <line num="757" type="stmt" count="0"/>
6689
+ <line num="758" type="stmt" count="0"/>
6690
  <line num="759" type="stmt" count="0"/>
6691
+ <line num="761" type="stmt" count="0"/>
6692
+ <line num="762" type="stmt" count="0"/>
6693
  <line num="763" type="stmt" count="0"/>
6694
+ <line num="764" type="stmt" count="0"/>
6695
+ <line num="765" type="stmt" count="0"/>
6696
+ <line num="768" type="stmt" count="0"/>
6697
+ <line num="769" type="stmt" count="0"/>
6698
+ <line num="770" type="stmt" count="0"/>
6699
+ <line num="772" type="stmt" count="0"/>
6700
+ <line num="778" type="stmt" count="0"/>
6701
+ <line num="779" type="stmt" count="0"/>
6702
+ <line num="782" type="stmt" count="0"/>
6703
+ <line num="794" type="method" name="validate_auto_update" visibility="public" complexity="6" crap="42" count="0"/>
 
 
 
6704
  <line num="795" type="stmt" count="0"/>
 
6705
  <line num="797" type="stmt" count="0"/>
6706
+ <line num="798" type="stmt" count="0"/>
6707
  <line num="801" type="stmt" count="0"/>
6708
+ <line num="809" type="method" name="delete_rollback_option" visibility="public" complexity="1" crap="1" count="1"/>
6709
+ <line num="810" type="stmt" count="1"/>
6710
+ <line num="811" type="stmt" count="1"/>
6711
+ <line num="821" type="method" name="page_backup_settings" visibility="public" complexity="12" crap="156" count="0"/>
 
 
 
 
 
 
 
6712
  <line num="823" type="stmt" count="0"/>
6713
  <line num="824" type="stmt" count="0"/>
6714
+ <line num="825" type="stmt" count="0"/>
6715
+ <line num="827" type="stmt" count="0"/>
6716
  <line num="828" type="stmt" count="0"/>
6717
  <line num="829" type="stmt" count="0"/>
6718
+ <line num="830" type="stmt" count="0"/>
6719
+ <line num="831" type="stmt" count="0"/>
6720
+ <line num="833" type="stmt" count="0"/>
6721
+ <line num="834" type="stmt" count="0"/>
6722
+ <line num="835" type="stmt" count="0"/>
6723
+ <line num="837" type="stmt" count="0"/>
6724
+ <line num="838" type="stmt" count="0"/>
6725
  <line num="839" type="stmt" count="0"/>
 
 
6726
  <line num="842" type="stmt" count="0"/>
6727
+ <line num="843" type="stmt" count="0"/>
6728
  <line num="844" type="stmt" count="0"/>
6729
+ <line num="845" type="stmt" count="0"/>
6730
  <line num="847" type="stmt" count="0"/>
6731
+ <line num="848" type="stmt" count="0"/>
6732
  <line num="850" type="stmt" count="0"/>
6733
+ <line num="851" type="stmt" count="0"/>
6734
  <line num="853" type="stmt" count="0"/>
6735
+ <line num="855" type="stmt" count="0"/>
6736
  <line num="856" type="stmt" count="0"/>
 
 
 
 
6737
  <line num="863" type="stmt" count="0"/>
6738
  <line num="864" type="stmt" count="0"/>
6739
  <line num="865" type="stmt" count="0"/>
6740
  <line num="866" type="stmt" count="0"/>
6741
+ <line num="868" type="stmt" count="0"/>
6742
+ <line num="870" type="stmt" count="0"/>
6743
  <line num="871" type="stmt" count="0"/>
 
 
6744
  <line num="874" type="stmt" count="0"/>
 
 
 
6745
  <line num="881" type="stmt" count="0"/>
6746
  <line num="882" type="stmt" count="0"/>
6747
  <line num="883" type="stmt" count="0"/>
6748
  <line num="884" type="stmt" count="0"/>
6749
  <line num="886" type="stmt" count="0"/>
6750
+ <line num="888" type="stmt" count="0"/>
6751
  <line num="889" type="stmt" count="0"/>
 
 
6752
  <line num="892" type="stmt" count="0"/>
6753
+ <line num="894" type="stmt" count="0"/>
6754
  <line num="895" type="stmt" count="0"/>
6755
  <line num="898" type="stmt" count="0"/>
6756
  <line num="899" type="stmt" count="0"/>
6757
  <line num="900" type="stmt" count="0"/>
6758
  <line num="901" type="stmt" count="0"/>
6759
+ <line num="902" type="stmt" count="0"/>
6760
  <line num="905" type="stmt" count="0"/>
6761
  <line num="906" type="stmt" count="0"/>
6762
+ <line num="907" type="stmt" count="0"/>
6763
  <line num="908" type="stmt" count="0"/>
6764
+ <line num="909" type="stmt" count="0"/>
6765
  <line num="911" type="stmt" count="0"/>
 
6766
  <line num="913" type="stmt" count="0"/>
6767
+ <line num="914" type="stmt" count="0"/>
6768
  <line num="915" type="stmt" count="0"/>
6769
+ <line num="916" type="stmt" count="0"/>
6770
  <line num="917" type="stmt" count="0"/>
 
6771
  <line num="919" type="stmt" count="0"/>
6772
  <line num="922" type="stmt" count="0"/>
6773
  <line num="923" type="stmt" count="0"/>
6774
+ <line num="924" type="stmt" count="0"/>
6775
+ <line num="925" type="stmt" count="0"/>
6776
+ <line num="926" type="stmt" count="0"/>
6777
+ <line num="928" type="stmt" count="0"/>
6778
+ <line num="931" type="stmt" count="0"/>
6779
+ <line num="932" type="stmt" count="0"/>
6780
+ <line num="933" type="stmt" count="0"/>
6781
+ <line num="934" type="stmt" count="0"/>
6782
+ <line num="935" type="stmt" count="0"/>
6783
+ <line num="937" type="stmt" count="0"/>
6784
+ <line num="940" type="stmt" count="0"/>
6785
+ <line num="941" type="stmt" count="0"/>
6786
+ <line num="942" type="stmt" count="0"/>
6787
+ <line num="943" type="stmt" count="0"/>
6788
+ <line num="945" type="stmt" count="0"/>
6789
+ <line num="947" type="stmt" count="0"/>
6790
  <line num="948" type="stmt" count="0"/>
6791
  <line num="950" type="stmt" count="0"/>
 
 
6792
  <line num="953" type="stmt" count="0"/>
6793
  <line num="954" type="stmt" count="0"/>
6794
  <line num="955" type="stmt" count="0"/>
6795
+ <line num="957" type="stmt" count="0"/>
6796
+ <line num="959" type="stmt" count="0"/>
6797
+ <line num="960" type="stmt" count="0"/>
6798
+ <line num="961" type="stmt" count="0"/>
6799
+ <line num="963" type="stmt" count="0"/>
6800
+ <line num="964" type="stmt" count="0"/>
6801
+ <line num="965" type="stmt" count="0"/>
6802
+ <line num="972" type="stmt" count="0"/>
6803
+ <line num="974" type="stmt" count="0"/>
6804
+ <line num="975" type="stmt" count="0"/>
6805
+ <line num="977" type="stmt" count="0"/>
6806
+ <line num="982" type="stmt" count="0"/>
6807
+ <line num="983" type="stmt" count="0"/>
6808
+ <line num="984" type="stmt" count="0"/>
6809
+ <line num="988" type="stmt" count="0"/>
6810
+ <line num="989" type="stmt" count="0"/>
6811
+ <line num="999" type="method" name="save" visibility="public" complexity="1" crap="1" count="6"/>
6812
+ <line num="1000" type="stmt" count="6"/>
6813
+ <line num="1011" type="method" name="update_cron" visibility="public" complexity="4" crap="20" count="0"/>
6814
+ <line num="1012" type="stmt" count="0"/>
6815
+ <line num="1014" type="stmt" count="0"/>
6816
+ <line num="1016" type="stmt" count="0"/>
6817
+ <line num="1017" type="stmt" count="0"/>
6818
+ <line num="1018" type="stmt" count="0"/>
6819
+ <line num="1019" type="stmt" count="0"/>
6820
+ <line num="1020" type="stmt" count="0"/>
6821
+ <line num="1021" type="stmt" count="0"/>
6822
+ <line num="1022" type="stmt" count="0"/>
6823
+ <line num="1024" type="stmt" count="0"/>
6824
+ <metrics loc="1026" ncloc="626" classes="1" methods="17" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="468" coveredstatements="100" elements="485" coveredelements="104"/>
6825
  </file>
6826
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-support.php">
6827
  <class name="Boldgrid_Backup_Admin_Support" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6828
+ <metrics complexity="20" methods="10" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="94" coveredstatements="2" elements="104" coveredelements="3"/>
6829
  </class>
6830
+ <line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
6831
+ <line num="47" type="stmt" count="29"/>
6832
+ <line num="48" type="stmt" count="29"/>
6833
  <line num="61" type="method" name="add_admin_notice" visibility="public" complexity="1" crap="2" count="0"/>
6834
  <line num="62" type="stmt" count="0"/>
6835
  <line num="63" type="method" name="anonymous function" complexity="1" crap="2" count="0"/>
6913
  <line num="247" type="stmt" count="0"/>
6914
  <line num="250" type="stmt" count="0"/>
6915
  <line num="258" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
6916
+ <line num="260" type="stmt" count="0"/>
6917
  <line num="261" type="stmt" count="0"/>
6918
  <line num="262" type="stmt" count="0"/>
6919
+ <line num="264" type="stmt" count="0"/>
6920
+ <line num="265" type="stmt" count="0"/>
6921
+ <line num="266" type="stmt" count="0"/>
6922
+ <line num="268" type="stmt" count="0"/>
6923
+ <line num="269" type="stmt" count="0"/>
6924
+ <line num="271" type="stmt" count="0"/>
6925
+ <line num="272" type="stmt" count="0"/>
6926
+ <line num="273" type="stmt" count="0"/>
6927
+ <line num="280" type="stmt" count="0"/>
6928
+ <line num="282" type="stmt" count="0"/>
6929
+ <line num="283" type="stmt" count="0"/>
6930
+ <line num="285" type="stmt" count="0"/>
6931
+ <line num="290" type="stmt" count="0"/>
6932
+ <line num="291" type="stmt" count="0"/>
6933
+ <line num="292" type="stmt" count="0"/>
6934
+ <line num="296" type="stmt" count="0"/>
6935
+ <line num="297" type="stmt" count="0"/>
6936
+ <metrics loc="298" ncloc="166" classes="1" methods="10" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="96" coveredstatements="2" elements="106" coveredelements="3"/>
6937
  </file>
6938
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-test.php">
6939
  <class name="Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Boldgrid.Backup.Admin">
6940
  <metrics complexity="97" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="256" coveredstatements="108" elements="282" coveredelements="113"/>
6941
  </class>
6942
+ <line num="122" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
6943
+ <line num="124" type="stmt" count="29"/>
6944
+ <line num="125" type="stmt" count="29"/>
6945
  <line num="135" type="method" name="can_exec_write" visibility="public" complexity="4" crap="4.32" count="1"/>
6946
  <line num="136" type="stmt" count="1"/>
6947
  <line num="137" type="stmt" count="0"/>
7007
  <line num="290" type="stmt" count="1"/>
7008
  <line num="291" type="stmt" count="3"/>
7009
  <line num="293" type="stmt" count="3"/>
7010
+ <line num="303" type="method" name="is_windows" visibility="public" complexity="2" crap="2" count="8"/>
7011
+ <line num="305" type="stmt" count="8"/>
7012
+ <line num="306" type="stmt" count="7"/>
7013
+ <line num="310" type="stmt" count="4"/>
7014
+ <line num="313" type="stmt" count="4"/>
7015
  <line num="324" type="method" name="is_writable" visibility="public" complexity="3" crap="7.23" count="1"/>
7016
  <line num="325" type="stmt" count="1"/>
7017
  <line num="326" type="stmt" count="1"/>
7227
  <class name="Boldgrid_Backup_Admin_Time" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7228
  <metrics complexity="34" methods="10" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="102" coveredstatements="39" elements="112" coveredelements="41"/>
7229
  </class>
7230
+ <line num="73" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
7231
+ <line num="74" type="stmt" count="29"/>
7232
+ <line num="75" type="stmt" count="29"/>
7233
  <line num="84" type="method" name="get_server_date" visibility="public" complexity="2" crap="6" count="0"/>
7234
  <line num="85" type="stmt" count="0"/>
7235
  <line num="87" type="stmt" count="0"/>
7343
  </file>
7344
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-tools.php">
7345
  <class name="Boldgrid_Backup_Admin_Tools" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7346
+ <metrics complexity="4" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="27" coveredstatements="2" elements="30" coveredelements="3"/>
7347
  </class>
7348
+ <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
7349
+ <line num="38" type="stmt" count="29"/>
7350
+ <line num="39" type="stmt" count="29"/>
7351
  <line num="44" type="method" name="admin_enqueue_scripts" visibility="public" complexity="2" crap="6" count="0"/>
7352
  <line num="45" type="stmt" count="0"/>
7353
  <line num="46" type="stmt" count="0"/>
7354
  <line num="50" type="stmt" count="0"/>
7355
  <line num="51" type="stmt" count="0"/>
7356
  <line num="52" type="stmt" count="0"/>
7357
+ <line num="54" type="stmt" count="0"/>
7358
+ <line num="61" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
7359
+ <line num="63" type="stmt" count="0"/>
7360
  <line num="64" type="stmt" count="0"/>
7361
+ <line num="66" type="stmt" count="0"/>
7362
+ <line num="67" type="stmt" count="0"/>
7363
+ <line num="68" type="stmt" count="0"/>
7364
+ <line num="70" type="stmt" count="0"/>
7365
+ <line num="71" type="stmt" count="0"/>
7366
+ <line num="73" type="stmt" count="0"/>
7367
+ <line num="74" type="stmt" count="0"/>
7368
+ <line num="75" type="stmt" count="0"/>
7369
+ <line num="82" type="stmt" count="0"/>
7370
+ <line num="84" type="stmt" count="0"/>
7371
+ <line num="85" type="stmt" count="0"/>
7372
+ <line num="87" type="stmt" count="0"/>
7373
+ <line num="92" type="stmt" count="0"/>
7374
+ <line num="93" type="stmt" count="0"/>
7375
+ <line num="94" type="stmt" count="0"/>
7376
+ <line num="98" type="stmt" count="0"/>
7377
+ <line num="99" type="stmt" count="0"/>
7378
+ <metrics loc="100" ncloc="57" classes="1" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="27" coveredstatements="2" elements="30" coveredelements="3"/>
7379
  </file>
7380
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-transfers.php">
7381
  <class name="Boldgrid_Backup_Admin_Transfers" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7382
+ <metrics complexity="2" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="2" elements="31" coveredelements="3"/>
7383
  </class>
7384
+ <line num="36" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
7385
+ <line num="37" type="stmt" count="29"/>
7386
+ <line num="38" type="stmt" count="29"/>
7387
  <line num="45" type="method" name="page" visibility="public" complexity="1" crap="2" count="0"/>
7388
  <line num="46" type="stmt" count="0"/>
7389
  <line num="47" type="stmt" count="0"/>
7390
  <line num="48" type="stmt" count="0"/>
7391
  <line num="50" type="stmt" count="0"/>
7392
  <line num="51" type="stmt" count="0"/>
 
7393
  <line num="53" type="stmt" count="0"/>
7394
+ <line num="54" type="stmt" count="0"/>
7395
  <line num="55" type="stmt" count="0"/>
7396
  <line num="57" type="stmt" count="0"/>
7397
  <line num="58" type="stmt" count="0"/>
7398
+ <line num="60" type="stmt" count="0"/>
7399
+ <line num="61" type="stmt" count="0"/>
7400
+ <line num="62" type="stmt" count="0"/>
7401
+ <line num="64" type="stmt" count="0"/>
7402
+ <line num="65" type="stmt" count="0"/>
7403
+ <line num="66" type="stmt" count="0"/>
7404
+ <line num="67" type="stmt" count="0"/>
7405
+ <line num="69" type="stmt" count="0"/>
7406
+ <line num="76" type="stmt" count="0"/>
7407
+ <line num="78" type="stmt" count="0"/>
7408
+ <line num="79" type="stmt" count="0"/>
7409
+ <line num="81" type="stmt" count="0"/>
7410
+ <line num="86" type="stmt" count="0"/>
7411
+ <line num="87" type="stmt" count="0"/>
7412
+ <line num="88" type="stmt" count="0"/>
7413
+ <line num="92" type="stmt" count="0"/>
7414
+ <line num="93" type="stmt" count="0"/>
7415
+ <metrics loc="94" ncloc="57" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="2" elements="31" coveredelements="3"/>
7416
  </file>
7417
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-upload.php">
7418
  <class name="Boldgrid_Backup_Admin_Upload" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7419
+ <metrics complexity="40" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="208" coveredstatements="2" elements="217" coveredelements="3"/>
7420
  </class>
7421
+ <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
7422
+ <line num="41" type="stmt" count="29"/>
7423
+ <line num="42" type="stmt" count="29"/>
7424
+ <line num="56" type="method" name="verify_upload_access" visibility="public" complexity="10" crap="110" count="0"/>
7425
  <line num="58" type="stmt" count="0"/>
7426
  <line num="60" type="stmt" count="0"/>
7427
  <line num="61" type="stmt" count="0"/>
7466
  <line num="139" type="stmt" count="0"/>
7467
  <line num="141" type="stmt" count="0"/>
7468
  <line num="144" type="stmt" count="0"/>
7469
+ <line num="146" type="stmt" count="0"/>
7470
+ <line num="147" type="stmt" count="0"/>
7471
+ <line num="148" type="stmt" count="0"/>
7472
+ <line num="150" type="stmt" count="0"/>
7473
+ <line num="152" type="stmt" count="0"/>
7474
+ <line num="155" type="stmt" count="0"/>
7475
+ <line num="172" type="method" name="bump_upload_limits" visibility="public" complexity="1" crap="2" count="0"/>
7476
+ <line num="173" type="stmt" count="0"/>
7477
+ <line num="174" type="stmt" count="0"/>
7478
+ <line num="175" type="stmt" count="0"/>
7479
+ <line num="176" type="stmt" count="0"/>
7480
+ <line num="187" type="method" name="check_filetype_ext" visibility="public" complexity="4" crap="20" count="0"/>
7481
+ <line num="189" type="stmt" count="0"/>
7482
+ <line num="190" type="stmt" count="0"/>
7483
+ <line num="194" type="stmt" count="0"/>
7484
  <line num="197" type="stmt" count="0"/>
7485
+ <line num="203" type="stmt" count="0"/>
 
 
 
7486
  <line num="204" type="stmt" count="0"/>
 
7487
  <line num="206" type="stmt" count="0"/>
7488
  <line num="208" type="stmt" count="0"/>
7489
+ <line num="209" type="stmt" count="0"/>
7490
  <line num="210" type="stmt" count="0"/>
7491
+ <line num="212" type="stmt" count="0"/>
7492
  <line num="213" type="stmt" count="0"/>
7493
+ <line num="215" type="stmt" count="0"/>
7494
+ <line num="216" type="stmt" count="0"/>
7495
+ <line num="217" type="stmt" count="0"/>
7496
+ <line num="219" type="stmt" count="0"/>
7497
+ <line num="221" type="stmt" count="0"/>
7498
+ <line num="224" type="stmt" count="0"/>
7499
+ <line num="238" type="method" name="get_save_path" visibility="public" complexity="3" crap="12" count="0"/>
7500
  <line num="239" type="stmt" count="0"/>
7501
+ <line num="242" type="stmt" count="0"/>
7502
+ <line num="246" type="stmt" count="0"/>
7503
+ <line num="247" type="stmt" count="0"/>
 
7504
  <line num="248" type="stmt" count="0"/>
7505
  <line num="249" type="stmt" count="0"/>
7506
  <line num="250" type="stmt" count="0"/>
7507
+ <line num="251" type="stmt" count="0"/>
7508
+ <line num="254" type="stmt" count="0"/>
7509
+ <line num="255" type="stmt" count="0"/>
7510
  <line num="256" type="stmt" count="0"/>
7511
+ <line num="259" type="stmt" count="0"/>
7512
+ <line num="260" type="stmt" count="0"/>
7513
  <line num="261" type="stmt" count="0"/>
7514
+ <line num="264" type="stmt" count="0"/>
7515
+ <line num="267" type="stmt" count="0"/>
7516
+ <line num="269" type="stmt" count="0"/>
7517
+ <line num="272" type="stmt" count="0"/>
7518
+ <line num="284" type="method" name="handle_upload" visibility="public" complexity="2" crap="6" count="0"/>
 
 
7519
  <line num="286" type="stmt" count="0"/>
7520
+ <line num="287" type="stmt" count="0"/>
7521
  <line num="288" type="stmt" count="0"/>
7522
+ <line num="292" type="stmt" count="0"/>
 
7523
  <line num="293" type="stmt" count="0"/>
7524
  <line num="296" type="stmt" count="0"/>
7525
  <line num="297" type="stmt" count="0"/>
7527
  <line num="300" type="stmt" count="0"/>
7528
  <line num="302" type="stmt" count="0"/>
7529
  <line num="304" type="stmt" count="0"/>
7530
+ <line num="307" type="stmt" count="0"/>
7531
+ <line num="308" type="stmt" count="0"/>
7532
+ <line num="310" type="stmt" count="0"/>
7533
+ <line num="311" type="stmt" count="0"/>
7534
+ <line num="313" type="stmt" count="0"/>
7535
+ <line num="315" type="stmt" count="0"/>
7536
+ <line num="330" type="method" name="upload_archive_file" visibility="public" complexity="5" crap="30" count="0"/>
7537
  <line num="332" type="stmt" count="0"/>
7538
  <line num="333" type="stmt" count="0"/>
7539
  <line num="337" type="stmt" count="0"/>
7540
  <line num="340" type="stmt" count="0"/>
7541
  <line num="343" type="stmt" count="0"/>
7542
+ <line num="344" type="stmt" count="0"/>
7543
  <line num="348" type="stmt" count="0"/>
7544
  <line num="351" type="stmt" count="0"/>
7545
+ <line num="354" type="stmt" count="0"/>
7546
+ <line num="357" type="stmt" count="0"/>
7547
+ <line num="359" type="stmt" count="0"/>
7548
+ <line num="362" type="stmt" count="0"/>
 
7549
  <line num="363" type="stmt" count="0"/>
7550
  <line num="364" type="stmt" count="0"/>
7551
+ <line num="366" type="stmt" count="0"/>
 
 
7552
  <line num="369" type="stmt" count="0"/>
7553
  <line num="371" type="stmt" count="0"/>
7554
+ <line num="374" type="stmt" count="0"/>
7555
+ <line num="375" type="stmt" count="0"/>
7556
+ <line num="376" type="stmt" count="0"/>
7557
+ <line num="378" type="stmt" count="0"/>
7558
+ <line num="379" type="stmt" count="0"/>
7559
+ <line num="380" type="stmt" count="0"/>
7560
+ <line num="382" type="stmt" count="0"/>
7561
+ <line num="384" type="stmt" count="0"/>
7562
+ <line num="403" type="method" name="ajax_url_import" visibility="public" complexity="11" crap="132" count="0"/>
7563
+ <line num="405" type="stmt" count="0"/>
7564
  <line num="406" type="stmt" count="0"/>
7565
  <line num="408" type="stmt" count="0"/>
7566
+ <line num="410" type="stmt" count="0"/>
7567
  <line num="411" type="stmt" count="0"/>
 
7568
  <line num="414" type="stmt" count="0"/>
7569
  <line num="415" type="stmt" count="0"/>
7570
  <line num="417" type="stmt" count="0"/>
7571
  <line num="419" type="stmt" count="0"/>
7572
  <line num="420" type="stmt" count="0"/>
7573
  <line num="422" type="stmt" count="0"/>
7574
+ <line num="423" type="stmt" count="0"/>
7575
  <line num="425" type="stmt" count="0"/>
7576
  <line num="426" type="stmt" count="0"/>
7577
  <line num="428" type="stmt" count="0"/>
7578
  <line num="430" type="stmt" count="0"/>
7579
  <line num="431" type="stmt" count="0"/>
7580
  <line num="433" type="stmt" count="0"/>
7581
+ <line num="435" type="stmt" count="0"/>
7582
  <line num="436" type="stmt" count="0"/>
7583
  <line num="437" type="stmt" count="0"/>
 
7584
  <line num="439" type="stmt" count="0"/>
7585
  <line num="441" type="stmt" count="0"/>
7586
  <line num="442" type="stmt" count="0"/>
 
7587
  <line num="444" type="stmt" count="0"/>
 
 
7588
  <line num="447" type="stmt" count="0"/>
7589
+ <line num="448" type="stmt" count="0"/>
7590
  <line num="449" type="stmt" count="0"/>
7591
+ <line num="450" type="stmt" count="0"/>
7592
  <line num="452" type="stmt" count="0"/>
7593
+ <line num="453" type="stmt" count="0"/>
7594
  <line num="454" type="stmt" count="0"/>
7595
+ <line num="455" type="stmt" count="0"/>
7596
  <line num="456" type="stmt" count="0"/>
7597
  <line num="457" type="stmt" count="0"/>
7598
  <line num="458" type="stmt" count="0"/>
 
7599
  <line num="460" type="stmt" count="0"/>
7600
+ <line num="462" type="stmt" count="0"/>
7601
  <line num="463" type="stmt" count="0"/>
7602
+ <line num="465" type="stmt" count="0"/>
 
7603
  <line num="467" type="stmt" count="0"/>
7604
+ <line num="468" type="stmt" count="0"/>
7605
+ <line num="469" type="stmt" count="0"/>
7606
  <line num="470" type="stmt" count="0"/>
7607
+ <line num="471" type="stmt" count="0"/>
7608
+ <line num="472" type="stmt" count="0"/>
7609
+ <line num="474" type="stmt" count="0"/>
7610
+ <line num="475" type="stmt" count="0"/>
7611
+ <line num="477" type="stmt" count="0"/>
7612
  <line num="478" type="stmt" count="0"/>
 
7613
  <line num="481" type="stmt" count="0"/>
 
7614
  <line num="484" type="stmt" count="0"/>
7615
+ <line num="487" type="stmt" count="0"/>
 
 
7616
  <line num="489" type="stmt" count="0"/>
7617
+ <line num="491" type="stmt" count="0"/>
7618
+ <line num="492" type="stmt" count="0"/>
7619
+ <line num="494" type="stmt" count="0"/>
7620
  <line num="495" type="stmt" count="0"/>
7621
  <line num="496" type="stmt" count="0"/>
7622
+ <line num="497" type="stmt" count="0"/>
7623
+ <line num="499" type="stmt" count="0"/>
7624
  <line num="500" type="stmt" count="0"/>
7625
  <line num="501" type="stmt" count="0"/>
7626
+ <line num="504" type="stmt" count="0"/>
7627
+ <line num="506" type="stmt" count="0"/>
7628
+ <line num="507" type="stmt" count="0"/>
7629
+ <line num="509" type="stmt" count="0"/>
7630
+ <line num="511" type="stmt" count="0"/>
7631
+ <line num="512" type="stmt" count="0"/>
7632
+ <line num="519" type="method" name="archive_upload_action" visibility="public" complexity="3" crap="12" count="0"/>
7633
+ <line num="520" type="stmt" count="0"/>
7634
+ <line num="521" type="stmt" count="0"/>
7635
+ <line num="522" type="stmt" count="0"/>
7636
+ <line num="523" type="stmt" count="0"/>
7637
+ <line num="524" type="stmt" count="0"/>
7638
+ <metrics loc="525" ncloc="295" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="208" coveredstatements="2" elements="217" coveredelements="3"/>
7639
  </file>
7640
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-usage.php">
7641
  <class name="Boldgrid_Backup_Admin_Usage" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7672
  </file>
7673
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-utility.php">
7674
  <class name="Boldgrid_Backup_Admin_Utility" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7675
+ <metrics complexity="85" methods="21" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="299" coveredstatements="43" elements="320" coveredelements="45"/>
7676
  </class>
7677
  <line num="34" type="method" name="bytes_to_human" visibility="public" complexity="3" crap="3" count="4"/>
7678
  <line num="36" type="stmt" count="4"/>
7829
  <line num="403" type="stmt" count="0"/>
7830
  <line num="406" type="stmt" count="0"/>
7831
  <line num="409" type="stmt" count="0"/>
7832
+ <line num="426" type="method" name="bump_memory_limit" visibility="public" complexity="5" crap="5.20" count="4"/>
7833
+ <line num="428" type="stmt" count="4"/>
7834
  <line num="429" type="stmt" count="0"/>
7835
+ <line num="433" type="stmt" count="4"/>
7836
+ <line num="436" type="stmt" count="4"/>
7837
+ <line num="439" type="stmt" count="4"/>
7838
+ <line num="443" type="stmt" count="4"/>
7839
+ <line num="444" type="stmt" count="2"/>
7840
  <line num="445" type="stmt" count="0"/>
7841
+ <line num="447" type="stmt" count="2"/>
7842
+ <line num="449" type="stmt" count="4"/>
7843
  <line num="472" type="method" name="bump_upload_limit" visibility="public" complexity="4" crap="20" count="0"/>
7844
  <line num="474" type="stmt" count="0"/>
7845
  <line num="475" type="stmt" count="0"/>
7850
  <line num="491" type="stmt" count="0"/>
7851
  <line num="494" type="stmt" count="0"/>
7852
  <line num="496" type="stmt" count="0"/>
7853
+ <line num="513" type="method" name="is_active" visibility="public" complexity="1" crap="1" count="29"/>
7854
+ <line num="514" type="stmt" count="29"/>
7855
+ <line num="516" type="stmt" count="29"/>
7856
  <line num="529" type="method" name="is_admin_page" visibility="public" complexity="3" crap="3" count="1"/>
7857
  <line num="530" type="stmt" count="1"/>
7858
  <line num="532" type="stmt" count="1"/>
7986
  <line num="876" type="stmt" count="0"/>
7987
  <line num="877" type="stmt" count="0"/>
7988
  <line num="880" type="stmt" count="0"/>
7989
+ <line num="896" type="method" name="trailingslashit" visibility="public" complexity="3" crap="3.71" count="7"/>
7990
+ <line num="898" type="stmt" count="7"/>
7991
+ <line num="899" type="stmt" count="7"/>
7992
+ <line num="900" type="stmt" count="7"/>
7993
  <line num="901" type="stmt" count="0"/>
7994
  <line num="902" type="stmt" count="0"/>
7995
  <line num="903" type="stmt" count="0"/>
7996
+ <line num="906" type="stmt" count="7"/>
7997
+ <metrics loc="908" ncloc="418" classes="1" methods="21" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="299" coveredstatements="43" elements="320" coveredelements="45"/>
7998
  </file>
7999
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-wp-cron.php">
8000
  <class name="Boldgrid_Backup_Admin_WP_Cron" namespace="global" fullPackage="Boldgrid.Backup.Admin.WP">
8001
  <metrics complexity="32" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="94" coveredstatements="12" elements="105" coveredelements="13"/>
8002
  </class>
8003
+ <line num="73" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
8004
+ <line num="74" type="stmt" count="29"/>
8005
+ <line num="76" type="stmt" count="29"/>
8006
+ <line num="78" type="stmt" count="29"/>
8007
+ <line num="79" type="stmt" count="29"/>
8008
+ <line num="80" type="stmt" count="29"/>
8009
+ <line num="82" type="stmt" count="29"/>
8010
+ <line num="83" type="stmt" count="29"/>
8011
+ <line num="84" type="stmt" count="29"/>
8012
+ <line num="92" type="stmt" count="29"/>
8013
+ <line num="93" type="stmt" count="29"/>
8014
+ <line num="94" type="stmt" count="29"/>
8015
+ <line num="96" type="stmt" count="29"/>
8016
  <line num="113" type="method" name="add_all_crons" visibility="public" complexity="7" crap="56" count="0"/>
8017
  <line num="114" type="stmt" count="0"/>
8018
  <line num="115" type="stmt" count="0"/>
8235
  <class name="Boldgrid_Backup_Admin_Xhprof" namespace="global" fullPackage="Boldgrid.Backup.Admin">
8236
  <metrics complexity="14" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="8" elements="44" coveredelements="8"/>
8237
  </class>
8238
+ <line num="37" type="method" name="__construct" visibility="public" complexity="2" crap="3.03" count="29"/>
8239
+ <line num="39" type="stmt" count="29"/>
8240
+ <line num="42" type="stmt" count="29"/>
8241
+ <line num="46" type="stmt" count="29"/>
8242
  <line num="47" type="stmt" count="0"/>
8243
  <line num="48" type="stmt" count="0"/>
8244
  <line num="50" type="stmt" count="0"/>
8246
  <line num="52" type="stmt" count="0"/>
8247
  <line num="53" type="stmt" count="0"/>
8248
  <line num="54" type="stmt" count="0"/>
8249
+ <line num="55" type="stmt" count="29"/>
8250
+ <line num="64" type="method" name="xhprof_enable" visibility="private" complexity="5" crap="6.97" count="29"/>
8251
+ <line num="66" type="stmt" count="29"/>
8252
  <line num="67" type="stmt" count="0"/>
8253
+ <line num="71" type="stmt" count="29"/>
8254
+ <line num="74" type="stmt" count="29"/>
8255
  <line num="75" type="stmt" count="0"/>
8256
  <line num="77" type="stmt" count="0"/>
8257
+ <line num="81" type="stmt" count="29"/>
8258
  <line num="91" type="method" name="xhprof_disable" visibility="public" complexity="7" crap="56" count="0"/>
8259
  <line num="93" type="stmt" count="0"/>
8260
  <line num="94" type="stmt" count="0"/>
8283
  </file>
8284
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin.php">
8285
  <class name="Boldgrid_Backup_Admin" namespace="global" fullPackage="Boldgrid.Backup">
8286
+ <metrics complexity="16" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="97" coveredstatements="18" elements="101" coveredelements="18"/>
8287
  </class>
8288
  <line num="73" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
8289
  <line num="74" type="stmt" count="0"/>
8295
  <line num="84" type="stmt" count="0"/>
8296
  <line num="86" type="stmt" count="0"/>
8297
  <line num="87" type="stmt" count="0"/>
8298
+ <line num="94" type="method" name="enqueue_styles" visibility="public" complexity="5" crap="30" count="0"/>
8299
  <line num="95" type="stmt" count="0"/>
8300
+ <line num="96" type="stmt" count="0"/>
8301
+ <line num="97" type="stmt" count="0"/>
8302
+ <line num="99" type="stmt" count="0"/>
8303
+ <line num="110" type="stmt" count="0"/>
8304
+ <line num="111" type="stmt" count="0"/>
8305
  <line num="112" type="stmt" count="0"/>
8306
  <line num="113" type="stmt" count="0"/>
 
 
8307
  <line num="116" type="stmt" count="0"/>
8308
+ <line num="117" type="stmt" count="0"/>
8309
  <line num="118" type="stmt" count="0"/>
8310
+ <line num="119" type="stmt" count="0"/>
8311
  <line num="120" type="stmt" count="0"/>
8312
+ <line num="122" type="stmt" count="0"/>
 
8313
  <line num="124" type="stmt" count="0"/>
8314
  <line num="125" type="stmt" count="0"/>
 
8315
  <line num="127" type="stmt" count="0"/>
8316
  <line num="128" type="stmt" count="0"/>
8317
+ <line num="129" type="stmt" count="0"/>
8318
  <line num="130" type="stmt" count="0"/>
8319
+ <line num="131" type="stmt" count="0"/>
8320
  <line num="132" type="stmt" count="0"/>
8321
+ <line num="134" type="stmt" count="0"/>
8322
  <line num="136" type="stmt" count="0"/>
 
 
8323
  <line num="139" type="stmt" count="0"/>
8324
  <line num="140" type="stmt" count="0"/>
8325
+ <line num="141" type="stmt" count="0"/>
8326
  <line num="142" type="stmt" count="0"/>
8327
+ <line num="143" type="stmt" count="0"/>
8328
  <line num="144" type="stmt" count="0"/>
 
8329
  <line num="146" type="stmt" count="0"/>
 
8330
  <line num="148" type="stmt" count="0"/>
8331
  <line num="149" type="stmt" count="0"/>
8332
  <line num="150" type="stmt" count="0"/>
8335
  <line num="153" type="stmt" count="0"/>
8336
  <line num="154" type="stmt" count="0"/>
8337
  <line num="155" type="stmt" count="0"/>
8338
+ <line num="156" type="stmt" count="0"/>
8339
+ <line num="157" type="stmt" count="0"/>
8340
  <line num="158" type="stmt" count="0"/>
8341
+ <line num="159" type="stmt" count="0"/>
8342
+ <line num="162" type="stmt" count="0"/>
8343
  <line num="165" type="stmt" count="0"/>
8344
  <line num="168" type="stmt" count="0"/>
8345
  <line num="169" type="stmt" count="0"/>
8346
+ <line num="172" type="stmt" count="0"/>
 
8347
  <line num="173" type="stmt" count="0"/>
8348
  <line num="174" type="stmt" count="0"/>
8349
  <line num="175" type="stmt" count="0"/>
8350
+ <line num="177" type="stmt" count="0"/>
8351
+ <line num="178" type="stmt" count="0"/>
8352
+ <line num="179" type="stmt" count="0"/>
8353
+ <line num="190" type="method" name="get_configs" visibility="public" complexity="6" crap="6.56" count="29"/>
8354
+ <line num="192" type="stmt" count="29"/>
8355
+ <line num="193" type="stmt" count="29"/>
8356
  <line num="197" type="stmt" count="1"/>
8357
  <line num="200" type="stmt" count="1"/>
8358
+ <line num="201" type="stmt" count="1"/>
8359
  <line num="204" type="stmt" count="1"/>
8360
+ <line num="207" type="stmt" count="1"/>
8361
  <line num="208" type="stmt" count="1"/>
8362
+ <line num="209" type="stmt" count="1"/>
8363
+ <line num="212" type="stmt" count="1"/>
8364
+ <line num="215" type="stmt" count="1"/>
8365
+ <line num="216" type="stmt" count="0"/>
8366
+ <line num="217" type="stmt" count="0"/>
8367
+ <line num="220" type="stmt" count="1"/>
8368
+ <line num="222" type="stmt" count="1"/>
8369
+ <line num="223" type="stmt" count="0"/>
8370
+ <line num="224" type="stmt" count="0"/>
8371
+ <line num="227" type="stmt" count="1"/>
8372
+ <line num="230" type="stmt" count="1"/>
8373
+ <line num="231" type="stmt" count="0"/>
8374
+ <line num="232" type="stmt" count="0"/>
8375
  <line num="233" type="stmt" count="1"/>
8376
+ <line num="237" type="stmt" count="1"/>
8377
+ <line num="240" type="stmt" count="1"/>
8378
+ <line num="250" type="method" name="is_upkeep_page" visibility="public" complexity="3" crap="12" count="0"/>
8379
+ <line num="251" type="stmt" count="0"/>
8380
+ <line num="254" type="stmt" count="0"/>
8381
+ <line num="255" type="stmt" count="0"/>
8382
+ <line num="256" type="stmt" count="0"/>
8383
+ <line num="257" type="stmt" count="0"/>
8384
+ <line num="259" type="stmt" count="0"/>
8385
+ <line num="260" type="stmt" count="0"/>
8386
+ <line num="261" type="stmt" count="0"/>
8387
+ <line num="263" type="stmt" count="0"/>
8388
+ <line num="265" type="stmt" count="0"/>
8389
+ <metrics loc="267" ncloc="134" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="97" coveredstatements="18" elements="101" coveredelements="18"/>
8390
  </file>
8391
  <package name="Boldgrid\Backup\Admin">
8392
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-cron.php">
8439
  </package>
8440
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-pcl-zip.php">
8441
  <class name="Boldgrid_Backup_Admin_Compressor_Pcl_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Pcl">
8442
+ <metrics complexity="57" methods="9" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="197" coveredstatements="123" elements="206" coveredelements="125"/>
8443
  </class>
8444
+ <line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="8"/>
8445
+ <line num="67" type="stmt" count="8"/>
8446
  <line num="68" type="stmt" count="1"/>
8447
  <line num="69" type="stmt" count="1"/>
8448
+ <line num="71" type="stmt" count="8"/>
8449
+ <line num="72" type="stmt" count="8"/>
8450
  <line num="96" type="method" name="browse_add_dirs" visibility="public" complexity="9" crap="9" count="1"/>
8451
  <line num="97" type="stmt" count="1"/>
8452
  <line num="100" type="stmt" count="1"/>
8532
  <line num="311" type="stmt" count="1"/>
8533
  <line num="313" type="stmt" count="1"/>
8534
  <line num="315" type="stmt" count="1"/>
8535
+ <line num="327" type="method" name="extract_one" visibility="public" complexity="4" crap="11.76" count="1"/>
8536
+ <line num="328" type="stmt" count="1"/>
8537
+ <line num="329" type="stmt" count="1"/>
8538
+ <line num="330" type="stmt" count="1"/>
8539
  <line num="333" type="stmt" count="0"/>
8540
  <line num="334" type="stmt" count="0"/>
8541
  <line num="335" type="stmt" count="0"/>
8647
  <line num="579" type="stmt" count="1"/>
8648
  <line num="581" type="stmt" count="1"/>
8649
  <line num="583" type="stmt" count="1"/>
8650
+ <metrics loc="585" ncloc="330" classes="1" methods="9" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="197" coveredstatements="123" elements="206" coveredelements="125"/>
8651
  </file>
8652
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php">
8653
  <class name="Boldgrid_Backup_Admin_Compressor_Php_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Php">
8751
  <line num="275" type="stmt" count="0"/>
8752
  <line num="276" type="stmt" count="0"/>
8753
  <line num="279" type="stmt" count="1"/>
8754
+ <line num="287" type="method" name="is_extension_available" visibility="public" complexity="2" crap="2" count="30"/>
8755
+ <line num="288" type="stmt" count="30"/>
8756
  <line num="298" type="method" name="test" visibility="public" complexity="4" crap="20" count="0"/>
8757
  <line num="299" type="stmt" count="0"/>
8758
  <line num="300" type="stmt" count="0"/>
8926
  </file>
8927
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-system-zip.php">
8928
  <class name="Boldgrid_Backup_Admin_Compressor_System_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.System">
8929
+ <metrics complexity="19" methods="9" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="110" coveredstatements="108" elements="119" coveredelements="115"/>
8930
  </class>
8931
+ <line num="96" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="4"/>
8932
+ <line num="97" type="stmt" count="4"/>
8933
+ <line num="98" type="stmt" count="4"/>
8934
+ <line num="100" type="stmt" count="4"/>
8935
+ <line num="101" type="stmt" count="4"/>
8936
+ <line num="129" type="method" name="archive_files" visibility="public" complexity="2" crap="2.00" count="1"/>
 
 
 
 
 
 
 
 
8937
  <line num="130" type="stmt" count="1"/>
8938
+ <line num="131" type="stmt" count="0"/>
8939
+ <line num="135" type="stmt" count="1"/>
8940
+ <line num="136" type="stmt" count="1"/>
8941
+ <line num="138" type="stmt" count="1"/>
8942
+ <line num="140" type="stmt" count="1"/>
8943
+ <line num="142" type="stmt" count="1"/>
8944
+ <line num="144" type="stmt" count="1"/>
8945
+ <line num="146" type="stmt" count="1"/>
8946
  <line num="148" type="stmt" count="1"/>
8947
+ <line num="150" type="stmt" count="1"/>
 
8948
  <line num="153" type="stmt" count="1"/>
8949
  <line num="155" type="stmt" count="1"/>
8950
+ <line num="163" type="method" name="filelist_create" visibility="private" complexity="4" crap="4" count="1"/>
8951
+ <line num="164" type="stmt" count="1"/>
8952
+ <line num="165" type="stmt" count="1"/>
 
 
 
8953
  <line num="167" type="stmt" count="1"/>
8954
+ <line num="169" type="stmt" count="1"/>
8955
+ <line num="171" type="stmt" count="1"/>
8956
+ <line num="174" type="stmt" count="1"/>
8957
+ <line num="175" type="stmt" count="1"/>
8958
+ <line num="176" type="stmt" count="1"/>
8959
  <line num="178" type="stmt" count="1"/>
8960
  <line num="179" type="stmt" count="1"/>
 
8961
  <line num="182" type="stmt" count="1"/>
8962
  <line num="183" type="stmt" count="1"/>
8963
  <line num="184" type="stmt" count="1"/>
8964
+ <line num="193" type="stmt" count="1"/>
8965
+ <line num="194" type="stmt" count="1"/>
8966
+ <line num="195" type="stmt" count="1"/>
 
 
8967
  <line num="197" type="stmt" count="1"/>
8968
+ <line num="198" type="stmt" count="1"/>
8969
  <line num="199" type="stmt" count="1"/>
8970
+ <line num="200" type="stmt" count="1"/>
8971
+ <line num="202" type="stmt" count="1"/>
8972
  <line num="203" type="stmt" count="1"/>
8973
+ <line num="204" type="stmt" count="1"/>
8974
+ <line num="211" type="method" name="zip" visibility="private" complexity="1" crap="1" count="1"/>
8975
+ <line num="212" type="stmt" count="1"/>
8976
+ <line num="213" type="stmt" count="1"/>
8977
+ <line num="215" type="stmt" count="1"/>
8978
  <line num="217" type="stmt" count="1"/>
8979
+ <line num="219" type="stmt" count="1"/>
8980
+ <line num="221" type="stmt" count="1"/>
8981
  <line num="222" type="stmt" count="1"/>
8982
+ <line num="223" type="stmt" count="1"/>
8983
+ <line num="232" type="method" name="get_filelist_chunks" visibility="public" complexity="3" crap="3" count="1"/>
8984
+ <line num="234" type="stmt" count="1"/>
8985
+ <line num="235" type="stmt" count="1"/>
8986
+ <line num="236" type="stmt" count="1"/>
8987
+ <line num="237" type="stmt" count="1"/>
8988
+ <line num="238" type="stmt" count="1"/>
8989
+ <line num="240" type="stmt" count="1"/>
8990
+ <line num="243" type="stmt" count="1"/>
8991
+ <line num="246" type="stmt" count="1"/>
8992
+ <line num="247" type="stmt" count="1"/>
8993
+ <line num="248" type="stmt" count="1"/>
8994
+ <line num="249" type="stmt" count="1"/>
8995
+ <line num="250" type="stmt" count="1"/>
8996
+ <line num="252" type="stmt" count="1"/>
8997
+ <line num="260" type="method" name="close" visibility="private" complexity="2" crap="2" count="1"/>
8998
+ <line num="261" type="stmt" count="1"/>
8999
+ <line num="262" type="stmt" count="1"/>
9000
+ <line num="263" type="stmt" count="1"/>
9001
+ <line num="265" type="stmt" count="1"/>
9002
+ <line num="266" type="stmt" count="1"/>
9003
+ <line num="267" type="stmt" count="1"/>
9004
+ <line num="268" type="stmt" count="1"/>
9005
+ <line num="269" type="stmt" count="1"/>
9006
+ <line num="270" type="stmt" count="1"/>
9007
+ <line num="271" type="stmt" count="1"/>
9008
+ <line num="272" type="stmt" count="1"/>
9009
+ <line num="273" type="stmt" count="1"/>
9010
+ <line num="274" type="stmt" count="1"/>
9011
+ <line num="276" type="stmt" count="1"/>
9012
+ <line num="277" type="stmt" count="1"/>
9013
+ <line num="279" type="stmt" count="1"/>
9014
+ <line num="280" type="stmt" count="1"/>
9015
+ <line num="281" type="stmt" count="1"/>
9016
+ <line num="282" type="stmt" count="1"/>
9017
+ <line num="291" type="method" name="get_compression_level" visibility="private" complexity="2" crap="2" count="1"/>
9018
+ <line num="292" type="stmt" count="1"/>
9019
+ <line num="293" type="stmt" count="1"/>
9020
+ <line num="303" type="method" name="zip_proc" visibility="private" complexity="3" crap="3" count="1"/>
9021
+ <line num="305" type="stmt" count="1"/>
9022
+ <line num="306" type="stmt" count="1"/>
9023
+ <line num="307" type="stmt" count="1"/>
9024
+ <line num="308" type="stmt" count="1"/>
9025
+ <line num="310" type="stmt" count="1"/>
9026
+ <line num="312" type="stmt" count="1"/>
9027
+ <line num="314" type="stmt" count="1"/>
9028
+ <line num="315" type="stmt" count="1"/>
9029
+ <line num="316" type="stmt" count="1"/>
9030
+ <line num="317" type="stmt" count="0"/>
9031
+ <line num="319" type="stmt" count="1"/>
9032
+ <line num="321" type="stmt" count="1"/>
9033
+ <line num="327" type="stmt" count="1"/>
9034
+ <line num="328" type="stmt" count="1"/>
9035
+ <line num="329" type="stmt" count="1"/>
9036
+ <line num="331" type="stmt" count="1"/>
9037
+ <line num="333" type="stmt" count="1"/>
9038
+ <line num="337" type="stmt" count="1"/>
9039
+ <line num="338" type="stmt" count="1"/>
9040
+ <line num="339" type="stmt" count="1"/>
9041
+ <line num="348" type="method" name="zip_sql" visibility="private" complexity="1" crap="1" count="1"/>
9042
+ <line num="349" type="stmt" count="1"/>
9043
+ <line num="350" type="stmt" count="1"/>
9044
+ <line num="352" type="stmt" count="1"/>
9045
+ <line num="354" type="stmt" count="1"/>
9046
+ <line num="356" type="stmt" count="1"/>
9047
+ <line num="358" type="stmt" count="1"/>
9048
+ <line num="359" type="stmt" count="1"/>
9049
+ <line num="360" type="stmt" count="1"/>
9050
+ <metrics loc="361" ncloc="166" classes="1" methods="9" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="110" coveredstatements="108" elements="119" coveredelements="115"/>
9051
  </file>
9052
  <package name="Boldgrid\Backup\Admin\Cron">
9053
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/class-crontab.php">
9558
  <line num="40" type="stmt" count="0"/>
9559
  <line num="41" type="stmt" count="0"/>
9560
  <line num="43" type="stmt" count="0"/>
9561
+ <line num="44" type="stmt" count="0"/>
9562
  <line num="46" type="stmt" count="0"/>
 
9563
  <line num="48" type="stmt" count="0"/>
9564
  <line num="49" type="stmt" count="0"/>
9565
  <line num="50" type="stmt" count="0"/>
9572
  <line num="57" type="stmt" count="0"/>
9573
  <line num="58" type="stmt" count="0"/>
9574
  <line num="59" type="stmt" count="0"/>
9575
+ <line num="60" type="stmt" count="0"/>
9576
+ <line num="61" type="stmt" count="0"/>
9577
+ <line num="62" type="stmt" count="0"/>
9578
+ <line num="66" type="stmt" count="0"/>
9579
  <line num="68" type="stmt" count="0"/>
9580
  <line num="70" type="stmt" count="0"/>
9581
+ <line num="71" type="stmt" count="0"/>
9582
  <line num="73" type="stmt" count="0"/>
 
9583
  <line num="75" type="stmt" count="0"/>
9584
  <line num="76" type="stmt" count="0"/>
9585
  <line num="77" type="stmt" count="0"/>
9586
+ <line num="78" type="stmt" count="0"/>
9587
  <line num="79" type="stmt" count="0"/>
9588
+ <line num="80" type="stmt" count="0"/>
9589
+ <line num="82" type="stmt" count="0"/>
9590
+ <line num="84" type="stmt" count="0"/>
9591
+ <line num="86" type="stmt" count="0"/>
 
9592
  <line num="91" type="stmt" count="0"/>
9593
+ <line num="92" type="stmt" count="0"/>
9594
  <line num="93" type="stmt" count="0"/>
9595
  <line num="95" type="stmt" count="0"/>
9596
  <line num="97" type="stmt" count="0"/>
 
9597
  <line num="99" type="stmt" count="0"/>
9598
+ <line num="101" type="stmt" count="0"/>
9599
  <line num="102" type="stmt" count="0"/>
9600
+ <line num="103" type="stmt" count="0"/>
9601
  <line num="104" type="stmt" count="0"/>
9602
  <line num="106" type="stmt" count="0"/>
9603
  <line num="108" type="stmt" count="0"/>
9604
+ <line num="110" type="stmt" count="0"/>
9605
+ <line num="112" type="stmt" count="0"/>
 
9606
  <line num="114" type="stmt" count="0"/>
9607
  <line num="116" type="stmt" count="0"/>
9608
  <line num="118" type="stmt" count="0"/>
9609
+ <line num="119" type="stmt" count="0"/>
9610
  <line num="120" type="stmt" count="0"/>
9611
+ <line num="122" type="stmt" count="0"/>
9612
+ <line num="124" type="stmt" count="0"/>
9613
+ <line num="125" type="stmt" count="0"/>
9614
+ <line num="127" type="stmt" count="0"/>
9615
+ <line num="129" type="stmt" count="0"/>
9616
+ <line num="131" type="stmt" count="0"/>
9617
+ <metrics loc="131" ncloc="111" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="76" coveredstatements="0" elements="76" coveredelements="0"/>
9618
  </file>
9619
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/archives/note-pre-backup.php">
9620
  <line num="17" type="stmt" count="0"/>
10000
  <line num="384" type="stmt" count="0"/>
10001
  <line num="385" type="stmt" count="0"/>
10002
  <line num="386" type="stmt" count="0"/>
10003
+ <line num="387" type="stmt" count="0"/>
10004
  <line num="388" type="stmt" count="0"/>
10005
  <line num="389" type="stmt" count="0"/>
10006
  <line num="390" type="stmt" count="0"/>
10008
  <line num="392" type="stmt" count="0"/>
10009
  <line num="393" type="stmt" count="0"/>
10010
  <line num="394" type="stmt" count="0"/>
 
10011
  <line num="396" type="stmt" count="0"/>
10012
  <line num="397" type="stmt" count="0"/>
10013
  <line num="398" type="stmt" count="0"/>
10014
  <line num="399" type="stmt" count="0"/>
10015
  <line num="400" type="stmt" count="0"/>
10016
+ <line num="401" type="stmt" count="0"/>
10017
  <line num="402" type="stmt" count="0"/>
10018
+ <line num="403" type="stmt" count="0"/>
10019
  <line num="404" type="stmt" count="0"/>
 
10020
  <line num="406" type="stmt" count="0"/>
 
10021
  <line num="408" type="stmt" count="0"/>
10022
  <line num="409" type="stmt" count="0"/>
10023
  <line num="410" type="stmt" count="0"/>
10028
  <line num="415" type="stmt" count="0"/>
10029
  <line num="416" type="stmt" count="0"/>
10030
  <line num="417" type="stmt" count="0"/>
10031
+ <line num="418" type="stmt" count="0"/>
10032
  <line num="419" type="stmt" count="0"/>
10033
+ <line num="420" type="stmt" count="0"/>
10034
+ <line num="422" type="stmt" count="0"/>
10035
+ <line num="424" type="stmt" count="0"/>
10036
+ <metrics loc="424" ncloc="353" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="362" coveredstatements="0" elements="362" coveredelements="0"/>
10037
  </file>
10038
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-backup-button.php">
10039
  <line num="19" type="stmt" count="0"/>
10040
  <line num="21" type="stmt" count="0"/>
10041
+ <line num="22" type="stmt" count="0"/>
10042
  <line num="23" type="stmt" count="0"/>
10043
  <line num="24" type="stmt" count="0"/>
10044
  <line num="25" type="stmt" count="0"/>
10045
+ <line num="37" type="stmt" count="0"/>
10046
+ <line num="39" type="stmt" count="0"/>
10047
  <line num="40" type="stmt" count="0"/>
10048
  <line num="41" type="stmt" count="0"/>
10049
  <line num="42" type="stmt" count="0"/>
10069
  <line num="62" type="stmt" count="0"/>
10070
  <line num="63" type="stmt" count="0"/>
10071
  <line num="64" type="stmt" count="0"/>
10072
+ <line num="66" type="stmt" count="0"/>
10073
  <line num="67" type="stmt" count="0"/>
10074
  <line num="68" type="stmt" count="0"/>
10075
  <line num="69" type="stmt" count="0"/>
10076
+ <line num="71" type="stmt" count="0"/>
10077
+ <metrics loc="71" ncloc="43" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="38" coveredstatements="0" elements="38" coveredelements="0"/>
 
10078
  </file>
10079
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-backup-modal.php">
10080
  <line num="17" type="stmt" count="0"/>
10193
  <line num="19" type="stmt" count="0"/>
10194
  <line num="21" type="stmt" count="0"/>
10195
  <line num="23" type="stmt" count="0"/>
10196
+ <line num="25" type="stmt" count="0"/>
10197
+ <line num="27" type="stmt" count="0"/>
10198
+ <line num="29" type="stmt" count="0"/>
10199
+ <metrics loc="29" ncloc="13" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
 
10200
  </file>
10201
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-home.php">
10202
  <line num="17" type="stmt" count="0"/>
10214
  <line num="52" type="stmt" count="0"/>
10215
  <line num="53" type="stmt" count="0"/>
10216
  <line num="54" type="stmt" count="0"/>
10217
+ <line num="56" type="stmt" count="0"/>
10218
  <line num="57" type="stmt" count="0"/>
10219
+ <line num="58" type="stmt" count="0"/>
10220
+ <line num="59" type="stmt" count="0"/>
10221
+ <line num="60" type="stmt" count="0"/>
10222
  <line num="61" type="stmt" count="0"/>
10223
+ <line num="63" type="stmt" count="0"/>
10224
+ <line num="64" type="stmt" count="0"/>
10225
+ <line num="65" type="stmt" count="0"/>
10226
+ <line num="66" type="stmt" count="0"/>
10227
  <line num="67" type="stmt" count="0"/>
10228
+ <line num="68" type="stmt" count="0"/>
10229
+ <line num="69" type="stmt" count="0"/>
10230
  <line num="70" type="stmt" count="0"/>
10231
+ <line num="71" type="stmt" count="0"/>
10232
  <line num="72" type="stmt" count="0"/>
10233
+ <line num="73" type="stmt" count="0"/>
10234
+ <line num="75" type="stmt" count="0"/>
10235
+ <line num="77" type="stmt" count="0"/>
10236
+ <line num="79" type="stmt" count="0"/>
10237
+ <line num="87" type="stmt" count="0"/>
10238
+ <line num="88" type="stmt" count="0"/>
10239
  <line num="89" type="stmt" count="0"/>
10240
+ <line num="91" type="stmt" count="0"/>
10241
+ <line num="92" type="stmt" count="0"/>
10242
+ <line num="93" type="stmt" count="0"/>
10243
+ <line num="94" type="stmt" count="0"/>
10244
+ <metrics loc="94" ncloc="45" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="42" coveredstatements="0" elements="42" coveredelements="0"/>
10245
  </file>
10246
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-mail-restore.php">
10247
  <line num="17" type="stmt" count="1"/>
10288
  <metrics loc="93" ncloc="58" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="32" elements="41" coveredelements="32"/>
10289
  </file>
10290
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-nav.php">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10291
  <line num="19" type="stmt" count="1"/>
10292
  <line num="21" type="stmt" count="1"/>
10293
  <line num="23" type="stmt" count="1"/>
10294
+ <line num="28" type="stmt" count="1"/>
10295
+ <line num="29" type="stmt" count="1"/>
10296
+ <line num="30" type="stmt" count="1"/>
10297
+ <line num="31" type="stmt" count="1"/>
10298
+ <line num="33" type="stmt" count="1"/>
10299
+ <line num="34" type="stmt" count="1"/>
10300
+ <line num="35" type="stmt" count="1"/>
10301
+ <line num="36" type="stmt" count="1"/>
10302
  <line num="38" type="stmt" count="1"/>
10303
  <line num="39" type="stmt" count="1"/>
10304
  <line num="40" type="stmt" count="1"/>
10305
+ <line num="41" type="stmt" count="1"/>
10306
  <line num="43" type="stmt" count="1"/>
10307
+ <line num="44" type="stmt" count="1"/>
10308
+ <line num="45" type="stmt" count="1"/>
10309
+ <line num="46" type="stmt" count="1"/>
10310
+ <line num="48" type="stmt" count="1"/>
10311
+ <line num="49" type="stmt" count="1"/>
10312
+ <line num="50" type="stmt" count="1"/>
10313
  <line num="51" type="stmt" count="1"/>
10314
  <line num="53" type="stmt" count="1"/>
10315
+ <line num="54" type="stmt" count="1"/>
10316
  <line num="55" type="stmt" count="1"/>
10317
+ <line num="56" type="stmt" count="1"/>
10318
+ <line num="58" type="stmt" count="1"/>
10319
+ <line num="59" type="stmt" count="1"/>
10320
+ <line num="60" type="stmt" count="1"/>
10321
+ <line num="61" type="stmt" count="1"/>
10322
+ <line num="63" type="stmt" count="1"/>
10323
+ <line num="64" type="stmt" count="1"/>
10324
+ <line num="65" type="stmt" count="1"/>
10325
+ <line num="66" type="stmt" count="1"/>
10326
+ <line num="67" type="stmt" count="1"/>
10327
+ <line num="68" type="stmt" count="1"/>
10328
+ <line num="78" type="stmt" count="1"/>
10329
+ <line num="80" type="stmt" count="1"/>
10330
+ <line num="81" type="stmt" count="1"/>
10331
+ <line num="82" type="stmt" count="1"/>
10332
+ <line num="83" type="stmt" count="1"/>
10333
+ <line num="84" type="stmt" count="1"/>
10334
+ <line num="85" type="stmt" count="1"/>
10335
+ <line num="86" type="stmt" count="1"/>
10336
+ <line num="87" type="stmt" count="1"/>
10337
+ <line num="88" type="stmt" count="1"/>
10338
+ <line num="89" type="stmt" count="1"/>
10339
+ <line num="90" type="stmt" count="1"/>
10340
+ <line num="91" type="stmt" count="1"/>
10341
+ <line num="92" type="stmt" count="1"/>
10342
+ <line num="93" type="stmt" count="1"/>
10343
+ <line num="94" type="stmt" count="1"/>
10344
+ <line num="95" type="stmt" count="1"/>
10345
+ <line num="96" type="stmt" count="1"/>
10346
+ <line num="98" type="stmt" count="1"/>
10347
+ <metrics loc="98" ncloc="69" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="56" elements="56" coveredelements="56"/>
10348
+ </file>
10349
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-premium.php">
10350
+ <line num="17" type="stmt" count="0"/>
10351
+ <line num="19" type="stmt" count="0"/>
10352
+ <line num="21" type="stmt" count="0"/>
10353
+ <line num="23" type="stmt" count="0"/>
10354
+ <line num="25" type="stmt" count="0"/>
10355
+ <line num="27" type="stmt" count="0"/>
10356
+ <line num="28" type="stmt" count="0"/>
10357
+ <line num="29" type="stmt" count="0"/>
10358
+ <line num="30" type="stmt" count="0"/>
10359
+ <line num="31" type="stmt" count="0"/>
10360
+ <line num="32" type="stmt" count="0"/>
10361
+ <line num="33" type="stmt" count="0"/>
10362
+ <line num="34" type="stmt" count="0"/>
10363
+ <line num="35" type="stmt" count="0"/>
10364
+ <line num="36" type="stmt" count="0"/>
10365
+ <line num="37" type="stmt" count="0"/>
10366
+ <line num="38" type="stmt" count="0"/>
10367
+ <line num="39" type="stmt" count="0"/>
10368
+ <line num="40" type="stmt" count="0"/>
10369
+ <line num="41" type="stmt" count="0"/>
10370
+ <line num="42" type="stmt" count="0"/>
10371
+ <line num="43" type="stmt" count="0"/>
10372
+ <line num="44" type="stmt" count="0"/>
10373
+ <line num="45" type="stmt" count="0"/>
10374
+ <line num="46" type="stmt" count="0"/>
10375
+ <line num="48" type="stmt" count="0"/>
10376
+ <line num="50" type="stmt" count="0"/>
10377
+ <line num="52" type="stmt" count="0"/>
10378
+ <line num="54" type="stmt" count="0"/>
10379
+ <metrics loc="54" ncloc="33" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="0" elements="29" coveredelements="0"/>
10380
  </file>
10381
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-settings.php">
10382
  <line num="17" type="stmt" count="0"/>
10394
  <line num="30" type="stmt" count="0"/>
10395
  <line num="31" type="stmt" count="0"/>
10396
  <line num="32" type="stmt" count="0"/>
10397
+ <line num="34" type="stmt" count="0"/>
10398
  <line num="35" type="stmt" count="0"/>
10399
  <line num="36" type="stmt" count="0"/>
10400
  <line num="37" type="stmt" count="0"/>
10401
  <line num="38" type="stmt" count="0"/>
10402
+ <line num="40" type="stmt" count="0"/>
10403
  <line num="41" type="stmt" count="0"/>
10404
  <line num="42" type="stmt" count="0"/>
10405
  <line num="43" type="stmt" count="0"/>
10452
  <line num="90" type="stmt" count="0"/>
10453
  <line num="91" type="stmt" count="0"/>
10454
  <line num="92" type="stmt" count="0"/>
10455
+ <line num="101" type="stmt" count="0"/>
10456
+ <line num="112" type="stmt" count="0"/>
10457
  <line num="113" type="stmt" count="0"/>
10458
  <line num="114" type="stmt" count="0"/>
10459
  <line num="115" type="stmt" count="0"/>
10460
+ <line num="118" type="stmt" count="0"/>
10461
  <line num="119" type="stmt" count="0"/>
10462
  <line num="120" type="stmt" count="0"/>
10463
  <line num="121" type="stmt" count="0"/>
10466
  <line num="124" type="stmt" count="0"/>
10467
  <line num="125" type="stmt" count="0"/>
10468
  <line num="126" type="stmt" count="0"/>
10469
+ <line num="128" type="stmt" count="0"/>
10470
+ <line num="130" type="stmt" count="0"/>
10471
  <line num="132" type="stmt" count="0"/>
10472
+ <line num="143" type="stmt" count="0"/>
10473
+ <line num="145" type="stmt" count="0"/>
10474
  <line num="146" type="stmt" count="0"/>
10475
  <line num="148" type="stmt" count="0"/>
10476
  <line num="149" type="stmt" count="0"/>
10477
+ <line num="150" type="stmt" count="0"/>
10478
  <line num="151" type="stmt" count="0"/>
10479
  <line num="152" type="stmt" count="0"/>
10480
  <line num="153" type="stmt" count="0"/>
10481
  <line num="154" type="stmt" count="0"/>
10482
  <line num="155" type="stmt" count="0"/>
10483
  <line num="156" type="stmt" count="0"/>
 
10484
  <line num="158" type="stmt" count="0"/>
10485
+ <line num="160" type="stmt" count="0"/>
10486
+ <line num="162" type="stmt" count="0"/>
10487
+ <line num="164" type="stmt" count="0"/>
10488
+ <line num="166" type="stmt" count="0"/>
10489
  <line num="167" type="stmt" count="0"/>
 
10490
  <line num="170" type="stmt" count="0"/>
10491
+ <metrics loc="170" ncloc="123" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="109" coveredstatements="0" elements="109" coveredelements="0"/>
 
 
10492
  </file>
10493
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-support.php">
10494
  <line num="17" type="stmt" count="0"/>
10558
  <line num="93" type="stmt" count="0"/>
10559
  <line num="94" type="stmt" count="0"/>
10560
  <line num="95" type="stmt" count="0"/>
10561
+ <line num="97" type="stmt" count="0"/>
10562
  <line num="99" type="stmt" count="0"/>
10563
+ <line num="102" type="stmt" count="0"/>
10564
  <line num="105" type="stmt" count="0"/>
10565
+ <line num="106" type="stmt" count="0"/>
10566
  <line num="107" type="stmt" count="0"/>
10567
  <line num="108" type="stmt" count="0"/>
10568
  <line num="109" type="stmt" count="0"/>
10577
  <line num="118" type="stmt" count="0"/>
10578
  <line num="119" type="stmt" count="0"/>
10579
  <line num="120" type="stmt" count="0"/>
 
10580
  <line num="122" type="stmt" count="0"/>
10581
+ <line num="123" type="stmt" count="0"/>
10582
  <line num="124" type="stmt" count="0"/>
10583
  <line num="125" type="stmt" count="0"/>
10584
  <line num="126" type="stmt" count="0"/>
10585
  <line num="127" type="stmt" count="0"/>
10586
  <line num="128" type="stmt" count="0"/>
 
10587
  <line num="130" type="stmt" count="0"/>
10588
+ <line num="131" type="stmt" count="0"/>
10589
  <line num="132" type="stmt" count="0"/>
10590
  <line num="133" type="stmt" count="0"/>
10591
  <line num="134" type="stmt" count="0"/>
10592
  <line num="135" type="stmt" count="0"/>
10593
  <line num="136" type="stmt" count="0"/>
 
10594
  <line num="138" type="stmt" count="0"/>
10595
+ <line num="139" type="stmt" count="0"/>
10596
  <line num="140" type="stmt" count="0"/>
10597
  <line num="141" type="stmt" count="0"/>
10598
  <line num="142" type="stmt" count="0"/>
10599
  <line num="143" type="stmt" count="0"/>
 
10600
  <line num="145" type="stmt" count="0"/>
10601
+ <line num="146" type="stmt" count="0"/>
10602
  <line num="147" type="stmt" count="0"/>
10603
  <line num="148" type="stmt" count="0"/>
10604
  <line num="149" type="stmt" count="0"/>
10609
  <line num="154" type="stmt" count="0"/>
10610
  <line num="155" type="stmt" count="0"/>
10611
  <line num="156" type="stmt" count="0"/>
10612
+ <line num="159" type="stmt" count="0"/>
10613
+ <metrics loc="159" ncloc="130" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="119" coveredstatements="0" elements="119" coveredelements="0"/>
 
 
 
 
10614
  </file>
10615
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-test.php">
10616
  <line num="19" type="stmt" count="0"/>
10975
  <line num="442" type="stmt" count="0"/>
10976
  <line num="445" type="stmt" count="0"/>
10977
  <line num="448" type="stmt" count="0"/>
10978
+ <line num="449" type="stmt" count="0"/>
10979
  <line num="451" type="stmt" count="0"/>
10980
  <line num="453" type="stmt" count="0"/>
10981
  <line num="455" type="stmt" count="0"/>
10982
+ <line num="458" type="stmt" count="0"/>
10983
+ <metrics loc="458" ncloc="422" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="367" coveredstatements="0" elements="367" coveredelements="0"/>
10984
  </file>
10985
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-tools.php">
10986
  <line num="15" type="stmt" count="0"/>
11006
  <line num="37" type="stmt" count="0"/>
11007
  <line num="46" type="stmt" count="0"/>
11008
  <line num="57" type="stmt" count="0"/>
11009
+ <line num="59" type="stmt" count="0"/>
11010
  <line num="61" type="stmt" count="0"/>
11011
+ <line num="63" type="stmt" count="0"/>
11012
+ <metrics loc="63" ncloc="31" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="26" coveredstatements="0" elements="26" coveredelements="0"/>
 
11013
  </file>
11014
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-transfers.php">
11015
  <line num="14" type="stmt" count="0"/>
11045
  <line num="66" type="stmt" count="0"/>
11046
  <line num="69" type="stmt" count="0"/>
11047
  <line num="71" type="stmt" count="0"/>
11048
+ <line num="72" type="stmt" count="0"/>
11049
  <line num="73" type="stmt" count="0"/>
11050
+ <line num="76" type="stmt" count="0"/>
11051
+ <metrics loc="76" ncloc="45" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="36" coveredstatements="0" elements="36" coveredelements="0"/>
11052
  </file>
11053
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/remote/ftp.php">
11054
  <line num="20" type="stmt" count="0"/>
11137
  <line num="16" type="stmt" count="0"/>
11138
  <line num="18" type="stmt" count="0"/>
11139
  <line num="20" type="stmt" count="0"/>
11140
+ <line num="22" type="stmt" count="0"/>
 
11141
  <line num="24" type="stmt" count="0"/>
11142
  <line num="25" type="stmt" count="0"/>
11143
+ <line num="27" type="stmt" count="0"/>
11144
  <line num="28" type="stmt" count="0"/>
11145
  <line num="30" type="stmt" count="0"/>
11146
  <line num="31" type="stmt" count="0"/>
11147
  <line num="32" type="stmt" count="0"/>
 
11148
  <line num="34" type="stmt" count="0"/>
11149
  <line num="35" type="stmt" count="0"/>
11150
  <line num="36" type="stmt" count="0"/>
11151
  <line num="38" type="stmt" count="0"/>
11152
  <line num="39" type="stmt" count="0"/>
11153
+ <line num="40" type="stmt" count="0"/>
11154
  <line num="41" type="stmt" count="0"/>
 
11155
  <line num="43" type="stmt" count="0"/>
11156
  <line num="44" type="stmt" count="0"/>
11157
+ <line num="45" type="stmt" count="0"/>
11158
  <line num="46" type="stmt" count="0"/>
 
11159
  <line num="48" type="stmt" count="0"/>
11160
  <line num="49" type="stmt" count="0"/>
11161
+ <line num="50" type="stmt" count="0"/>
11162
  <line num="51" type="stmt" count="0"/>
11163
+ <line num="54" type="stmt" count="0"/>
 
 
11164
  <line num="56" type="stmt" count="0"/>
11165
  <line num="57" type="stmt" count="0"/>
11166
  <line num="58" type="stmt" count="0"/>
11167
  <line num="61" type="stmt" count="0"/>
11168
+ <line num="62" type="stmt" count="0"/>
11169
  <line num="63" type="stmt" count="0"/>
11170
  <line num="64" type="stmt" count="0"/>
11171
  <line num="65" type="stmt" count="0"/>
11172
+ <line num="67" type="stmt" count="0"/>
11173
  <line num="69" type="stmt" count="0"/>
11174
  <line num="70" type="stmt" count="0"/>
11175
+ <line num="71" type="stmt" count="0"/>
11176
  <line num="72" type="stmt" count="0"/>
11177
  <line num="73" type="stmt" count="0"/>
11178
+ <line num="74" type="stmt" count="0"/>
11179
  <line num="75" type="stmt" count="0"/>
 
11180
  <line num="77" type="stmt" count="0"/>
11181
  <line num="78" type="stmt" count="0"/>
11182
+ <line num="79" type="stmt" count="0"/>
11183
+ <line num="80" type="stmt" count="0"/>
11184
+ <line num="82" type="stmt" count="0"/>
11185
+ <line num="83" type="stmt" count="0"/>
11186
+ <line num="84" type="stmt" count="0"/>
11187
+ <line num="86" type="stmt" count="0"/>
11188
+ <line num="87" type="stmt" count="0"/>
11189
+ <line num="88" type="stmt" count="0"/>
11190
+ <line num="89" type="stmt" count="0"/>
11191
+ <line num="92" type="stmt" count="0"/>
11192
+ <line num="94" type="stmt" count="0"/>
11193
+ <line num="95" type="stmt" count="0"/>
11194
+ <line num="96" type="stmt" count="0"/>
11195
+ <line num="99" type="stmt" count="0"/>
11196
+ <line num="100" type="stmt" count="0"/>
11197
+ <line num="101" type="stmt" count="0"/>
11198
+ <line num="102" type="stmt" count="0"/>
11199
+ <line num="103" type="stmt" count="0"/>
11200
+ <line num="105" type="stmt" count="0"/>
11201
+ <line num="106" type="stmt" count="0"/>
11202
+ <line num="107" type="stmt" count="0"/>
11203
+ <line num="108" type="stmt" count="0"/>
11204
+ <line num="110" type="stmt" count="0"/>
11205
+ <line num="111" type="stmt" count="0"/>
11206
+ <line num="112" type="stmt" count="0"/>
11207
+ <line num="113" type="stmt" count="0"/>
11208
+ <line num="114" type="stmt" count="0"/>
11209
+ <line num="115" type="stmt" count="0"/>
11210
+ <line num="117" type="stmt" count="0"/>
11211
+ <line num="118" type="stmt" count="0"/>
11212
+ <line num="120" type="stmt" count="0"/>
11213
+ <metrics loc="120" ncloc="105" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="76" coveredstatements="0" elements="76" coveredelements="0"/>
11214
+ </file>
11215
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/auto-update.php">
11216
+ <line num="17" type="stmt" count="0"/>
11217
+ <line num="18" type="stmt" count="0"/>
11218
+ <line num="19" type="stmt" count="0"/>
11219
+ <line num="20" type="stmt" count="0"/>
11220
+ <line num="21" type="stmt" count="0"/>
11221
+ <line num="22" type="stmt" count="0"/>
11222
+ <line num="23" type="stmt" count="0"/>
11223
+ <line num="24" type="stmt" count="0"/>
11224
+ <line num="25" type="stmt" count="0"/>
11225
+ <line num="26" type="stmt" count="0"/>
11226
+ <line num="27" type="stmt" count="0"/>
11227
+ <line num="28" type="stmt" count="0"/>
11228
+ <line num="29" type="stmt" count="0"/>
11229
+ <line num="41" type="stmt" count="0"/>
11230
+ <line num="42" type="stmt" count="0"/>
11231
+ <line num="43" type="stmt" count="0"/>
11232
+ <line num="45" type="stmt" count="0"/>
11233
+ <line num="46" type="stmt" count="0"/>
11234
+ <line num="47" type="stmt" count="0"/>
11235
+ <line num="48" type="stmt" count="0"/>
11236
+ <line num="50" type="stmt" count="0"/>
11237
+ <line num="51" type="stmt" count="0"/>
11238
+ <line num="52" type="stmt" count="0"/>
11239
+ <line num="54" type="stmt" count="0"/>
11240
+ <line num="55" type="stmt" count="0"/>
11241
+ <line num="56" type="stmt" count="0"/>
11242
+ <line num="57" type="stmt" count="0"/>
11243
+ <line num="58" type="stmt" count="0"/>
11244
+ <line num="59" type="stmt" count="0"/>
11245
+ <line num="60" type="stmt" count="0"/>
11246
+ <line num="61" type="stmt" count="0"/>
11247
+ <line num="62" type="stmt" count="0"/>
11248
+ <line num="63" type="stmt" count="0"/>
11249
+ <line num="64" type="stmt" count="0"/>
11250
+ <line num="65" type="stmt" count="0"/>
11251
+ <line num="66" type="stmt" count="0"/>
11252
+ <line num="76" type="stmt" count="0"/>
11253
+ <line num="77" type="stmt" count="0"/>
11254
+ <line num="79" type="stmt" count="0"/>
11255
+ <line num="80" type="stmt" count="0"/>
11256
  <line num="81" type="stmt" count="0"/>
11257
  <line num="82" type="stmt" count="0"/>
11258
+ <line num="83" type="stmt" count="0"/>
11259
  <line num="84" type="stmt" count="0"/>
11260
  <line num="85" type="stmt" count="0"/>
11261
  <line num="86" type="stmt" count="0"/>
11262
+ <line num="87" type="stmt" count="0"/>
11263
+ <line num="88" type="stmt" count="0"/>
11264
  <line num="89" type="stmt" count="0"/>
 
11265
  <line num="91" type="stmt" count="0"/>
11266
  <line num="92" type="stmt" count="0"/>
11267
+ <line num="103" type="stmt" count="0"/>
11268
+ <line num="104" type="stmt" count="0"/>
11269
+ <line num="105" type="stmt" count="0"/>
11270
+ <line num="106" type="stmt" count="0"/>
11271
+ <line num="107" type="stmt" count="0"/>
11272
+ <line num="108" type="stmt" count="0"/>
11273
+ <line num="109" type="stmt" count="0"/>
11274
+ <line num="110" type="stmt" count="0"/>
11275
+ <line num="112" type="stmt" count="0"/>
11276
+ <line num="113" type="stmt" count="0"/>
11277
+ <line num="114" type="stmt" count="0"/>
11278
+ <line num="115" type="stmt" count="0"/>
11279
+ <line num="116" type="stmt" count="0"/>
11280
+ <line num="117" type="stmt" count="0"/>
11281
+ <line num="118" type="stmt" count="0"/>
11282
+ <line num="119" type="stmt" count="0"/>
11283
+ <line num="120" type="stmt" count="0"/>
11284
+ <line num="121" type="stmt" count="0"/>
11285
+ <line num="122" type="stmt" count="0"/>
11286
+ <line num="123" type="stmt" count="0"/>
11287
+ <line num="124" type="stmt" count="0"/>
11288
+ <line num="125" type="stmt" count="0"/>
11289
+ <line num="126" type="stmt" count="0"/>
11290
+ <line num="127" type="stmt" count="0"/>
11291
+ <line num="128" type="stmt" count="0"/>
11292
+ <line num="129" type="stmt" count="0"/>
11293
+ <line num="130" type="stmt" count="0"/>
11294
+ <line num="131" type="stmt" count="0"/>
11295
+ <line num="132" type="stmt" count="0"/>
11296
+ <line num="133" type="stmt" count="0"/>
11297
+ <line num="134" type="stmt" count="0"/>
11298
+ <line num="135" type="stmt" count="0"/>
11299
+ <line num="136" type="stmt" count="0"/>
11300
+ <line num="137" type="stmt" count="0"/>
11301
+ <line num="138" type="stmt" count="0"/>
11302
+ <line num="139" type="stmt" count="0"/>
11303
+ <line num="140" type="stmt" count="0"/>
11304
+ <line num="141" type="stmt" count="0"/>
11305
+ <line num="142" type="stmt" count="0"/>
11306
+ <line num="143" type="stmt" count="0"/>
11307
+ <line num="144" type="stmt" count="0"/>
11308
+ <line num="145" type="stmt" count="0"/>
11309
+ <line num="146" type="stmt" count="0"/>
11310
+ <line num="147" type="stmt" count="0"/>
11311
+ <line num="148" type="stmt" count="0"/>
11312
+ <line num="149" type="stmt" count="0"/>
11313
+ <line num="150" type="stmt" count="0"/>
11314
+ <line num="151" type="stmt" count="0"/>
11315
+ <line num="152" type="stmt" count="0"/>
11316
+ <line num="153" type="stmt" count="0"/>
11317
+ <line num="154" type="stmt" count="0"/>
11318
+ <line num="155" type="stmt" count="0"/>
11319
+ <line num="156" type="stmt" count="0"/>
11320
+ <line num="157" type="stmt" count="0"/>
11321
+ <line num="158" type="stmt" count="0"/>
11322
+ <line num="159" type="stmt" count="0"/>
11323
+ <line num="160" type="stmt" count="0"/>
11324
+ <line num="161" type="stmt" count="0"/>
11325
+ <line num="162" type="stmt" count="0"/>
11326
+ <line num="163" type="stmt" count="0"/>
11327
+ <line num="164" type="stmt" count="0"/>
11328
+ <line num="165" type="stmt" count="0"/>
11329
+ <line num="166" type="stmt" count="0"/>
11330
+ <line num="167" type="stmt" count="0"/>
11331
+ <line num="168" type="stmt" count="0"/>
11332
+ <line num="169" type="stmt" count="0"/>
11333
+ <line num="170" type="stmt" count="0"/>
11334
+ <line num="171" type="stmt" count="0"/>
11335
+ <line num="172" type="stmt" count="0"/>
11336
+ <line num="173" type="stmt" count="0"/>
11337
+ <line num="174" type="stmt" count="0"/>
11338
+ <line num="175" type="stmt" count="0"/>
11339
+ <line num="176" type="stmt" count="0"/>
11340
+ <line num="177" type="stmt" count="0"/>
11341
+ <line num="178" type="stmt" count="0"/>
11342
+ <line num="179" type="stmt" count="0"/>
11343
+ <line num="180" type="stmt" count="0"/>
11344
+ <line num="181" type="stmt" count="0"/>
11345
+ <line num="182" type="stmt" count="0"/>
11346
+ <line num="183" type="stmt" count="0"/>
11347
+ <line num="184" type="stmt" count="0"/>
11348
+ <line num="185" type="stmt" count="0"/>
11349
+ <line num="186" type="stmt" count="0"/>
11350
+ <line num="187" type="stmt" count="0"/>
11351
+ <line num="188" type="stmt" count="0"/>
11352
+ <line num="189" type="stmt" count="0"/>
11353
+ <line num="190" type="stmt" count="0"/>
11354
+ <line num="191" type="stmt" count="0"/>
11355
+ <line num="192" type="stmt" count="0"/>
11356
+ <line num="193" type="stmt" count="0"/>
11357
+ <line num="194" type="stmt" count="0"/>
11358
+ <line num="195" type="stmt" count="0"/>
11359
+ <line num="207" type="stmt" count="0"/>
11360
+ <line num="208" type="stmt" count="0"/>
11361
+ <line num="209" type="stmt" count="0"/>
11362
+ <line num="210" type="stmt" count="0"/>
11363
+ <line num="211" type="stmt" count="0"/>
11364
+ <line num="213" type="stmt" count="0"/>
11365
+ <line num="214" type="stmt" count="0"/>
11366
+ <line num="215" type="stmt" count="0"/>
11367
+ <line num="216" type="stmt" count="0"/>
11368
+ <line num="217" type="stmt" count="0"/>
11369
+ <line num="218" type="stmt" count="0"/>
11370
+ <line num="219" type="stmt" count="0"/>
11371
+ <line num="221" type="stmt" count="0"/>
11372
+ <line num="222" type="stmt" count="0"/>
11373
+ <line num="223" type="stmt" count="0"/>
11374
+ <line num="224" type="stmt" count="0"/>
11375
+ <line num="226" type="stmt" count="0"/>
11376
+ <line num="227" type="stmt" count="0"/>
11377
+ <line num="228" type="stmt" count="0"/>
11378
+ <line num="229" type="stmt" count="0"/>
11379
+ <line num="230" type="stmt" count="0"/>
11380
+ <line num="231" type="stmt" count="0"/>
11381
+ <line num="232" type="stmt" count="0"/>
11382
+ <line num="233" type="stmt" count="0"/>
11383
+ <line num="234" type="stmt" count="0"/>
11384
+ <line num="235" type="stmt" count="0"/>
11385
+ <line num="236" type="stmt" count="0"/>
11386
+ <line num="237" type="stmt" count="0"/>
11387
+ <line num="238" type="stmt" count="0"/>
11388
+ <line num="239" type="stmt" count="0"/>
11389
+ <line num="240" type="stmt" count="0"/>
11390
+ <line num="241" type="stmt" count="0"/>
11391
+ <line num="242" type="stmt" count="0"/>
11392
+ <line num="243" type="stmt" count="0"/>
11393
+ <line num="244" type="stmt" count="0"/>
11394
+ <line num="245" type="stmt" count="0"/>
11395
+ <line num="246" type="stmt" count="0"/>
11396
+ <line num="247" type="stmt" count="0"/>
11397
+ <line num="248" type="stmt" count="0"/>
11398
+ <line num="250" type="stmt" count="0"/>
11399
+ <line num="251" type="stmt" count="0"/>
11400
+ <line num="253" type="stmt" count="0"/>
11401
+ <line num="254" type="stmt" count="0"/>
11402
+ <line num="255" type="stmt" count="0"/>
11403
+ <line num="256" type="stmt" count="0"/>
11404
+ <line num="257" type="stmt" count="0"/>
11405
+ <line num="258" type="stmt" count="0"/>
11406
+ <line num="259" type="stmt" count="0"/>
11407
+ <line num="260" type="stmt" count="0"/>
11408
+ <line num="261" type="stmt" count="0"/>
11409
+ <line num="262" type="stmt" count="0"/>
11410
+ <line num="264" type="stmt" count="0"/>
11411
+ <line num="266" type="stmt" count="0"/>
11412
+ <line num="267" type="stmt" count="0"/>
11413
+ <line num="268" type="stmt" count="0"/>
11414
+ <line num="270" type="stmt" count="0"/>
11415
+ <line num="272" type="stmt" count="0"/>
11416
+ <line num="274" type="stmt" count="0"/>
11417
+ <line num="275" type="stmt" count="0"/>
11418
+ <line num="276" type="stmt" count="0"/>
11419
+ <line num="277" type="stmt" count="0"/>
11420
+ <line num="278" type="stmt" count="0"/>
11421
+ <line num="279" type="stmt" count="0"/>
11422
+ <line num="280" type="stmt" count="0"/>
11423
+ <line num="281" type="stmt" count="0"/>
11424
+ <line num="282" type="stmt" count="0"/>
11425
+ <line num="283" type="stmt" count="0"/>
11426
+ <line num="284" type="stmt" count="0"/>
11427
+ <line num="285" type="stmt" count="0"/>
11428
+ <line num="286" type="stmt" count="0"/>
11429
+ <line num="287" type="stmt" count="0"/>
11430
+ <line num="288" type="stmt" count="0"/>
11431
+ <line num="289" type="stmt" count="0"/>
11432
+ <line num="290" type="stmt" count="0"/>
11433
+ <line num="291" type="stmt" count="0"/>
11434
+ <line num="293" type="stmt" count="0"/>
11435
+ <line num="294" type="stmt" count="0"/>
11436
+ <line num="295" type="stmt" count="0"/>
11437
+ <line num="296" type="stmt" count="0"/>
11438
+ <line num="297" type="stmt" count="0"/>
11439
+ <line num="298" type="stmt" count="0"/>
11440
+ <line num="299" type="stmt" count="0"/>
11441
+ <line num="300" type="stmt" count="0"/>
11442
+ <line num="301" type="stmt" count="0"/>
11443
+ <line num="302" type="stmt" count="0"/>
11444
+ <line num="303" type="stmt" count="0"/>
11445
+ <line num="304" type="stmt" count="0"/>
11446
+ <line num="305" type="stmt" count="0"/>
11447
+ <line num="306" type="stmt" count="0"/>
11448
+ <line num="307" type="stmt" count="0"/>
11449
+ <line num="309" type="stmt" count="0"/>
11450
+ <line num="310" type="stmt" count="0"/>
11451
+ <line num="311" type="stmt" count="0"/>
11452
+ <line num="323" type="stmt" count="0"/>
11453
+ <line num="324" type="stmt" count="0"/>
11454
+ <line num="325" type="stmt" count="0"/>
11455
+ <line num="326" type="stmt" count="0"/>
11456
+ <line num="327" type="stmt" count="0"/>
11457
+ <line num="328" type="stmt" count="0"/>
11458
+ <line num="330" type="stmt" count="0"/>
11459
+ <line num="331" type="stmt" count="0"/>
11460
+ <line num="332" type="stmt" count="0"/>
11461
+ <line num="334" type="stmt" count="0"/>
11462
+ <line num="335" type="stmt" count="0"/>
11463
+ <line num="336" type="stmt" count="0"/>
11464
+ <line num="337" type="stmt" count="0"/>
11465
+ <line num="338" type="stmt" count="0"/>
11466
+ <line num="339" type="stmt" count="0"/>
11467
+ <line num="341" type="stmt" count="0"/>
11468
+ <line num="342" type="stmt" count="0"/>
11469
+ <line num="343" type="stmt" count="0"/>
11470
+ <line num="344" type="stmt" count="0"/>
11471
+ <line num="346" type="stmt" count="0"/>
11472
+ <line num="347" type="stmt" count="0"/>
11473
+ <line num="348" type="stmt" count="0"/>
11474
+ <line num="349" type="stmt" count="0"/>
11475
+ <line num="350" type="stmt" count="0"/>
11476
+ <line num="351" type="stmt" count="0"/>
11477
+ <line num="352" type="stmt" count="0"/>
11478
+ <line num="353" type="stmt" count="0"/>
11479
+ <line num="354" type="stmt" count="0"/>
11480
+ <line num="355" type="stmt" count="0"/>
11481
+ <line num="356" type="stmt" count="0"/>
11482
+ <line num="357" type="stmt" count="0"/>
11483
+ <line num="358" type="stmt" count="0"/>
11484
+ <line num="359" type="stmt" count="0"/>
11485
+ <line num="360" type="stmt" count="0"/>
11486
+ <line num="361" type="stmt" count="0"/>
11487
+ <line num="362" type="stmt" count="0"/>
11488
+ <line num="363" type="stmt" count="0"/>
11489
+ <line num="364" type="stmt" count="0"/>
11490
+ <line num="365" type="stmt" count="0"/>
11491
+ <line num="366" type="stmt" count="0"/>
11492
+ <line num="367" type="stmt" count="0"/>
11493
+ <line num="368" type="stmt" count="0"/>
11494
+ <line num="369" type="stmt" count="0"/>
11495
+ <line num="371" type="stmt" count="0"/>
11496
+ <line num="372" type="stmt" count="0"/>
11497
+ <line num="374" type="stmt" count="0"/>
11498
+ <line num="375" type="stmt" count="0"/>
11499
+ <line num="376" type="stmt" count="0"/>
11500
+ <line num="377" type="stmt" count="0"/>
11501
+ <line num="378" type="stmt" count="0"/>
11502
+ <line num="379" type="stmt" count="0"/>
11503
+ <line num="380" type="stmt" count="0"/>
11504
+ <line num="381" type="stmt" count="0"/>
11505
+ <line num="382" type="stmt" count="0"/>
11506
+ <line num="383" type="stmt" count="0"/>
11507
+ <line num="385" type="stmt" count="0"/>
11508
+ <line num="386" type="stmt" count="0"/>
11509
+ <line num="389" type="stmt" count="0"/>
11510
+ <line num="390" type="stmt" count="0"/>
11511
+ <line num="392" type="stmt" count="0"/>
11512
+ <line num="393" type="stmt" count="0"/>
11513
+ <line num="394" type="stmt" count="0"/>
11514
+ <line num="395" type="stmt" count="0"/>
11515
+ <line num="396" type="stmt" count="0"/>
11516
+ <line num="397" type="stmt" count="0"/>
11517
+ <line num="398" type="stmt" count="0"/>
11518
+ <line num="399" type="stmt" count="0"/>
11519
+ <line num="400" type="stmt" count="0"/>
11520
+ <line num="401" type="stmt" count="0"/>
11521
+ <line num="402" type="stmt" count="0"/>
11522
+ <line num="403" type="stmt" count="0"/>
11523
+ <line num="404" type="stmt" count="0"/>
11524
+ <line num="405" type="stmt" count="0"/>
11525
+ <line num="406" type="stmt" count="0"/>
11526
+ <line num="407" type="stmt" count="0"/>
11527
+ <line num="408" type="stmt" count="0"/>
11528
+ <line num="409" type="stmt" count="0"/>
11529
+ <line num="411" type="stmt" count="0"/>
11530
+ <line num="413" type="stmt" count="0"/>
11531
+ <line num="414" type="stmt" count="0"/>
11532
+ <line num="416" type="stmt" count="0"/>
11533
+ <line num="418" type="stmt" count="0"/>
11534
+ <line num="419" type="stmt" count="0"/>
11535
+ <line num="420" type="stmt" count="0"/>
11536
+ <line num="421" type="stmt" count="0"/>
11537
+ <line num="422" type="stmt" count="0"/>
11538
+ <line num="423" type="stmt" count="0"/>
11539
+ <line num="426" type="stmt" count="0"/>
11540
+ <line num="434" type="stmt" count="0"/>
11541
+ <line num="435" type="stmt" count="0"/>
11542
+ <line num="436" type="stmt" count="0"/>
11543
+ <line num="437" type="stmt" count="0"/>
11544
+ <line num="438" type="stmt" count="0"/>
11545
+ <line num="439" type="stmt" count="0"/>
11546
+ <line num="440" type="stmt" count="0"/>
11547
+ <line num="441" type="stmt" count="0"/>
11548
+ <line num="442" type="stmt" count="0"/>
11549
+ <line num="443" type="stmt" count="0"/>
11550
+ <line num="444" type="stmt" count="0"/>
11551
+ <line num="445" type="stmt" count="0"/>
11552
+ <line num="446" type="stmt" count="0"/>
11553
+ <line num="447" type="stmt" count="0"/>
11554
+ <line num="448" type="stmt" count="0"/>
11555
+ <line num="449" type="stmt" count="0"/>
11556
+ <line num="450" type="stmt" count="0"/>
11557
+ <line num="451" type="stmt" count="0"/>
11558
+ <line num="453" type="stmt" count="0"/>
11559
+ <line num="454" type="stmt" count="0"/>
11560
+ <line num="455" type="stmt" count="0"/>
11561
+ <line num="456" type="stmt" count="0"/>
11562
+ <line num="458" type="stmt" count="0"/>
11563
+ <metrics loc="458" ncloc="376" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="347" coveredstatements="0" elements="347" coveredelements="0"/>
11564
  </file>
11565
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/backup-directory.php">
11566
  <line num="17" type="stmt" count="0"/>
11650
  <line num="76" type="stmt" count="0"/>
11651
  <line num="77" type="stmt" count="0"/>
11652
  <line num="78" type="stmt" count="0"/>
11653
+ <line num="79" type="stmt" count="0"/>
11654
  <line num="80" type="stmt" count="0"/>
11655
  <line num="81" type="stmt" count="0"/>
11656
+ <line num="82" type="stmt" count="0"/>
11657
  <line num="83" type="stmt" count="0"/>
11658
  <line num="85" type="stmt" count="0"/>
11659
  <line num="86" type="stmt" count="0"/>
11660
  <line num="88" type="stmt" count="0"/>
11661
+ <line num="90" type="stmt" count="0"/>
11662
  <line num="91" type="stmt" count="0"/>
 
11663
  <line num="93" type="stmt" count="0"/>
11664
  <line num="94" type="stmt" count="0"/>
11665
  <line num="96" type="stmt" count="0"/>
11666
  <line num="97" type="stmt" count="0"/>
11667
+ <line num="98" type="stmt" count="0"/>
11668
  <line num="99" type="stmt" count="0"/>
11669
  <line num="101" type="stmt" count="0"/>
11670
+ <line num="102" type="stmt" count="0"/>
11671
+ <line num="104" type="stmt" count="0"/>
11672
  <line num="106" type="stmt" count="0"/>
 
11673
  <line num="108" type="stmt" count="0"/>
 
11674
  <line num="110" type="stmt" count="0"/>
11675
  <line num="111" type="stmt" count="0"/>
11676
+ <line num="112" type="stmt" count="0"/>
11677
  <line num="113" type="stmt" count="0"/>
11678
+ <line num="114" type="stmt" count="0"/>
11679
  <line num="115" type="stmt" count="0"/>
11680
+ <line num="116" type="stmt" count="0"/>
11681
  <line num="118" type="stmt" count="0"/>
11682
+ <line num="120" type="stmt" count="0"/>
 
11683
  <line num="122" type="stmt" count="0"/>
11684
+ <line num="123" type="stmt" count="0"/>
11685
  <line num="124" type="stmt" count="0"/>
11686
+ <line num="126" type="stmt" count="0"/>
11687
+ <line num="127" type="stmt" count="0"/>
11688
+ <line num="129" type="stmt" count="0"/>
11689
+ <metrics loc="129" ncloc="103" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="0" elements="82" coveredelements="0"/>
11690
  </file>
11691
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/compressor.php">
11692
  <line num="18" type="stmt" count="0"/>
11719
  <line num="52" type="stmt" count="0"/>
11720
  <line num="53" type="stmt" count="0"/>
11721
  <line num="54" type="stmt" count="0"/>
11722
+ <line num="57" type="stmt" count="0"/>
11723
  <line num="58" type="stmt" count="0"/>
11724
  <line num="59" type="stmt" count="0"/>
11725
+ <line num="60" type="stmt" count="0"/>
11726
+ <line num="61" type="stmt" count="0"/>
11727
  <line num="62" type="stmt" count="0"/>
 
11728
  <line num="64" type="stmt" count="0"/>
11729
+ <line num="65" type="stmt" count="0"/>
11730
  <line num="66" type="stmt" count="0"/>
11731
+ <line num="67" type="stmt" count="0"/>
11732
  <line num="68" type="stmt" count="0"/>
11733
+ <line num="69" type="stmt" count="0"/>
11734
  <line num="70" type="stmt" count="0"/>
11735
  <line num="72" type="stmt" count="0"/>
11736
  <line num="73" type="stmt" count="0"/>
11737
+ <line num="74" type="stmt" count="0"/>
11738
  <line num="75" type="stmt" count="0"/>
11739
+ <line num="76" type="stmt" count="0"/>
11740
  <line num="77" type="stmt" count="0"/>
 
11741
  <line num="79" type="stmt" count="0"/>
 
11742
  <line num="81" type="stmt" count="0"/>
11743
+ <line num="82" type="stmt" count="0"/>
11744
  <line num="85" type="stmt" count="0"/>
11745
  <line num="86" type="stmt" count="0"/>
11746
+ <line num="87" type="stmt" count="0"/>
11747
+ <line num="89" type="stmt" count="0"/>
11748
+ <line num="91" type="stmt" count="0"/>
11749
+ <line num="93" type="stmt" count="0"/>
11750
+ <line num="95" type="stmt" count="0"/>
11751
+ <line num="96" type="stmt" count="0"/>
11752
+ <line num="98" type="stmt" count="0"/>
11753
+ <line num="99" type="stmt" count="0"/>
11754
+ <line num="101" type="stmt" count="0"/>
11755
+ <line num="103" type="stmt" count="0"/>
11756
+ <line num="104" type="stmt" count="0"/>
11757
+ <line num="105" type="stmt" count="0"/>
11758
+ <line num="107" type="stmt" count="0"/>
11759
+ <line num="109" type="stmt" count="0"/>
11760
+ <line num="110" type="stmt" count="0"/>
11761
+ <line num="111" type="stmt" count="0"/>
11762
+ <line num="112" type="stmt" count="0"/>
11763
+ <line num="113" type="stmt" count="0"/>
11764
+ <line num="116" type="stmt" count="0"/>
11765
+ <line num="117" type="stmt" count="0"/>
11766
+ <line num="118" type="stmt" count="0"/>
11767
+ <metrics loc="118" ncloc="94" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="75" coveredstatements="0" elements="75" coveredelements="0"/>
11768
  </file>
11769
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/connect-key.php">
11770
  <line num="17" type="stmt" count="0"/>
12695
  <line num="214" type="stmt" count="0"/>
12696
  <line num="215" type="stmt" count="0"/>
12697
  <line num="216" type="stmt" count="0"/>
12698
+ <line num="218" type="stmt" count="0"/>
12699
  <line num="219" type="stmt" count="0"/>
12700
  <line num="220" type="stmt" count="0"/>
12701
  <line num="221" type="stmt" count="0"/>
12702
  <line num="222" type="stmt" count="0"/>
12703
  <line num="223" type="stmt" count="0"/>
 
12704
  <line num="225" type="stmt" count="0"/>
12705
  <line num="226" type="stmt" count="0"/>
12706
+ <line num="228" type="stmt" count="0"/>
12707
+ <metrics loc="228" ncloc="187" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="181" coveredstatements="0" elements="181" coveredelements="0"/>
 
 
 
12708
  </file>
12709
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/tools/view-logs.php">
12710
  <line num="18" type="stmt" count="0"/>
12823
  <line num="86" type="stmt" count="0"/>
12824
  <line num="87" type="stmt" count="0"/>
12825
  <line num="88" type="stmt" count="0"/>
12826
+ <line num="89" type="stmt" count="0"/>
12827
  <line num="90" type="stmt" count="0"/>
 
12828
  <line num="92" type="stmt" count="0"/>
12829
  <line num="93" type="stmt" count="0"/>
12830
  <line num="94" type="stmt" count="0"/>
12838
  <line num="102" type="stmt" count="0"/>
12839
  <line num="103" type="stmt" count="0"/>
12840
  <line num="104" type="stmt" count="0"/>
12841
+ <line num="105" type="stmt" count="0"/>
12842
+ <line num="106" type="stmt" count="0"/>
12843
+ <metrics loc="106" ncloc="67" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="76" coveredstatements="0" elements="76" coveredelements="0"/>
12844
  </file>
12845
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/transfers/overview.php">
12846
  <line num="16" type="stmt" count="0"/>
12931
  <class name="Boldgrid_Backup_Admin_Ftp_Hooks" namespace="global" fullPackage="Boldgrid.Backup.Admin.Ftp">
12932
  <metrics complexity="31" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="2" elements="140" coveredelements="3"/>
12933
  </class>
12934
+ <line num="47" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
12935
+ <line num="48" type="stmt" count="29"/>
12936
+ <line num="49" type="stmt" count="29"/>
12937
  <line num="56" type="method" name="add_menu_items" visibility="public" complexity="1" crap="2" count="0"/>
12938
  <line num="57" type="stmt" count="0"/>
12939
  <line num="59" type="stmt" count="0"/>
13077
  <class name="Boldgrid_Backup_Admin_Ftp_Page" namespace="global" fullPackage="Boldgrid.Backup.Admin.Ftp">
13078
  <metrics complexity="21" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="116" coveredstatements="2" elements="121" coveredelements="3"/>
13079
  </class>
13080
+ <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
13081
+ <line num="40" type="stmt" count="29"/>
13082
+ <line num="41" type="stmt" count="29"/>
13083
  <line num="48" type="method" name="enqueue_scripts" visibility="public" complexity="2" crap="6" count="0"/>
13084
  <line num="49" type="stmt" count="0"/>
13085
  <line num="50" type="stmt" count="0"/>
13204
  <class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
13205
  <metrics complexity="135" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="475" coveredstatements="14" elements="497" coveredelements="16"/>
13206
  </class>
13207
+ <line num="247" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
13208
+ <line num="248" type="stmt" count="29"/>
13209
+ <line num="250" type="stmt" count="29"/>
13210
+ <line num="251" type="stmt" count="29"/>
13211
+ <line num="252" type="stmt" count="29"/>
13212
+ <line num="253" type="stmt" count="29"/>
13213
+ <line num="255" type="stmt" count="29"/>
13214
+ <line num="256" type="stmt" count="29"/>
13215
  <line num="263" type="method" name="connect" visibility="public" complexity="10" crap="110" count="0"/>
13216
  <line num="264" type="stmt" count="0"/>
13217
  <line num="265" type="stmt" count="0"/>
13652
  <line num="1049" type="stmt" count="0"/>
13653
  <line num="1050" type="stmt" count="0"/>
13654
  <line num="1051" type="stmt" count="0"/>
13655
+ <line num="1058" type="method" name="set_default_folder_name" visibility="public" complexity="1" crap="1" count="29"/>
13656
+ <line num="1059" type="stmt" count="29"/>
13657
+ <line num="1060" type="stmt" count="29"/>
13658
+ <line num="1061" type="stmt" count="29"/>
13659
+ <line num="1062" type="stmt" count="29"/>
13660
+ <line num="1063" type="stmt" count="29"/>
13661
+ <line num="1065" type="stmt" count="29"/>
13662
+ <line num="1066" type="stmt" count="29"/>
13663
  <line num="1075" type="method" name="set_pass" visibility="public" complexity="1" crap="2" count="0"/>
13664
  <line num="1076" type="stmt" count="0"/>
13665
  <line num="1077" type="stmt" count="0"/>
13711
  <class name="Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin.Remote">
13712
  <metrics complexity="17" methods="12" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="33" coveredstatements="21" elements="45" coveredelements="30"/>
13713
  </class>
13714
+ <line num="77" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
13715
+ <line num="78" type="stmt" count="29"/>
13716
+ <line num="79" type="stmt" count="29"/>
13717
  <line num="86" type="method" name="delete_settings" visibility="public" complexity="1" crap="2" count="0"/>
13718
  <line num="87" type="stmt" count="0"/>
13719
  <line num="88" type="stmt" count="0"/>
13762
  <class name="Boldgrid_Backup_Admin_Storage_Local" namespace="global" fullPackage="Boldgrid.Backup.Admin.Storage">
13763
  <metrics complexity="30" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="121" coveredstatements="2" elements="130" coveredelements="3"/>
13764
  </class>
13765
+ <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
13766
+ <line num="40" type="stmt" count="29"/>
13767
+ <line num="41" type="stmt" count="29"/>
13768
  <line num="55" type="method" name="delete_local" visibility="public" complexity="1" crap="2" count="0"/>
13769
  <line num="56" type="stmt" count="0"/>
13770
  <line num="76" type="method" name="post_archive_files" visibility="public" complexity="4" crap="20" count="0"/>
15108
  <class name="Boldgrid_Backup_Download" namespace="global" fullPackage="Boldgrid.Backup">
15109
  <metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="2" elements="14" coveredelements="3"/>
15110
  </class>
15111
+ <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
15112
+ <line num="38" type="stmt" count="29"/>
15113
+ <line num="39" type="stmt" count="29"/>
15114
  <line num="52" type="method" name="public_download" visibility="public" complexity="4" crap="20" count="0"/>
15115
  <line num="53" type="stmt" count="0"/>
15116
  <line num="54" type="stmt" count="0"/>
15215
  </file>
15216
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup.php">
15217
  <class name="Boldgrid_Backup" namespace="global" fullPackage="Boldgrid">
15218
+ <metrics complexity="16" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="281" coveredstatements="0" elements="289" coveredelements="0"/>
15219
  </class>
15220
  <line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
15221
  <line num="67" type="stmt" count="0"/>
15233
  <line num="118" type="stmt" count="0"/>
15234
  <line num="123" type="stmt" count="0"/>
15235
  <line num="128" type="stmt" count="0"/>
15236
+ <line num="130" type="stmt" count="0"/>
 
15237
  <line num="135" type="stmt" count="0"/>
15238
+ <line num="136" type="stmt" count="0"/>
15239
+ <line num="137" type="stmt" count="0"/>
15240
+ <line num="142" type="stmt" count="0"/>
15241
+ <line num="147" type="stmt" count="0"/>
15242
+ <line num="152" type="stmt" count="0"/>
15243
  <line num="157" type="stmt" count="0"/>
15244
  <line num="159" type="stmt" count="0"/>
15245
  <line num="161" type="stmt" count="0"/>
15246
  <line num="163" type="stmt" count="0"/>
 
15247
  <line num="165" type="stmt" count="0"/>
15248
  <line num="166" type="stmt" count="0"/>
15249
  <line num="167" type="stmt" count="0"/>
15250
  <line num="168" type="stmt" count="0"/>
15251
  <line num="169" type="stmt" count="0"/>
15252
+ <line num="170" type="stmt" count="0"/>
15253
  <line num="171" type="stmt" count="0"/>
 
15254
  <line num="173" type="stmt" count="0"/>
15255
  <line num="174" type="stmt" count="0"/>
15256
  <line num="175" type="stmt" count="0"/>
15257
+ <line num="176" type="stmt" count="0"/>
15258
  <line num="177" type="stmt" count="0"/>
15259
  <line num="179" type="stmt" count="0"/>
 
15260
  <line num="181" type="stmt" count="0"/>
15261
  <line num="182" type="stmt" count="0"/>
15262
  <line num="183" type="stmt" count="0"/>
15264
  <line num="185" type="stmt" count="0"/>
15265
  <line num="186" type="stmt" count="0"/>
15266
  <line num="187" type="stmt" count="0"/>
15267
+ <line num="188" type="stmt" count="0"/>
15268
  <line num="189" type="stmt" count="0"/>
15269
  <line num="191" type="stmt" count="0"/>
15270
  <line num="193" type="stmt" count="0"/>
15276
  <line num="205" type="stmt" count="0"/>
15277
  <line num="207" type="stmt" count="0"/>
15278
  <line num="209" type="stmt" count="0"/>
 
15279
  <line num="211" type="stmt" count="0"/>
15280
+ <line num="212" type="stmt" count="0"/>
15281
  <line num="213" type="stmt" count="0"/>
 
15282
  <line num="215" type="stmt" count="0"/>
15283
  <line num="216" type="stmt" count="0"/>
15284
+ <line num="217" type="stmt" count="0"/>
15285
  <line num="218" type="stmt" count="0"/>
15286
  <line num="220" type="stmt" count="0"/>
15287
+ <line num="222" type="stmt" count="0"/>
15288
  <line num="223" type="stmt" count="0"/>
15289
  <line num="225" type="stmt" count="0"/>
15290
  <line num="227" type="stmt" count="0"/>
 
15291
  <line num="229" type="stmt" count="0"/>
15292
+ <line num="230" type="stmt" count="0"/>
15293
  <line num="231" type="stmt" count="0"/>
15294
  <line num="233" type="stmt" count="0"/>
15295
  <line num="235" type="stmt" count="0"/>
15296
+ <line num="237" type="stmt" count="0"/>
 
15297
  <line num="240" type="stmt" count="0"/>
15298
  <line num="241" type="stmt" count="0"/>
15299
  <line num="242" type="stmt" count="0"/>
15300
  <line num="243" type="stmt" count="0"/>
15301
+ <line num="244" type="stmt" count="0"/>
15302
  <line num="245" type="stmt" count="0"/>
15303
+ <line num="247" type="stmt" count="0"/>
15304
+ <line num="250" type="stmt" count="0"/>
 
15305
  <line num="253" type="stmt" count="0"/>
15306
  <line num="254" type="stmt" count="0"/>
15307
  <line num="255" type="stmt" count="0"/>
15312
  <line num="260" type="stmt" count="0"/>
15313
  <line num="261" type="stmt" count="0"/>
15314
  <line num="262" type="stmt" count="0"/>
15315
+ <line num="263" type="stmt" count="0"/>
15316
+ <line num="264" type="stmt" count="0"/>
15317
  <line num="265" type="stmt" count="0"/>
 
 
15318
  <line num="268" type="stmt" count="0"/>
15319
  <line num="269" type="stmt" count="0"/>
15320
  <line num="270" type="stmt" count="0"/>
15321
+ <line num="271" type="stmt" count="0"/>
15322
  <line num="272" type="stmt" count="0"/>
15323
  <line num="273" type="stmt" count="0"/>
15324
  <line num="274" type="stmt" count="0"/>
15325
  <line num="276" type="stmt" count="0"/>
15326
  <line num="277" type="stmt" count="0"/>
15327
  <line num="278" type="stmt" count="0"/>
15328
+ <line num="280" type="stmt" count="0"/>
15329
  <line num="281" type="stmt" count="0"/>
15330
  <line num="282" type="stmt" count="0"/>
15331
+ <line num="283" type="stmt" count="0"/>
15332
  <line num="285" type="stmt" count="0"/>
15333
  <line num="286" type="stmt" count="0"/>
 
15334
  <line num="289" type="stmt" count="0"/>
15335
+ <line num="290" type="stmt" count="0"/>
15336
  <line num="291" type="stmt" count="0"/>
15337
+ <line num="293" type="stmt" count="0"/>
15338
  <line num="295" type="stmt" count="0"/>
15339
+ <line num="298" type="stmt" count="0"/>
15340
+ <line num="299" type="stmt" count="0"/>
15341
  <line num="301" type="stmt" count="0"/>
 
15342
  <line num="304" type="stmt" count="0"/>
15343
+ <line num="305" type="stmt" count="0"/>
15344
+ <line num="307" type="stmt" count="0"/>
15345
+ <line num="308" type="stmt" count="0"/>
15346
+ <line num="319" type="method" name="set_locale" visibility="private" complexity="1" crap="2" count="0"/>
15347
+ <line num="320" type="stmt" count="0"/>
15348
+ <line num="322" type="stmt" count="0"/>
15349
+ <line num="323" type="stmt" count="0"/>
15350
+ <line num="331" type="method" name="define_admin_hooks" visibility="private" complexity="5" crap="30" count="0"/>
15351
+ <line num="333" type="stmt" count="0"/>
15352
+ <line num="335" type="stmt" count="0"/>
15353
  <line num="338" type="stmt" count="0"/>
 
15354
  <line num="341" type="stmt" count="0"/>
15355
  <line num="342" type="stmt" count="0"/>
15356
  <line num="343" type="stmt" count="0"/>
15357
+ <line num="345" type="stmt" count="0"/>
15358
  <line num="346" type="stmt" count="0"/>
15359
  <line num="347" type="stmt" count="0"/>
15360
+ <line num="350" type="stmt" count="0"/>
15361
+ <line num="351" type="stmt" count="0"/>
15362
  <line num="352" type="stmt" count="0"/>
15363
  <line num="353" type="stmt" count="0"/>
15364
+ <line num="356" type="stmt" count="0"/>
 
15365
  <line num="357" type="stmt" count="0"/>
15366
  <line num="358" type="stmt" count="0"/>
15367
  <line num="359" type="stmt" count="0"/>
 
15368
  <line num="361" type="stmt" count="0"/>
15369
+ <line num="362" type="stmt" count="0"/>
15370
+ <line num="363" type="stmt" count="0"/>
15371
  <line num="364" type="stmt" count="0"/>
15372
  <line num="365" type="stmt" count="0"/>
15373
+ <line num="368" type="stmt" count="0"/>
15374
+ <line num="369" type="stmt" count="0"/>
15375
  <line num="370" type="stmt" count="0"/>
15376
  <line num="371" type="stmt" count="0"/>
15377
+ <line num="374" type="stmt" count="0"/>
15378
+ <line num="375" type="stmt" count="0"/>
15379
  <line num="376" type="stmt" count="0"/>
15380
  <line num="377" type="stmt" count="0"/>
15381
+ <line num="380" type="stmt" count="0"/>
15382
+ <line num="381" type="stmt" count="0"/>
15383
  <line num="382" type="stmt" count="0"/>
15384
  <line num="383" type="stmt" count="0"/>
15385
+ <line num="386" type="stmt" count="0"/>
15386
+ <line num="387" type="stmt" count="0"/>
15387
  <line num="388" type="stmt" count="0"/>
15388
  <line num="389" type="stmt" count="0"/>
15389
+ <line num="392" type="stmt" count="0"/>
15390
+ <line num="393" type="stmt" count="0"/>
15391
  <line num="394" type="stmt" count="0"/>
15392
  <line num="395" type="stmt" count="0"/>
15393
+ <line num="398" type="stmt" count="0"/>
 
15394
  <line num="399" type="stmt" count="0"/>
15395
  <line num="400" type="stmt" count="0"/>
15396
  <line num="401" type="stmt" count="0"/>
15397
+ <line num="403" type="stmt" count="0"/>
15398
  <line num="404" type="stmt" count="0"/>
15399
  <line num="405" type="stmt" count="0"/>
15400
+ <line num="408" type="stmt" count="0"/>
15401
+ <line num="409" type="stmt" count="0"/>
15402
  <line num="410" type="stmt" count="0"/>
15403
  <line num="411" type="stmt" count="0"/>
15404
+ <line num="414" type="stmt" count="0"/>
 
15405
  <line num="415" type="stmt" count="0"/>
15406
  <line num="416" type="stmt" count="0"/>
15407
  <line num="417" type="stmt" count="0"/>
 
15408
  <line num="419" type="stmt" count="0"/>
15409
  <line num="420" type="stmt" count="0"/>
15410
+ <line num="421" type="stmt" count="0"/>
15411
  <line num="422" type="stmt" count="0"/>
15412
+ <line num="423" type="stmt" count="0"/>
15413
  <line num="424" type="stmt" count="0"/>
15414
  <line num="426" type="stmt" count="0"/>
15415
  <line num="428" type="stmt" count="0"/>
 
15416
  <line num="430" type="stmt" count="0"/>
15417
  <line num="432" type="stmt" count="0"/>
15418
  <line num="433" type="stmt" count="0"/>
15419
+ <line num="434" type="stmt" count="0"/>
15420
+ <line num="436" type="stmt" count="0"/>
15421
  <line num="437" type="stmt" count="0"/>
15422
  <line num="439" type="stmt" count="0"/>
15423
  <line num="441" type="stmt" count="0"/>
15424
  <line num="443" type="stmt" count="0"/>
 
15425
  <line num="445" type="stmt" count="0"/>
15426
  <line num="447" type="stmt" count="0"/>
15427
+ <line num="448" type="stmt" count="0"/>
15428
  <line num="449" type="stmt" count="0"/>
 
15429
  <line num="451" type="stmt" count="0"/>
15430
+ <line num="453" type="stmt" count="0"/>
15431
  <line num="454" type="stmt" count="0"/>
15432
+ <line num="455" type="stmt" count="0"/>
15433
  <line num="456" type="stmt" count="0"/>
15434
  <line num="458" type="stmt" count="0"/>
15435
  <line num="460" type="stmt" count="0"/>
15436
  <line num="462" type="stmt" count="0"/>
15437
  <line num="464" type="stmt" count="0"/>
15438
+ <line num="466" type="stmt" count="0"/>
15439
+ <line num="468" type="stmt" count="0"/>
15440
  <line num="473" type="stmt" count="0"/>
15441
  <line num="475" type="stmt" count="0"/>
15442
  <line num="477" type="stmt" count="0"/>
15443
  <line num="479" type="stmt" count="0"/>
15444
  <line num="481" type="stmt" count="0"/>
15445
  <line num="483" type="stmt" count="0"/>
15446
+ <line num="485" type="stmt" count="0"/>
 
15447
  <line num="487" type="stmt" count="0"/>
15448
+ <line num="488" type="stmt" count="0"/>
15449
+ <line num="490" type="stmt" count="0"/>
15450
  <line num="491" type="stmt" count="0"/>
 
15451
  <line num="493" type="stmt" count="0"/>
15452
  <line num="495" type="stmt" count="0"/>
15453
+ <line num="496" type="stmt" count="0"/>
15454
  <line num="497" type="stmt" count="0"/>
15455
+ <line num="499" type="stmt" count="0"/>
15456
  <line num="501" type="stmt" count="0"/>
15457
  <line num="502" type="stmt" count="0"/>
15458
+ <line num="505" type="stmt" count="0"/>
15459
  <line num="506" type="stmt" count="0"/>
15460
  <line num="507" type="stmt" count="0"/>
15461
  <line num="510" type="stmt" count="0"/>
15462
+ <line num="511" type="stmt" count="0"/>
15463
+ <line num="514" type="stmt" count="0"/>
15464
+ <line num="517" type="stmt" count="0"/>
15465
+ <line num="520" type="stmt" count="0"/>
15466
  <line num="523" type="stmt" count="0"/>
15467
+ <line num="525" type="stmt" count="0"/>
15468
+ <line num="527" type="stmt" count="0"/>
15469
+ <line num="529" type="stmt" count="0"/>
 
15470
  <line num="531" type="stmt" count="0"/>
15471
+ <line num="533" type="stmt" count="0"/>
15472
+ <line num="535" type="stmt" count="0"/>
15473
+ <line num="536" type="stmt" count="0"/>
15474
  <line num="537" type="stmt" count="0"/>
15475
  <line num="538" type="stmt" count="0"/>
 
15476
  <line num="541" type="stmt" count="0"/>
 
 
15477
  <line num="544" type="stmt" count="0"/>
15478
+ <line num="545" type="stmt" count="0"/>
15479
  <line num="547" type="stmt" count="0"/>
 
15480
  <line num="549" type="stmt" count="0"/>
15481
+ <line num="550" type="stmt" count="0"/>
15482
+ <line num="551" type="stmt" count="0"/>
15483
  <line num="552" type="stmt" count="0"/>
15484
+ <line num="553" type="stmt" count="0"/>
15485
+ <line num="554" type="stmt" count="0"/>
15486
+ <line num="557" type="stmt" count="0"/>
15487
+ <line num="558" type="stmt" count="0"/>
15488
  <line num="559" type="stmt" count="0"/>
15489
+ <line num="562" type="stmt" count="0"/>
15490
+ <line num="569" type="stmt" count="0"/>
15491
+ <line num="570" type="stmt" count="0"/>
15492
+ <line num="571" type="stmt" count="0"/>
 
 
15493
  <line num="573" type="stmt" count="0"/>
15494
  <line num="574" type="stmt" count="0"/>
15495
+ <line num="576" type="stmt" count="0"/>
15496
+ <line num="577" type="stmt" count="0"/>
15497
+ <line num="584" type="method" name="run" visibility="public" complexity="1" crap="2" count="0"/>
15498
  <line num="585" type="stmt" count="0"/>
15499
+ <line num="586" type="stmt" count="0"/>
15500
+ <line num="595" type="method" name="get_plugin_name" visibility="public" complexity="1" crap="2" count="0"/>
15501
+ <line num="596" type="stmt" count="0"/>
15502
+ <line num="597" type="stmt" count="0"/>
15503
+ <line num="605" type="method" name="get_loader" visibility="public" complexity="1" crap="2" count="0"/>
15504
+ <line num="606" type="stmt" count="0"/>
15505
+ <line num="607" type="stmt" count="0"/>
15506
+ <line num="615" type="method" name="get_version" visibility="public" complexity="1" crap="2" count="0"/>
15507
+ <line num="616" type="stmt" count="0"/>
15508
+ <line num="617" type="stmt" count="0"/>
15509
+ <metrics loc="618" ncloc="380" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="281" coveredstatements="0" elements="289" coveredelements="0"/>
15510
  </file>
15511
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.cron.php">
15512
  <line num="17" type="stmt" count="0"/>
15574
  <line num="99" type="stmt" count="1"/>
15575
  <line num="100" type="stmt" count="1"/>
15576
  <line num="101" type="stmt" count="1"/>
 
15577
  <line num="103" type="stmt" count="1"/>
15578
+ <line num="104" type="stmt" count="1"/>
15579
+ <line num="105" type="stmt" count="1"/>
15580
+ <line num="106" type="stmt" count="1"/>
15581
+ <line num="107" type="stmt" count="1"/>
15582
+ <line num="108" type="stmt" count="1"/>
15583
+ <metrics loc="108" ncloc="60" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="41" elements="44" coveredelements="41"/>
15584
  </file>
15585
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.rating-prompt.php">
15586
  <line num="17" type="stmt" count="0"/>
69615
  <metrics loc="510" ncloc="285" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="215" coveredstatements="0" elements="218" coveredelements="0"/>
69616
  </file>
69617
  </package>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69618
  <package name="Boldgrid\Library\Library">
69619
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/class-license.php">
69620
+ <class name="License" namespace="Boldgrid\Library\Library">
69621
+ <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="1" coveredstatements="1" elements="2" coveredelements="2"/>
69622
+ </class>
69623
+ <line num="28" type="method" name="isPremium" visibility="public" complexity="1" crap="1" count="29"/>
69624
+ <line num="29" type="stmt" count="29"/>
69625
+ <metrics loc="31" ncloc="7" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="1" coveredstatements="1" elements="2" coveredelements="2"/>
69626
+ </file>
69627
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Activity.php">
69628
  <class name="Activity" namespace="Boldgrid\Library\Library">
69629
  <metrics complexity="19" methods="9" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="0" elements="59" coveredelements="0"/>
69714
  </file>
69715
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Configs.php">
69716
  <class name="Configs" namespace="Boldgrid\Library\Library">
69717
+ <metrics complexity="20" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="5" elements="50" coveredelements="5"/>
69718
  </class>
69719
  <line num="41" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
69720
  <line num="42" type="stmt" count="0"/>
69736
  <line num="82" type="stmt" count="0"/>
69737
  <line num="83" type="stmt" count="0"/>
69738
  <line num="85" type="stmt" count="0"/>
69739
+ <line num="97" type="method" name="get" visibility="public" complexity="3" crap="3.04" count="36"/>
69740
+ <line num="98" type="stmt" count="36"/>
69741
+ <line num="99" type="stmt" count="36"/>
69742
+ <line num="100" type="stmt" count="36"/>
69743
+ <line num="101" type="stmt" count="36"/>
69744
  <line num="102" type="stmt" count="0"/>
69745
+ <line num="105" type="stmt" count="36"/>
69746
  <line num="119" type="method" name="getFileSlug" visibility="public" complexity="1" crap="2" count="0"/>
69747
  <line num="120" type="stmt" count="0"/>
69748
  <line num="122" type="stmt" count="0"/>
69749
  <line num="133" type="method" name="getPlugins" visibility="public" complexity="7" crap="56" count="0"/>
69750
  <line num="134" type="stmt" count="0"/>
69751
  <line num="136" type="stmt" count="0"/>
69752
+ <line num="138" type="stmt" count="0"/>
69753
+ <line num="139" type="stmt" count="0"/>
69754
  <line num="140" type="stmt" count="0"/>
69755
  <line num="141" type="stmt" count="0"/>
 
69756
  <line num="143" type="stmt" count="0"/>
69757
+ <line num="144" type="stmt" count="0"/>
69758
  <line num="145" type="stmt" count="0"/>
69759
  <line num="146" type="stmt" count="0"/>
69760
  <line num="147" type="stmt" count="0"/>
 
69761
  <line num="149" type="stmt" count="0"/>
69762
+ <line num="150" type="stmt" count="0"/>
69763
  <line num="151" type="stmt" count="0"/>
 
69764
  <line num="153" type="stmt" count="0"/>
69765
  <line num="155" type="stmt" count="0"/>
69766
+ <line num="165" type="method" name="setItem" visibility="public" complexity="1" crap="2" count="0"/>
69767
+ <line num="166" type="stmt" count="0"/>
69768
+ <line num="167" type="stmt" count="0"/>
69769
+ <metrics loc="168" ncloc="81" classes="1" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="5" elements="50" coveredelements="5"/>
 
69770
  </file>
69771
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Dashboard.php">
69772
  <class name="Dashboard" namespace="Boldgrid\Library\Library">
70635
  <class name="Settings" namespace="Boldgrid\Library\Library">
70636
  <metrics complexity="6" methods="5" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="3" elements="14" coveredelements="5"/>
70637
  </class>
70638
+ <line num="35" type="method" name="get" visibility="public" complexity="1" crap="1" count="1"/>
70639
+ <line num="36" type="stmt" count="1"/>
70640
+ <line num="49" type="method" name="getKey" visibility="public" complexity="2" crap="2" count="1"/>
70641
+ <line num="50" type="stmt" count="1"/>
70642
+ <line num="52" type="stmt" count="1"/>
70643
  <line num="63" type="method" name="hasKey" visibility="public" complexity="1" crap="2" count="0"/>
70644
  <line num="64" type="stmt" count="0"/>
70645
  <line num="66" type="stmt" count="0"/>
70653
  </file>
70654
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Start.php">
70655
  <class name="Start" namespace="Boldgrid\Library\Library">
70656
+ <metrics complexity="13" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="0" elements="59" coveredelements="0"/>
70657
  </class>
70658
  <line num="56" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
70659
  <line num="57" type="stmt" count="0"/>
70679
  <line num="116" type="stmt" count="0"/>
70680
  <line num="119" type="stmt" count="0"/>
70681
  <line num="122" type="stmt" count="0"/>
70682
+ <line num="123" type="stmt" count="0"/>
70683
  <line num="126" type="stmt" count="0"/>
70684
  <line num="129" type="stmt" count="0"/>
70685
+ <line num="131" type="stmt" count="0"/>
70686
  <line num="132" type="stmt" count="0"/>
70687
  <line num="134" type="stmt" count="0"/>
70688
  <line num="135" type="stmt" count="0"/>
70689
+ <line num="136" type="stmt" count="0"/>
70690
  <line num="137" type="stmt" count="0"/>
70691
  <line num="138" type="stmt" count="0"/>
70692
  <line num="139" type="stmt" count="0"/>
70693
+ <line num="146" type="method" name="loadPluginTextdomain" visibility="private" complexity="1" crap="2" count="0"/>
70694
+ <line num="147" type="stmt" count="0"/>
70695
+ <line num="148" type="stmt" count="0"/>
70696
+ <line num="155" type="method" name="loadPluginInstaller" visibility="public" complexity="3" crap="12" count="0"/>
70697
+ <line num="156" type="stmt" count="0"/>
70698
+ <line num="157" type="stmt" count="0"/>
 
70699
  <line num="159" type="stmt" count="0"/>
70700
  <line num="160" type="stmt" count="0"/>
70701
+ <line num="161" type="stmt" count="0"/>
70702
  <line num="162" type="stmt" count="0"/>
70703
  <line num="163" type="stmt" count="0"/>
70704
  <line num="164" type="stmt" count="0"/>
70705
  <line num="165" type="stmt" count="0"/>
70706
  <line num="166" type="stmt" count="0"/>
70707
+ <line num="176" type="method" name="filterConfigs" visibility="public" complexity="2" crap="6" count="0"/>
70708
+ <line num="177" type="stmt" count="0"/>
70709
+ <line num="178" type="stmt" count="0"/>
70710
+ <line num="179" type="stmt" count="0"/>
70711
  <line num="180" type="stmt" count="0"/>
70712
  <line num="181" type="stmt" count="0"/>
70713
  <line num="182" type="stmt" count="0"/>
70714
  <line num="183" type="stmt" count="0"/>
 
70715
  <line num="185" type="stmt" count="0"/>
70716
  <line num="186" type="stmt" count="0"/>
70717
+ <metrics loc="187" ncloc="88" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="0" elements="59" coveredelements="0"/>
 
 
70718
  </file>
70719
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui.php">
70720
  <class name="Ui" namespace="Boldgrid\Library\Library">
70801
  <line num="196" type="stmt" count="0"/>
70802
  <metrics loc="197" ncloc="103" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="76" coveredstatements="0" elements="79" coveredelements="0"/>
70803
  </file>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70804
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Usage.php">
70805
  <class name="Usage" namespace="Boldgrid\Library\Library">
70806
  <metrics complexity="14" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="48" coveredstatements="0" elements="54" coveredelements="0"/>
70862
  <metrics loc="166" ncloc="83" classes="1" methods="6" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="48" coveredstatements="0" elements="54" coveredelements="0"/>
70863
  </file>
70864
  </package>
70865
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/remote/test-class-boldgrid-backup-admin-remote-settings.php">
70866
+ <class name="Test_Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Remote">
70867
+ <metrics complexity="9" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="43" coveredstatements="43" elements="52" coveredelements="52"/>
70868
+ </class>
70869
+ <line num="49" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="8"/>
70870
+ <line num="50" type="stmt" count="8"/>
70871
+ <line num="52" type="stmt" count="8"/>
70872
+ <line num="54" type="stmt" count="8"/>
70873
+ <line num="55" type="stmt" count="8"/>
70874
+ <line num="62" type="method" name="test_get_last_login" visibility="public" complexity="1" crap="1" count="1"/>
70875
+ <line num="63" type="stmt" count="1"/>
70876
+ <line num="65" type="stmt" count="1"/>
70877
+ <line num="67" type="stmt" count="1"/>
70878
+ <line num="68" type="stmt" count="1"/>
70879
+ <line num="75" type="method" name="test_get_option" visibility="public" complexity="1" crap="1" count="1"/>
70880
+ <line num="76" type="stmt" count="1"/>
70881
+ <line num="78" type="stmt" count="1"/>
70882
+ <line num="79" type="stmt" count="1"/>
70883
+ <line num="86" type="method" name="test_get_setting" visibility="public" complexity="1" crap="1" count="1"/>
70884
+ <line num="87" type="stmt" count="1"/>
70885
+ <line num="89" type="stmt" count="1"/>
70886
+ <line num="90" type="stmt" count="1"/>
70887
+ <line num="97" type="method" name="test_get_settings" visibility="public" complexity="1" crap="1" count="1"/>
70888
+ <line num="98" type="stmt" count="1"/>
70889
+ <line num="100" type="stmt" count="1"/>
70890
+ <line num="101" type="stmt" count="1"/>
70891
+ <line num="108" type="method" name="test_is_last_login_valid" visibility="public" complexity="1" crap="1" count="1"/>
70892
+ <line num="109" type="stmt" count="1"/>
70893
+ <line num="112" type="stmt" count="1"/>
70894
+ <line num="113" type="stmt" count="1"/>
70895
+ <line num="116" type="stmt" count="1"/>
70896
+ <line num="117" type="stmt" count="1"/>
70897
+ <line num="120" type="stmt" count="1"/>
70898
+ <line num="121" type="stmt" count="1"/>
70899
+ <line num="124" type="stmt" count="1"/>
70900
+ <line num="125" type="stmt" count="1"/>
70901
+ <line num="126" type="stmt" count="1"/>
70902
+ <line num="133" type="method" name="test_save_setting" visibility="public" complexity="1" crap="1" count="1"/>
70903
+ <line num="134" type="stmt" count="1"/>
70904
+ <line num="135" type="stmt" count="1"/>
70905
+ <line num="137" type="stmt" count="1"/>
70906
+ <line num="139" type="stmt" count="1"/>
70907
+ <line num="140" type="stmt" count="1"/>
70908
+ <line num="147" type="method" name="test_save_settings" visibility="public" complexity="1" crap="1" count="1"/>
70909
+ <line num="149" type="stmt" count="1"/>
70910
+ <line num="150" type="stmt" count="1"/>
70911
+ <line num="151" type="stmt" count="1"/>
70912
+ <line num="153" type="stmt" count="1"/>
70913
+ <line num="155" type="stmt" count="1"/>
70914
+ <line num="156" type="stmt" count="1"/>
70915
+ <line num="163" type="method" name="test_set_last_login" visibility="public" complexity="1" crap="1" count="1"/>
70916
+ <line num="164" type="stmt" count="1"/>
70917
+ <line num="166" type="stmt" count="1"/>
70918
+ <line num="168" type="stmt" count="1"/>
70919
+ <line num="170" type="stmt" count="1"/>
70920
+ <line num="171" type="stmt" count="1"/>
70921
+ <metrics loc="172" ncloc="92" classes="1" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="43" coveredstatements="43" elements="52" coveredelements="52"/>
70922
+ </file>
70923
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-ajax.php">
70924
+ <class name="Test_Boldgrid_Backup_Admin_Ajax" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
70925
+ <metrics complexity="5" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="33" coveredstatements="0" elements="36" coveredelements="0"/>
70926
+ </class>
70927
+ <line num="30" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
70928
+ <line num="31" type="stmt" count="0"/>
70929
+ <line num="33" type="stmt" count="0"/>
70930
+ <line num="34" type="stmt" count="0"/>
70931
+ <line num="36" type="stmt" count="0"/>
70932
+ <line num="37" type="stmt" count="0"/>
70933
+ <line num="44" type="method" name="test_wp_ajax_cli_cancel_success" visibility="public" complexity="2" crap="6" count="0"/>
70934
+ <line num="45" type="stmt" count="0"/>
70935
+ <line num="46" type="stmt" count="0"/>
70936
+ <line num="48" type="stmt" count="0"/>
70937
+ <line num="51" type="stmt" count="0"/>
70938
+ <line num="52" type="stmt" count="0"/>
70939
+ <line num="54" type="stmt" count="0"/>
70940
+ <line num="58" type="stmt" count="0"/>
70941
+ <line num="60" type="stmt" count="0"/>
70942
+ <line num="62" type="stmt" count="0"/>
70943
+ <line num="63" type="stmt" count="0"/>
70944
+ <line num="64" type="stmt" count="0"/>
70945
+ <line num="65" type="stmt" count="0"/>
70946
+ <line num="66" type="stmt" count="0"/>
70947
+ <line num="67" type="stmt" count="0"/>
70948
+ <line num="74" type="method" name="test_wp_ajax_cli_cancel_failure" visibility="public" complexity="2" crap="6" count="0"/>
70949
+ <line num="75" type="stmt" count="0"/>
70950
+ <line num="76" type="stmt" count="0"/>
70951
+ <line num="78" type="stmt" count="0"/>
70952
+ <line num="81" type="stmt" count="0"/>
70953
+ <line num="82" type="stmt" count="0"/>
70954
+ <line num="84" type="stmt" count="0"/>
70955
+ <line num="91" type="stmt" count="0"/>
70956
+ <line num="93" type="stmt" count="0"/>
70957
+ <line num="95" type="stmt" count="0"/>
70958
+ <line num="96" type="stmt" count="0"/>
70959
+ <line num="97" type="stmt" count="0"/>
70960
+ <line num="98" type="stmt" count="0"/>
70961
+ <line num="99" type="stmt" count="0"/>
70962
+ <line num="100" type="stmt" count="0"/>
70963
+ <metrics loc="101" ncloc="31" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="33" coveredstatements="0" elements="36" coveredelements="0"/>
70964
+ </file>
70965
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-archive.php">
70966
+ <class name="Test_Boldgrid_Backup_Admin_Archive" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
70967
+ <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="4" elements="5" coveredelements="5"/>
70968
+ </class>
70969
+ <line num="26" type="method" name="test_init_by_key" visibility="public" complexity="1" crap="1" count="1"/>
70970
+ <line num="27" type="stmt" count="1"/>
70971
+ <line num="41" type="stmt" count="1"/>
70972
+ <line num="42" type="stmt" count="1"/>
70973
+ <line num="43" type="stmt" count="1"/>
70974
+ <metrics loc="44" ncloc="9" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="4" elements="5" coveredelements="5"/>
70975
+ </file>
70976
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-auto-rollback.php">
70977
+ <class name="Test_Boldgrid_Backup_Auto_Rollback" namespace="global" fullPackage="Test.Boldgrid.Backup.Auto">
70978
+ <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="10" elements="11" coveredelements="11"/>
70979
+ </class>
70980
+ <line num="26" type="method" name="test_get_time_data" visibility="public" complexity="1" crap="1" count="1"/>
70981
+ <line num="27" type="stmt" count="1"/>
70982
+ <line num="29" type="stmt" count="1"/>
70983
+ <line num="31" type="stmt" count="1"/>
70984
+ <line num="32" type="stmt" count="1"/>
70985
+ <line num="33" type="stmt" count="1"/>
70986
+ <line num="34" type="stmt" count="1"/>
70987
+ <line num="37" type="stmt" count="1"/>
70988
+ <line num="38" type="stmt" count="1"/>
70989
+ <line num="39" type="stmt" count="1"/>
70990
+ <line num="40" type="stmt" count="1"/>
70991
+ <metrics loc="41" ncloc="17" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="10" elements="11" coveredelements="11"/>
70992
+ </file>
70993
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-auto-updates.php">
70994
+ <class name="Test_Boldgrid_Backup_Admin_Auto_Updates" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Auto">
70995
+ <metrics complexity="19" methods="10" coveredmethods="10" conditionals="0" coveredconditionals="0" statements="182" coveredstatements="182" elements="192" coveredelements="192"/>
70996
+ </class>
70997
+ <line num="50" type="method" name="install_plugin" visibility="public" complexity="5" crap="5" count="2"/>
70998
+ <line num="51" type="stmt" count="2"/>
70999
+ <line num="52" type="stmt" count="2"/>
71000
+ <line num="53" type="stmt" count="2"/>
71001
+ <line num="54" type="stmt" count="2"/>
71002
+ <line num="56" type="stmt" count="2"/>
71003
+ <line num="57" type="stmt" count="2"/>
71004
+ <line num="59" type="stmt" count="2"/>
71005
+ <line num="61" type="stmt" count="2"/>
71006
+ <line num="62" type="stmt" count="2"/>
71007
+ <line num="63" type="stmt" count="2"/>
71008
+ <line num="65" type="stmt" count="2"/>
71009
+ <line num="66" type="stmt" count="2"/>
71010
+ <line num="68" type="stmt" count="2"/>
71011
+ <line num="69" type="stmt" count="2"/>
71012
+ <line num="70" type="stmt" count="2"/>
71013
+ <line num="71" type="stmt" count="2"/>
71014
+ <line num="72" type="stmt" count="2"/>
71015
+ <line num="73" type="stmt" count="2"/>
71016
+ <line num="74" type="stmt" count="2"/>
71017
+ <line num="82" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="7"/>
71018
+ <line num="83" type="stmt" count="7"/>
71019
+ <line num="85" type="stmt" count="7"/>
71020
+ <line num="86" type="stmt" count="7"/>
71021
+ <line num="88" type="stmt" count="7"/>
71022
+ <line num="89" type="stmt" count="7"/>
71023
+ <line num="90" type="stmt" count="7"/>
71024
+ <line num="91" type="stmt" count="7"/>
71025
+ <line num="92" type="stmt" count="7"/>
71026
+ <line num="93" type="stmt" count="7"/>
71027
+ <line num="95" type="stmt" count="7"/>
71028
+ <line num="96" type="stmt" count="7"/>
71029
+ <line num="98" type="stmt" count="7"/>
71030
+ <line num="99" type="stmt" count="7"/>
71031
+ <line num="100" type="stmt" count="7"/>
71032
+ <line num="102" type="stmt" count="7"/>
71033
+ <line num="109" type="method" name="test_constructor" visibility="public" complexity="1" crap="1" count="1"/>
71034
+ <line num="111" type="stmt" count="1"/>
71035
+ <line num="112" type="stmt" count="1"/>
71036
+ <line num="113" type="stmt" count="1"/>
71037
+ <line num="119" type="method" name="test_set_settings" visibility="public" complexity="1" crap="1" count="1"/>
71038
+ <line num="120" type="stmt" count="1"/>
71039
+ <line num="123" type="stmt" count="1"/>
71040
+ <line num="124" type="stmt" count="1"/>
71041
+ <line num="125" type="stmt" count="1"/>
71042
+ <line num="126" type="stmt" count="1"/>
71043
+ <line num="133" type="method" name="test_maybe_update_plugin" visibility="public" complexity="1" crap="1" count="1"/>
71044
+ <line num="134" type="stmt" count="1"/>
71045
+ <line num="135" type="stmt" count="1"/>
71046
+ <line num="138" type="stmt" count="1"/>
71047
+ <line num="139" type="stmt" count="1"/>
71048
+ <line num="140" type="stmt" count="1"/>
71049
+ <line num="141" type="stmt" count="1"/>
71050
+ <line num="144" type="stmt" count="1"/>
71051
+ <line num="145" type="stmt" count="1"/>
71052
+ <line num="146" type="stmt" count="1"/>
71053
+ <line num="147" type="stmt" count="1"/>
71054
+ <line num="150" type="stmt" count="1"/>
71055
+ <line num="151" type="stmt" count="1"/>
71056
+ <line num="152" type="stmt" count="1"/>
71057
+ <line num="154" type="stmt" count="1"/>
71058
+ <line num="155" type="stmt" count="1"/>
71059
+ <line num="156" type="stmt" count="1"/>
71060
+ <line num="157" type="stmt" count="1"/>
71061
+ <line num="160" type="stmt" count="1"/>
71062
+ <line num="161" type="stmt" count="1"/>
71063
+ <line num="162" type="stmt" count="1"/>
71064
+ <line num="163" type="stmt" count="1"/>
71065
+ <line num="164" type="stmt" count="1"/>
71066
+ <line num="165" type="stmt" count="1"/>
71067
+ <line num="169" type="stmt" count="1"/>
71068
+ <line num="170" type="stmt" count="1"/>
71069
+ <line num="171" type="stmt" count="1"/>
71070
+ <line num="172" type="stmt" count="1"/>
71071
+ <line num="173" type="stmt" count="1"/>
71072
+ <line num="174" type="stmt" count="1"/>
71073
+ <line num="177" type="stmt" count="1"/>
71074
+ <line num="178" type="stmt" count="1"/>
71075
+ <line num="179" type="stmt" count="1"/>
71076
+ <line num="180" type="stmt" count="1"/>
71077
+ <line num="181" type="stmt" count="1"/>
71078
+ <line num="182" type="stmt" count="1"/>
71079
+ <line num="189" type="method" name="test_maybe_update_theme" visibility="public" complexity="1" crap="1" count="1"/>
71080
+ <line num="191" type="stmt" count="1"/>
71081
+ <line num="192" type="stmt" count="1"/>
71082
+ <line num="193" type="stmt" count="1"/>
71083
+ <line num="194" type="stmt" count="1"/>
71084
+ <line num="197" type="stmt" count="1"/>
71085
+ <line num="198" type="stmt" count="1"/>
71086
+ <line num="199" type="stmt" count="1"/>
71087
+ <line num="200" type="stmt" count="1"/>
71088
+ <line num="203" type="stmt" count="1"/>
71089
+ <line num="204" type="stmt" count="1"/>
71090
+ <line num="205" type="stmt" count="1"/>
71091
+ <line num="206" type="stmt" count="1"/>
71092
+ <line num="208" type="stmt" count="1"/>
71093
+ <line num="209" type="stmt" count="1"/>
71094
+ <line num="210" type="stmt" count="1"/>
71095
+ <line num="211" type="stmt" count="1"/>
71096
+ <line num="214" type="stmt" count="1"/>
71097
+ <line num="215" type="stmt" count="1"/>
71098
+ <line num="216" type="stmt" count="1"/>
71099
+ <line num="217" type="stmt" count="1"/>
71100
+ <line num="218" type="stmt" count="1"/>
71101
+ <line num="219" type="stmt" count="1"/>
71102
+ <line num="222" type="stmt" count="1"/>
71103
+ <line num="223" type="stmt" count="1"/>
71104
+ <line num="224" type="stmt" count="1"/>
71105
+ <line num="225" type="stmt" count="1"/>
71106
+ <line num="226" type="stmt" count="1"/>
71107
+ <line num="227" type="stmt" count="1"/>
71108
+ <line num="230" type="stmt" count="1"/>
71109
+ <line num="231" type="stmt" count="1"/>
71110
+ <line num="232" type="stmt" count="1"/>
71111
+ <line num="233" type="stmt" count="1"/>
71112
+ <line num="234" type="stmt" count="1"/>
71113
+ <line num="235" type="stmt" count="1"/>
71114
+ <line num="242" type="method" name="test_auto_update_plugins" visibility="public" complexity="1" crap="1" count="1"/>
71115
+ <line num="243" type="stmt" count="1"/>
71116
+ <line num="244" type="stmt" count="1"/>
71117
+ <line num="246" type="stmt" count="1"/>
71118
+ <line num="247" type="stmt" count="1"/>
71119
+ <line num="248" type="stmt" count="1"/>
71120
+ <line num="249" type="stmt" count="1"/>
71121
+ <line num="250" type="stmt" count="1"/>
71122
+ <line num="251" type="stmt" count="1"/>
71123
+ <line num="252" type="stmt" count="1"/>
71124
+ <line num="253" type="stmt" count="1"/>
71125
+ <line num="260" type="method" name="test_auto_update_themes" visibility="public" complexity="5" crap="5" count="1"/>
71126
+ <line num="261" type="stmt" count="1"/>
71127
+ <line num="262" type="stmt" count="1"/>
71128
+ <line num="263" type="stmt" count="1"/>
71129
+ <line num="264" type="stmt" count="1"/>
71130
+ <line num="265" type="stmt" count="1"/>
71131
+ <line num="266" type="stmt" count="1"/>
71132
+ <line num="267" type="stmt" count="1"/>
71133
+ <line num="268" type="stmt" count="1"/>
71134
+ <line num="269" type="stmt" count="1"/>
71135
+ <line num="270" type="stmt" count="1"/>
71136
+ <line num="271" type="stmt" count="1"/>
71137
+ <line num="273" type="stmt" count="1"/>
71138
+ <line num="274" type="stmt" count="1"/>
71139
+ <line num="275" type="stmt" count="1"/>
71140
+ <line num="276" type="stmt" count="1"/>
71141
+ <line num="277" type="stmt" count="1"/>
71142
+ <line num="278" type="stmt" count="1"/>
71143
+ <line num="279" type="stmt" count="1"/>
71144
+ <line num="280" type="stmt" count="1"/>
71145
+ <line num="281" type="stmt" count="1"/>
71146
+ <line num="282" type="stmt" count="1"/>
71147
+ <line num="283" type="stmt" count="1"/>
71148
+ <line num="284" type="stmt" count="1"/>
71149
+ <line num="291" type="method" name="test_auto_update_core" visibility="public" complexity="1" crap="1" count="1"/>
71150
+ <line num="292" type="stmt" count="1"/>
71151
+ <line num="293" type="stmt" count="1"/>
71152
+ <line num="294" type="stmt" count="1"/>
71153
+ <line num="296" type="stmt" count="1"/>
71154
+ <line num="299" type="stmt" count="1"/>
71155
+ <line num="302" type="stmt" count="1"/>
71156
+ <line num="305" type="stmt" count="1"/>
71157
+ <line num="306" type="stmt" count="1"/>
71158
+ <line num="316" type="method" name="apply_wpcore_filters" visibility="public" complexity="2" crap="2" count="1"/>
71159
+ <line num="317" type="stmt" count="1"/>
71160
+ <line num="318" type="stmt" count="1"/>
71161
+ <line num="321" type="stmt" count="1"/>
71162
+ <line num="322" type="stmt" count="1"/>
71163
+ <line num="323" type="stmt" count="1"/>
71164
+ <line num="324" type="stmt" count="1"/>
71165
+ <line num="326" type="stmt" count="1"/>
71166
+ <line num="327" type="stmt" count="1"/>
71167
+ <line num="328" type="stmt" count="1"/>
71168
+ <line num="329" type="stmt" count="1"/>
71169
+ <line num="330" type="stmt" count="1"/>
71170
+ <line num="331" type="stmt" count="1"/>
71171
+ <line num="332" type="stmt" count="1"/>
71172
+ <line num="334" type="stmt" count="1"/>
71173
+ <line num="335" type="stmt" count="1"/>
71174
+ <line num="336" type="stmt" count="1"/>
71175
+ <line num="337" type="stmt" count="1"/>
71176
+ <line num="338" type="stmt" count="1"/>
71177
+ <line num="339" type="stmt" count="1"/>
71178
+ <line num="342" type="stmt" count="1"/>
71179
+ <line num="343" type="stmt" count="1"/>
71180
+ <line num="345" type="stmt" count="1"/>
71181
+ <line num="346" type="stmt" count="1"/>
71182
+ <line num="348" type="stmt" count="1"/>
71183
+ <line num="349" type="stmt" count="1"/>
71184
+ <line num="350" type="stmt" count="1"/>
71185
+ <line num="351" type="stmt" count="1"/>
71186
+ <line num="352" type="stmt" count="1"/>
71187
+ <line num="353" type="stmt" count="1"/>
71188
+ <line num="354" type="stmt" count="1"/>
71189
+ <metrics loc="355" ncloc="231" classes="1" methods="10" coveredmethods="10" conditionals="0" coveredconditionals="0" statements="182" coveredstatements="182" elements="192" coveredelements="192"/>
71190
+ </file>
71191
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-compressor.php">
71192
+ <class name="Test_Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
71193
+ <metrics complexity="10" methods="5" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="58" coveredstatements="58" elements="63" coveredelements="63"/>
71194
+ </class>
71195
+ <line num="32" type="method" name="setUp" visibility="public" complexity="2" crap="2" count="4"/>
71196
+ <line num="33" type="stmt" count="4"/>
71197
+ <line num="34" type="stmt" count="1"/>
71198
+ <line num="35" type="stmt" count="1"/>
71199
+ <line num="37" type="stmt" count="4"/>
71200
+ <line num="39" type="stmt" count="4"/>
71201
+ <line num="41" type="stmt" count="4"/>
71202
+ <line num="43" type="stmt" count="4"/>
71203
+ <line num="44" type="stmt" count="4"/>
71204
+ <line num="51" type="method" name="test_archive_files" visibility="public" complexity="4" crap="4" count="1"/>
71205
+ <line num="53" type="stmt" count="1"/>
71206
+ <line num="54" type="stmt" count="1"/>
71207
+ <line num="55" type="stmt" count="1"/>
71208
+ <line num="56" type="stmt" count="1"/>
71209
+ <line num="59" type="stmt" count="1"/>
71210
+ <line num="60" type="stmt" count="1"/>
71211
+ <line num="62" type="stmt" count="1"/>
71212
+ <line num="65" type="stmt" count="1"/>
71213
+ <line num="66" type="stmt" count="1"/>
71214
+ <line num="69" type="stmt" count="1"/>
71215
+ <line num="70" type="stmt" count="1"/>
71216
+ <line num="80" type="stmt" count="1"/>
71217
+ <line num="81" type="stmt" count="1"/>
71218
+ <line num="82" type="stmt" count="1"/>
71219
+ <line num="85" type="stmt" count="1"/>
71220
+ <line num="88" type="stmt" count="1"/>
71221
+ <line num="91" type="stmt" count="1"/>
71222
+ <line num="94" type="stmt" count="1"/>
71223
+ <line num="95" type="stmt" count="1"/>
71224
+ <line num="107" type="stmt" count="1"/>
71225
+ <line num="108" type="stmt" count="1"/>
71226
+ <line num="109" type="stmt" count="1"/>
71227
+ <line num="112" type="stmt" count="1"/>
71228
+ <line num="113" type="stmt" count="1"/>
71229
+ <line num="114" type="stmt" count="1"/>
71230
+ <line num="121" type="stmt" count="1"/>
71231
+ <line num="122" type="stmt" count="1"/>
71232
+ <line num="123" type="stmt" count="1"/>
71233
+ <line num="125" type="stmt" count="1"/>
71234
+ <line num="127" type="stmt" count="1"/>
71235
+ <line num="128" type="stmt" count="1"/>
71236
+ <line num="129" type="stmt" count="1"/>
71237
+ <line num="130" type="stmt" count="1"/>
71238
+ <line num="137" type="method" name="test_is_available" visibility="public" complexity="1" crap="1" count="1"/>
71239
+ <line num="138" type="stmt" count="1"/>
71240
+ <line num="140" type="stmt" count="1"/>
71241
+ <line num="142" type="stmt" count="1"/>
71242
+ <line num="143" type="stmt" count="1"/>
71243
+ <line num="150" type="method" name="test_is_default" visibility="public" complexity="2" crap="2" count="1"/>
71244
+ <line num="152" type="stmt" count="1"/>
71245
+ <line num="155" type="stmt" count="1"/>
71246
+ <line num="156" type="stmt" count="1"/>
71247
+ <line num="163" type="method" name="test_is_saved_compressor" visibility="public" complexity="1" crap="1" count="1"/>
71248
+ <line num="165" type="stmt" count="1"/>
71249
+ <line num="166" type="stmt" count="1"/>
71250
+ <line num="167" type="stmt" count="1"/>
71251
+ <line num="168" type="stmt" count="1"/>
71252
+ <line num="171" type="stmt" count="1"/>
71253
+ <line num="172" type="stmt" count="1"/>
71254
+ <line num="173" type="stmt" count="1"/>
71255
+ <line num="174" type="stmt" count="1"/>
71256
+ <line num="175" type="stmt" count="1"/>
71257
+ <line num="176" type="stmt" count="1"/>
71258
+ <metrics loc="177" ncloc="70" classes="1" methods="5" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="58" coveredstatements="58" elements="63" coveredelements="63"/>
71259
+ </file>
71260
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-core.php">
71261
+ <class name="Test_Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
71262
+ <metrics complexity="23" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="118" coveredstatements="115" elements="127" coveredelements="123"/>
71263
+ </class>
71264
+ <line num="41" type="method" name="assertDirNotEmpty" visibility="public" complexity="5" crap="5" count="1"/>
71265
+ <line num="42" type="stmt" count="1"/>
71266
+ <line num="43" type="stmt" count="1"/>
71267
+ <line num="44" type="stmt" count="1"/>
71268
+ <line num="45" type="stmt" count="1"/>
71269
+ <line num="47" type="stmt" count="1"/>
71270
+ <line num="48" type="stmt" count="1"/>
71271
+ <line num="49" type="stmt" count="1"/>
71272
+ <line num="50" type="stmt" count="1"/>
71273
+ <line num="51" type="stmt" count="1"/>
71274
+ <line num="52" type="stmt" count="1"/>
71275
+ <line num="54" type="stmt" count="1"/>
71276
+ <line num="66" type="stmt" count="1"/>
71277
+ <line num="67" type="stmt" count="1"/>
71278
+ <line num="110" type="method" name="dropTable" visibility="public" complexity="1" crap="1" count="2"/>
71279
+ <line num="111" type="stmt" count="2"/>
71280
+ <line num="113" type="stmt" count="2"/>
71281
+ <line num="114" type="stmt" count="2"/>
71282
+ <line num="124" type="method" name="createWpconfig" visibility="public" complexity="1" crap="1" count="1"/>
71283
+ <line num="126" type="stmt" count="1"/>
71284
+ <line num="127" type="stmt" count="1"/>
71285
+ <line num="128" type="stmt" count="1"/>
71286
+ <line num="129" type="stmt" count="1"/>
71287
+ <line num="130" type="stmt" count="1"/>
71288
+ <line num="132" type="stmt" count="1"/>
71289
+ <line num="134" type="stmt" count="1"/>
71290
+ <line num="135" type="stmt" count="1"/>
71291
+ <line num="148" type="method" name="deleteBasic" visibility="public" complexity="7" crap="7" count="2"/>
71292
+ <line num="149" type="stmt" count="2"/>
71293
+ <line num="152" type="stmt" count="2"/>
71294
+ <line num="153" type="stmt" count="2"/>
71295
+ <line num="154" type="stmt" count="2"/>
71296
+ <line num="155" type="stmt" count="2"/>
71297
+ <line num="158" type="stmt" count="2"/>
71298
+ <line num="159" type="stmt" count="2"/>
71299
+ <line num="160" type="stmt" count="2"/>
71300
+ <line num="163" type="stmt" count="2"/>
71301
+ <line num="164" type="stmt" count="2"/>
71302
+ <line num="165" type="stmt" count="2"/>
71303
+ <line num="166" type="stmt" count="2"/>
71304
+ <line num="167" type="stmt" count="2"/>
71305
+ <line num="168" type="stmt" count="2"/>
71306
+ <line num="170" type="stmt" count="2"/>
71307
+ <line num="171" type="stmt" count="2"/>
71308
+ <line num="172" type="stmt" count="2"/>
71309
+ <line num="174" type="stmt" count="2"/>
71310
+ <line num="176" type="stmt" count="2"/>
71311
+ <line num="177" type="stmt" count="2"/>
71312
+ <line num="178" type="stmt" count="2"/>
71313
+ <line num="181" type="stmt" count="2"/>
71314
+ <line num="182" type="stmt" count="2"/>
71315
+ <line num="183" type="stmt" count="2"/>
71316
+ <line num="184" type="stmt" count="2"/>
71317
+ <line num="186" type="stmt" count="2"/>
71318
+ <line num="187" type="stmt" count="2"/>
71319
+ <line num="188" type="stmt" count="2"/>
71320
+ <line num="189" type="stmt" count="2"/>
71321
+ <line num="190" type="stmt" count="2"/>
71322
+ <line num="192" type="stmt" count="2"/>
71323
+ <line num="193" type="stmt" count="2"/>
71324
+ <line num="194" type="stmt" count="2"/>
71325
+ <line num="195" type="stmt" count="2"/>
71326
+ <line num="198" type="stmt" count="2"/>
71327
+ <line num="199" type="stmt" count="2"/>
71328
+ <line num="201" type="stmt" count="2"/>
71329
+ <line num="203" type="stmt" count="2"/>
71330
+ <line num="212" type="method" name="getTables" visibility="public" complexity="2" crap="2" count="2"/>
71331
+ <line num="213" type="stmt" count="2"/>
71332
+ <line num="215" type="stmt" count="2"/>
71333
+ <line num="217" type="stmt" count="2"/>
71334
+ <line num="219" type="stmt" count="2"/>
71335
+ <line num="221" type="stmt" count="2"/>
71336
+ <line num="222" type="stmt" count="2"/>
71337
+ <line num="224" type="stmt" count="2"/>
71338
+ <line num="225" type="stmt" count="2"/>
71339
+ <line num="227" type="stmt" count="2"/>
71340
+ <line num="235" type="method" name="setUp" visibility="public" complexity="2" crap="2.15" count="3"/>
71341
+ <line num="236" type="stmt" count="3"/>
71342
+ <line num="238" type="stmt" count="3"/>
71343
+ <line num="239" type="stmt" count="0"/>
71344
+ <line num="240" type="stmt" count="0"/>
71345
+ <line num="241" type="stmt" count="0"/>
71346
+ <line num="243" type="stmt" count="3"/>
71347
+ <line num="245" type="stmt" count="3"/>
71348
+ <line num="247" type="stmt" count="3"/>
71349
+ <line num="248" type="stmt" count="3"/>
71350
+ <line num="255" type="method" name="test_archive_files" visibility="public" complexity="1" crap="1" count="1"/>
71351
+ <line num="256" type="stmt" count="1"/>
71352
+ <line num="259" type="stmt" count="1"/>
71353
+ <line num="260" type="stmt" count="1"/>
71354
+ <line num="273" type="stmt" count="1"/>
71355
+ <line num="274" type="stmt" count="1"/>
71356
+ <line num="275" type="stmt" count="1"/>
71357
+ <line num="276" type="stmt" count="1"/>
71358
+ <line num="278" type="stmt" count="1"/>
71359
+ <line num="281" type="stmt" count="1"/>
71360
+ <line num="284" type="stmt" count="1"/>
71361
+ <line num="287" type="stmt" count="1"/>
71362
+ <line num="288" type="stmt" count="1"/>
71363
+ <line num="289" type="stmt" count="1"/>
71364
+ <line num="290" type="stmt" count="1"/>
71365
+ <line num="293" type="stmt" count="1"/>
71366
+ <line num="294" type="stmt" count="1"/>
71367
+ <line num="295" type="stmt" count="1"/>
71368
+ <line num="302" type="method" name="test_restore_archive_file" visibility="public" complexity="2" crap="2" count="1"/>
71369
+ <line num="310" type="stmt" count="1"/>
71370
+ <line num="311" type="stmt" count="1"/>
71371
+ <line num="312" type="stmt" count="1"/>
71372
+ <line num="314" type="stmt" count="1"/>
71373
+ <line num="317" type="stmt" count="1"/>
71374
+ <line num="318" type="stmt" count="1"/>
71375
+ <line num="319" type="stmt" count="1"/>
71376
+ <line num="321" type="stmt" count="1"/>
71377
+ <line num="323" type="stmt" count="1"/>
71378
+ <line num="324" type="stmt" count="1"/>
71379
+ <line num="334" type="method" name="test_restore_cli" visibility="public" complexity="2" crap="2" count="1"/>
71380
+ <line num="335" type="stmt" count="1"/>
71381
+ <line num="337" type="stmt" count="1"/>
71382
+ <line num="338" type="stmt" count="1"/>
71383
+ <line num="339" type="stmt" count="1"/>
71384
+ <line num="341" type="stmt" count="1"/>
71385
+ <line num="344" type="stmt" count="1"/>
71386
+ <line num="345" type="stmt" count="1"/>
71387
+ <line num="346" type="stmt" count="1"/>
71388
+ <line num="349" type="stmt" count="1"/>
71389
+ <line num="351" type="stmt" count="1"/>
71390
+ <line num="352" type="stmt" count="1"/>
71391
+ <metrics loc="353" ncloc="176" classes="1" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="118" coveredstatements="115" elements="127" coveredelements="123"/>
71392
+ </file>
71393
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-cron.php">
71394
+ <class name="Test_Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
71395
+ <metrics complexity="6" methods="6" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="136" coveredstatements="136" elements="142" coveredelements="142"/>
71396
+ </class>
71397
+ <line num="78" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="5"/>
71398
+ <line num="79" type="stmt" count="5"/>
71399
+ <line num="80" type="stmt" count="5"/>
71400
+ <line num="82" type="stmt" count="5"/>
71401
+ <line num="83" type="stmt" count="5"/>
71402
+ <line num="85" type="stmt" count="5"/>
71403
+ <line num="86" type="stmt" count="5"/>
71404
+ <line num="112" type="stmt" count="5"/>
71405
+ <line num="114" type="stmt" count="5"/>
71406
+ <line num="115" type="stmt" count="5"/>
71407
+ <line num="116" type="stmt" count="5"/>
71408
+ <line num="117" type="stmt" count="5"/>
71409
+ <line num="119" type="stmt" count="5"/>
71410
+ <line num="120" type="stmt" count="5"/>
71411
+ <line num="122" type="stmt" count="5"/>
71412
+ <line num="123" type="stmt" count="5"/>
71413
+ <line num="125" type="stmt" count="5"/>
71414
+ <line num="126" type="stmt" count="5"/>
71415
+ <line num="129" type="stmt" count="5"/>
71416
+ <line num="130" type="stmt" count="5"/>
71417
+ <line num="131" type="stmt" count="5"/>
71418
+ <line num="132" type="stmt" count="5"/>
71419
+ <line num="133" type="stmt" count="5"/>
71420
+ <line num="134" type="stmt" count="5"/>
71421
+ <line num="141" type="method" name="test_filter_crontab_backup" visibility="public" complexity="1" crap="1" count="1"/>
71422
+ <line num="142" type="stmt" count="1"/>
71423
+ <line num="145" type="stmt" count="1"/>
71424
+ <line num="146" type="stmt" count="1"/>
71425
+ <line num="149" type="stmt" count="1"/>
71426
+ <line num="152" type="stmt" count="1"/>
71427
+ <line num="153" type="stmt" count="1"/>
71428
+ <line num="154" type="stmt" count="1"/>
71429
+ <line num="155" type="stmt" count="1"/>
71430
+ <line num="156" type="stmt" count="1"/>
71431
+ <line num="157" type="stmt" count="1"/>
71432
+ <line num="158" type="stmt" count="1"/>
71433
+ <line num="159" type="stmt" count="1"/>
71434
+ <line num="160" type="stmt" count="1"/>
71435
+ <line num="162" type="stmt" count="1"/>
71436
+ <line num="163" type="stmt" count="1"/>
71437
+ <line num="164" type="stmt" count="1"/>
71438
+ <line num="165" type="stmt" count="1"/>
71439
+ <line num="166" type="stmt" count="1"/>
71440
+ <line num="167" type="stmt" count="1"/>
71441
+ <line num="170" type="stmt" count="1"/>
71442
+ <line num="171" type="stmt" count="1"/>
71443
+ <line num="174" type="stmt" count="1"/>
71444
+ <line num="177" type="stmt" count="1"/>
71445
+ <line num="178" type="stmt" count="1"/>
71446
+ <line num="179" type="stmt" count="1"/>
71447
+ <line num="180" type="stmt" count="1"/>
71448
+ <line num="181" type="stmt" count="1"/>
71449
+ <line num="182" type="stmt" count="1"/>
71450
+ <line num="183" type="stmt" count="1"/>
71451
+ <line num="184" type="stmt" count="1"/>
71452
+ <line num="185" type="stmt" count="1"/>
71453
+ <line num="187" type="stmt" count="1"/>
71454
+ <line num="188" type="stmt" count="1"/>
71455
+ <line num="189" type="stmt" count="1"/>
71456
+ <line num="190" type="stmt" count="1"/>
71457
+ <line num="191" type="stmt" count="1"/>
71458
+ <line num="192" type="stmt" count="1"/>
71459
+ <line num="193" type="stmt" count="1"/>
71460
+ <line num="200" type="method" name="test_filter_crontab_restore" visibility="public" complexity="1" crap="1" count="1"/>
71461
+ <line num="201" type="stmt" count="1"/>
71462
+ <line num="204" type="stmt" count="1"/>
71463
+ <line num="205" type="stmt" count="1"/>
71464
+ <line num="208" type="stmt" count="1"/>
71465
+ <line num="211" type="stmt" count="1"/>
71466
+ <line num="212" type="stmt" count="1"/>
71467
+ <line num="213" type="stmt" count="1"/>
71468
+ <line num="214" type="stmt" count="1"/>
71469
+ <line num="215" type="stmt" count="1"/>
71470
+ <line num="216" type="stmt" count="1"/>
71471
+ <line num="217" type="stmt" count="1"/>
71472
+ <line num="218" type="stmt" count="1"/>
71473
+ <line num="220" type="stmt" count="1"/>
71474
+ <line num="221" type="stmt" count="1"/>
71475
+ <line num="222" type="stmt" count="1"/>
71476
+ <line num="223" type="stmt" count="1"/>
71477
+ <line num="224" type="stmt" count="1"/>
71478
+ <line num="225" type="stmt" count="1"/>
71479
+ <line num="226" type="stmt" count="1"/>
71480
+ <line num="233" type="method" name="test_filter_crontab_run_jobs" visibility="public" complexity="1" crap="1" count="1"/>
71481
+ <line num="234" type="stmt" count="1"/>
71482
+ <line num="237" type="stmt" count="1"/>
71483
+ <line num="238" type="stmt" count="1"/>
71484
+ <line num="241" type="stmt" count="1"/>
71485
+ <line num="244" type="stmt" count="1"/>
71486
+ <line num="245" type="stmt" count="1"/>
71487
+ <line num="246" type="stmt" count="1"/>
71488
+ <line num="247" type="stmt" count="1"/>
71489
+ <line num="248" type="stmt" count="1"/>
71490
+ <line num="249" type="stmt" count="1"/>
71491
+ <line num="250" type="stmt" count="1"/>
71492
+ <line num="251" type="stmt" count="1"/>
71493
+ <line num="253" type="stmt" count="1"/>
71494
+ <line num="254" type="stmt" count="1"/>
71495
+ <line num="255" type="stmt" count="1"/>
71496
+ <line num="256" type="stmt" count="1"/>
71497
+ <line num="257" type="stmt" count="1"/>
71498
+ <line num="258" type="stmt" count="1"/>
71499
+ <line num="259" type="stmt" count="1"/>
71500
+ <line num="266" type="method" name="test_filter_crontab_site_check" visibility="public" complexity="1" crap="1" count="1"/>
71501
+ <line num="267" type="stmt" count="1"/>
71502
+ <line num="270" type="stmt" count="1"/>
71503
+ <line num="271" type="stmt" count="1"/>
71504
+ <line num="274" type="stmt" count="1"/>
71505
+ <line num="277" type="stmt" count="1"/>
71506
+ <line num="278" type="stmt" count="1"/>
71507
+ <line num="279" type="stmt" count="1"/>
71508
+ <line num="280" type="stmt" count="1"/>
71509
+ <line num="281" type="stmt" count="1"/>
71510
+ <line num="282" type="stmt" count="1"/>
71511
+ <line num="283" type="stmt" count="1"/>
71512
+ <line num="284" type="stmt" count="1"/>
71513
+ <line num="285" type="stmt" count="1"/>
71514
+ <line num="287" type="stmt" count="1"/>
71515
+ <line num="288" type="stmt" count="1"/>
71516
+ <line num="289" type="stmt" count="1"/>
71517
+ <line num="290" type="stmt" count="1"/>
71518
+ <line num="291" type="stmt" count="1"/>
71519
+ <line num="292" type="stmt" count="1"/>
71520
+ <line num="293" type="stmt" count="1"/>
71521
+ <line num="300" type="method" name="test_filter_crontab_all" visibility="public" complexity="1" crap="1" count="1"/>
71522
+ <line num="301" type="stmt" count="1"/>
71523
+ <line num="304" type="stmt" count="1"/>
71524
+ <line num="305" type="stmt" count="1"/>
71525
+ <line num="308" type="stmt" count="1"/>
71526
+ <line num="309" type="stmt" count="1"/>
71527
+ <line num="311" type="stmt" count="1"/>
71528
+ <line num="314" type="stmt" count="1"/>
71529
+ <line num="315" type="stmt" count="1"/>
71530
+ <line num="316" type="stmt" count="1"/>
71531
+ <line num="317" type="stmt" count="1"/>
71532
+ <line num="319" type="stmt" count="1"/>
71533
+ <line num="320" type="stmt" count="1"/>
71534
+ <line num="321" type="stmt" count="1"/>
71535
+ <line num="322" type="stmt" count="1"/>
71536
+ <line num="323" type="stmt" count="1"/>
71537
+ <line num="324" type="stmt" count="1"/>
71538
+ <line num="325" type="stmt" count="1"/>
71539
+ <metrics loc="326" ncloc="189" classes="1" methods="6" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="136" coveredstatements="136" elements="142" coveredelements="142"/>
71540
+ </file>
71541
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-crypt.php">
71542
+ <class name="Test_Boldgrid_Backup_Admin_Crypt" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
71543
+ <metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="28" elements="39" coveredelements="29"/>
71544
+ </class>
71545
+ <line num="26" type="method" name="setUp" visibility="public" complexity="2" crap="4.19" count="1"/>
71546
+ <line num="33" type="stmt" count="1"/>
71547
+ <line num="34" type="stmt" count="0"/>
71548
+ <line num="35" type="stmt" count="0"/>
71549
+ <line num="36" type="stmt" count="0"/>
71550
+ <line num="37" type="stmt" count="0"/>
71551
+ <line num="38" type="stmt" count="0"/>
71552
+ <line num="39" type="stmt" count="0"/>
71553
+ <line num="40" type="stmt" count="0"/>
71554
+ <line num="41" type="stmt" count="0"/>
71555
+ <line num="42" type="stmt" count="0"/>
71556
+ <line num="43" type="stmt" count="1"/>
71557
+ <line num="50" type="method" name="test_crypt" visibility="public" complexity="3" crap="3" count="1"/>
71558
+ <line num="52" type="stmt" count="1"/>
71559
+ <line num="53" type="stmt" count="1"/>
71560
+ <line num="54" type="stmt" count="1"/>
71561
+ <line num="55" type="stmt" count="1"/>
71562
+ <line num="56" type="stmt" count="1"/>
71563
+ <line num="57" type="stmt" count="1"/>
71564
+ <line num="58" type="stmt" count="1"/>
71565
+ <line num="60" type="stmt" count="1"/>
71566
+ <line num="62" type="stmt" count="1"/>
71567
+ <line num="63" type="stmt" count="1"/>
71568
+ <line num="64" type="stmt" count="1"/>
71569
+ <line num="67" type="stmt" count="1"/>
71570
+ <line num="70" type="stmt" count="1"/>
71571
+ <line num="71" type="stmt" count="1"/>
71572
+ <line num="74" type="stmt" count="1"/>
71573
+ <line num="75" type="stmt" count="1"/>
71574
+ <line num="76" type="stmt" count="1"/>
71575
+ <line num="77" type="stmt" count="1"/>
71576
+ <line num="78" type="stmt" count="1"/>
71577
+ <line num="80" type="stmt" count="1"/>
71578
+ <line num="81" type="stmt" count="1"/>
71579
+ <line num="82" type="stmt" count="1"/>
71580
+ <line num="84" type="stmt" count="1"/>
71581
+ <line num="85" type="stmt" count="1"/>
71582
+ <line num="86" type="stmt" count="1"/>
71583
+ <line num="87" type="stmt" count="1"/>
71584
+ <metrics loc="88" ncloc="47" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="28" elements="39" coveredelements="29"/>
71585
+ </file>
71586
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-dump.php">
71587
+ <class name="Test_Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
71588
+ <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="18" coveredstatements="18" elements="19" coveredelements="19"/>
71589
+ </class>
71590
+ <line num="26" type="method" name="test_get_connection_string" visibility="public" complexity="1" crap="1" count="1"/>
71591
+ <line num="27" type="stmt" count="1"/>
71592
+ <line num="30" type="stmt" count="1"/>
71593
+ <line num="31" type="stmt" count="1"/>
71594
+ <line num="32" type="stmt" count="1"/>
71595
+ <line num="33" type="stmt" count="1"/>
71596
+ <line num="36" type="stmt" count="1"/>
71597
+ <line num="37" type="stmt" count="1"/>
71598
+ <line num="38" type="stmt" count="1"/>
71599
+ <line num="39" type="stmt" count="1"/>
71600
+ <line num="42" type="stmt" count="1"/>
71601
+ <line num="43" type="stmt" count="1"/>
71602
+ <line num="44" type="stmt" count="1"/>
71603
+ <line num="45" type="stmt" count="1"/>
71604
+ <line num="48" type="stmt" count="1"/>
71605
+ <line num="49" type="stmt" count="1"/>
71606
+ <line num="50" type="stmt" count="1"/>
71607
+ <line num="51" type="stmt" count="1"/>
71608
+ <line num="52" type="stmt" count="1"/>
71609
+ <metrics loc="53" ncloc="23" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="18" coveredstatements="18" elements="19" coveredelements="19"/>
71610
+ </file>
71611
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-get.php">
71612
+ <class name="Test_Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
71613
+ <metrics complexity="2" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="35" elements="37" coveredelements="37"/>
71614
+ </class>
71615
+ <line num="26" type="method" name="test_filter_by_type" visibility="public" complexity="1" crap="1" count="1"/>
71616
+ <line num="27" type="stmt" count="1"/>
71617
+ <line num="29" type="stmt" count="1"/>
71618
+ <line num="31" type="stmt" count="1"/>
71619
+ <line num="38" type="stmt" count="1"/>
71620
+ <line num="39" type="stmt" count="1"/>
71621
+ <line num="42" type="stmt" count="1"/>
71622
+ <line num="49" type="stmt" count="1"/>
71623
+ <line num="50" type="stmt" count="1"/>
71624
+ <line num="53" type="stmt" count="1"/>
71625
+ <line num="56" type="stmt" count="1"/>
71626
+ <line num="59" type="stmt" count="1"/>
71627
+ <line num="66" type="stmt" count="1"/>
71628
+ <line num="67" type="stmt" count="1"/>
71629
+ <line num="68" type="stmt" count="1"/>
71630
+ <line num="69" type="stmt" count="1"/>
71631
+ <line num="70" type="stmt" count="1"/>
71632
+ <line num="79" type="method" name="test_get_by_type" visibility="public" complexity="1" crap="1" count="1"/>
71633
+ <line num="80" type="stmt" count="1"/>
71634
+ <line num="82" type="stmt" count="1"/>
71635
+ <line num="84" type="stmt" count="1"/>
71636
+ <line num="91" type="stmt" count="1"/>
71637
+ <line num="92" type="stmt" count="1"/>
71638
+ <line num="93" type="stmt" count="1"/>
71639
+ <line num="100" type="stmt" count="1"/>
71640
+ <line num="101" type="stmt" count="1"/>
71641
+ <line num="104" type="stmt" count="1"/>
71642
+ <line num="105" type="stmt" count="1"/>
71643
+ <line num="106" type="stmt" count="1"/>
71644
+ <line num="107" type="stmt" count="1"/>
71645
+ <line num="113" type="stmt" count="1"/>
71646
+ <line num="114" type="stmt" count="1"/>
71647
+ <line num="117" type="stmt" count="1"/>
71648
+ <line num="118" type="stmt" count="1"/>
71649
+ <line num="119" type="stmt" count="1"/>
71650
+ <line num="120" type="stmt" count="1"/>
71651
+ <line num="121" type="stmt" count="1"/>
71652
+ <metrics loc="122" ncloc="44" classes="1" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="35" elements="37" coveredelements="37"/>
71653
+ </file>
71654
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-import.php">
71655
+ <class name="Test_Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
71656
+ <metrics complexity="11" methods="11" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="126" coveredstatements="126" elements="137" coveredelements="137"/>
71657
+ </class>
71658
+ <line num="27" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="10"/>
71659
+ <line num="28" type="stmt" count="10"/>
71660
+ <line num="30" type="stmt" count="10"/>
71661
+ <line num="32" type="stmt" count="10"/>
71662
+ <line num="33" type="stmt" count="10"/>
71663
+ <line num="34" type="stmt" count="10"/>
71664
+ <line num="35" type="stmt" count="10"/>
71665
+ <line num="36" type="stmt" count="10"/>
71666
+ <line num="39" type="stmt" count="10"/>
71667
+ <line num="40" type="stmt" count="10"/>
71668
+ <line num="41" type="stmt" count="10"/>
71669
+ <line num="42" type="stmt" count="10"/>
71670
+ <line num="43" type="stmt" count="10"/>
71671
+ <line num="44" type="stmt" count="10"/>
71672
+ <line num="47" type="stmt" count="10"/>
71673
+ <line num="48" type="stmt" count="10"/>
71674
+ <line num="49" type="stmt" count="10"/>
71675
+ <line num="50" type="stmt" count="10"/>
71676
+ <line num="51" type="stmt" count="10"/>
71677
+ <line num="53" type="stmt" count="10"/>
71678
+ <line num="60" type="method" name="test_import_from_archive" visibility="public" complexity="1" crap="1" count="1"/>
71679
+ <line num="61" type="stmt" count="1"/>
71680
+ <line num="62" type="stmt" count="1"/>
71681
+ <line num="63" type="stmt" count="1"/>
71682
+ <line num="64" type="stmt" count="1"/>
71683
+ <line num="71" type="method" name="test_get_lines" visibility="public" complexity="1" crap="1" count="1"/>
71684
+ <line num="72" type="stmt" count="1"/>
71685
+ <line num="73" type="stmt" count="1"/>
71686
+ <line num="74" type="stmt" count="1"/>
71687
+ <line num="75" type="stmt" count="1"/>
71688
+ <line num="76" type="stmt" count="1"/>
71689
+ <line num="83" type="method" name="test_import" visibility="public" complexity="1" crap="1" count="1"/>
71690
+ <line num="84" type="stmt" count="1"/>
71691
+ <line num="85" type="stmt" count="1"/>
71692
+ <line num="86" type="stmt" count="1"/>
71693
+ <line num="87" type="stmt" count="1"/>
71694
+ <line num="88" type="stmt" count="1"/>
71695
+ <line num="89" type="stmt" count="1"/>
71696
+ <line num="90" type="stmt" count="1"/>
71697
+ <line num="91" type="stmt" count="1"/>
71698
+ <line num="92" type="stmt" count="1"/>
71699
+ <line num="93" type="stmt" count="1"/>
71700
+ <line num="95" type="stmt" count="1"/>
71701
+ <line num="96" type="stmt" count="1"/>
71702
+ <line num="97" type="stmt" count="1"/>
71703
+ <line num="103" type="method" name="test_import_lines" visibility="public" complexity="1" crap="1" count="1"/>
71704
+ <line num="104" type="stmt" count="1"/>
71705
+ <line num="106" type="stmt" count="1"/>
71706
+ <line num="108" type="stmt" count="1"/>
71707
+ <line num="109" type="stmt" count="1"/>
71708
+ <line num="110" type="stmt" count="1"/>
71709
+ <line num="111" type="stmt" count="1"/>
71710
+ <line num="112" type="stmt" count="1"/>
71711
+ <line num="113" type="stmt" count="1"/>
71712
+ <line num="114" type="stmt" count="1"/>
71713
+ <line num="120" type="method" name="test_import_string" visibility="public" complexity="1" crap="1" count="1"/>
71714
+ <line num="121" type="stmt" count="1"/>
71715
+ <line num="122" type="stmt" count="1"/>
71716
+ <line num="123" type="stmt" count="1"/>
71717
+ <line num="124" type="stmt" count="1"/>
71718
+ <line num="125" type="stmt" count="1"/>
71719
+ <line num="127" type="stmt" count="1"/>
71720
+ <line num="128" type="stmt" count="1"/>
71721
+ <line num="135" type="method" name="test_fix_view_statements" visibility="public" complexity="1" crap="1" count="1"/>
71722
+ <line num="136" type="stmt" count="1"/>
71723
+ <line num="138" type="stmt" count="1"/>
71724
+ <line num="139" type="stmt" count="1"/>
71725
+ <line num="141" type="stmt" count="1"/>
71726
+ <line num="142" type="stmt" count="1"/>
71727
+ <line num="144" type="stmt" count="1"/>
71728
+ <line num="145" type="stmt" count="1"/>
71729
+ <line num="146" type="stmt" count="1"/>
71730
+ <line num="147" type="stmt" count="1"/>
71731
+ <line num="149" type="stmt" count="1"/>
71732
+ <line num="150" type="stmt" count="1"/>
71733
+ <line num="151" type="stmt" count="1"/>
71734
+ <line num="158" type="method" name="test_fix_definer" visibility="public" complexity="1" crap="1" count="1"/>
71735
+ <line num="159" type="stmt" count="1"/>
71736
+ <line num="161" type="stmt" count="1"/>
71737
+ <line num="162" type="stmt" count="1"/>
71738
+ <line num="163" type="stmt" count="1"/>
71739
+ <line num="165" type="stmt" count="1"/>
71740
+ <line num="166" type="stmt" count="1"/>
71741
+ <line num="167" type="stmt" count="1"/>
71742
+ <line num="169" type="stmt" count="1"/>
71743
+ <line num="170" type="stmt" count="1"/>
71744
+ <line num="171" type="stmt" count="1"/>
71745
+ <line num="172" type="stmt" count="1"/>
71746
+ <line num="179" type="method" name="test_has_db_privileges" visibility="public" complexity="1" crap="1" count="1"/>
71747
+ <line num="180" type="stmt" count="1"/>
71748
+ <line num="182" type="stmt" count="1"/>
71749
+ <line num="183" type="stmt" count="1"/>
71750
+ <line num="184" type="stmt" count="1"/>
71751
+ <line num="185" type="stmt" count="1"/>
71752
+ <line num="186" type="stmt" count="1"/>
71753
+ <line num="187" type="stmt" count="1"/>
71754
+ <line num="188" type="stmt" count="1"/>
71755
+ <line num="189" type="stmt" count="1"/>
71756
+ <line num="191" type="stmt" count="1"/>
71757
+ <line num="192" type="stmt" count="1"/>
71758
+ <line num="193" type="stmt" count="1"/>
71759
+ <line num="194" type="stmt" count="1"/>
71760
+ <line num="195" type="stmt" count="1"/>
71761
+ <line num="196" type="stmt" count="1"/>
71762
+ <line num="197" type="stmt" count="1"/>
71763
+ <line num="199" type="stmt" count="1"/>
71764
+ <line num="200" type="stmt" count="1"/>
71765
+ <line num="202" type="stmt" count="1"/>
71766
+ <line num="203" type="stmt" count="1"/>
71767
+ <line num="204" type="stmt" count="1"/>
71768
+ <line num="205" type="stmt" count="1"/>
71769
+ <line num="206" type="stmt" count="1"/>
71770
+ <line num="207" type="stmt" count="1"/>
71771
+ <line num="214" type="method" name="test_get_grants_array" visibility="public" complexity="1" crap="1" count="1"/>
71772
+ <line num="215" type="stmt" count="1"/>
71773
+ <line num="216" type="stmt" count="1"/>
71774
+ <line num="217" type="stmt" count="1"/>
71775
+ <line num="218" type="stmt" count="1"/>
71776
+ <line num="219" type="stmt" count="1"/>
71777
+ <line num="226" type="method" name="test_get_db_privileges" visibility="public" complexity="1" crap="1" count="1"/>
71778
+ <line num="227" type="stmt" count="1"/>
71779
+ <line num="228" type="stmt" count="1"/>
71780
+ <line num="229" type="stmt" count="1"/>
71781
+ <line num="232" type="stmt" count="1"/>
71782
+ <line num="233" type="stmt" count="1"/>
71783
+ <line num="234" type="stmt" count="1"/>
71784
+ <line num="236" type="stmt" count="1"/>
71785
+ <line num="237" type="stmt" count="1"/>
71786
+ <line num="239" type="stmt" count="1"/>
71787
+ <line num="240" type="stmt" count="1"/>
71788
+ <line num="241" type="stmt" count="1"/>
71789
+ <line num="242" type="stmt" count="1"/>
71790
+ <line num="244" type="stmt" count="1"/>
71791
+ <line num="245" type="stmt" count="1"/>
71792
+ <line num="247" type="stmt" count="1"/>
71793
+ <line num="248" type="stmt" count="1"/>
71794
+ <line num="250" type="stmt" count="1"/>
71795
+ <metrics loc="251" ncloc="173" classes="1" methods="11" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="126" coveredstatements="126" elements="137" coveredelements="137"/>
71796
+ </file>
71797
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-notices.php">
71798
+ <class name="Test_Boldgrid_Backup_Admin_Notice_Counts" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Notice">
71799
+ <metrics complexity="9" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="45" coveredstatements="41" elements="51" coveredelements="46"/>
71800
+ </class>
71801
+ <line num="24" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="1"/>
71802
+ <line num="25" type="stmt" count="1"/>
71803
+ <line num="26" type="stmt" count="1"/>
71804
+ <line num="27" type="method" name="test_notice_not_displayed_first_install" visibility="public" complexity="1" crap="1" count="1"/>
71805
+ <line num="28" type="stmt" count="1"/>
71806
+ <line num="29" type="stmt" count="1"/>
71807
+ <line num="31" type="method" name="notice_counts_in_nav" visibility="public" complexity="4" crap="4.21" count="1"/>
71808
+ <line num="32" type="stmt" count="1"/>
71809
+ <line num="33" type="stmt" count="1"/>
71810
+ <line num="34" type="stmt" count="1"/>
71811
+ <line num="35" type="stmt" count="0"/>
71812
+ <line num="36" type="stmt" count="0"/>
71813
+ <line num="37" type="stmt" count="0"/>
71814
+ <line num="38" type="stmt" count="0"/>
71815
+ <line num="39" type="stmt" count="1"/>
71816
+ <line num="41" type="stmt" count="1"/>
71817
+ <line num="43" type="stmt" count="1"/>
71818
+ <line num="45" type="stmt" count="1"/>
71819
+ <line num="46" type="stmt" count="1"/>
71820
+ <line num="47" type="stmt" count="1"/>
71821
+ <line num="48" type="stmt" count="1"/>
71822
+ <line num="49" type="stmt" count="1"/>
71823
+ <line num="50" type="stmt" count="1"/>
71824
+ <line num="51" type="stmt" count="1"/>
71825
+ <line num="54" type="method" name="get_plugin_data" visibility="public" complexity="1" crap="1" count="1"/>
71826
+ <line num="57" type="stmt" count="1"/>
71827
+ <line num="58" type="stmt" count="1"/>
71828
+ <line num="59" type="stmt" count="1"/>
71829
+ <line num="60" type="stmt" count="1"/>
71830
+ <line num="61" type="stmt" count="1"/>
71831
+ <line num="62" type="stmt" count="1"/>
71832
+ <line num="63" type="stmt" count="1"/>
71833
+ <line num="64" type="stmt" count="1"/>
71834
+ <line num="65" type="stmt" count="1"/>
71835
+ <line num="68" type="method" name="get_plugin_config" visibility="public" complexity="1" crap="1" count="1"/>
71836
+ <line num="71" type="stmt" count="1"/>
71837
+ <line num="72" type="stmt" count="1"/>
71838
+ <line num="75" type="stmt" count="1"/>
71839
+ <line num="76" type="stmt" count="1"/>
71840
+ <line num="77" type="stmt" count="1"/>
71841
+ <line num="78" type="stmt" count="1"/>
71842
+ <line num="79" type="stmt" count="1"/>
71843
+ <line num="80" type="stmt" count="1"/>
71844
+ <line num="83" type="method" name="set_versions" visibility="public" complexity="1" crap="1" count="1"/>
71845
+ <line num="87" type="stmt" count="1"/>
71846
+ <line num="88" type="stmt" count="1"/>
71847
+ <line num="89" type="stmt" count="1"/>
71848
+ <line num="90" type="stmt" count="1"/>
71849
+ <line num="91" type="stmt" count="1"/>
71850
+ <line num="92" type="stmt" count="1"/>
71851
+ <line num="93" type="stmt" count="1"/>
71852
+ <metrics loc="94" ncloc="77" classes="1" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="45" coveredstatements="41" elements="51" coveredelements="46"/>
71853
+ </file>
71854
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-premium-features-page.php">
71855
+ <class name="Test_Boldgrid_Backup_Admin_Premium_Features_Page" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Premium.Features">
71856
+ <metrics complexity="9" methods="6" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="39" elements="69" coveredelements="42"/>
71857
+ </class>
71858
+ <line num="28" type="method" name="setUp" visibility="public" complexity="3" crap="3" count="2"/>
71859
+ <line num="31" type="stmt" count="2"/>
71860
+ <line num="32" type="stmt" count="2"/>
71861
+ <line num="33" type="stmt" count="2"/>
71862
+ <line num="35" type="stmt" count="2"/>
71863
+ <line num="36" type="stmt" count="2"/>
71864
+ <line num="37" type="stmt" count="2"/>
71865
+ <line num="38" type="stmt" count="2"/>
71866
+ <line num="39" type="stmt" count="2"/>
71867
+ <line num="40" type="stmt" count="2"/>
71868
+ <line num="41" type="stmt" count="2"/>
71869
+ <line num="42" type="stmt" count="2"/>
71870
+ <line num="43" type="stmt" count="2"/>
71871
+ <line num="44" type="stmt" count="2"/>
71872
+ <line num="45" type="stmt" count="2"/>
71873
+ <line num="48" type="stmt" count="2"/>
71874
+ <line num="49" type="stmt" count="2"/>
71875
+ <line num="50" type="stmt" count="2"/>
71876
+ <line num="51" type="stmt" count="2"/>
71877
+ <line num="52" type="stmt" count="2"/>
71878
+ <line num="53" type="stmt" count="2"/>
71879
+ <line num="55" type="stmt" count="2"/>
71880
+ <line num="56" type="stmt" count="2"/>
71881
+ <line num="57" type="stmt" count="2"/>
71882
+ <line num="59" type="method" name="test_get_cards" visibility="public" complexity="1" crap="1" count="1"/>
71883
+ <line num="60" type="stmt" count="1"/>
71884
+ <line num="61" type="stmt" count="1"/>
71885
+ <line num="62" type="stmt" count="1"/>
71886
+ <line num="63" type="stmt" count="1"/>
71887
+ <line num="65" type="method" name="test_admin_enqueue_scripts" visibility="public" complexity="2" crap="2" count="1"/>
71888
+ <line num="66" type="stmt" count="1"/>
71889
+ <line num="67" type="stmt" count="1"/>
71890
+ <line num="68" type="stmt" count="1"/>
71891
+ <line num="69" type="stmt" count="1"/>
71892
+ <line num="70" type="stmt" count="1"/>
71893
+ <line num="71" type="stmt" count="1"/>
71894
+ <line num="72" type="stmt" count="1"/>
71895
+ <line num="73" type="stmt" count="1"/>
71896
+ <line num="74" type="stmt" count="1"/>
71897
+ <line num="75" type="stmt" count="1"/>
71898
+ <line num="76" type="stmt" count="1"/>
71899
+ <line num="78" type="stmt" count="1"/>
71900
+ <line num="80" type="method" name="get_plugin_data" visibility="public" complexity="1" crap="2" count="0"/>
71901
+ <line num="83" type="stmt" count="0"/>
71902
+ <line num="84" type="stmt" count="0"/>
71903
+ <line num="85" type="stmt" count="0"/>
71904
+ <line num="86" type="stmt" count="0"/>
71905
+ <line num="87" type="stmt" count="0"/>
71906
+ <line num="88" type="stmt" count="0"/>
71907
+ <line num="89" type="stmt" count="0"/>
71908
+ <line num="90" type="stmt" count="0"/>
71909
+ <line num="91" type="stmt" count="0"/>
71910
+ <line num="94" type="method" name="get_plugin_config" visibility="public" complexity="1" crap="2" count="0"/>
71911
+ <line num="97" type="stmt" count="0"/>
71912
+ <line num="98" type="stmt" count="0"/>
71913
+ <line num="101" type="stmt" count="0"/>
71914
+ <line num="102" type="stmt" count="0"/>
71915
+ <line num="103" type="stmt" count="0"/>
71916
+ <line num="104" type="stmt" count="0"/>
71917
+ <line num="105" type="stmt" count="0"/>
71918
+ <line num="106" type="stmt" count="0"/>
71919
+ <line num="109" type="method" name="set_versions" visibility="public" complexity="1" crap="2" count="0"/>
71920
+ <line num="113" type="stmt" count="0"/>
71921
+ <line num="114" type="stmt" count="0"/>
71922
+ <line num="115" type="stmt" count="0"/>
71923
+ <line num="116" type="stmt" count="0"/>
71924
+ <line num="117" type="stmt" count="0"/>
71925
+ <line num="118" type="stmt" count="0"/>
71926
+ <line num="119" type="stmt" count="0"/>
71927
+ <metrics loc="120" ncloc="103" classes="1" methods="6" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="39" elements="69" coveredelements="42"/>
71928
+ </file>
71929
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-test.php">
71930
+ <class name="Test_Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
71931
+ <metrics complexity="2" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="10" coveredelements="10"/>
71932
+ </class>
71933
+ <line num="26" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="1"/>
71934
+ <line num="27" type="stmt" count="1"/>
71935
+ <line num="28" type="stmt" count="1"/>
71936
+ <line num="35" type="method" name="test_get_cli_support" visibility="public" complexity="1" crap="1" count="1"/>
71937
+ <line num="36" type="stmt" count="1"/>
71938
+ <line num="39" type="stmt" count="1"/>
71939
+ <line num="40" type="stmt" count="1"/>
71940
+ <line num="41" type="stmt" count="1"/>
71941
+ <line num="44" type="stmt" count="1"/>
71942
+ <line num="45" type="stmt" count="1"/>
71943
+ <metrics loc="46" ncloc="15" classes="1" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="10" coveredelements="10"/>
71944
+ </file>
71945
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-time.php">
71946
+ <class name="Test_Boldgrid_Backup_Admin_Time" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
71947
+ <metrics complexity="5" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
71948
+ </class>
71949
+ <line num="26" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="3"/>
71950
+ <line num="27" type="stmt" count="3"/>
71951
+ <line num="28" type="stmt" count="3"/>
71952
+ <line num="35" type="method" name="test_get_server_timezone" visibility="public" complexity="1" crap="1" count="1"/>
71953
+ <line num="36" type="stmt" count="1"/>
71954
+ <line num="38" type="stmt" count="1"/>
71955
+ <line num="39" type="stmt" count="1"/>
71956
+ <line num="46" type="method" name="test_get_settings_date" visibility="public" complexity="2" crap="2" count="1"/>
71957
+ <line num="50" type="stmt" count="1"/>
71958
+ <line num="51" type="stmt" count="1"/>
71959
+ <line num="52" type="stmt" count="1"/>
71960
+ <line num="53" type="stmt" count="1"/>
71961
+ <line num="54" type="stmt" count="1"/>
71962
+ <line num="62" type="stmt" count="1"/>
71963
+ <line num="63" type="stmt" count="1"/>
71964
+ <line num="66" type="stmt" count="1"/>
71965
+ <line num="67" type="stmt" count="1"/>
71966
+ <line num="68" type="stmt" count="1"/>
71967
+ <line num="69" type="stmt" count="1"/>
71968
+ <line num="71" type="stmt" count="1"/>
71969
+ <line num="72" type="stmt" count="1"/>
71970
+ <line num="75" type="stmt" count="1"/>
71971
+ <line num="76" type="stmt" count="1"/>
71972
+ <line num="79" type="stmt" count="1"/>
71973
+ <line num="80" type="stmt" count="1"/>
71974
+ <line num="83" type="stmt" count="1"/>
71975
+ <line num="84" type="stmt" count="1"/>
71976
+ <line num="85" type="stmt" count="1"/>
71977
+ <line num="86" type="stmt" count="1"/>
71978
+ <line num="89" type="stmt" count="1"/>
71979
+ <line num="92" type="stmt" count="1"/>
71980
+ <line num="93" type="stmt" count="1"/>
71981
+ <line num="94" type="stmt" count="1"/>
71982
+ <line num="95" type="stmt" count="1"/>
71983
+ <line num="97" type="stmt" count="1"/>
71984
+ <line num="98" type="stmt" count="1"/>
71985
+ <line num="101" type="stmt" count="1"/>
71986
+ <line num="104" type="stmt" count="1"/>
71987
+ <line num="106" type="stmt" count="1"/>
71988
+ <line num="107" type="stmt" count="1"/>
71989
+ <line num="108" type="stmt" count="1"/>
71990
+ <line num="110" type="stmt" count="1"/>
71991
+ <line num="111" type="stmt" count="1"/>
71992
+ <line num="114" type="stmt" count="1"/>
71993
+ <line num="115" type="stmt" count="1"/>
71994
+ <line num="116" type="stmt" count="1"/>
71995
+ <line num="123" type="method" name="test_get_timezone_info" visibility="public" complexity="1" crap="1" count="1"/>
71996
+ <line num="124" type="stmt" count="1"/>
71997
+ <line num="126" type="stmt" count="1"/>
71998
+ <line num="128" type="stmt" count="1"/>
71999
+ <line num="129" type="stmt" count="1"/>
72000
+ <line num="130" type="stmt" count="1"/>
72001
+ <line num="131" type="stmt" count="1"/>
72002
+ <line num="133" type="stmt" count="1"/>
72003
+ <line num="134" type="stmt" count="1"/>
72004
+ <metrics loc="135" ncloc="76" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
72005
+ </file>
72006
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/bootstrap.php">
72007
+ <line num="139" type="stmt" count="0"/>
72008
+ <line num="140" type="stmt" count="0"/>
72009
+ <line num="142" type="stmt" count="0"/>
72010
+ <line num="144" type="stmt" count="0"/>
72011
+ <line num="145" type="stmt" count="0"/>
72012
+ <metrics loc="147" ncloc="113" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="5" coveredelements="0"/>
72013
+ </file>
72014
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/cli/test-class-info.php">
72015
+ <class name="Test_Boldgrid_Backup_Cli_Info" namespace="global" fullPackage="Test.Boldgrid.Backup.Cli">
72016
+ <metrics complexity="16" methods="15" coveredmethods="14" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="61" elements="78" coveredelements="75"/>
72017
+ </class>
72018
+ <line num="45" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="12"/>
72019
+ <line num="46" type="stmt" count="12"/>
72020
+ <line num="47" type="stmt" count="12"/>
72021
+ <line num="48" type="stmt" count="12"/>
72022
+ <line num="49" type="stmt" count="12"/>
72023
+ <line num="56" type="method" name="change_server_argv" visibility="public" complexity="1" crap="1" count="12"/>
72024
+ <line num="58" type="stmt" count="12"/>
72025
+ <line num="59" type="stmt" count="12"/>
72026
+ <line num="60" type="stmt" count="12"/>
72027
+ <line num="61" type="stmt" count="12"/>
72028
+ <line num="62" type="stmt" count="12"/>
72029
+ <line num="63" type="stmt" count="12"/>
72030
+ <line num="64" type="stmt" count="12"/>
72031
+ <line num="65" type="stmt" count="12"/>
72032
+ <line num="66" type="stmt" count="12"/>
72033
+ <line num="68" type="stmt" count="12"/>
72034
+ <line num="69" type="stmt" count="12"/>
72035
+ <line num="76" type="method" name="reset_server_argv" visibility="public" complexity="1" crap="1" count="1"/>
72036
+ <line num="77" type="stmt" count="1"/>
72037
+ <line num="78" type="stmt" count="1"/>
72038
+ <line num="85" type="method" name="test_choose_method" visibility="public" complexity="1" crap="1" count="1"/>
72039
+ <line num="87" type="stmt" count="1"/>
72040
+ <line num="89" type="stmt" count="1"/>
72041
+ <line num="90" type="stmt" count="1"/>
72042
+ <line num="97" type="method" name="test_get_arg_value" visibility="public" complexity="1" crap="1" count="1"/>
72043
+ <line num="98" type="stmt" count="1"/>
72044
+ <line num="100" type="stmt" count="1"/>
72045
+ <line num="101" type="stmt" count="1"/>
72046
+ <line num="108" type="method" name="test_get_cli_args" visibility="public" complexity="1" crap="1" count="1"/>
72047
+ <line num="109" type="stmt" count="1"/>
72048
+ <line num="111" type="stmt" count="1"/>
72049
+ <line num="112" type="stmt" count="1"/>
72050
+ <line num="115" type="stmt" count="1"/>
72051
+ <line num="116" type="stmt" count="1"/>
72052
+ <line num="117" type="stmt" count="1"/>
72053
+ <line num="118" type="stmt" count="1"/>
72054
+ <line num="125" type="method" name="test_get_info" visibility="public" complexity="1" crap="1" count="1"/>
72055
+ <line num="126" type="stmt" count="1"/>
72056
+ <line num="128" type="stmt" count="1"/>
72057
+ <line num="130" type="stmt" count="1"/>
72058
+ <line num="131" type="stmt" count="1"/>
72059
+ <line num="138" type="method" name="test_get_mode" visibility="public" complexity="1" crap="1" count="1"/>
72060
+ <line num="139" type="stmt" count="1"/>
72061
+ <line num="140" type="stmt" count="1"/>
72062
+ <line num="147" type="method" name="test_has_arg_flag" visibility="public" complexity="1" crap="1" count="1"/>
72063
+ <line num="148" type="stmt" count="1"/>
72064
+ <line num="150" type="stmt" count="1"/>
72065
+ <line num="152" type="stmt" count="1"/>
72066
+ <line num="153" type="stmt" count="1"/>
72067
+ <line num="160" type="method" name="test_have_execution_functions" visibility="public" complexity="1" crap="1" count="1"/>
72068
+ <line num="161" type="stmt" count="1"/>
72069
+ <line num="162" type="stmt" count="1"/>
72070
+ <line num="169" type="method" name="test_has_errors" visibility="public" complexity="1" crap="1" count="1"/>
72071
+ <line num="171" type="stmt" count="1"/>
72072
+ <line num="172" type="stmt" count="1"/>
72073
+ <line num="179" type="method" name="test_is_cli" visibility="public" complexity="1" crap="1" count="1"/>
72074
+ <line num="181" type="stmt" count="1"/>
72075
+ <line num="182" type="stmt" count="1"/>
72076
+ <line num="189" type="method" name="test_get_results_filepath" visibility="public" complexity="1" crap="1" count="1"/>
72077
+ <line num="190" type="stmt" count="1"/>
72078
+ <line num="192" type="stmt" count="1"/>
72079
+ <line num="193" type="stmt" count="1"/>
72080
+ <line num="200" type="method" name="test_get_zip_arg" visibility="public" complexity="1" crap="1" count="1"/>
72081
+ <line num="202" type="stmt" count="1"/>
72082
+ <line num="203" type="stmt" count="1"/>
72083
+ <line num="210" type="method" name="test_read_json_file" visibility="public" complexity="2" crap="2.02" count="1"/>
72084
+ <line num="211" type="stmt" count="1"/>
72085
+ <line num="213" type="stmt" count="1"/>
72086
+ <line num="215" type="stmt" count="1"/>
72087
+ <line num="216" type="stmt" count="0"/>
72088
+ <line num="217" type="stmt" count="0"/>
72089
+ <line num="218" type="stmt" count="1"/>
72090
+ <line num="219" type="stmt" count="1"/>
72091
+ <line num="221" type="stmt" count="1"/>
72092
+ <line num="222" type="stmt" count="1"/>
72093
+ <line num="223" type="stmt" count="1"/>
72094
+ <line num="225" type="stmt" count="1"/>
72095
+ <line num="226" type="stmt" count="1"/>
72096
+ <metrics loc="227" ncloc="109" classes="1" methods="15" coveredmethods="14" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="61" elements="78" coveredelements="75"/>
72097
+ </file>
72098
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/uninstall.php">
72099
+ <line num="12" type="stmt" count="0"/>
72100
+ <line num="13" type="stmt" count="0"/>
72101
+ <line num="14" type="stmt" count="0"/>
72102
+ <line num="17" type="stmt" count="0"/>
72103
+ <line num="18" type="stmt" count="0"/>
72104
+ <line num="19" type="stmt" count="0"/>
72105
+ <line num="20" type="stmt" count="0"/>
72106
+ <line num="21" type="stmt" count="0"/>
72107
+ <line num="23" type="stmt" count="0"/>
72108
+ <line num="24" type="stmt" count="0"/>
72109
+ <line num="25" type="stmt" count="0"/>
72110
+ <metrics loc="25" ncloc="13" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="0" elements="11" coveredelements="0"/>
72111
+ </file>
72112
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/autoload.php">
72113
+ <line num="5" type="stmt" count="0"/>
72114
+ <line num="7" type="stmt" count="0"/>
72115
+ <metrics loc="7" ncloc="5" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="0" elements="2" coveredelements="0"/>
72116
+ </file>
72117
  <package name="Boldgrid\Library\Library\Api">
72118
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Api/Availability.php">
72119
  <class name="Availability" namespace="Boldgrid\Library\Library\Api">
73000
  <package name="Boldgrid\Library\Library\Plugin">
73001
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Checker.php">
73002
  <class name="Checker" namespace="Boldgrid\Library\Library\Plugin">
73003
+ <metrics complexity="10" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="38" coveredstatements="0" elements="43" coveredelements="0"/>
73004
  </class>
73005
+ <line num="32" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
73006
+ <line num="33" type="stmt" count="0"/>
73007
  <line num="34" type="stmt" count="0"/>
73008
+ <line num="35" type="method" name="anonymous function" complexity="1" crap="2" count="0"/>
73009
  <line num="36" type="stmt" count="0"/>
73010
+ <line num="37" type="stmt" count="0"/>
73011
+ <line num="38" type="stmt" count="0"/>
73012
+ <line num="39" type="stmt" count="0"/>
73013
+ <line num="46" type="method" name="run" visibility="public" complexity="2" crap="6" count="0"/>
73014
  <line num="48" type="stmt" count="0"/>
73015
  <line num="49" type="stmt" count="0"/>
73016
  <line num="50" type="stmt" count="0"/>
73017
+ <line num="51" type="stmt" count="0"/>
73018
  <line num="52" type="stmt" count="0"/>
73019
+ <line num="53" type="stmt" count="0"/>
73020
  <line num="54" type="stmt" count="0"/>
 
73021
  <line num="56" type="stmt" count="0"/>
73022
+ <line num="58" type="stmt" count="0"/>
73023
+ <line num="59" type="stmt" count="0"/>
73024
+ <line num="60" type="stmt" count="0"/>
73025
+ <line num="61" type="stmt" count="0"/>
73026
+ <line num="70" type="method" name="getPluginPattern" visibility="public" complexity="1" crap="2" count="0"/>
73027
+ <line num="71" type="stmt" count="0"/>
73028
+ <line num="72" type="stmt" count="0"/>
73029
+ <line num="87" type="method" name="findUpdated" visibility="public" complexity="5" crap="30" count="0"/>
73030
  <line num="88" type="stmt" count="0"/>
73031
+ <line num="90" type="stmt" count="0"/>
73032
  <line num="92" type="stmt" count="0"/>
73033
+ <line num="95" type="stmt" count="0"/>
73034
+ <line num="96" type="stmt" count="0"/>
73035
  <line num="97" type="stmt" count="0"/>
73036
  <line num="98" type="stmt" count="0"/>
73037
+ <line num="101" type="stmt" count="0"/>
73038
+ <line num="102" type="stmt" count="0"/>
73039
+ <line num="103" type="stmt" count="0"/>
 
73040
  <line num="128" type="stmt" count="0"/>
73041
+ <line num="129" type="stmt" count="0"/>
73042
  <line num="131" type="stmt" count="0"/>
73043
  <line num="132" type="stmt" count="0"/>
73044
+ <line num="135" type="stmt" count="0"/>
73045
+ <line num="136" type="stmt" count="0"/>
 
73046
  <line num="143" type="stmt" count="0"/>
73047
+ <line num="144" type="stmt" count="0"/>
73048
+ <line num="146" type="stmt" count="0"/>
73049
+ <line num="147" type="stmt" count="0"/>
73050
+ <metrics loc="148" ncloc="65" classes="1" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="40" coveredstatements="0" elements="45" coveredelements="0"/>
73051
+ </file>
73052
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Factory.php">
73053
+ <class name="Factory" namespace="Boldgrid\Library\Library\Plugin">
73054
+ <metrics complexity="25" methods="7" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="79" coveredstatements="64" elements="86" coveredelements="69"/>
73055
+ </class>
73056
+ <line num="39" type="method" name="create" visibility="public" complexity="2" crap="2" count="36"/>
73057
+ <line num="40" type="stmt" count="36"/>
73058
+ <line num="41" type="stmt" count="36"/>
73059
+ <line num="42" type="stmt" count="29"/>
73060
+ <line num="43" type="stmt" count="29"/>
73061
+ <line num="44" type="stmt" count="7"/>
73062
+ <line num="47" type="stmt" count="36"/>
73063
+ <line num="59" type="method" name="createFromSlug" visibility="public" complexity="3" crap="3" count="29"/>
73064
+ <line num="61" type="stmt" count="29"/>
73065
+ <line num="63" type="stmt" count="29"/>
73066
+ <line num="65" type="stmt" count="29"/>
73067
+ <line num="67" type="stmt" count="29"/>
73068
+ <line num="69" type="stmt" count="29"/>
73069
+ <line num="71" type="stmt" count="29"/>
73070
+ <line num="73" type="stmt" count="29"/>
73071
+ <line num="75" type="stmt" count="29"/>
73072
+ <line num="76" type="stmt" count="29"/>
73073
+ <line num="77" type="stmt" count="29"/>
73074
+ <line num="78" type="stmt" count="29"/>
73075
+ <line num="79" type="stmt" count="29"/>
73076
+ <line num="80" type="stmt" count="29"/>
73077
+ <line num="81" type="stmt" count="29"/>
73078
+ <line num="83" type="stmt" count="29"/>
73079
+ <line num="94" type="method" name="createFromFile" visibility="private" complexity="3" crap="3" count="7"/>
73080
+ <line num="96" type="stmt" count="7"/>
73081
+ <line num="98" type="stmt" count="7"/>
73082
+ <line num="100" type="stmt" count="7"/>
73083
+ <line num="102" type="stmt" count="7"/>
73084
+ <line num="104" type="stmt" count="7"/>
73085
+ <line num="106" type="stmt" count="7"/>
73086
+ <line num="108" type="stmt" count="7"/>
73087
+ <line num="110" type="stmt" count="7"/>
73088
+ <line num="111" type="stmt" count="7"/>
73089
+ <line num="112" type="stmt" count="7"/>
73090
+ <line num="113" type="stmt" count="7"/>
73091
+ <line num="114" type="stmt" count="7"/>
73092
+ <line num="115" type="stmt" count="7"/>
73093
+ <line num="117" type="stmt" count="7"/>
73094
+ <line num="131" type="method" name="fileFromSlug" visibility="public" complexity="6" crap="8.05" count="29"/>
73095
+ <line num="132" type="stmt" count="29"/>
73096
+ <line num="133" type="stmt" count="29"/>
73097
+ <line num="134" type="stmt" count="0"/>
73098
+ <line num="135" type="stmt" count="29"/>
73099
+ <line num="136" type="stmt" count="0"/>
73100
+ <line num="137" type="stmt" count="0"/>
73101
+ <line num="138" type="stmt" count="29"/>
73102
+ <line num="139" type="stmt" count="29"/>
73103
+ <line num="140" type="stmt" count="29"/>
73104
+ <line num="141" type="stmt" count="0"/>
73105
+ <line num="142" type="stmt" count="0"/>
73106
+ <line num="143" type="stmt" count="29"/>
73107
+ <line num="145" type="stmt" count="29"/>
73108
+ <line num="157" type="method" name="slugFromFile" visibility="public" complexity="4" crap="4" count="7"/>
73109
+ <line num="158" type="stmt" count="7"/>
73110
+ <line num="159" type="stmt" count="7"/>
73111
+ <line num="161" type="stmt" count="7"/>
73112
+ <line num="162" type="stmt" count="7"/>
73113
+ <line num="168" type="stmt" count="7"/>
73114
+ <line num="169" type="stmt" count="7"/>
73115
+ <line num="170" type="stmt" count="7"/>
73116
+ <line num="171" type="stmt" count="7"/>
73117
+ <line num="172" type="stmt" count="7"/>
73118
+ <line num="173" type="stmt" count="7"/>
73119
+ <line num="174" type="stmt" count="7"/>
73120
+ <line num="175" type="stmt" count="7"/>
73121
+ <line num="177" type="stmt" count="7"/>
73122
+ <line num="185" type="method" name="isPluginInstalled" visibility="public" complexity="1" crap="1" count="36"/>
73123
+ <line num="186" type="stmt" count="36"/>
73124
+ <line num="187" type="stmt" count="36"/>
73125
+ <line num="199" type="method" name="getChildPlugins" visibility="public" complexity="6" crap="14.79" count="36"/>
73126
+ <line num="200" type="stmt" count="36"/>
73127
+ <line num="202" type="stmt" count="36"/>
73128
+ <line num="203" type="stmt" count="36"/>
73129
+ <line num="204" type="stmt" count="36"/>
73130
+ <line num="205" type="stmt" count="0"/>
73131
+ <line num="206" type="stmt" count="0"/>
73132
+ <line num="207" type="stmt" count="0"/>
73133
+ <line num="208" type="stmt" count="0"/>
73134
+ <line num="209" type="stmt" count="0"/>
73135
+ <line num="210" type="stmt" count="0"/>
73136
+ <line num="212" type="stmt" count="36"/>
73137
+ <line num="213" type="stmt" count="36"/>
73138
+ <line num="216" type="stmt" count="0"/>
73139
+ <line num="217" type="stmt" count="0"/>
73140
+ <line num="218" type="stmt" count="0"/>
73141
+ <line num="220" type="stmt" count="0"/>
73142
+ <metrics loc="222" ncloc="134" classes="1" methods="7" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="79" coveredstatements="64" elements="86" coveredelements="69"/>
73143
  </file>
73144
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Notice.php">
73145
  <class name="Notice" namespace="Boldgrid\Library\Library\Plugin">
73146
+ <metrics complexity="23" methods="16" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="69" coveredstatements="24" elements="85" coveredelements="28"/>
73147
  </class>
73148
+ <line num="92" type="method" name="__construct" visibility="public" complexity="2" crap="2.41" count="29"/>
73149
+ <line num="93" type="stmt" count="29"/>
73150
+ <line num="95" type="stmt" count="29"/>
73151
+ <line num="96" type="stmt" count="0"/>
73152
+ <line num="97" type="stmt" count="0"/>
73153
+ <line num="98" type="stmt" count="0"/>
73154
+ <line num="99" type="stmt" count="0"/>
73155
+ <line num="100" type="stmt" count="0"/>
73156
+ <line num="101" type="stmt" count="0"/>
73157
+ <line num="102" type="stmt" count="0"/>
73158
+ <line num="103" type="stmt" count="29"/>
73159
+ <line num="104" type="stmt" count="29"/>
73160
+ <line num="105" type="stmt" count="29"/>
73161
+ <line num="106" type="stmt" count="29"/>
73162
+ <line num="107" type="stmt" count="29"/>
73163
+ <line num="109" type="stmt" count="29"/>
73164
+ <line num="118" type="method" name="getId" visibility="public" complexity="1" crap="2" count="0"/>
73165
+ <line num="119" type="stmt" count="0"/>
73166
+ <line num="129" type="method" name="setId" visibility="public" complexity="1" crap="1" count="29"/>
73167
+ <line num="130" type="stmt" count="29"/>
73168
+ <line num="131" type="stmt" count="29"/>
73169
+ <line num="140" type="method" name="getPageSlug" visibility="public" complexity="1" crap="1" count="1"/>
73170
+ <line num="141" type="stmt" count="1"/>
73171
+ <line num="151" type="method" name="setPageSlug" visibility="public" complexity="1" crap="2" count="0"/>
73172
+ <line num="152" type="stmt" count="0"/>
73173
+ <line num="153" type="stmt" count="0"/>
73174
+ <line num="162" type="method" name="getVersion" visibility="public" complexity="1" crap="2" count="0"/>
73175
+ <line num="163" type="stmt" count="0"/>
73176
+ <line num="173" type="method" name="setVersion" visibility="public" complexity="1" crap="2" count="0"/>
73177
+ <line num="174" type="stmt" count="0"/>
73178
+ <line num="175" type="stmt" count="0"/>
73179
+ <line num="184" type="method" name="maybeShow" visibility="public" complexity="2" crap="2" count="1"/>
73180
+ <line num="185" type="stmt" count="1"/>
73181
+ <line num="186" type="stmt" count="1"/>
73182
+ <line num="187" type="stmt" count="1"/>
73183
+ <line num="189" type="stmt" count="1"/>
73184
+ <line num="199" type="method" name="getIsUnread" visibility="public" complexity="2" crap="2.15" count="1"/>
 
 
73185
  <line num="200" type="stmt" count="1"/>
73186
+ <line num="201" type="stmt" count="0"/>
73187
+ <line num="203" type="stmt" count="1"/>
73188
+ <line num="213" type="method" name="setIsUnread" visibility="public" complexity="1" crap="2" count="0"/>
73189
+ <line num="214" type="stmt" count="0"/>
73190
+ <line num="215" type="stmt" count="0"/>
73191
+ <line num="216" type="stmt" count="0"/>
73192
+ <line num="225" type="method" name="alreadyExists" visibility="public" complexity="1" crap="1" count="29"/>
73193
+ <line num="226" type="stmt" count="29"/>
73194
+ <line num="239" type="method" name="getFromOptions" visibility="public" complexity="3" crap="3.33" count="29"/>
73195
+ <line num="240" type="stmt" count="29"/>
73196
+ <line num="241" type="stmt" count="29"/>
73197
+ <line num="243" type="stmt" count="29"/>
73198
+ <line num="244" type="stmt" count="29"/>
73199
+ <line num="245" type="stmt" count="0"/>
73200
+ <line num="246" type="stmt" count="0"/>
73201
+ <line num="248" type="stmt" count="0"/>
73202
+ <line num="249" type="stmt" count="29"/>
73203
+ <line num="250" type="stmt" count="29"/>
73204
+ <line num="262" type="method" name="updateNoticeOption" visibility="public" complexity="2" crap="6" count="0"/>
73205
+ <line num="263" type="stmt" count="0"/>
73206
+ <line num="264" type="stmt" count="0"/>
73207
+ <line num="265" type="stmt" count="0"/>
73208
+ <line num="266" type="stmt" count="0"/>
73209
+ <line num="267" type="stmt" count="0"/>
73210
+ <line num="268" type="stmt" count="0"/>
73211
+ <line num="269" type="stmt" count="0"/>
73212
+ <line num="271" type="stmt" count="0"/>
73213
+ <line num="272" type="stmt" count="0"/>
73214
+ <line num="273" type="stmt" count="0"/>
73215
+ <line num="274" type="stmt" count="0"/>
73216
+ <line num="275" type="stmt" count="0"/>
73217
+ <line num="276" type="stmt" count="0"/>
73218
+ <line num="279" type="stmt" count="0"/>
73219
+ <line num="280" type="stmt" count="0"/>
73220
+ <line num="291" type="method" name="getPlugin" visibility="public" complexity="1" crap="2" count="0"/>
73221
+ <line num="292" type="stmt" count="0"/>
73222
+ <line num="304" type="method" name="setPlugin" visibility="public" complexity="1" crap="2" count="0"/>
73223
+ <line num="305" type="stmt" count="0"/>
73224
+ <line num="306" type="stmt" count="0"/>
73225
+ <line num="321" type="method" name="noticeVersionChanged" visibility="private" complexity="2" crap="6" count="0"/>
73226
+ <line num="322" type="stmt" count="0"/>
73227
+ <line num="323" type="stmt" count="0"/>
73228
+ <line num="324" type="stmt" count="0"/>
73229
+ <line num="325" type="stmt" count="0"/>
73230
+ <line num="326" type="stmt" count="0"/>
73231
+ <line num="327" type="stmt" count="0"/>
73232
+ <line num="329" type="stmt" count="0"/>
73233
+ <metrics loc="330" ncloc="132" classes="1" methods="16" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="69" coveredstatements="24" elements="85" coveredelements="28"/>
73234
  </file>
73235
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Notices.php">
73236
  <class name="Notices" namespace="Boldgrid\Library\Library\Plugin">
73237
+ <metrics complexity="3" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="0" elements="22" coveredelements="0"/>
73238
  </class>
73239
  <line num="38" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
73240
  <line num="40" type="stmt" count="0"/>
73250
  <line num="57" type="stmt" count="0"/>
73251
  <line num="58" type="stmt" count="0"/>
73252
  <line num="59" type="stmt" count="0"/>
73253
+ <line num="60" type="stmt" count="0"/>
73254
  <line num="62" type="stmt" count="0"/>
73255
  <line num="63" type="stmt" count="0"/>
73256
+ <line num="64" type="stmt" count="0"/>
73257
+ <line num="73" type="stmt" count="0"/>
73258
+ <line num="75" type="stmt" count="0"/>
73259
  <line num="77" type="stmt" count="0"/>
73260
+ <line num="78" type="stmt" count="0"/>
73261
+ <metrics loc="79" ncloc="38" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="0" elements="22" coveredelements="0"/>
73262
  </file>
73263
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Page.php">
73264
  <class name="Page" namespace="Boldgrid\Library\Library\Plugin">
73265
+ <metrics complexity="24" methods="13" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="38" elements="63" coveredelements="47"/>
73266
+ </class>
73267
+ <line num="77" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
73268
+ <line num="79" type="stmt" count="29"/>
73269
+ <line num="81" type="stmt" count="29"/>
73270
+ <line num="83" type="stmt" count="29"/>
73271
+ <line num="85" type="stmt" count="29"/>
73272
+ <line num="86" type="stmt" count="29"/>
73273
+ <line num="95" type="method" name="getPlugin" visibility="public" complexity="1" crap="1" count="29"/>
73274
+ <line num="96" type="stmt" count="29"/>
73275
+ <line num="106" type="method" name="setPlugin" visibility="private" complexity="1" crap="1" count="29"/>
73276
+ <line num="107" type="stmt" count="29"/>
73277
+ <line num="108" type="stmt" count="29"/>
73278
+ <line num="117" type="method" name="getPluginConfig" visibility="public" complexity="1" crap="1" count="29"/>
73279
+ <line num="118" type="stmt" count="29"/>
73280
+ <line num="128" type="method" name="setPluginConfig" visibility="private" complexity="1" crap="1" count="29"/>
73281
+ <line num="129" type="stmt" count="29"/>
73282
+ <line num="130" type="stmt" count="29"/>
73283
+ <line num="131" type="stmt" count="29"/>
73284
+ <line num="140" type="method" name="getNotices" visibility="public" complexity="3" crap="3" count="1"/>
73285
+ <line num="141" type="stmt" count="1"/>
73286
+ <line num="142" type="stmt" count="1"/>
73287
+ <line num="143" type="stmt" count="1"/>
73288
+ <line num="144" type="stmt" count="1"/>
73289
+ <line num="145" type="stmt" count="1"/>
73290
+ <line num="146" type="stmt" count="1"/>
73291
+ <line num="147" type="stmt" count="1"/>
73292
+ <line num="158" type="method" name="getNoticeById" visibility="public" complexity="3" crap="12" count="0"/>
73293
+ <line num="159" type="stmt" count="0"/>
73294
+ <line num="160" type="stmt" count="0"/>
73295
+ <line num="161" type="stmt" count="0"/>
73296
+ <line num="163" type="stmt" count="0"/>
73297
+ <line num="164" type="stmt" count="0"/>
73298
+ <line num="171" type="method" name="setNotices" visibility="public" complexity="3" crap="3" count="29"/>
73299
+ <line num="172" type="stmt" count="29"/>
73300
+ <line num="173" type="stmt" count="29"/>
73301
+ <line num="174" type="stmt" count="29"/>
73302
+ <line num="175" type="stmt" count="29"/>
73303
+ <line num="176" type="stmt" count="29"/>
73304
+ <line num="177" type="stmt" count="29"/>
73305
+ <line num="178" type="stmt" count="29"/>
73306
+ <line num="179" type="stmt" count="29"/>
73307
+ <line num="188" type="method" name="setAllNoticesRead" visibility="public" complexity="2" crap="6" count="0"/>
73308
+ <line num="189" type="stmt" count="0"/>
73309
+ <line num="190" type="stmt" count="0"/>
73310
+ <line num="191" type="stmt" count="0"/>
73311
+ <line num="192" type="stmt" count="0"/>
73312
+ <line num="201" type="method" name="getUnreadCount" visibility="public" complexity="4" crap="4.37" count="1"/>
73313
+ <line num="202" type="stmt" count="1"/>
73314
+ <line num="203" type="stmt" count="1"/>
73315
+ <line num="204" type="stmt" count="1"/>
73316
+ <line num="205" type="stmt" count="0"/>
73317
+ <line num="206" type="stmt" count="0"/>
73318
+ <line num="207" type="stmt" count="1"/>
73319
+ <line num="208" type="stmt" count="1"/>
73320
+ <line num="220" type="method" name="getUnreadMarkup" visibility="public" complexity="2" crap="2.06" count="1"/>
73321
+ <line num="221" type="stmt" count="1"/>
73322
+ <line num="222" type="stmt" count="1"/>
73323
+ <line num="223" type="stmt" count="0"/>
73324
+ <line num="225" type="stmt" count="1"/>
73325
+ <line num="236" type="method" name="getSlug" visibility="public" complexity="1" crap="1" count="2"/>
73326
+ <line num="237" type="stmt" count="2"/>
73327
+ <line num="247" type="method" name="setSlug" visibility="public" complexity="1" crap="1" count="29"/>
73328
+ <line num="248" type="stmt" count="29"/>
73329
+ <line num="249" type="stmt" count="29"/>
73330
+ <metrics loc="250" ncloc="102" classes="1" methods="13" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="50" coveredstatements="38" elements="63" coveredelements="47"/>
73331
  </file>
73332
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Plugin.php">
73333
  <class name="Plugin" namespace="Boldgrid\Library\Library\Plugin">
73334
+ <metrics complexity="48" methods="28" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="41" elements="120" coveredelements="52"/>
73335
+ </class>
73336
+ <line num="140" type="method" name="__construct" visibility="public" complexity="4" crap="4" count="36"/>
73337
+ <line num="144" type="stmt" count="36"/>
73338
+ <line num="145" type="stmt" count="29"/>
73339
+ <line num="146" type="stmt" count="29"/>
73340
+ <line num="147" type="stmt" count="29"/>
73341
+ <line num="149" type="stmt" count="36"/>
73342
+ <line num="150" type="stmt" count="36"/>
73343
+ <line num="151" type="stmt" count="36"/>
73344
+ <line num="153" type="stmt" count="36"/>
73345
+ <line num="155" type="stmt" count="36"/>
73346
+ <line num="156" type="stmt" count="36"/>
73347
+ <line num="165" type="method" name="setUpdateData" visibility="public" complexity="1" crap="1" count="1"/>
73348
+ <line num="166" type="stmt" count="1"/>
73349
+ <line num="167" type="stmt" count="1"/>
73350
+ <line num="178" type="method" name="firstVersionCompare" visibility="public" complexity="1" crap="1" count="1"/>
73351
+ <line num="180" type="stmt" count="1"/>
73352
+ <line num="182" type="stmt" count="1"/>
73353
+ <line num="192" type="method" name="getActivateUrl" visibility="public" complexity="1" crap="2" count="0"/>
73354
+ <line num="193" type="stmt" count="0"/>
 
 
 
 
 
73355
  <line num="194" type="stmt" count="0"/>
73356
+ <line num="195" type="stmt" count="0"/>
73357
+ <line num="196" type="stmt" count="0"/>
73358
+ <line num="206" type="method" name="getIcons" visibility="public" complexity="3" crap="12" count="0"/>
73359
+ <line num="207" type="stmt" count="0"/>
73360
+ <line num="209" type="stmt" count="0"/>
73361
+ <line num="210" type="stmt" count="0"/>
73362
+ <line num="211" type="stmt" count="0"/>
73363
  <line num="213" type="stmt" count="0"/>
73364
+ <line num="223" type="method" name="getChildPlugins" visibility="public" complexity="1" crap="2" count="0"/>
73365
+ <line num="224" type="stmt" count="0"/>
73366
+ <line num="237" type="method" name="getData" visibility="public" complexity="2" crap="2" count="1"/>
73367
+ <line num="238" type="stmt" count="1"/>
73368
+ <line num="240" type="stmt" count="1"/>
73369
+ <line num="252" type="method" name="getDownloadUrl" visibility="public" complexity="1" crap="2" count="0"/>
73370
+ <line num="253" type="stmt" count="0"/>
73371
+ <line num="255" type="stmt" count="0"/>
73372
+ <line num="257" type="stmt" count="0"/>
73373
+ <line num="267" type="method" name="getInstallUrl" visibility="public" complexity="1" crap="2" count="0"/>
73374
+ <line num="268" type="stmt" count="0"/>
73375
+ <line num="269" type="stmt" count="0"/>
73376
+ <line num="270" type="stmt" count="0"/>
73377
+ <line num="271" type="stmt" count="0"/>
73378
+ <line num="281" type="method" name="getIsInstalled" visibility="public" complexity="1" crap="2" count="0"/>
73379
+ <line num="282" type="stmt" count="0"/>
73380
+ <line num="292" type="method" name="getFile" visibility="public" complexity="1" crap="1" count="1"/>
73381
+ <line num="293" type="stmt" count="1"/>
73382
+ <line num="303" type="method" name="getNewVersion" visibility="public" complexity="2" crap="6" count="0"/>
 
 
 
73383
  <line num="304" type="stmt" count="0"/>
73384
  <line num="306" type="stmt" count="0"/>
73385
+ <line num="315" type="method" name="getPluginConfig" visibility="public" complexity="1" crap="1" count="29"/>
73386
+ <line num="316" type="stmt" count="29"/>
73387
+ <line num="326" type="method" name="getPluginData" visibility="public" complexity="3" crap="4.12" count="1"/>
73388
+ <line num="327" type="stmt" count="1"/>
73389
+ <line num="328" type="stmt" count="0"/>
73390
+ <line num="329" type="stmt" count="0"/>
73391
+ <line num="330" type="stmt" count="1"/>
73392
+ <line num="340" type="method" name="getPluginsChecked" visibility="public" complexity="2" crap="2" count="1"/>
73393
+ <line num="341" type="stmt" count="1"/>
73394
+ <line num="343" type="stmt" count="1"/>
73395
+ <line num="345" type="stmt" count="1"/>
73396
+ <line num="355" type="method" name="getSlug" visibility="public" complexity="1" crap="1" count="2"/>
73397
+ <line num="356" type="stmt" count="2"/>
73398
+ <line num="365" type="method" name="setPages" visibility="public" complexity="3" crap="3" count="36"/>
73399
+ <line num="366" type="stmt" count="36"/>
73400
+ <line num="367" type="stmt" count="36"/>
73401
+ <line num="368" type="stmt" count="29"/>
73402
+ <line num="369" type="stmt" count="29"/>
73403
+ <line num="370" type="stmt" count="29"/>
73404
+ <line num="371" type="stmt" count="29"/>
73405
+ <line num="372" type="stmt" count="36"/>
73406
+ <line num="373" type="stmt" count="36"/>
73407
+ <line num="382" type="method" name="setAllNoticesRead" visibility="public" complexity="2" crap="6" count="0"/>
73408
+ <line num="383" type="stmt" count="0"/>
73409
+ <line num="384" type="stmt" count="0"/>
73410
+ <line num="385" type="stmt" count="0"/>
73411
+ <line num="386" type="stmt" count="0"/>
73412
+ <line num="396" type="method" name="getPages" visibility="public" complexity="1" crap="1" count="2"/>
73413
+ <line num="397" type="stmt" count="2"/>
73414
+ <line num="408" type="method" name="getPageBySlug" visibility="public" complexity="3" crap="3.58" count="2"/>
73415
+ <line num="409" type="stmt" count="2"/>
73416
+ <line num="410" type="stmt" count="2"/>
73417
+ <line num="411" type="stmt" count="2"/>
73418
+ <line num="413" type="stmt" count="0"/>
73419
+ <line num="414" type="stmt" count="0"/>
73420
+ <line num="423" type="method" name="setPluginData" visibility="public" complexity="1" crap="2" count="0"/>
73421
+ <line num="424" type="stmt" count="0"/>
73422
+ <line num="425" type="stmt" count="0"/>
73423
+ <line num="434" type="method" name="getUpdatePlugins" visibility="public" complexity="2" crap="6" count="0"/>
73424
+ <line num="435" type="stmt" count="0"/>
73425
+ <line num="436" type="stmt" count="0"/>
73426
+ <line num="437" type="stmt" count="0"/>
73427
+ <line num="439" type="stmt" count="0"/>
73428
+ <line num="449" type="method" name="hasUpdate" visibility="public" complexity="1" crap="2" count="0"/>
73429
+ <line num="450" type="stmt" count="0"/>
73430
+ <line num="452" type="stmt" count="0"/>
73431
+ <line num="462" type="method" name="isActive" visibility="public" complexity="1" crap="2" count="0"/>
73432
+ <line num="463" type="stmt" count="0"/>
73433
+ <line num="473" type="method" name="getFirstVersion" visibility="public" complexity="3" crap="4.54" count="1"/>
73434
+ <line num="474" type="stmt" count="1"/>
73435
+ <line num="476" type="stmt" count="1"/>
73436
+ <line num="485" type="stmt" count="0"/>
 
 
 
 
 
 
73437
  <line num="486" type="stmt" count="0"/>
73438
  <line num="487" type="stmt" count="0"/>
73439
  <line num="488" type="stmt" count="0"/>
73440
+ <line num="489" type="stmt" count="0"/>
73441
+ <line num="491" type="stmt" count="1"/>
73442
+ <line num="493" type="stmt" count="1"/>
73443
+ <line num="505" type="method" name="getUnreadCount" visibility="public" complexity="2" crap="6" count="0"/>
73444
+ <line num="506" type="stmt" count="0"/>
73445
+ <line num="507" type="stmt" count="0"/>
73446
+ <line num="508" type="stmt" count="0"/>
73447
+ <line num="509" type="stmt" count="0"/>
73448
+ <line num="510" type="stmt" count="0"/>
73449
+ <line num="522" type="method" name="getUnreadMarkup" visibility="public" complexity="2" crap="6" count="0"/>
73450
+ <line num="523" type="stmt" count="0"/>
73451
+ <line num="524" type="stmt" count="0"/>
73452
+ <line num="525" type="stmt" count="0"/>
73453
+ <line num="527" type="stmt" count="0"/>
73454
+ <line num="543" type="method" name="getPluginParams" visibility="public" complexity="1" crap="1" count="29"/>
73455
+ <line num="544" type="stmt" count="29"/>
73456
+ <metrics loc="546" ncloc="213" classes="1" methods="28" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="41" elements="120" coveredelements="52"/>
 
 
 
 
 
 
 
 
 
 
 
73457
  </file>
73458
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Plugins.php">
73459
  <class name="Plugins" namespace="Boldgrid\Library\Library\Plugin">
73460
+ <metrics complexity="8" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="24" coveredstatements="11" elements="27" coveredelements="12"/>
73461
  </class>
73462
+ <line num="34" type="method" name="getActive" visibility="public" complexity="3" crap="12" count="0"/>
73463
+ <line num="36" type="stmt" count="0"/>
 
 
 
73464
  <line num="38" type="stmt" count="0"/>
 
73465
  <line num="40" type="stmt" count="0"/>
 
 
73466
  <line num="43" type="stmt" count="0"/>
73467
+ <line num="44" type="stmt" count="0"/>
73468
  <line num="45" type="stmt" count="0"/>
73469
  <line num="46" type="stmt" count="0"/>
73470
+ <line num="47" type="stmt" count="0"/>
73471
+ <line num="48" type="stmt" count="0"/>
73472
+ <line num="49" type="stmt" count="0"/>
73473
+ <line num="51" type="stmt" count="0"/>
73474
+ <line num="61" type="method" name="getAllPlugins" visibility="public" complexity="2" crap="2" count="7"/>
73475
+ <line num="62" type="stmt" count="7"/>
73476
+ <line num="63" type="stmt" count="7"/>
73477
+ <line num="64" type="stmt" count="7"/>
73478
+ <line num="65" type="stmt" count="7"/>
73479
+ <line num="66" type="stmt" count="7"/>
73480
+ <line num="67" type="stmt" count="7"/>
73481
+ <line num="68" type="stmt" count="7"/>
73482
+ <line num="81" type="method" name="getBySlug" visibility="public" complexity="3" crap="3.33" count="1"/>
73483
+ <line num="82" type="stmt" count="1"/>
73484
+ <line num="83" type="stmt" count="1"/>
73485
+ <line num="84" type="stmt" count="1"/>
73486
+ <line num="85" type="stmt" count="1"/>
73487
+ <line num="87" type="stmt" count="0"/>
73488
+ <line num="88" type="stmt" count="0"/>
73489
+ <metrics loc="90" ncloc="41" classes="1" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="24" coveredstatements="11" elements="27" coveredelements="12"/>
73490
+ </file>
73491
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/UpdateData.php">
73492
+ <class name="UpdateData" namespace="Boldgrid\Library\Library\Plugin">
73493
+ <metrics complexity="32" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="103" coveredstatements="49" elements="111" coveredelements="49"/>
73494
+ </class>
73495
+ <line num="128" type="method" name="__construct" visibility="public" complexity="10" crap="14.21" count="1"/>
73496
+ <line num="129" type="stmt" count="1"/>
73497
+ <line num="132" type="stmt" count="1"/>
73498
+ <line num="134" type="stmt" count="1"/>
73499
+ <line num="136" type="stmt" count="1"/>
73500
+ <line num="137" type="stmt" count="0"/>
73501
+ <line num="138" type="stmt" count="0"/>
73502
+ <line num="139" type="stmt" count="0"/>
73503
+ <line num="140" type="stmt" count="0"/>
73504
+ <line num="141" type="stmt" count="0"/>
73505
+ <line num="142" type="stmt" count="0"/>
73506
+ <line num="143" type="stmt" count="0"/>
73507
+ <line num="144" type="stmt" count="0"/>
73508
+ <line num="145" type="stmt" count="1"/>
73509
+ <line num="146" type="stmt" count="1"/>
73510
+ <line num="147" type="stmt" count="1"/>
73511
+ <line num="148" type="stmt" count="1"/>
73512
+ <line num="149" type="stmt" count="1"/>
73513
+ <line num="150" type="stmt" count="1"/>
73514
+ <line num="151" type="stmt" count="1"/>
73515
+ <line num="153" type="stmt" count="1"/>
73516
+ <line num="155" type="stmt" count="1"/>
73517
+ <line num="156" type="stmt" count="1"/>
73518
+ <line num="157" type="stmt" count="1"/>
73519
+ <line num="165" type="method" name="getMinorVersionInstalls" visibility="public" complexity="3" crap="12" count="0"/>
73520
+ <line num="166" type="stmt" count="0"/>
73521
+ <line num="167" type="stmt" count="0"/>
73522
+ <line num="168" type="stmt" count="0"/>
73523
+ <line num="169" type="stmt" count="0"/>
73524
+ <line num="171" type="stmt" count="0"/>
73525
+ <line num="172" type="stmt" count="0"/>
73526
+ <line num="173" type="stmt" count="0"/>
73527
+ <line num="174" type="stmt" count="0"/>
73528
+ <line num="183" type="method" name="getResponseData" visibility="public" complexity="1" crap="2" count="0"/>
73529
+ <line num="184" type="stmt" count="0"/>
73530
+ <line num="196" type="method" name="fetchResponseData" visibility="public" complexity="6" crap="11.46" count="1"/>
73531
+ <line num="197" type="stmt" count="1"/>
73532
+ <line num="198" type="stmt" count="1"/>
73533
+ <line num="199" type="stmt" count="1"/>
73534
+ <line num="200" type="stmt" count="1"/>
73535
+ <line num="201" type="stmt" count="1"/>
73536
+ <line num="202" type="stmt" count="1"/>
73537
+ <line num="211" type="stmt" count="0"/>
73538
+ <line num="212" type="stmt" count="0"/>
73539
+ <line num="213" type="stmt" count="0"/>
73540
+ <line num="215" type="stmt" count="0"/>
73541
+ <line num="217" type="stmt" count="0"/>
73542
+ <line num="218" type="stmt" count="0"/>
73543
+ <line num="219" type="stmt" count="0"/>
73544
+ <line num="220" type="stmt" count="0"/>
73545
+ <line num="222" type="stmt" count="0"/>
73546
+ <line num="228" type="stmt" count="0"/>
73547
+ <line num="229" type="stmt" count="0"/>
73548
+ <line num="230" type="stmt" count="0"/>
73549
+ <line num="231" type="stmt" count="0"/>
73550
+ <line num="234" type="stmt" count="0"/>
73551
+ <line num="236" type="stmt" count="1"/>
73552
+ <line num="237" type="stmt" count="1"/>
73553
+ <line num="238" type="stmt" count="1"/>
73554
+ <line num="239" type="stmt" count="1"/>
73555
+ <line num="240" type="stmt" count="1"/>
73556
+ <line num="241" type="stmt" count="1"/>
73557
+ <line num="244" type="stmt" count="1"/>
73558
+ <line num="245" type="stmt" count="0"/>
73559
+ <line num="246" type="stmt" count="0"/>
73560
+ <line num="248" type="stmt" count="1"/>
73561
+ <line num="258" type="method" name="getInformationTransient" visibility="public" complexity="5" crap="10.40" count="1"/>
73562
+ <line num="259" type="stmt" count="1"/>
73563
+ <line num="260" type="stmt" count="1"/>
73564
+ <line num="261" type="stmt" count="1"/>
73565
+ <line num="262" type="stmt" count="1"/>
73566
+ <line num="264" type="stmt" count="0"/>
73567
+ <line num="267" type="stmt" count="0"/>
73568
+ <line num="268" type="stmt" count="0"/>
73569
+ <line num="271" type="stmt" count="0"/>
73570
+ <line num="272" type="stmt" count="0"/>
73571
+ <line num="274" type="stmt" count="0"/>
73572
+ <line num="283" type="method" name="getAgeOfTransient" visibility="public" complexity="2" crap="2.86" count="1"/>
73573
+ <line num="284" type="stmt" count="1"/>
73574
+ <line num="285" type="stmt" count="0"/>
73575
+ <line num="286" type="stmt" count="0"/>
73576
+ <line num="287" type="stmt" count="0"/>
73577
+ <line num="289" type="stmt" count="1"/>
73578
+ <line num="296" type="method" name="setInformationTransient" visibility="public" complexity="3" crap="3.02" count="1"/>
73579
+ <line num="297" type="stmt" count="1"/>
73580
+ <line num="298" type="stmt" count="1"/>
73581
+ <line num="299" type="stmt" count="1"/>
73582
+ <line num="300" type="stmt" count="1"/>
73583
+ <line num="302" type="stmt" count="1"/>
73584
+ <line num="303" type="stmt" count="1"/>
73585
+ <line num="304" type="stmt" count="1"/>
73586
+ <line num="305" type="stmt" count="1"/>
73587
+ <line num="306" type="stmt" count="1"/>
73588
+ <line num="307" type="stmt" count="1"/>
73589
+ <line num="308" type="stmt" count="1"/>
73590
+ <line num="311" type="stmt" count="1"/>
73591
+ <line num="312" type="stmt" count="1"/>
73592
+ <line num="313" type="stmt" count="0"/>
73593
+ <line num="314" type="stmt" count="0"/>
73594
+ <line num="316" type="stmt" count="1"/>
73595
+ <line num="325" type="method" name="getGenericInfo" visibility="public" complexity="2" crap="6" count="0"/>
73596
+ <line num="326" type="stmt" count="0"/>
73597
+ <line num="327" type="stmt" count="0"/>
73598
+ <line num="330" type="stmt" count="0"/>
73599
+ <line num="331" type="stmt" count="0"/>
73600
+ <line num="332" type="stmt" count="0"/>
73601
+ <line num="333" type="stmt" count="0"/>
73602
+ <line num="334" type="stmt" count="0"/>
73603
+ <line num="335" type="stmt" count="0"/>
73604
+ <line num="336" type="stmt" count="0"/>
73605
+ <line num="338" type="stmt" count="0"/>
73606
+ <metrics loc="340" ncloc="177" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="103" coveredstatements="49" elements="111" coveredelements="49"/>
73607
  </file>
73608
  </package>
73609
+ <package name="Boldgrid\Library\Library\Theme">
73610
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Theme/Theme.php">
73611
+ <class name="Theme" namespace="Boldgrid\Library\Library\Theme">
73612
+ <metrics complexity="9" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="27" coveredstatements="23" elements="32" coveredelements="27"/>
73613
+ </class>
73614
+ <line num="89" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="7"/>
73615
+ <line num="90" type="stmt" count="7"/>
73616
+ <line num="91" type="stmt" count="7"/>
73617
+ <line num="92" type="stmt" count="7"/>
73618
+ <line num="93" type="stmt" count="7"/>
73619
+ <line num="94" type="stmt" count="7"/>
73620
+ <line num="95" type="stmt" count="7"/>
73621
+ <line num="96" type="stmt" count="7"/>
73622
+ <line num="105" type="method" name="setUpdateData" visibility="public" complexity="1" crap="1" count="1"/>
73623
+ <line num="106" type="stmt" count="1"/>
73624
+ <line num="107" type="stmt" count="1"/>
73625
+ <line num="116" type="method" name="getParent" visibility="public" complexity="1" crap="1" count="7"/>
73626
+ <line num="117" type="stmt" count="7"/>
73627
+ <line num="118" type="stmt" count="7"/>
73628
+ <line num="126" type="method" name="setIsActive" visibility="private" complexity="2" crap="2" count="7"/>
73629
+ <line num="127" type="stmt" count="7"/>
73630
+ <line num="128" type="stmt" count="7"/>
73631
+ <line num="129" type="stmt" count="7"/>
73632
+ <line num="130" type="stmt" count="7"/>
73633
+ <line num="131" type="stmt" count="7"/>
73634
+ <line num="133" type="stmt" count="7"/>
73635
+ <line num="140" type="method" name="setHasUpdate" visibility="public" complexity="4" crap="5.02" count="7"/>
73636
+ <line num="141" type="stmt" count="7"/>
73637
+ <line num="142" type="stmt" count="0"/>
73638
+ <line num="143" type="stmt" count="0"/>
73639
+ <line num="144" type="stmt" count="7"/>
73640
+ <line num="147" type="stmt" count="7"/>
73641
+ <line num="149" type="stmt" count="7"/>
73642
+ <line num="150" type="stmt" count="0"/>
73643
+ <line num="151" type="stmt" count="0"/>
73644
+ <line num="152" type="stmt" count="7"/>
73645
+ <line num="154" type="stmt" count="7"/>
73646
+ <metrics loc="155" ncloc="59" classes="1" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="27" coveredstatements="23" elements="32" coveredelements="27"/>
73647
+ </file>
73648
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Theme/Themes.php">
73649
+ <class name="Themes" namespace="Boldgrid\Library\Library\Theme">
73650
+ <metrics complexity="7" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="13" coveredstatements="11" elements="17" coveredelements="13"/>
73651
+ </class>
73652
+ <line num="39" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="7"/>
73653
+ <line num="40" type="stmt" count="7"/>
73654
+ <line num="41" type="stmt" count="7"/>
73655
+ <line num="42" type="stmt" count="7"/>
73656
+ <line num="43" type="stmt" count="7"/>
73657
+ <line num="44" type="stmt" count="7"/>
73658
+ <line num="45" type="stmt" count="7"/>
73659
+ <line num="54" type="method" name="get" visibility="public" complexity="1" crap="1" count="2"/>
73660
+ <line num="55" type="stmt" count="2"/>
73661
+ <line num="66" type="method" name="getFromStylesheet" visibility="public" complexity="3" crap="3.07" count="1"/>
73662
+ <line num="67" type="stmt" count="1"/>
73663
+ <line num="68" type="stmt" count="1"/>
73664
+ <line num="69" type="stmt" count="1"/>
73665
+ <line num="71" type="stmt" count="1"/>
73666
+ <line num="72" type="stmt" count="0"/>
73667
+ <line num="82" type="method" name="getActive" visibility="public" complexity="1" crap="2" count="0"/>
73668
+ <line num="83" type="stmt" count="0"/>
73669
+ <metrics loc="85" ncloc="30" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="13" coveredstatements="11" elements="17" coveredelements="13"/>
73670
+ </file>
73671
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Theme/UpdateData.php">
73672
+ <class name="UpdateData" namespace="Boldgrid\Library\Library\Theme">
73673
+ <metrics complexity="19" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="78" coveredstatements="52" elements="84" coveredelements="53"/>
73674
  </class>
73675
+ <line num="112" type="method" name="__construct" visibility="public" complexity="5" crap="5.68" count="1"/>
73676
+ <line num="114" type="stmt" count="1"/>
73677
+ <line num="116" type="stmt" count="1"/>
73678
+ <line num="117" type="stmt" count="1"/>
73679
+ <line num="119" type="stmt" count="1"/>
73680
+ <line num="121" type="stmt" count="1"/>
73681
+ <line num="122" type="stmt" count="0"/>
73682
+ <line num="123" type="stmt" count="0"/>
73683
+ <line num="124" type="stmt" count="0"/>
73684
+ <line num="125" type="stmt" count="0"/>
73685
  <line num="126" type="stmt" count="0"/>
73686
  <line num="127" type="stmt" count="0"/>
73687
  <line num="128" type="stmt" count="1"/>
73688
+ <line num="129" type="stmt" count="1"/>
73689
+ <line num="130" type="stmt" count="1"/>
73690
  <line num="131" type="stmt" count="1"/>
73691
  <line num="132" type="stmt" count="1"/>
 
73692
  <line num="134" type="stmt" count="1"/>
73693
+ <line num="137" type="stmt" count="1"/>
 
73694
  <line num="139" type="stmt" count="1"/>
73695
  <line num="140" type="stmt" count="1"/>
73696
+ <line num="149" type="method" name="getResponseData" visibility="public" complexity="1" crap="2" count="0"/>
73697
+ <line num="150" type="stmt" count="0"/>
73698
+ <line num="160" type="method" name="fetchResponseData" visibility="public" complexity="3" crap="3.01" count="1"/>
73699
+ <line num="161" type="stmt" count="1"/>
73700
+ <line num="163" type="stmt" count="1"/>
73701
+ <line num="165" type="stmt" count="1"/>
73702
+ <line num="166" type="stmt" count="1"/>
 
 
 
 
 
 
 
 
73703
  <line num="167" type="stmt" count="1"/>
 
73704
  <line num="169" type="stmt" count="1"/>
73705
  <line num="171" type="stmt" count="1"/>
73706
+ <line num="172" type="stmt" count="1"/>
73707
  <line num="173" type="stmt" count="1"/>
73708
  <line num="174" type="stmt" count="1"/>
73709
+ <line num="176" type="stmt" count="1"/>
 
73710
  <line num="178" type="stmt" count="1"/>
73711
+ <line num="179" type="stmt" count="1"/>
73712
+ <line num="181" type="stmt" count="1"/>
73713
+ <line num="182" type="stmt" count="1"/>
73714
+ <line num="183" type="stmt" count="1"/>
73715
+ <line num="184" type="stmt" count="1"/>
73716
+ <line num="185" type="stmt" count="1"/>
73717
+ <line num="186" type="stmt" count="1"/>
73718
+ <line num="189" type="stmt" count="1"/>
73719
+ <line num="190" type="stmt" count="0"/>
73720
+ <line num="191" type="stmt" count="0"/>
73721
+ <line num="194" type="stmt" count="1"/>
73722
+ <line num="204" type="method" name="getInformationTransient" visibility="public" complexity="5" crap="11.44" count="1"/>
73723
+ <line num="205" type="stmt" count="1"/>
73724
+ <line num="207" type="stmt" count="1"/>
73725
+ <line num="208" type="stmt" count="1"/>
73726
+ <line num="209" type="stmt" count="1"/>
73727
+ <line num="211" type="stmt" count="0"/>
73728
+ <line num="214" type="stmt" count="0"/>
73729
+ <line num="215" type="stmt" count="0"/>
73730
+ <line num="216" type="stmt" count="0"/>
73731
+ <line num="219" type="stmt" count="0"/>
73732
+ <line num="220" type="stmt" count="0"/>
73733
+ <line num="222" type="stmt" count="0"/>
73734
+ <line num="230" type="method" name="setInformationTransient" visibility="public" complexity="3" crap="3" count="1"/>
73735
+ <line num="231" type="stmt" count="1"/>
73736
+ <line num="232" type="stmt" count="1"/>
73737
+ <line num="233" type="stmt" count="1"/>
73738
+ <line num="234" type="stmt" count="1"/>
73739
+ <line num="236" type="stmt" count="1"/>
73740
+ <line num="237" type="stmt" count="1"/>
73741
+ <line num="238" type="stmt" count="1"/>
73742
+ <line num="239" type="stmt" count="1"/>
73743
+ <line num="240" type="stmt" count="1"/>
73744
+ <line num="243" type="stmt" count="1"/>
73745
+ <line num="244" type="stmt" count="1"/>
73746
+ <line num="245" type="stmt" count="1"/>
73747
+ <line num="246" type="stmt" count="1"/>
73748
+ <line num="255" type="method" name="getGenericInfo" visibility="public" complexity="2" crap="6" count="0"/>
73749
+ <line num="256" type="stmt" count="0"/>
73750
+ <line num="257" type="stmt" count="0"/>
73751
+ <line num="260" type="stmt" count="0"/>
73752
+ <line num="261" type="stmt" count="0"/>
73753
+ <line num="262" type="stmt" count="0"/>
73754
+ <line num="263" type="stmt" count="0"/>
73755
+ <line num="264" type="stmt" count="0"/>
73756
+ <line num="265" type="stmt" count="0"/>
73757
+ <line num="266" type="stmt" count="0"/>
73758
+ <line num="268" type="stmt" count="0"/>
73759
+ <metrics loc="270" ncloc="146" classes="1" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="78" coveredstatements="52" elements="84" coveredelements="53"/>
73760
+ </file>
73761
+ </package>
73762
+ <package name="Boldgrid\Library\Library\Ui">
73763
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui/Card.php">
73764
+ <class name="Card" namespace="Boldgrid\Library\Library\Ui">
73765
+ <metrics complexity="14" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="2" elements="44" coveredelements="3"/>
73766
+ </class>
73767
+ <line num="97" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
73768
+ <line num="98" type="stmt" count="1"/>
73769
+ <line num="99" type="stmt" count="1"/>
73770
+ <line num="108" type="method" name="maybeShowRibbon" visibility="public" complexity="3" crap="12" count="0"/>
73771
+ <line num="110" type="stmt" count="0"/>
73772
+ <line num="111" type="stmt" count="0"/>
73773
+ <line num="112" type="stmt" count="0"/>
73774
+ <line num="123" type="method" name="printCard" visibility="public" complexity="10" crap="110" count="0"/>
73775
+ <line num="125" type="stmt" count="0"/>
73776
+ <line num="126" type="stmt" count="0"/>
73777
+ <line num="127" type="stmt" count="0"/>
73778
+ <line num="128" type="stmt" count="0"/>
73779
+ <line num="131" type="stmt" count="0"/>
73780
+ <line num="132" type="stmt" count="0"/>
73781
+ <line num="133" type="stmt" count="0"/>
73782
+ <line num="134" type="stmt" count="0"/>
73783
+ <line num="135" type="stmt" count="0"/>
73784
+ <line num="138" type="stmt" count="0"/>
73785
+ <line num="139" type="stmt" count="0"/>
73786
+ <line num="140" type="stmt" count="0"/>
73787
+ <line num="142" type="stmt" count="0"/>
73788
+ <line num="143" type="stmt" count="0"/>
73789
+ <line num="145" type="stmt" count="0"/>
73790
+ <line num="147" type="stmt" count="0"/>
73791
+ <line num="148" type="stmt" count="0"/>
73792
+ <line num="149" type="stmt" count="0"/>
73793
+ <line num="151" type="stmt" count="0"/>
73794
+ <line num="152" type="stmt" count="0"/>
73795
+ <line num="154" type="stmt" count="0"/>
73796
+ <line num="155" type="stmt" count="0"/>
73797
+ <line num="156" type="stmt" count="0"/>
73798
+ <line num="158" type="stmt" count="0"/>
73799
+ <line num="159" type="stmt" count="0"/>
73800
+ <line num="160" type="stmt" count="0"/>
73801
+ <line num="164" type="stmt" count="0"/>
73802
+ <line num="167" type="stmt" count="0"/>
73803
+ <line num="168" type="stmt" count="0"/>
73804
+ <line num="169" type="stmt" count="0"/>
73805
+ <line num="171" type="stmt" count="0"/>
73806
+ <line num="173" type="stmt" count="0"/>
73807
+ <line num="174" type="stmt" count="0"/>
73808
+ <line num="175" type="stmt" count="0"/>
73809
+ <line num="176" type="stmt" count="0"/>
73810
+ <line num="178" type="stmt" count="0"/>
73811
+ <metrics loc="179" ncloc="77" classes="1" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="2" elements="44" coveredelements="3"/>
73812
  </file>
73813
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui/Dashboard.php">
73814
  <class name="Dashboard" namespace="Boldgrid\Library\Library\Ui">
73815
+ <metrics complexity="4" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="13" coveredstatements="0" elements="15" coveredelements="0"/>
73816
  </class>
73817
  <line num="42" type="method" name="enqueueScripts" visibility="public" complexity="1" crap="2" count="0"/>
73818
  <line num="43" type="stmt" count="0"/>
73821
  <line num="46" type="stmt" count="0"/>
73822
  <line num="47" type="stmt" count="0"/>
73823
  <line num="48" type="stmt" count="0"/>
73824
+ <line num="55" type="method" name="printCards" visibility="public" complexity="3" crap="12" count="0"/>
73825
+ <line num="57" type="stmt" count="0"/>
73826
+ <line num="59" type="stmt" count="0"/>
73827
+ <line num="60" type="stmt" count="0"/>
73828
+ <line num="61" type="stmt" count="0"/>
73829
+ <line num="62" type="stmt" count="0"/>
73830
+ <line num="64" type="stmt" count="0"/>
73831
+ <line num="65" type="stmt" count="0"/>
73832
+ <metrics loc="66" ncloc="31" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="13" coveredstatements="0" elements="15" coveredelements="0"/>
73833
  </file>
73834
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui/Feature.php">
73835
  <class name="Feature" namespace="Boldgrid\Library\Library\Ui">
73854
  <line num="79" type="stmt" count="0"/>
73855
  <metrics loc="80" ncloc="32" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="15" coveredstatements="0" elements="17" coveredelements="0"/>
73856
  </file>
73857
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Ui/Page.php">
73858
+ <class name="Page" namespace="Boldgrid\Library\Library\Ui">
73859
+ <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="0" elements="10" coveredelements="0"/>
73860
+ </class>
73861
+ <line num="26" type="method" name="enqueueScripts" visibility="public" complexity="1" crap="2" count="0"/>
73862
+ <line num="27" type="stmt" count="0"/>
73863
+ <line num="29" type="stmt" count="0"/>
73864
+ <line num="30" type="stmt" count="0"/>
73865
+ <line num="31" type="stmt" count="0"/>
73866
+ <line num="32" type="stmt" count="0"/>
73867
+ <line num="33" type="stmt" count="0"/>
73868
+ <line num="34" type="stmt" count="0"/>
73869
+ <line num="36" type="stmt" count="0"/>
73870
+ <line num="37" type="stmt" count="0"/>
73871
+ <metrics loc="38" ncloc="19" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="0" elements="10" coveredelements="0"/>
73872
+ </file>
73873
  </package>
73874
  <package name="Boldgrid\Library\Library\Usage">
73875
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Usage/Helper.php">
74860
  <line num="84" type="stmt" count="0"/>
74861
  <line num="85" type="stmt" count="0"/>
74862
  <line num="87" type="stmt" count="0"/>
74863
+ <line num="100" type="method" name="getWpFilesystem" visibility="public" complexity="2" crap="2.50" count="36"/>
74864
+ <line num="101" type="stmt" count="36"/>
74865
+ <line num="104" type="stmt" count="36"/>
74866
  <line num="105" type="stmt" count="0"/>
74867
  <line num="106" type="stmt" count="0"/>
74868
  <line num="107" type="stmt" count="0"/>
74869
+ <line num="109" type="stmt" count="36"/>
74870
  <line num="120" type="method" name="getContents" visibility="public" complexity="3" crap="12" count="0"/>
74871
  <line num="121" type="stmt" count="0"/>
74872
  <line num="123" type="stmt" count="0"/>
74979
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/library.global.php">
74980
  <line num="6" type="stmt" count="0"/>
74981
  <line num="8" type="stmt" count="0"/>
 
74982
  <line num="10" type="stmt" count="0"/>
74983
  <line num="11" type="stmt" count="0"/>
74984
  <line num="12" type="stmt" count="0"/>
74985
  <line num="13" type="stmt" count="0"/>
74986
  <line num="14" type="stmt" count="0"/>
74987
+ <line num="15" type="stmt" count="0"/>
74988
+ <line num="18" type="stmt" count="0"/>
74989
+ <line num="21" type="stmt" count="0"/>
74990
+ <line num="24" type="stmt" count="0"/>
74991
+ <line num="27" type="stmt" count="0"/>
74992
+ <line num="30" type="stmt" count="0"/>
74993
+ <line num="33" type="stmt" count="0"/>
74994
+ <line num="36" type="stmt" count="0"/>
74995
  <line num="39" type="stmt" count="0"/>
74996
  <line num="40" type="stmt" count="0"/>
74997
  <line num="41" type="stmt" count="0"/>
75003
  <line num="47" type="stmt" count="0"/>
75004
  <line num="48" type="stmt" count="0"/>
75005
  <line num="49" type="stmt" count="0"/>
75006
+ <line num="50" type="stmt" count="0"/>
75007
  <line num="53" type="stmt" count="0"/>
75008
  <line num="54" type="stmt" count="0"/>
75009
  <line num="55" type="stmt" count="0"/>
75037
  <line num="83" type="stmt" count="0"/>
75038
  <line num="84" type="stmt" count="0"/>
75039
  <line num="85" type="stmt" count="0"/>
75040
+ <line num="86" type="stmt" count="0"/>
75041
  <line num="101" type="stmt" count="0"/>
75042
  <line num="102" type="stmt" count="0"/>
75043
  <line num="103" type="stmt" count="0"/>
75061
  <line num="121" type="stmt" count="0"/>
75062
  <line num="122" type="stmt" count="0"/>
75063
  <line num="123" type="stmt" count="0"/>
75064
+ <line num="124" type="stmt" count="0"/>
75065
  <line num="127" type="stmt" count="0"/>
75066
  <line num="128" type="stmt" count="0"/>
75067
  <line num="129" type="stmt" count="0"/>
75075
  <line num="137" type="stmt" count="0"/>
75076
  <line num="138" type="stmt" count="0"/>
75077
  <line num="139" type="stmt" count="0"/>
75078
+ <line num="140" type="stmt" count="0"/>
75079
  <line num="144" type="stmt" count="0"/>
75080
+ <line num="145" type="stmt" count="0"/>
75081
+ <metrics loc="145" ncloc="105" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="101" coveredstatements="0" elements="101" coveredelements="0"/>
75082
  </file>
75083
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Library/test-activity.php">
75084
  <class name="Test_Activty" namespace="global" fullPackage="Test">
75085
+ <metrics complexity="8" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="42" coveredstatements="0" elements="50" coveredelements="0"/>
75086
  </class>
75087
  <line num="30" type="method" name="setup" visibility="public" complexity="1" crap="2" count="0"/>
75088
  <line num="31" type="stmt" count="0"/>
75115
  <line num="88" type="stmt" count="0"/>
75116
  <line num="90" type="stmt" count="0"/>
75117
  <line num="91" type="stmt" count="0"/>
75118
+ <line num="101" type="method" name="testGetActivityCount" visibility="public" complexity="1" crap="2" count="0"/>
75119
+ <line num="102" type="stmt" count="0"/>
75120
  <line num="104" type="stmt" count="0"/>
75121
+ <line num="105" type="stmt" count="0"/>
75122
+ <line num="114" type="method" name="testGetPluginActivities" visibility="public" complexity="1" crap="2" count="0"/>
75123
  <line num="115" type="stmt" count="0"/>
75124
  <line num="117" type="stmt" count="0"/>
75125
  <line num="118" type="stmt" count="0"/>
75126
+ <line num="131" type="method" name="testSaveActivities" visibility="public" complexity="1" crap="2" count="0"/>
75127
+ <line num="132" type="stmt" count="0"/>
75128
+ <line num="134" type="stmt" count="0"/>
75129
+ <line num="135" type="stmt" count="0"/>
75130
+ <line num="137" type="stmt" count="0"/>
75131
+ <line num="138" type="stmt" count="0"/>
75132
+ <line num="148" type="method" name="testSavePluginActivities" visibility="public" complexity="1" crap="2" count="0"/>
75133
+ <line num="149" type="stmt" count="0"/>
75134
+ <line num="151" type="stmt" count="0"/>
75135
+ <line num="153" type="stmt" count="0"/>
75136
+ <line num="154" type="stmt" count="0"/>
75137
+ <metrics loc="155" ncloc="81" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="42" coveredstatements="0" elements="50" coveredelements="0"/>
 
 
 
 
 
 
75138
  </file>
75139
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Library/test-rating-prompt.php">
75140
  <class name="Test_Rating_Prompt" namespace="global" fullPackage="Test.Rating">
75141
+ <metrics complexity="15" methods="15" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="241" coveredstatements="0" elements="256" coveredelements="0"/>
75142
  </class>
75143
  <line num="56" type="method" name="reset" visibility="public" complexity="1" crap="2" count="0"/>
75144
  <line num="57" type="stmt" count="0"/>
75255
  <line num="203" type="stmt" count="0"/>
75256
  <line num="204" type="stmt" count="0"/>
75257
  <line num="205" type="stmt" count="0"/>
75258
+ <line num="212" type="method" name="testGetDecisionAttributes" visibility="public" complexity="1" crap="2" count="0"/>
75259
+ <line num="219" type="stmt" count="0"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75260
  <line num="220" type="stmt" count="0"/>
75261
  <line num="221" type="stmt" count="0"/>
75262
  <line num="222" type="stmt" count="0"/>
75263
  <line num="223" type="stmt" count="0"/>
75264
  <line num="224" type="stmt" count="0"/>
75265
+ <line num="232" type="stmt" count="0"/>
 
 
 
 
 
 
75266
  <line num="233" type="stmt" count="0"/>
75267
+ <line num="234" type="stmt" count="0"/>
75268
+ <line num="235" type="stmt" count="0"/>
75269
  <line num="236" type="stmt" count="0"/>
75270
  <line num="237" type="stmt" count="0"/>
75271
+ <line num="244" type="stmt" count="0"/>
75272
+ <line num="245" type="stmt" count="0"/>
75273
+ <line num="246" type="stmt" count="0"/>
75274
+ <line num="247" type="stmt" count="0"/>
75275
+ <line num="248" type="stmt" count="0"/>
75276
+ <line num="249" type="stmt" count="0"/>
75277
+ <line num="260" type="method" name="testGetLastDismissal" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
 
 
75278
  <line num="262" type="stmt" count="0"/>
75279
+ <line num="264" type="stmt" count="0"/>
75280
  <line num="265" type="stmt" count="0"/>
75281
  <line num="266" type="stmt" count="0"/>
75282
+ <line num="267" type="stmt" count="0"/>
75283
+ <line num="268" type="stmt" count="0"/>
75284
  <line num="270" type="stmt" count="0"/>
75285
  <line num="271" type="stmt" count="0"/>
75286
+ <line num="274" type="stmt" count="0"/>
 
75287
  <line num="276" type="stmt" count="0"/>
75288
+ <line num="277" type="stmt" count="0"/>
75289
  <line num="278" type="stmt" count="0"/>
75290
  <line num="279" type="stmt" count="0"/>
75291
  <line num="280" type="stmt" count="0"/>
 
75292
  <line num="282" type="stmt" count="0"/>
75293
+ <line num="283" type="stmt" count="0"/>
75294
+ <line num="284" type="stmt" count="0"/>
75295
+ <line num="293" type="method" name="testIsMinInterval" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
 
75296
  <line num="297" type="stmt" count="0"/>
75297
  <line num="299" type="stmt" count="0"/>
 
 
75298
  <line num="302" type="stmt" count="0"/>
75299
  <line num="303" type="stmt" count="0"/>
75300
+ <line num="304" type="stmt" count="0"/>
75301
+ <line num="306" type="stmt" count="0"/>
 
75302
  <line num="309" type="stmt" count="0"/>
75303
  <line num="310" type="stmt" count="0"/>
 
75304
  <line num="312" type="stmt" count="0"/>
75305
+ <line num="313" type="stmt" count="0"/>
75306
+ <line num="315" type="stmt" count="0"/>
75307
+ <line num="318" type="stmt" count="0"/>
75308
+ <line num="319" type="stmt" count="0"/>
75309
+ <line num="320" type="stmt" count="0"/>
75310
  <line num="321" type="stmt" count="0"/>
 
75311
  <line num="323" type="stmt" count="0"/>
75312
  <line num="324" type="stmt" count="0"/>
75313
+ <line num="331" type="method" name="testGetPrompt" visibility="public" complexity="1" crap="2" count="0"/>
75314
+ <line num="332" type="stmt" count="0"/>
 
 
 
75315
  <line num="334" type="stmt" count="0"/>
 
75316
  <line num="336" type="stmt" count="0"/>
75317
+ <line num="337" type="stmt" count="0"/>
75318
+ <line num="344" type="method" name="testGetPrompts" visibility="public" complexity="1" crap="2" count="0"/>
75319
+ <line num="345" type="stmt" count="0"/>
75320
+ <line num="347" type="stmt" count="0"/>
75321
+ <line num="349" type="stmt" count="0"/>
75322
+ <line num="350" type="stmt" count="0"/>
75323
+ <line num="357" type="method" name="testIsPluginDismissed" visibility="public" complexity="1" crap="2" count="0"/>
75324
  <line num="359" type="stmt" count="0"/>
 
75325
  <line num="361" type="stmt" count="0"/>
 
 
75326
  <line num="364" type="stmt" count="0"/>
75327
  <line num="365" type="stmt" count="0"/>
75328
  <line num="366" type="stmt" count="0"/>
75329
  <line num="367" type="stmt" count="0"/>
75330
+ <line num="369" type="stmt" count="0"/>
75331
+ <line num="372" type="stmt" count="0"/>
75332
+ <line num="373" type="stmt" count="0"/>
75333
+ <line num="374" type="stmt" count="0"/>
75334
+ <line num="375" type="stmt" count="0"/>
75335
+ <line num="377" type="stmt" count="0"/>
75336
  <line num="378" type="stmt" count="0"/>
75337
+ <line num="385" type="method" name="testIsPrompt" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
75338
  <line num="386" type="stmt" count="0"/>
75339
+ <line num="388" type="stmt" count="0"/>
75340
+ <line num="390" type="stmt" count="0"/>
75341
+ <line num="391" type="stmt" count="0"/>
75342
+ <line num="398" type="method" name="testGetPluginPrompts" visibility="public" complexity="1" crap="2" count="0"/>
75343
  <line num="399" type="stmt" count="0"/>
 
75344
  <line num="401" type="stmt" count="0"/>
75345
+ <line num="403" type="stmt" count="0"/>
75346
+ <line num="404" type="stmt" count="0"/>
75347
+ <line num="405" type="stmt" count="0"/>
75348
+ <line num="407" type="stmt" count="0"/>
75349
+ <line num="408" type="stmt" count="0"/>
75350
+ <line num="409" type="stmt" count="0"/>
75351
+ <line num="418" type="method" name="testGetNext" visibility="public" complexity="1" crap="2" count="0"/>
 
75352
  <line num="420" type="stmt" count="0"/>
 
75353
  <line num="422" type="stmt" count="0"/>
75354
  <line num="423" type="stmt" count="0"/>
75355
+ <line num="426" type="stmt" count="0"/>
75356
+ <line num="427" type="stmt" count="0"/>
75357
+ <line num="428" type="stmt" count="0"/>
75358
  <line num="429" type="stmt" count="0"/>
75359
  <line num="430" type="stmt" count="0"/>
75360
  <line num="431" type="stmt" count="0"/>
 
75361
  <line num="433" type="stmt" count="0"/>
75362
  <line num="434" type="stmt" count="0"/>
 
75363
  <line num="437" type="stmt" count="0"/>
75364
+ <line num="438" type="stmt" count="0"/>
75365
  <line num="439" type="stmt" count="0"/>
75366
  <line num="440" type="stmt" count="0"/>
75367
  <line num="441" type="stmt" count="0"/>
75368
+ <line num="442" type="stmt" count="0"/>
75369
  <line num="443" type="stmt" count="0"/>
75370
  <line num="444" type="stmt" count="0"/>
75371
+ <line num="446" type="stmt" count="0"/>
75372
+ <line num="447" type="stmt" count="0"/>
75373
  <line num="448" type="stmt" count="0"/>
75374
+ <line num="457" type="method" name="testUpdatePrompt" visibility="public" complexity="1" crap="2" count="0"/>
75375
+ <line num="458" type="stmt" count="0"/>
75376
+ <line num="460" type="stmt" count="0"/>
75377
+ <line num="463" type="stmt" count="0"/>
75378
+ <line num="464" type="stmt" count="0"/>
75379
+ <line num="465" type="stmt" count="0"/>
75380
+ <line num="468" type="stmt" count="0"/>
75381
+ <line num="469" type="stmt" count="0"/>
75382
+ <line num="470" type="stmt" count="0"/>
75383
+ <line num="479" type="method" name="testSavePrompts" visibility="public" complexity="1" crap="2" count="0"/>
75384
+ <line num="480" type="stmt" count="0"/>
75385
+ <line num="482" type="stmt" count="0"/>
75386
+ <line num="484" type="stmt" count="0"/>
75387
+ <line num="486" type="stmt" count="0"/>
75388
+ <line num="488" type="stmt" count="0"/>
75389
+ <line num="489" type="stmt" count="0"/>
75390
+ <line num="498" type="method" name="testUpdatePromptKey" visibility="public" complexity="1" crap="2" count="0"/>
75391
+ <line num="499" type="stmt" count="0"/>
75392
+ <line num="501" type="stmt" count="0"/>
75393
+ <line num="502" type="stmt" count="0"/>
75394
+ <line num="503" type="stmt" count="0"/>
75395
+ <line num="505" type="stmt" count="0"/>
75396
+ <line num="507" type="stmt" count="0"/>
75397
+ <line num="509" type="stmt" count="0"/>
75398
+ <line num="510" type="stmt" count="0"/>
75399
+ <metrics loc="511" ncloc="317" classes="1" methods="15" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="241" coveredstatements="0" elements="256" coveredelements="0"/>
75400
  </file>
75401
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Plugin/test-factory.php">
75402
+ <class name="Test_BoldGrid_Library_Library_Plugin_Factory" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Plugin">
75403
+ <metrics complexity="4" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="26" coveredstatements="0" elements="30" coveredelements="0"/>
75404
  </class>
75405
+ <line num="33" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
75406
+ <line num="34" type="stmt" count="0"/>
75407
+ <line num="35" type="stmt" count="0"/>
75408
+ <line num="36" type="stmt" count="0"/>
75409
+ <line num="37" type="stmt" count="0"/>
75410
+ <line num="38" type="stmt" count="0"/>
75411
+ <line num="39" type="stmt" count="0"/>
75412
+ <line num="40" type="stmt" count="0"/>
75413
+ <line num="41" type="stmt" count="0"/>
75414
  <line num="42" type="stmt" count="0"/>
75415
  <line num="43" type="stmt" count="0"/>
 
75416
  <line num="45" type="stmt" count="0"/>
75417
  <line num="46" type="stmt" count="0"/>
75418
+ <line num="53" type="method" name="test_create" visibility="public" complexity="1" crap="2" count="0"/>
75419
+ <line num="54" type="stmt" count="0"/>
75420
+ <line num="55" type="stmt" count="0"/>
75421
+ <line num="56" type="stmt" count="0"/>
75422
+ <line num="57" type="stmt" count="0"/>
75423
+ <line num="58" type="stmt" count="0"/>
75424
+ <line num="59" type="stmt" count="0"/>
75425
+ <line num="66" type="method" name="test_fileFromSlug" visibility="public" complexity="1" crap="2" count="0"/>
75426
+ <line num="67" type="stmt" count="0"/>
75427
+ <line num="68" type="stmt" count="0"/>
75428
+ <line num="69" type="stmt" count="0"/>
75429
+ <line num="70" type="stmt" count="0"/>
75430
+ <line num="71" type="stmt" count="0"/>
75431
+ <line num="78" type="method" name="test_slugFromFile" visibility="public" complexity="1" crap="2" count="0"/>
75432
+ <line num="79" type="stmt" count="0"/>
75433
+ <line num="80" type="stmt" count="0"/>
75434
+ <line num="81" type="stmt" count="0"/>
75435
+ <metrics loc="82" ncloc="44" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="26" coveredstatements="0" elements="30" coveredelements="0"/>
75436
+ </file>
75437
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Plugin/test-notice.php">
75438
+ <class name="Test_BoldGrid_Library_Library_Plugin_Notice" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Plugin">
75439
+ <metrics complexity="13" methods="13" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="98" coveredstatements="0" elements="111" coveredelements="0"/>
75440
+ </class>
75441
+ <line num="25" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
75442
+ <line num="26" type="stmt" count="0"/>
75443
+ <line num="27" type="stmt" count="0"/>
75444
+ <line num="28" type="stmt" count="0"/>
75445
+ <line num="29" type="stmt" count="0"/>
75446
+ <line num="30" type="stmt" count="0"/>
75447
+ <line num="31" type="stmt" count="0"/>
75448
+ <line num="32" type="stmt" count="0"/>
75449
+ <line num="34" type="stmt" count="0"/>
75450
+ <line num="35" type="stmt" count="0"/>
75451
+ <line num="36" type="stmt" count="0"/>
75452
+ <line num="37" type="stmt" count="0"/>
75453
+ <line num="38" type="stmt" count="0"/>
75454
+ <line num="39" type="stmt" count="0"/>
75455
+ <line num="40" type="stmt" count="0"/>
75456
+ <line num="41" type="stmt" count="0"/>
75457
+ <line num="42" type="stmt" count="0"/>
75458
+ <line num="49" type="method" name="test_construct" visibility="public" complexity="1" crap="2" count="0"/>
75459
  <line num="50" type="stmt" count="0"/>
75460
  <line num="51" type="stmt" count="0"/>
 
75461
  <line num="53" type="stmt" count="0"/>
75462
  <line num="54" type="stmt" count="0"/>
75463
  <line num="55" type="stmt" count="0"/>
75464
  <line num="56" type="stmt" count="0"/>
75465
  <line num="57" type="stmt" count="0"/>
75466
  <line num="58" type="stmt" count="0"/>
75467
+ <line num="65" type="method" name="test_getId" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
75468
  <line num="66" type="stmt" count="0"/>
75469
  <line num="67" type="stmt" count="0"/>
 
75470
  <line num="69" type="stmt" count="0"/>
75471
  <line num="70" type="stmt" count="0"/>
75472
  <line num="71" type="stmt" count="0"/>
75473
+ <line num="78" type="method" name="test_getPageSlug" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
75474
  <line num="79" type="stmt" count="0"/>
75475
  <line num="80" type="stmt" count="0"/>
75476
+ <line num="82" type="stmt" count="0"/>
75477
+ <line num="83" type="stmt" count="0"/>
75478
+ <line num="84" type="stmt" count="0"/>
75479
+ <line num="91" type="method" name="test_setPageSlug" visibility="public" complexity="1" crap="2" count="0"/>
75480
  <line num="92" type="stmt" count="0"/>
75481
+ <line num="93" type="stmt" count="0"/>
75482
  <line num="95" type="stmt" count="0"/>
75483
  <line num="96" type="stmt" count="0"/>
75484
  <line num="97" type="stmt" count="0"/>
75485
  <line num="98" type="stmt" count="0"/>
75486
+ <line num="105" type="method" name="test_getVersion" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
75487
  <line num="106" type="stmt" count="0"/>
75488
+ <line num="107" type="stmt" count="0"/>
75489
+ <line num="109" type="stmt" count="0"/>
75490
+ <line num="110" type="stmt" count="0"/>
75491
+ <line num="111" type="stmt" count="0"/>
75492
+ <line num="118" type="method" name="test_setVersion" visibility="public" complexity="1" crap="2" count="0"/>
75493
+ <line num="119" type="stmt" count="0"/>
75494
+ <line num="120" type="stmt" count="0"/>
75495
+ <line num="122" type="stmt" count="0"/>
75496
+ <line num="123" type="stmt" count="0"/>
75497
  <line num="124" type="stmt" count="0"/>
75498
  <line num="125" type="stmt" count="0"/>
75499
+ <line num="132" type="method" name="test_maybeShow" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
75500
  <line num="133" type="stmt" count="0"/>
75501
  <line num="134" type="stmt" count="0"/>
 
75502
  <line num="136" type="stmt" count="0"/>
75503
  <line num="137" type="stmt" count="0"/>
75504
+ <line num="144" type="method" name="test_getIsUnread" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
75505
  <line num="145" type="stmt" count="0"/>
75506
  <line num="146" type="stmt" count="0"/>
75507
+ <line num="148" type="stmt" count="0"/>
75508
+ <line num="150" type="stmt" count="0"/>
75509
  <line num="151" type="stmt" count="0"/>
75510
  <line num="152" type="stmt" count="0"/>
75511
  <line num="153" type="stmt" count="0"/>
75513
  <line num="155" type="stmt" count="0"/>
75514
  <line num="156" type="stmt" count="0"/>
75515
  <line num="157" type="stmt" count="0"/>
 
75516
  <line num="159" type="stmt" count="0"/>
75517
  <line num="160" type="stmt" count="0"/>
75518
  <line num="161" type="stmt" count="0"/>
75519
+ <line num="168" type="method" name="test_setIsUnread" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
75520
  <line num="169" type="stmt" count="0"/>
75521
  <line num="170" type="stmt" count="0"/>
75522
+ <line num="172" type="stmt" count="0"/>
75523
  <line num="174" type="stmt" count="0"/>
75524
  <line num="175" type="stmt" count="0"/>
75525
+ <line num="182" type="method" name="test_getFromOptions" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
75526
  <line num="183" type="stmt" count="0"/>
75527
  <line num="184" type="stmt" count="0"/>
75528
  <line num="185" type="stmt" count="0"/>
75529
  <line num="186" type="stmt" count="0"/>
75530
  <line num="187" type="stmt" count="0"/>
75531
+ <line num="188" type="stmt" count="0"/>
75532
+ <line num="189" type="stmt" count="0"/>
75533
+ <line num="191" type="stmt" count="0"/>
75534
  <line num="192" type="stmt" count="0"/>
75535
  <line num="193" type="stmt" count="0"/>
75536
  <line num="194" type="stmt" count="0"/>
75537
  <line num="195" type="stmt" count="0"/>
75538
  <line num="196" type="stmt" count="0"/>
75539
  <line num="198" type="stmt" count="0"/>
75540
+ <line num="199" type="stmt" count="0"/>
75541
+ <line num="206" type="method" name="test_getPlugin" visibility="public" complexity="1" crap="2" count="0"/>
75542
+ <line num="207" type="stmt" count="0"/>
 
 
75543
  <line num="208" type="stmt" count="0"/>
 
75544
  <line num="210" type="stmt" count="0"/>
75545
  <line num="211" type="stmt" count="0"/>
75546
+ <line num="218" type="method" name="test_setPlugin" visibility="public" complexity="1" crap="2" count="0"/>
75547
+ <line num="219" type="stmt" count="0"/>
75548
+ <line num="220" type="stmt" count="0"/>
75549
+ <line num="222" type="stmt" count="0"/>
75550
+ <line num="223" type="stmt" count="0"/>
75551
+ <line num="224" type="stmt" count="0"/>
75552
+ <metrics loc="225" ncloc="147" classes="1" methods="13" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="98" coveredstatements="0" elements="111" coveredelements="0"/>
75553
+ </file>
75554
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Plugin/test-page.php">
75555
+ <class name="Test_BoldGrid_Library_Library_Plugin_Page" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Plugin">
75556
+ <metrics complexity="5" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="52" coveredstatements="0" elements="57" coveredelements="0"/>
75557
+ </class>
75558
+ <line num="25" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
75559
+ <line num="26" type="stmt" count="0"/>
75560
+ <line num="27" type="stmt" count="0"/>
75561
+ <line num="28" type="stmt" count="0"/>
75562
+ <line num="29" type="stmt" count="0"/>
75563
+ <line num="30" type="stmt" count="0"/>
75564
+ <line num="31" type="stmt" count="0"/>
75565
+ <line num="32" type="stmt" count="0"/>
75566
+ <line num="33" type="stmt" count="0"/>
75567
+ <line num="34" type="stmt" count="0"/>
75568
+ <line num="35" type="stmt" count="0"/>
75569
+ <line num="36" type="stmt" count="0"/>
75570
+ <line num="37" type="stmt" count="0"/>
75571
+ <line num="38" type="stmt" count="0"/>
75572
+ <line num="39" type="stmt" count="0"/>
75573
+ <line num="40" type="stmt" count="0"/>
75574
+ <line num="41" type="stmt" count="0"/>
75575
+ <line num="42" type="stmt" count="0"/>
75576
+ <line num="43" type="stmt" count="0"/>
75577
+ <line num="44" type="stmt" count="0"/>
75578
+ <line num="45" type="stmt" count="0"/>
75579
+ <line num="46" type="stmt" count="0"/>
75580
+ <line num="47" type="stmt" count="0"/>
75581
+ <line num="48" type="stmt" count="0"/>
75582
+ <line num="50" type="stmt" count="0"/>
75583
+ <line num="52" type="stmt" count="0"/>
75584
+ <line num="53" type="stmt" count="0"/>
75585
+ <line num="54" type="stmt" count="0"/>
75586
+ <line num="55" type="stmt" count="0"/>
75587
+ <line num="56" type="stmt" count="0"/>
75588
+ <line num="57" type="stmt" count="0"/>
75589
+ <line num="58" type="stmt" count="0"/>
75590
+ <line num="59" type="stmt" count="0"/>
75591
+ <line num="60" type="stmt" count="0"/>
75592
+ <line num="67" type="method" name="test_construct" visibility="public" complexity="1" crap="2" count="0"/>
75593
+ <line num="68" type="stmt" count="0"/>
75594
+ <line num="69" type="stmt" count="0"/>
75595
+ <line num="71" type="stmt" count="0"/>
75596
+ <line num="72" type="stmt" count="0"/>
75597
+ <line num="79" type="method" name="test_getNotices" visibility="public" complexity="1" crap="2" count="0"/>
75598
+ <line num="80" type="stmt" count="0"/>
75599
+ <line num="81" type="stmt" count="0"/>
75600
+ <line num="83" type="stmt" count="0"/>
75601
+ <line num="84" type="stmt" count="0"/>
75602
+ <line num="91" type="method" name="test_getNoticeById" visibility="public" complexity="1" crap="2" count="0"/>
75603
+ <line num="92" type="stmt" count="0"/>
75604
+ <line num="93" type="stmt" count="0"/>
75605
+ <line num="95" type="stmt" count="0"/>
75606
+ <line num="97" type="stmt" count="0"/>
75607
+ <line num="99" type="stmt" count="0"/>
75608
+ <line num="101" type="stmt" count="0"/>
75609
+ <line num="102" type="stmt" count="0"/>
75610
+ <line num="109" type="method" name="test_getSlug" visibility="public" complexity="1" crap="2" count="0"/>
75611
+ <line num="110" type="stmt" count="0"/>
75612
+ <line num="111" type="stmt" count="0"/>
75613
+ <line num="113" type="stmt" count="0"/>
75614
+ <line num="114" type="stmt" count="0"/>
75615
+ <metrics loc="115" ncloc="77" classes="1" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="52" coveredstatements="0" elements="57" coveredelements="0"/>
75616
  </file>
75617
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Plugin/test-plugin.php">
75618
  <class name="Test_BoldGrid_Library_Library_Plugin_Plugin" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Plugin">
75619
+ <metrics complexity="17" methods="16" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="102" coveredstatements="0" elements="118" coveredelements="0"/>
75620
  </class>
75621
+ <line num="25" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
75622
+ <line num="26" type="stmt" count="0"/>
75623
+ <line num="27" type="stmt" count="0"/>
75624
+ <line num="28" type="stmt" count="0"/>
75625
+ <line num="29" type="stmt" count="0"/>
75626
+ <line num="30" type="stmt" count="0"/>
75627
+ <line num="31" type="stmt" count="0"/>
75628
+ <line num="32" type="stmt" count="0"/>
75629
+ <line num="33" type="stmt" count="0"/>
75630
+ <line num="34" type="stmt" count="0"/>
75631
+ <line num="35" type="stmt" count="0"/>
75632
+ <line num="36" type="stmt" count="0"/>
75633
+ <line num="37" type="stmt" count="0"/>
75634
+ <line num="38" type="stmt" count="0"/>
75635
+ <line num="39" type="stmt" count="0"/>
75636
+ <line num="40" type="stmt" count="0"/>
75637
+ <line num="41" type="stmt" count="0"/>
75638
+ <line num="42" type="stmt" count="0"/>
75639
  <line num="43" type="stmt" count="0"/>
75640
+ <line num="44" type="stmt" count="0"/>
75641
  <line num="45" type="stmt" count="0"/>
75642
  <line num="46" type="stmt" count="0"/>
75643
  <line num="47" type="stmt" count="0"/>
75644
  <line num="48" type="stmt" count="0"/>
75645
+ <line num="50" type="stmt" count="0"/>
75646
+ <line num="52" type="stmt" count="0"/>
75647
+ <line num="53" type="stmt" count="0"/>
75648
+ <line num="54" type="stmt" count="0"/>
75649
+ <line num="55" type="stmt" count="0"/>
75650
+ <line num="56" type="stmt" count="0"/>
75651
  <line num="57" type="stmt" count="0"/>
75652
+ <line num="58" type="stmt" count="0"/>
75653
  <line num="59" type="stmt" count="0"/>
75654
  <line num="60" type="stmt" count="0"/>
75655
+ <line num="67" type="method" name="test_firstVersionCompare" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
75656
  <line num="68" type="stmt" count="0"/>
75657
  <line num="69" type="stmt" count="0"/>
75658
  <line num="70" type="stmt" count="0"/>
75659
+ <line num="77" type="method" name="test_getActivateUrl" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
75660
  <line num="78" type="stmt" count="0"/>
75661
  <line num="79" type="stmt" count="0"/>
75662
  <line num="80" type="stmt" count="0"/>
 
75663
  <line num="82" type="stmt" count="0"/>
75664
  <line num="83" type="stmt" count="0"/>
75665
+ <line num="90" type="method" name="test_getIcons" visibility="public" complexity="1" crap="2" count="0"/>
75666
  <line num="91" type="stmt" count="0"/>
75667
+ <line num="92" type="stmt" count="0"/>
75668
+ <line num="94" type="stmt" count="0"/>
75669
  <line num="95" type="stmt" count="0"/>
75670
+ <line num="102" type="method" name="test_getChildPlugins" visibility="public" complexity="1" crap="2" count="0"/>
75671
+ <line num="103" type="stmt" count="0"/>
75672
+ <line num="104" type="stmt" count="0"/>
75673
  <line num="106" type="stmt" count="0"/>
75674
  <line num="107" type="stmt" count="0"/>
75675
+ <line num="114" type="method" name="test_getData" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
75676
  <line num="115" type="stmt" count="0"/>
75677
  <line num="116" type="stmt" count="0"/>
 
75678
  <line num="118" type="stmt" count="0"/>
75679
  <line num="119" type="stmt" count="0"/>
75680
+ <line num="126" type="method" name="test_getInstallUrl" visibility="public" complexity="1" crap="2" count="0"/>
75681
+ <line num="127" type="stmt" count="0"/>
75682
+ <line num="128" type="stmt" count="0"/>
75683
+ <line num="129" type="stmt" count="0"/>
75684
+ <line num="131" type="stmt" count="0"/>
75685
+ <line num="132" type="stmt" count="0"/>
75686
+ <line num="139" type="method" name="test_getIsInstalled" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
75687
  <line num="140" type="stmt" count="0"/>
75688
  <line num="141" type="stmt" count="0"/>
 
75689
  <line num="143" type="stmt" count="0"/>
75690
  <line num="144" type="stmt" count="0"/>
75691
+ <line num="151" type="method" name="test_getFile" visibility="public" complexity="1" crap="2" count="0"/>
75692
+ <line num="152" type="stmt" count="0"/>
75693
+ <line num="153" type="stmt" count="0"/>
75694
+ <line num="155" type="stmt" count="0"/>
75695
+ <line num="156" type="stmt" count="0"/>
75696
+ <line num="163" type="method" name="test_getNewVersion" visibility="public" complexity="1" crap="2" count="0"/>
75697
+ <line num="164" type="stmt" count="0"/>
 
 
 
 
75698
  <line num="165" type="stmt" count="0"/>
75699
+ <line num="167" type="stmt" count="0"/>
75700
+ <line num="168" type="stmt" count="0"/>
75701
+ <line num="175" type="method" name="test_getPlugindata" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
75702
  <line num="176" type="stmt" count="0"/>
75703
  <line num="177" type="stmt" count="0"/>
75704
  <line num="178" type="stmt" count="0"/>
 
75705
  <line num="180" type="stmt" count="0"/>
75706
  <line num="181" type="stmt" count="0"/>
75707
+ <line num="188" type="method" name="test_getPluginsChecked" visibility="public" complexity="1" crap="2" count="0"/>
75708
+ <line num="189" type="stmt" count="0"/>
 
 
 
 
 
75709
  <line num="190" type="stmt" count="0"/>
 
75710
  <line num="192" type="stmt" count="0"/>
75711
+ <line num="193" type="stmt" count="0"/>
75712
+ <line num="200" type="method" name="test_getPages" visibility="public" complexity="2" crap="6" count="0"/>
75713
+ <line num="201" type="stmt" count="0"/>
 
 
 
75714
  <line num="202" type="stmt" count="0"/>
75715
  <line num="204" type="stmt" count="0"/>
75716
  <line num="205" type="stmt" count="0"/>
75717
  <line num="206" type="stmt" count="0"/>
75718
+ <line num="207" type="stmt" count="0"/>
75719
+ <line num="214" type="method" name="test_getPageBySlug" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
75720
  <line num="215" type="stmt" count="0"/>
75721
+ <line num="216" type="stmt" count="0"/>
75722
  <line num="218" type="stmt" count="0"/>
 
75723
  <line num="220" type="stmt" count="0"/>
 
75724
  <line num="222" type="stmt" count="0"/>
75725
  <line num="223" type="stmt" count="0"/>
75726
+ <line num="230" type="method" name="test_hasUpdate" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
75727
  <line num="231" type="stmt" count="0"/>
75728
  <line num="232" type="stmt" count="0"/>
75729
+ <line num="234" type="stmt" count="0"/>
75730
+ <line num="235" type="stmt" count="0"/>
75731
+ <line num="242" type="method" name="test_isActive" visibility="public" complexity="1" crap="2" count="0"/>
 
 
 
 
 
 
75732
  <line num="243" type="stmt" count="0"/>
75733
  <line num="244" type="stmt" count="0"/>
75734
  <line num="245" type="stmt" count="0"/>
75736
  <line num="248" type="stmt" count="0"/>
75737
  <line num="249" type="stmt" count="0"/>
75738
  <line num="250" type="stmt" count="0"/>
75739
+ <metrics loc="251" ncloc="158" classes="1" methods="16" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="102" coveredstatements="0" elements="118" coveredelements="0"/>
75740
+ </file>
75741
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Plugin/test-plugins.php">
75742
+ <class name="Test_BoldGrid_Library_Library_Plugin_Plugins" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Plugin">
75743
+ <metrics complexity="16" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="45" coveredstatements="0" elements="48" coveredelements="0"/>
75744
+ </class>
75745
+ <line num="32" type="method" name="setUp" visibility="public" complexity="10" crap="110" count="0"/>
75746
+ <line num="33" type="stmt" count="0"/>
75747
+ <line num="34" type="stmt" count="0"/>
75748
+ <line num="35" type="stmt" count="0"/>
75749
+ <line num="36" type="stmt" count="0"/>
75750
+ <line num="37" type="stmt" count="0"/>
75751
+ <line num="38" type="stmt" count="0"/>
75752
+ <line num="39" type="stmt" count="0"/>
75753
+ <line num="40" type="stmt" count="0"/>
75754
+ <line num="41" type="stmt" count="0"/>
75755
+ <line num="42" type="stmt" count="0"/>
75756
+ <line num="43" type="stmt" count="0"/>
75757
+ <line num="44" type="stmt" count="0"/>
75758
+ <line num="45" type="stmt" count="0"/>
75759
+ <line num="46" type="stmt" count="0"/>
75760
+ <line num="47" type="stmt" count="0"/>
75761
+ <line num="48" type="stmt" count="0"/>
75762
+ <line num="49" type="stmt" count="0"/>
75763
+ <line num="50" type="stmt" count="0"/>
75764
+ <line num="51" type="stmt" count="0"/>
75765
+ <line num="53" type="stmt" count="0"/>
75766
+ <line num="54" type="stmt" count="0"/>
75767
+ <line num="56" type="stmt" count="0"/>
75768
+ <line num="58" type="stmt" count="0"/>
75769
+ <line num="59" type="stmt" count="0"/>
75770
+ <line num="66" type="method" name="test_getAllPlugins" visibility="public" complexity="2" crap="6" count="0"/>
75771
+ <line num="67" type="stmt" count="0"/>
75772
+ <line num="68" type="stmt" count="0"/>
75773
+ <line num="69" type="stmt" count="0"/>
75774
+ <line num="70" type="stmt" count="0"/>
75775
+ <line num="71" type="stmt" count="0"/>
75776
+ <line num="73" type="stmt" count="0"/>
75777
+ <line num="74" type="stmt" count="0"/>
75778
+ <line num="75" type="stmt" count="0"/>
75779
+ <line num="82" type="method" name="test_getBySlug" visibility="public" complexity="4" crap="20" count="0"/>
75780
+ <line num="83" type="stmt" count="0"/>
75781
+ <line num="84" type="stmt" count="0"/>
75782
+ <line num="86" type="stmt" count="0"/>
75783
+ <line num="87" type="stmt" count="0"/>
75784
+ <line num="88" type="stmt" count="0"/>
75785
+ <line num="89" type="stmt" count="0"/>
75786
+ <line num="90" type="stmt" count="0"/>
75787
+ <line num="91" type="stmt" count="0"/>
75788
+ <line num="92" type="stmt" count="0"/>
75789
+ <line num="93" type="stmt" count="0"/>
75790
+ <line num="95" type="stmt" count="0"/>
75791
+ <line num="97" type="stmt" count="0"/>
75792
+ <line num="98" type="stmt" count="0"/>
75793
+ <metrics loc="100" ncloc="72" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="45" coveredstatements="0" elements="48" coveredelements="0"/>
75794
+ </file>
75795
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Theme/test-theme.php">
75796
+ <class name="Test_BoldGrid_Library_Library_Theme_Theme" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Theme">
75797
+ <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="16" coveredstatements="0" elements="18" coveredelements="0"/>
75798
+ </class>
75799
+ <line num="30" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
75800
+ <line num="32" type="stmt" count="0"/>
75801
+ <line num="33" type="stmt" count="0"/>
75802
+ <line num="34" type="stmt" count="0"/>
75803
+ <line num="35" type="stmt" count="0"/>
75804
+ <line num="36" type="stmt" count="0"/>
75805
+ <line num="37" type="stmt" count="0"/>
75806
+ <line num="38" type="stmt" count="0"/>
75807
+ <line num="39" type="stmt" count="0"/>
75808
+ <line num="40" type="stmt" count="0"/>
75809
+ <line num="41" type="stmt" count="0"/>
75810
+ <line num="42" type="stmt" count="0"/>
75811
+ <line num="44" type="method" name="test_constructor" visibility="public" complexity="1" crap="2" count="0"/>
75812
+ <line num="45" type="stmt" count="0"/>
75813
+ <line num="46" type="stmt" count="0"/>
75814
+ <line num="47" type="stmt" count="0"/>
75815
+ <line num="48" type="stmt" count="0"/>
75816
+ <line num="49" type="stmt" count="0"/>
75817
+ <metrics loc="49" ncloc="29" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="16" coveredstatements="0" elements="18" coveredelements="0"/>
75818
+ </file>
75819
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Theme/test-themes.php">
75820
+ <class name="Test_BoldGrid_Library_Library_Theme_Themes" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Theme">
75821
+ <metrics complexity="11" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="40" coveredstatements="0" elements="44" coveredelements="0"/>
75822
+ </class>
75823
+ <line num="32" type="method" name="setUp" visibility="public" complexity="5" crap="30" count="0"/>
75824
+ <line num="33" type="stmt" count="0"/>
75825
+ <line num="35" type="stmt" count="0"/>
75826
+ <line num="36" type="stmt" count="0"/>
75827
+ <line num="37" type="stmt" count="0"/>
75828
+ <line num="38" type="stmt" count="0"/>
75829
+ <line num="39" type="stmt" count="0"/>
75830
+ <line num="40" type="stmt" count="0"/>
75831
+ <line num="41" type="stmt" count="0"/>
75832
+ <line num="42" type="stmt" count="0"/>
75833
+ <line num="43" type="stmt" count="0"/>
75834
+ <line num="45" type="stmt" count="0"/>
75835
+ <line num="46" type="stmt" count="0"/>
75836
+ <line num="47" type="stmt" count="0"/>
75837
+ <line num="48" type="stmt" count="0"/>
75838
+ <line num="49" type="stmt" count="0"/>
75839
+ <line num="50" type="stmt" count="0"/>
75840
+ <line num="52" type="stmt" count="0"/>
75841
+ <line num="53" type="stmt" count="0"/>
75842
+ <line num="54" type="stmt" count="0"/>
75843
+ <line num="56" type="method" name="test_getList" visibility="public" complexity="2" crap="6" count="0"/>
75844
+ <line num="57" type="stmt" count="0"/>
75845
+ <line num="58" type="stmt" count="0"/>
75846
+ <line num="59" type="stmt" count="0"/>
75847
+ <line num="60" type="stmt" count="0"/>
75848
+ <line num="61" type="stmt" count="0"/>
75849
+ <line num="62" type="stmt" count="0"/>
75850
+ <line num="63" type="stmt" count="0"/>
75851
+ <line num="64" type="stmt" count="0"/>
75852
+ <line num="66" type="method" name="test_getFromStylesheet" visibility="public" complexity="3" crap="12" count="0"/>
75853
+ <line num="67" type="stmt" count="0"/>
75854
+ <line num="68" type="stmt" count="0"/>
75855
+ <line num="69" type="stmt" count="0"/>
75856
+ <line num="70" type="stmt" count="0"/>
75857
+ <line num="71" type="stmt" count="0"/>
75858
+ <line num="72" type="stmt" count="0"/>
75859
+ <line num="73" type="stmt" count="0"/>
75860
+ <line num="74" type="stmt" count="0"/>
75861
+ <line num="76" type="stmt" count="0"/>
75862
+ <line num="78" type="stmt" count="0"/>
75863
+ <line num="79" type="stmt" count="0"/>
75864
+ <line num="81" type="method" name="test_getActive" visibility="public" complexity="1" crap="2" count="0"/>
75865
+ <line num="82" type="stmt" count="0"/>
75866
+ <line num="83" type="stmt" count="0"/>
75867
+ <metrics loc="83" ncloc="65" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="40" coveredstatements="0" elements="44" coveredelements="0"/>
75868
+ </file>
75869
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Theme/test-update-data.php">
75870
+ <class name="Test_BoldGrid_Library_Library_Theme_UpdateData" namespace="global" fullPackage="Test.BoldGrid.Library.Library.Theme">
75871
+ <metrics complexity="3" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="25" coveredstatements="0" elements="28" coveredelements="0"/>
75872
+ </class>
75873
+ <line num="32" type="method" name="setUp" visibility="public" complexity="1" crap="2" count="0"/>
75874
+ <line num="34" type="stmt" count="0"/>
75875
+ <line num="35" type="stmt" count="0"/>
75876
+ <line num="36" type="stmt" count="0"/>
75877
+ <line num="37" type="stmt" count="0"/>
75878
+ <line num="38" type="stmt" count="0"/>
75879
+ <line num="39" type="stmt" count="0"/>
75880
+ <line num="40" type="stmt" count="0"/>
75881
+ <line num="41" type="stmt" count="0"/>
75882
+ <line num="42" type="stmt" count="0"/>
75883
+ <line num="43" type="stmt" count="0"/>
75884
+ <line num="44" type="stmt" count="0"/>
75885
+ <line num="46" type="method" name="test_getResponseData" visibility="public" complexity="1" crap="2" count="0"/>
75886
+ <line num="47" type="stmt" count="0"/>
75887
+ <line num="48" type="stmt" count="0"/>
75888
+ <line num="49" type="stmt" count="0"/>
75889
+ <line num="50" type="stmt" count="0"/>
75890
+ <line num="51" type="stmt" count="0"/>
75891
+ <line num="52" type="stmt" count="0"/>
75892
+ <line num="53" type="stmt" count="0"/>
75893
+ <line num="54" type="stmt" count="0"/>
75894
+ <line num="56" type="method" name="test_getInformationTransient" visibility="public" complexity="1" crap="2" count="0"/>
75895
+ <line num="57" type="stmt" count="0"/>
75896
+ <line num="58" type="stmt" count="0"/>
75897
+ <line num="60" type="stmt" count="0"/>
75898
+ <line num="61" type="stmt" count="0"/>
75899
+ <line num="63" type="stmt" count="0"/>
75900
+ <line num="64" type="stmt" count="0"/>
75901
+ <metrics loc="64" ncloc="44" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="25" coveredstatements="0" elements="28" coveredelements="0"/>
75902
  </file>
75903
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/Library/Util/test-plugin.php">
75904
  <class name="Test_BoldGrid_Library_Util_Plugin" namespace="global" fullPackage="Test.BoldGrid.Library.Util">
75964
  <line num="38" type="stmt" count="0"/>
75965
  <line num="39" type="stmt" count="0"/>
75966
  <line num="40" type="stmt" count="0"/>
75967
+ <line num="41" type="stmt" count="0"/>
75968
  <line num="42" type="stmt" count="0"/>
75969
+ <line num="43" type="stmt" count="0"/>
75970
+ <line num="44" type="stmt" count="0"/>
75971
+ <line num="45" type="stmt" count="0"/>
75972
+ <line num="46" type="stmt" count="0"/>
75973
+ <line num="48" type="stmt" count="0"/>
75974
+ <metrics loc="49" ncloc="38" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="34" coveredstatements="0" elements="34" coveredelements="0"/>
75975
  </file>
75976
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/tests/test-reseller.php">
75977
  <class name="Test_BoldGrid_Libarary_Reseller" namespace="global" fullPackage="Test.BoldGrid.Libarary">
76670
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76671
  </file>
76672
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76673
+ <class name="ComposerStaticInit8b2073f67e3daaebdefe3ef5925bc9c2" namespace="Composer\Autoload">
76674
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76675
  </class>
76676
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
76762
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76763
  </file>
76764
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76765
+ <class name="ComposerAutoloaderInit8b2073f67e3daaebdefe3ef5925bc9c2" namespace="global">
76766
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76767
  </class>
76768
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
95981
  <line num="16" type="stmt" count="0"/>
95982
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
95983
  </file>
95984
+ <metrics files="961" loc="192629" ncloc="117519" classes="870" methods="3581" coveredmethods="306" conditionals="0" coveredconditionals="0" statements="86492" coveredstatements="4537" elements="90073" coveredelements="4843"/>
95985
  </project>
95986
  </coverage>
includes/class-boldgrid-backup.php CHANGED
@@ -127,6 +127,8 @@ class Boldgrid_Backup {
127
  */
128
  require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-notice.php';
129
 
 
 
130
  /**
131
  * The class responsible for the cron functionality in the admin area.
132
  */
@@ -260,6 +262,7 @@ class Boldgrid_Backup {
260
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/class-premium.php';
261
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/class-updates.php';
262
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/class-find-modified-files.php';
 
263
 
264
  // Features.
265
  if ( class_exists( '\Boldgrid\Library\Library\Ui\Feature' ) ) {
@@ -268,6 +271,7 @@ class Boldgrid_Backup {
268
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-versions.php';
269
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-auto-rollback.php';
270
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-auto-update-backup.php';
 
271
  // Features - Sign up for BoldGrid Central.
272
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-cloud-wordpress.php';
273
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-speed-coach.php';
@@ -521,14 +525,17 @@ class Boldgrid_Backup {
521
  $this->loader->add_filter( 'wp_ajax_boldgrid_backup_update_archive_details', $plugin_admin_core->archive_details, 'wp_ajax_update' );
522
 
523
  $this->loader->add_action( 'admin_menu', $plugin_admin_core->local, 'add_submenus' );
 
524
  $this->loader->add_action( 'wp_ajax_boldgrid_backup_is_setup_local', $plugin_admin_core->local, 'is_setup_ajax' );
525
 
526
  $this->loader->add_filter( 'boldgrid_backup_get_core', $plugin_admin_core, 'get_core' );
527
 
528
  $this->loader->add_filter( 'Boldgrid\Library\Notifications\DashboardWidget\getFeaturePlugin\boldgrid-backup', $plugin_admin_core->dashboard_widget, 'filter_feature', 10, 2 );
529
 
530
- $plugins = new Boldgrid_Backup_Admin_Plugins();
531
- $this->loader->add_filter( 'plugin_action_links_boldgrid-backup/boldgrid-backup.php', $plugins, 'plugin_action_links', 10, 4 );
 
 
532
 
533
  // This plugin's Dashboard.
534
  $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin_core->dashboard, 'admin_enqueue_scripts' );
@@ -538,10 +545,13 @@ class Boldgrid_Backup {
538
  $this->loader->add_action( 'wp_ajax_dismissBoldgridNotice', 'Boldgrid\Library\Library\Notice', 'dismiss' );
539
 
540
  $usage = new Boldgrid_Backup_Admin_Usage();
 
541
  $this->loader->add_action( 'admin_init', $usage, 'admin_init' );
542
  $this->loader->add_filter( 'Boldgrid\Library\Usage\Notice\admin_notices', $usage, 'filter_notice' );
543
  $this->loader->add_filter( 'Boldgrid\Library\Usage\Notice\maybeShow', $usage, 'maybe_show_notice' );
544
  $this->loader->add_filter( 'Boldgrid\Library\Usage\getPrefixes', $usage, 'filter_prefixes' );
 
 
545
 
546
  // Log system.
547
  $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin_core->log_page, 'admin_enqueue_scripts' );
@@ -562,6 +572,8 @@ class Boldgrid_Backup {
562
 
563
  $plugin_notices = new Boldgrid_Backup_Admin_Plugin_Notices();
564
  $this->loader->add_filter( 'Boldgrid\Library\Plugin\Notices\admin_enqueue_scripts', $plugin_notices, 'filter' );
 
 
565
  }
566
 
567
  /**
127
  */
128
  require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-notice.php';
129
 
130
+ require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-auto-updates.php';
131
+
132
  /**
133
  * The class responsible for the cron functionality in the admin area.
134
  */
262
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/class-premium.php';
263
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/class-updates.php';
264
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/class-find-modified-files.php';
265
+ require_once BOLDGRID_BACKUP_PATH . '/admin/card/class-timely-auto-updates.php';
266
 
267
  // Features.
268
  if ( class_exists( '\Boldgrid\Library\Library\Ui\Feature' ) ) {
271
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-versions.php';
272
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-auto-rollback.php';
273
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-auto-update-backup.php';
274
+ require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-timely-auto-updates.php';
275
  // Features - Sign up for BoldGrid Central.
276
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-cloud-wordpress.php';
277
  require_once BOLDGRID_BACKUP_PATH . '/admin/card/feature/class-speed-coach.php';
525
  $this->loader->add_filter( 'wp_ajax_boldgrid_backup_update_archive_details', $plugin_admin_core->archive_details, 'wp_ajax_update' );
526
 
527
  $this->loader->add_action( 'admin_menu', $plugin_admin_core->local, 'add_submenus' );
528
+
529
  $this->loader->add_action( 'wp_ajax_boldgrid_backup_is_setup_local', $plugin_admin_core->local, 'is_setup_ajax' );
530
 
531
  $this->loader->add_filter( 'boldgrid_backup_get_core', $plugin_admin_core, 'get_core' );
532
 
533
  $this->loader->add_filter( 'Boldgrid\Library\Notifications\DashboardWidget\getFeaturePlugin\boldgrid-backup', $plugin_admin_core->dashboard_widget, 'filter_feature', 10, 2 );
534
 
535
+ $this->loader->add_action( 'admin_init', $plugin_admin_core->auto_updates, 'auto_update_core' );
536
+ $this->loader->add_action( 'wp_maybe_auto_update', $plugin_admin_core->auto_updates, 'auto_update_core' );
537
+ $this->loader->add_filter( 'auto_update_plugin', $plugin_admin_core->auto_updates, 'auto_update_plugins', 10, 2 );
538
+ $this->loader->add_filter( 'auto_update_theme', $plugin_admin_core->auto_updates, 'auto_update_themes', 10, 2 );
539
 
540
  // This plugin's Dashboard.
541
  $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin_core->dashboard, 'admin_enqueue_scripts' );
545
  $this->loader->add_action( 'wp_ajax_dismissBoldgridNotice', 'Boldgrid\Library\Library\Notice', 'dismiss' );
546
 
547
  $usage = new Boldgrid_Backup_Admin_Usage();
548
+
549
  $this->loader->add_action( 'admin_init', $usage, 'admin_init' );
550
  $this->loader->add_filter( 'Boldgrid\Library\Usage\Notice\admin_notices', $usage, 'filter_notice' );
551
  $this->loader->add_filter( 'Boldgrid\Library\Usage\Notice\maybeShow', $usage, 'maybe_show_notice' );
552
  $this->loader->add_filter( 'Boldgrid\Library\Usage\getPrefixes', $usage, 'filter_prefixes' );
553
+ $this->loader->add_filter( 'is_boldgrid_backup_page', $usage, 'has_screen_prefix' );
554
+ $this->loader->add_action( 'in_admin_header', $plugin_admin_core->upload, 'archive_upload_action' );
555
 
556
  // Log system.
557
  $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin_core->log_page, 'admin_enqueue_scripts' );
572
 
573
  $plugin_notices = new Boldgrid_Backup_Admin_Plugin_Notices();
574
  $this->loader->add_filter( 'Boldgrid\Library\Plugin\Notices\admin_enqueue_scripts', $plugin_notices, 'filter' );
575
+
576
+ $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin_core, 'add_thickbox' );
577
  }
578
 
579
  /**
includes/config/config.plugin.php CHANGED
@@ -99,5 +99,10 @@ return [
99
  'page' => 'boldgrid-backup-premium-features',
100
  'version' => '1.13.0',
101
  ],
 
 
 
 
 
102
  ],
103
  ];
99
  'page' => 'boldgrid-backup-premium-features',
100
  'version' => '1.13.0',
101
  ],
102
+ [
103
+ 'id' => 'bgbkup_timely_auto_updates',
104
+ 'page' => 'boldgrid-backup-premium-features',
105
+ 'version' => '1.14.0',
106
+ ],
107
  ],
108
  ];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: backup, cloud backup, database backup, restore, wordpress backup
4
  Requires at least: 4.4
5
  Tested up to: 5.4
6
  Requires PHP: 5.4
7
- Stable tag: 1.13.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -132,6 +132,17 @@ Have a problem? First, take a look at our [Getting Started](https://www.boldgrid
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
 
 
 
 
 
 
135
  = 1.13.12 =
136
 
137
  Release date: July 6th, 2020
4
  Requires at least: 4.4
5
  Tested up to: 5.4
6
  Requires PHP: 5.4
7
+ Stable tag: 1.14.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
132
 
133
  == Changelog ==
134
 
135
+ = 1.14.0 =
136
+
137
+ Release date: July 7th, 2020
138
+
139
+ * New feature: Timely Auto Updates - auto update WordPress, Plugins, and Themes after a set number of days.
140
+ * New feature: SystemZip Compression ratio - Modify System Zip process to address issues with exceeding php memory_limit and add option to set compression ratio.
141
+ * New feature: Added 'Backup Now' and 'Upload Backup' buttons to each Total Upkeep page.
142
+ * New feature: Added video guides to Premium Features page.
143
+ * Bug fix: Non Backup files should not be uploaded.
144
+ * Bug fix: Ensure user can CREATE VIEWS before restoring views.
145
+
146
  = 1.13.12 =
147
 
148
  Release date: July 6th, 2020
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit003a36ea3ce708618a9d533403417f74::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit8b2073f67e3daaebdefe3ef5925bc9c2::getLoader();
vendor/boldgrid/library/.gitignore CHANGED
@@ -2,7 +2,7 @@ build/
2
  node_modules/
3
  vendor/
4
  reports/
5
-
6
  # Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
7
  # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
8
  # composer.lock
2
  node_modules/
3
  vendor/
4
  reports/
5
+ .vscode
6
  # Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
7
  # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
8
  # composer.lock
vendor/boldgrid/library/README.md CHANGED
@@ -11,6 +11,18 @@ composer require boldgrid/library
11
 
12
  ## Changelog ##
13
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ### 2.12.3 ###
15
 
16
  Release date: June 23rd, 2020
@@ -19,9 +31,10 @@ Release date: June 23rd, 2020
19
 
20
  ### 2.12.2 ###
21
 
22
- Release date: May 28th, 2020
23
 
24
  * Bug fix: Do not load libraries from deleted plugins.
 
25
 
26
  ### 2.12.1 ###
27
 
11
 
12
  ## Changelog ##
13
 
14
+ ### 2.13.0 ###
15
+
16
+ Release date: July 7th, 2020
17
+
18
+ * Bug Fix: Fixed css inconsistency between firefox and chrome
19
+ * Bug Fix: Fixed padding of links to match footer text.
20
+ * Update: Removed Auto Update functionality from library and moved to Total Upkeep plugin.
21
+ * New Feature: Added Plugin\Factory Class allowing for Plugin\Plugin objects to be generated via factory.
22
+ * New Feature: Added new methods to Plugin\Plugins class.
23
+ * New Feature: Added new UnitTests.
24
+ * New Feature: Updated UI to use a fixed container layout.
25
+
26
  ### 2.12.3 ###
27
 
28
  Release date: June 23rd, 2020
31
 
32
  ### 2.12.2 ###
33
 
34
+ Release date: May 29th, 2020
35
 
36
  * Bug fix: Do not load libraries from deleted plugins.
37
+ * Update: Expanded Plugins class and added Themes class.
38
 
39
  ### 2.12.1 ###
40
 
vendor/boldgrid/library/phpunit.xml CHANGED
@@ -7,7 +7,7 @@
7
  convertWarningsToExceptions="true"
8
  >
9
  <testsuites>
10
- <testsuite>
11
  <directory prefix="test-" suffix=".php">./tests/</directory>
12
  </testsuite>
13
  </testsuites>
7
  convertWarningsToExceptions="true"
8
  >
9
  <testsuites>
10
+ <testsuite name="test">
11
  <directory prefix="test-" suffix=".php">./tests/</directory>
12
  </testsuite>
13
  </testsuites>
vendor/boldgrid/library/src/Library/Configs.php CHANGED
@@ -133,12 +133,10 @@ class Configs {
133
  public static function getPlugins( $filters = array() ) {
134
  $plugins = array();
135
 
136
- foreach( self::get( 'plugins' ) as $plugin ) {
137
- $slug = Plugin::getFileSlug( $plugin['file'] );
138
-
139
  // If no filters, add the plugin. Else, only add the plugin if all filters match.
140
  if ( empty( $filters ) ) {
141
- $plugins[] = new Plugin( $slug );
142
  } else {
143
  $addPlugin = true;
144
 
@@ -149,7 +147,7 @@ class Configs {
149
  }
150
 
151
  if ( $addPlugin ) {
152
- $plugins[] = new Plugin( $slug );
153
  }
154
  }
155
  }
133
  public static function getPlugins( $filters = array() ) {
134
  $plugins = array();
135
 
136
+ foreach ( self::get( 'plugins' ) as $plugin ) {
 
 
137
  // If no filters, add the plugin. Else, only add the plugin if all filters match.
138
  if ( empty( $filters ) ) {
139
+ $plugins[] = \Boldgrid\Library\Library\Plugin\Factory::create( $plugin['file'] );
140
  } else {
141
  $addPlugin = true;
142
 
147
  }
148
 
149
  if ( $addPlugin ) {
150
+ $plugins[] = \Boldgrid\Library\Library\Plugin\Factory::create( $plugin['file'] );
151
  }
152
  }
153
  }
vendor/boldgrid/library/src/Library/Plugin/Checker.php CHANGED
@@ -30,9 +30,12 @@ class Checker {
30
  private $pluginPattern = '^(boldgrid-|post-and-page-builder)';
31
 
32
  public function __construct() {
33
- add_action( 'upgrader_process_complete', function() {
34
- delete_site_transient( 'boldgrid_plugins_filtered' );
35
- } );
 
 
 
36
  }
37
 
38
  /**
@@ -42,7 +45,8 @@ class Checker {
42
  */
43
  public function run() {
44
 
45
- add_action( 'boldgrid_plugins_updated',
 
46
  array(
47
  'Boldgrid\Library\Util\Option',
48
  'deletePluginTransients',
30
  private $pluginPattern = '^(boldgrid-|post-and-page-builder)';
31
 
32
  public function __construct() {
33
+ add_action(
34
+ 'upgrader_process_complete',
35
+ function() {
36
+ delete_site_transient( 'boldgrid_plugins_filtered' );
37
+ }
38
+ );
39
  }
40
 
41
  /**
45
  */
46
  public function run() {
47
 
48
+ add_action(
49
+ 'boldgrid_plugins_updated',
50
  array(
51
  'Boldgrid\Library\Util\Option',
52
  'deletePluginTransients',
vendor/boldgrid/library/src/Library/Plugin/Factory.php ADDED
@@ -0,0 +1,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
+ /**
3
+ * BoldGrid Library Plugin Factory.
4
+ *
5
+ * Library package uses different naming convention.
6
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
7
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
8
+ *
9
+ * @package Boldgrid\Plugin
10
+ *
11
+ * @since 2.12.2
12
+ * @author BoldGrid <wpb@boldgrid.com>
13
+ */
14
+
15
+ namespace Boldgrid\Library\Library\Plugin;
16
+
17
+ use Boldgrid\Library\Library\Configs;
18
+ use Boldgrid\Library\Library\Settings;
19
+ use Boldgrid\Library\Library\Plugin\Page;
20
+
21
+ /**
22
+ * Plugin Factory
23
+ *
24
+ * @since 2.12.2
25
+ */
26
+ class Factory {
27
+
28
+ /**
29
+ * Class Constructor.
30
+ *
31
+ * @since 2.12.2
32
+ *
33
+ * @param string $pluginName Plugin slug or filename passed from constructor.
34
+ * @param array $pluginConfig Array of plugin config data.
35
+ * @param bool $getUpdateData Whether or not to get the updateData on initialization.
36
+ *
37
+ * @return Plugin
38
+ */
39
+ public static function create( $pluginName, $pluginConfig = null, $getUpdateData = false ) {
40
+ $plugin = null;
41
+ if ( false === strpos( $pluginName, '.' ) ) {
42
+ $plugin = self::createFromSlug( $pluginName, $pluginConfig, $getUpdateData );
43
+ } else {
44
+ $plugin = self::createFromFile( $pluginName, $pluginConfig, $getUpdateData );
45
+ }
46
+
47
+ return $plugin;
48
+ }
49
+
50
+ /**
51
+ * Creates a Plugin Object using a slug as the paramater.
52
+ *
53
+ * @param string $slug Plugin Slug.
54
+ * @param array $pluginConfig Array of plugin config data.
55
+ * @param bool $getUpdateData Whether or not to get updateData.
56
+ *
57
+ * @return Plugin
58
+ */
59
+ public static function createFromSlug( $slug, $pluginConfig, $getUpdateData ) {
60
+
61
+ $slug = ! empty( $slug ) ? $slug : '';
62
+
63
+ $pluginConfig = ! empty( $pluginConfig ) ? $pluginConfig : array();
64
+
65
+ $file = self::fileFromSlug( $slug );
66
+
67
+ $path = ABSPATH . 'wp-content/plugins/' . $file;
68
+
69
+ $isInstalled = self::isPluginInstalled( $path );
70
+
71
+ $childPlugins = self::getChildPlugins( $file );
72
+
73
+ return new Plugin(
74
+ array(
75
+ 'slug' => $slug,
76
+ 'pluginConfig' => $pluginConfig,
77
+ 'file' => $file,
78
+ 'path' => $path,
79
+ 'isInstalled' => $isInstalled,
80
+ 'childPlugins' => $childPlugins,
81
+ 'getUpdateData' => $getUpdateData,
82
+ )
83
+ );
84
+ }
85
+
86
+ /**
87
+ * Creates a Plugin Object using a file as the paramater.
88
+ *
89
+ * @param string $slug Plugin Slug.
90
+ * @param array $pluginConfig Array of plugin config data.
91
+ *
92
+ * @return Plugin
93
+ */
94
+ private static function createFromFile( $file, $pluginConfig ) {
95
+
96
+ $file = ! empty( $file ) ? $file : '';
97
+
98
+ $pluginConfig = ! empty( $pluginConfig ) ? $pluginConfig : array();
99
+
100
+ $slug = self::slugFromFile( $file );
101
+
102
+ $path = ABSPATH . 'wp-content/plugins/' . $file;
103
+
104
+ $isInstalled = self::isPluginInstalled( $path );
105
+
106
+ $childPlugins = self::getChildPlugins( $file );
107
+
108
+ return new Plugin(
109
+ array(
110
+ 'slug' => $slug,
111
+ 'pluginConfig' => $pluginConfig,
112
+ 'file' => $file,
113
+ 'path' => $path,
114
+ 'isInstalled' => $isInstalled,
115
+ 'childPlugins' => $childPlugins,
116
+ )
117
+ );
118
+ }
119
+
120
+ /**
121
+ * Gets the plugin's file from the slug passed in construction.
122
+ *
123
+ * If a slug was passed, not a file, then this will find the file for us.
124
+ *
125
+ * @since 2.12.2
126
+ *
127
+ * @param string $slug Slug passed in construction.
128
+ *
129
+ * @return string
130
+ */
131
+ public static function fileFromSlug( $slug ) {
132
+ $plugin_file = '';
133
+ if ( file_exists( WP_PLUGIN_DIR . '/' . $slug . '/' . $slug . '.php' ) ) {
134
+ $plugin_file = $slug . '/' . $slug . '.php';
135
+ } elseif ( file_exists( WP_PLUGIN_DIR . '/' . $slug . '.php' ) ) {
136
+ $plugin_file = $slug . '.php';
137
+ } else {
138
+ $file_list = scandir( WP_PLUGIN_DIR );
139
+ foreach ( $file_list as $file ) {
140
+ if ( false !== strpos( $file, '.php' ) && false !== strpos( $slug, explode( '.', $file )[0] ) ) {
141
+ $plugin_file = $file;
142
+ }
143
+ }
144
+ }
145
+ return $plugin_file;
146
+ }
147
+
148
+ /**
149
+ * Gets the plugin's slug from the file name passed in construction.
150
+ *
151
+ * If a filename was passed, not a slug, then this will find the slug for us.
152
+ *
153
+ * @since 2.12.2
154
+ *
155
+ * @param string $file Filename passed in construction.
156
+ */
157
+ public static function slugFromFile( $file ) {
158
+ $slug = '';
159
+ if ( false !== strpos( $file, '/' ) ) {
160
+ // If the filename has a '/' in it, the slug should be the first part of the string.
161
+ $slug = explode( '/', $file )[0];
162
+ } else {
163
+ /*
164
+ * If the filename does not have a '/' then the slug will ahve to be pulled from the plugin's
165
+ * file contents. This is because the plugins with just a name, such as hello.php, do not
166
+ * always match their slug.
167
+ */
168
+ $file_contents = file_get_contents( WP_PLUGIN_DIR . '/' . $file );
169
+ $lines = explode( "\n", $file_contents );
170
+ foreach ( $lines as $line ) {
171
+ if ( false !== strpos( $line, '@package' ) ) {
172
+ $package = strtolower( explode( ' ', $line )[3] );
173
+ $slug = str_replace( '_', '-', $package );
174
+ }
175
+ }
176
+ }
177
+ return $slug;
178
+ }
179
+
180
+ /**
181
+ * Set whether or not the plugin is installed (different from activated).
182
+ *
183
+ * @since 2.12.2
184
+ */
185
+ public static function isPluginInstalled( $path ) {
186
+ $wp_filesystem = \Boldgrid\Library\Util\Version::getWpFilesystem();
187
+ return $wp_filesystem->exists( $path );
188
+ }
189
+
190
+ /**
191
+ * Set our child plugins.
192
+ *
193
+ * @since 2.12.2
194
+ *
195
+ * @param string $file Filename.
196
+ *
197
+ * @return array.
198
+ */
199
+ public static function getChildPlugins( $file ) {
200
+ $child_plugins = array();
201
+
202
+ $config = array();
203
+ $plugins = Configs::get( 'plugins' );
204
+ if ( $plugins ) {
205
+ foreach ( $plugins as $plugin ) {
206
+ if ( $plugin['file'] === $file ) {
207
+ $config = $plugin;
208
+ }
209
+ }
210
+ }
211
+
212
+ if ( empty( $config['childPlugins'] ) ) {
213
+ return array();
214
+ }
215
+
216
+ foreach ( $config['childPlugins'] as $file ) {
217
+ $childPlugins[] = self::create( $file );
218
+ }
219
+
220
+ return $childPlugins;
221
+ }
222
+ }
vendor/boldgrid/library/src/Library/Plugin/Notice.php CHANGED
@@ -1,7 +1,11 @@
1
- <?php
2
  /**
3
  * BoldGrid Library Plugin Page Notice.
4
  *
 
 
 
 
5
  * @package Boldgrid\Plugin
6
  *
7
  * @since 2.12.0
@@ -12,8 +16,8 @@ namespace Boldgrid\Library\Library\Plugin;
12
  /**
13
  * Notice class for Plugin\Page.
14
  *
15
- * This class is a specific Notice
16
- * used by the Boldgrid\Library\Library\Plugin\Page
17
  * and Boldgrid\Library\Library\Plugin\Plugin classes.
18
  *
19
  * @since 2.12.0
@@ -21,7 +25,7 @@ namespace Boldgrid\Library\Library\Plugin;
21
  class Notice {
22
 
23
  /**
24
- * Notice ID
25
  *
26
  * @since 2.12.0
27
  * @var string
@@ -39,7 +43,7 @@ class Notice {
39
  protected $pageSlug;
40
 
41
  /**
42
- * Notice Version
43
  *
44
  * Version of plugin this notice was added on.
45
  *
@@ -50,7 +54,7 @@ class Notice {
50
  protected $version;
51
 
52
  /**
53
- * Plugin Object
54
  *
55
  * Plugin Object this belongs to.
56
  *
@@ -61,7 +65,7 @@ class Notice {
61
  protected $plugin;
62
 
63
  /**
64
- * Notice Is Unread
65
  *
66
  * Specifies if the Notice is Unread or not.
67
  *
@@ -72,13 +76,12 @@ class Notice {
72
  protected $isUnread;
73
 
74
  /**
75
- * Constructor
76
- *
77
  *
78
  * @since 2.12.0
79
  *
80
  * @param Plugin $plugin Plugin instance that this Notice belongs to.
81
- * @param array $notice {
82
  * An array of notice values.
83
  *
84
  * @type string $id notice ID.
@@ -228,50 +231,50 @@ class Notice {
228
  *
229
  * @since 2.12.0
230
  *
231
- * @param string $noticeId
232
  * @return array
233
  * @type Notice Notice Instance.
234
  * @type int Index of Notice in Options array.
235
  */
236
- private function getFromOptions( $noticeId ) {
237
- $option = get_option( 'boldgrid_plugin_page_notices', [] );
238
  $optionCount = count( $option );
239
 
240
  $i = 0;
241
  foreach ( $option as $notice ) {
242
  if ( $option[ $i ]['id'] === $noticeId ) {
243
- return [ $option[ $i ], $i ];
244
  }
245
  $i++;
246
  }
247
- return [];
248
  }
249
 
250
  /**
251
  * Update Notice Option.
252
  *
253
- * Updates option row in wp_options table. If The NoticeId
254
  * already exists, then it's object is replaced with $this.
255
  * Otherwise, $this is appended to the array.
256
  *
257
  * @since 2.12.0
258
  */
259
  public function updateNoticeOption() {
260
- $option = get_option( 'boldgrid_plugin_page_notices', [] );
261
  if ( $this->alreadyExists() ) {
262
- $option[ $this->getFromOptions( $this->id )[1] ] = [
263
  'id' => $this->id,
264
  'isUnread' => $this->isUnread,
265
  'version' => $this->version,
266
  'page' => $this->pageSlug,
267
- ];
268
  } else {
269
- $option[] = [
270
  'id' => $this->id,
271
  'isUnread' => $this->isUnread,
272
  'version' => $this->version,
273
  'page' => $this->pageSlug,
274
- ];
275
  }
276
  update_option( 'boldgrid_plugin_page_notices', $option );
277
  }
@@ -279,7 +282,7 @@ class Notice {
279
  /**
280
  * Get Plugin.
281
  *
282
- * Get plugin instance that this notice belongs to
283
  *
284
  * @since 2.12.0
285
  *
@@ -292,7 +295,7 @@ class Notice {
292
  /**
293
  * Set Plugin.
294
  *
295
- * Set plugin Instance that this notice belongs to
296
  *
297
  * @since 2.12.0
298
  *
@@ -305,15 +308,15 @@ class Notice {
305
  /**
306
  * Notice Version Changed.
307
  *
308
- * Determines if an existing Notice's version number has changed
309
- * since it was placed in options table. If it has changed, then it marks
310
- * the notice unread again. This will help bring attention to old notices
311
  * that may have been revised.
312
  *
313
  * @since 2.12.0
314
  *
315
- * @param Notice $originalNotice
316
- * @param array $newNotice
317
  */
318
  private function noticeVersionChanged( array $originalNotice, array $newNotice ) {
319
  if ( version_compare( $originalNotice['version'], $newNotice['version'], 'ne' ) ) {
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
  /**
3
  * BoldGrid Library Plugin Page Notice.
4
  *
5
+ * Library package uses different naming convention.
6
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
7
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
8
+ *
9
  * @package Boldgrid\Plugin
10
  *
11
  * @since 2.12.0
16
  /**
17
  * Notice class for Plugin\Page.
18
  *
19
+ * This class is a specific Notice.
20
+ * used by the Boldgrid\Library\Library\Plugin\Page.
21
  * and Boldgrid\Library\Library\Plugin\Plugin classes.
22
  *
23
  * @since 2.12.0
25
  class Notice {
26
 
27
  /**
28
+ * Notice ID.
29
  *
30
  * @since 2.12.0
31
  * @var string
43
  protected $pageSlug;
44
 
45
  /**
46
+ * Notice Version.
47
  *
48
  * Version of plugin this notice was added on.
49
  *
54
  protected $version;
55
 
56
  /**
57
+ * Plugin Object.
58
  *
59
  * Plugin Object this belongs to.
60
  *
65
  protected $plugin;
66
 
67
  /**
68
+ * Notice Is Unread.
69
  *
70
  * Specifies if the Notice is Unread or not.
71
  *
76
  protected $isUnread;
77
 
78
  /**
79
+ * Constructor.
 
80
  *
81
  * @since 2.12.0
82
  *
83
  * @param Plugin $plugin Plugin instance that this Notice belongs to.
84
+ * @param array $notice {
85
  * An array of notice values.
86
  *
87
  * @type string $id notice ID.
231
  *
232
  * @since 2.12.0
233
  *
234
+ * @param string $noticeId ID of the specific notice.
235
  * @return array
236
  * @type Notice Notice Instance.
237
  * @type int Index of Notice in Options array.
238
  */
239
+ public function getFromOptions( $noticeId ) {
240
+ $option = get_option( 'boldgrid_plugin_page_notices', array() );
241
  $optionCount = count( $option );
242
 
243
  $i = 0;
244
  foreach ( $option as $notice ) {
245
  if ( $option[ $i ]['id'] === $noticeId ) {
246
+ return array( $option[ $i ], $i );
247
  }
248
  $i++;
249
  }
250
+ return array();
251
  }
252
 
253
  /**
254
  * Update Notice Option.
255
  *
256
+ * Updates option row in wp_options table. If The NoticeId.
257
  * already exists, then it's object is replaced with $this.
258
  * Otherwise, $this is appended to the array.
259
  *
260
  * @since 2.12.0
261
  */
262
  public function updateNoticeOption() {
263
+ $option = get_option( 'boldgrid_plugin_page_notices', array() );
264
  if ( $this->alreadyExists() ) {
265
+ $option[ $this->getFromOptions( $this->id )[1] ] = array(
266
  'id' => $this->id,
267
  'isUnread' => $this->isUnread,
268
  'version' => $this->version,
269
  'page' => $this->pageSlug,
270
+ );
271
  } else {
272
+ $option[] = array(
273
  'id' => $this->id,
274
  'isUnread' => $this->isUnread,
275
  'version' => $this->version,
276
  'page' => $this->pageSlug,
277
+ );
278
  }
279
  update_option( 'boldgrid_plugin_page_notices', $option );
280
  }
282
  /**
283
  * Get Plugin.
284
  *
285
+ * Get plugin instance that this notice belongs to.
286
  *
287
  * @since 2.12.0
288
  *
295
  /**
296
  * Set Plugin.
297
  *
298
+ * Set plugin Instance that this notice belongs to.
299
  *
300
  * @since 2.12.0
301
  *
308
  /**
309
  * Notice Version Changed.
310
  *
311
+ * Determines if an existing Notice's version number has changed.
312
+ * since it was placed in options table. If it has changed, then it marks.
313
+ * the notice unread again. This will help bring attention to old notices.
314
  * that may have been revised.
315
  *
316
  * @since 2.12.0
317
  *
318
+ * @param array $originalNotice The notice already in the DB.
319
+ * @param array $newNotice The new notice pulled from config.
320
  */
321
  private function noticeVersionChanged( array $originalNotice, array $newNotice ) {
322
  if ( version_compare( $originalNotice['version'], $newNotice['version'], 'ne' ) ) {
vendor/boldgrid/library/src/Library/Plugin/Notices.php CHANGED
@@ -55,12 +55,13 @@ class Notices {
55
  $handle,
56
  Library\Configs::get( 'libraryUrl' ) . 'src/assets/js/plugin-notices.js',
57
  'jquery',
58
- Library\Configs::get( 'libraryVersion' )
 
59
  );
60
 
61
- $translation = [
62
- 'counts' => [],
63
- ];
64
 
65
  /**
66
  * Allow other plugins to add notice counts.
55
  $handle,
56
  Library\Configs::get( 'libraryUrl' ) . 'src/assets/js/plugin-notices.js',
57
  'jquery',
58
+ Library\Configs::get( 'libraryVersion' ),
59
+ false
60
  );
61
 
62
+ $translation = array(
63
+ 'counts' => array(),
64
+ );
65
 
66
  /**
67
  * Allow other plugins to add notice counts.
vendor/boldgrid/library/src/Library/Plugin/Page.php CHANGED
@@ -1,7 +1,11 @@
1
- <?php
2
  /**
3
  * BoldGrid Library Plugin Page.
4
  *
 
 
 
 
5
  * @package Boldgrid\Plugin
6
  *
7
  * @since 2.12.0
@@ -10,6 +14,8 @@
10
  */
11
  namespace Boldgrid\Library\Library\Plugin;
12
 
 
 
13
  /**
14
  * Generic page class.
15
  *
@@ -49,7 +55,7 @@ class Page {
49
  * @since 2.12.0
50
  * @var array
51
  */
52
- protected $pluginConfig = [];
53
 
54
  /**
55
  * Page Notice
@@ -65,10 +71,9 @@ class Page {
65
  * Constructor.
66
  *
67
  * @since 2.12.0
68
-
69
- * @param Plugin $plugin object that this page belongs to.
70
- * @param string $slug For example: "plugin" from plugin/plugin.php.
71
- */
72
  public function __construct( Plugin $plugin, $slug ) {
73
 
74
  $this->setPlugin( $plugin );
@@ -95,6 +100,8 @@ class Page {
95
  * Set Plugin.
96
  *
97
  * @since 2.12.0
 
 
98
  */
99
  private function setPlugin( $plugin ) {
100
  $this->plugin = $plugin;
@@ -116,7 +123,6 @@ class Page {
116
  *
117
  * @since 2.12.0
118
  *
119
- * @param array $pluginConfig Plugin Config.
120
  * @access private
121
  */
122
  private function setPluginConfig() {
@@ -132,7 +138,7 @@ class Page {
132
  * @return array
133
  */
134
  public function getNotices() {
135
- $notices = [];
136
  foreach ( $this->notices as $notice ) {
137
  if ( $notice->getPageSlug() === $this->slug ) {
138
  $notices[] = $notice;
@@ -146,7 +152,7 @@ class Page {
146
  *
147
  * @since 2.12.0
148
  *
149
- * @param string $id
150
  * @return NoticeCount
151
  */
152
  public function getNoticeById( $id ) {
@@ -163,7 +169,7 @@ class Page {
163
  * @since 2.12.0
164
  */
165
  public function setNotices() {
166
- $notices = [];
167
  if ( isset( $this->getPluginConfig()['page_notices'] ) ) {
168
  foreach ( $this->getPluginConfig()['page_notices'] as $notice ) {
169
  $notices[] = new Notice( $this->plugin, $notice );
@@ -176,6 +182,8 @@ class Page {
176
  * Set Page Notices to Read.
177
  *
178
  * @since 2.12.0
 
 
179
  */
180
  public function setAllNoticesRead( $setToUnread = false ) {
181
  foreach ( $this->getNotices() as $notice ) {
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
  /**
3
  * BoldGrid Library Plugin Page.
4
  *
5
+ * Library package uses different naming convention
6
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
7
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
8
+ *
9
  * @package Boldgrid\Plugin
10
  *
11
  * @since 2.12.0
14
  */
15
  namespace Boldgrid\Library\Library\Plugin;
16
 
17
+ use Boldgrid\Library\Library\Plugin\Notice;
18
+
19
  /**
20
  * Generic page class.
21
  *
55
  * @since 2.12.0
56
  * @var array
57
  */
58
+ protected $pluginConfig = array();
59
 
60
  /**
61
  * Page Notice
71
  * Constructor.
72
  *
73
  * @since 2.12.0
74
+ * @param Plugin $plugin object that this page belongs to.
75
+ * @param string $slug For example: "plugin" from plugin/plugin.php.
76
+ */
 
77
  public function __construct( Plugin $plugin, $slug ) {
78
 
79
  $this->setPlugin( $plugin );
100
  * Set Plugin.
101
  *
102
  * @since 2.12.0
103
+ *
104
+ * @param Plugin $plugin Plugin Object.
105
  */
106
  private function setPlugin( $plugin ) {
107
  $this->plugin = $plugin;
123
  *
124
  * @since 2.12.0
125
  *
 
126
  * @access private
127
  */
128
  private function setPluginConfig() {
138
  * @return array
139
  */
140
  public function getNotices() {
141
+ $notices = array();
142
  foreach ( $this->notices as $notice ) {
143
  if ( $notice->getPageSlug() === $this->slug ) {
144
  $notices[] = $notice;
152
  *
153
  * @since 2.12.0
154
  *
155
+ * @param string $id ID of the notice.
156
  * @return NoticeCount
157
  */
158
  public function getNoticeById( $id ) {
169
  * @since 2.12.0
170
  */
171
  public function setNotices() {
172
+ $notices = array();
173
  if ( isset( $this->getPluginConfig()['page_notices'] ) ) {
174
  foreach ( $this->getPluginConfig()['page_notices'] as $notice ) {
175
  $notices[] = new Notice( $this->plugin, $notice );
182
  * Set Page Notices to Read.
183
  *
184
  * @since 2.12.0
185
+ *
186
+ * @param bool $setToUnread If true, then this sets the notice to Unread.
187
  */
188
  public function setAllNoticesRead( $setToUnread = false ) {
189
  foreach ( $this->getNotices() as $notice ) {
vendor/boldgrid/library/src/Library/Plugin/Plugin.php CHANGED
@@ -1,16 +1,22 @@
1
- <?php
2
  /**
3
  * BoldGrid Library Plugin Plugin.
4
  *
 
 
 
 
5
  * @package Boldgrid\Plugin
6
  *
7
  * @since 2.7.7
8
  * @author BoldGrid <wpb@boldgrid.com>
9
  */
 
10
  namespace Boldgrid\Library\Library\Plugin;
11
 
12
  use Boldgrid\Library\Library\Configs;
13
  use Boldgrid\Library\Library\Settings;
 
14
 
15
  /**
16
  * Generic plugin class.
@@ -29,12 +35,12 @@ class Plugin {
29
  * @var array
30
  * @access protected
31
  */
32
- protected $childPlugins = [];
33
 
34
  /**
35
  * Plugin file.
36
  *
37
- * For example: plugin/plugin.php
38
  *
39
  * @since 2.9.0
40
  * @var string
@@ -49,7 +55,7 @@ class Plugin {
49
  *
50
  * @var array
51
  */
52
- public $pluginConfig = [];
53
 
54
  /**
55
  * Whether or not this plugin is installed.
@@ -66,14 +72,15 @@ class Plugin {
66
  * For example, ABSPATH/wp-content/plugins/plugin/plugin.php.
67
  *
68
  * @since 2.10.0
 
69
  */
70
  protected $path;
71
 
72
  /**
73
  * Plugin pages.
74
  *
75
- * This is an array of Boldgrid\Library\Library\Plugin\Page
76
- * objects based on the 'pages' list in the plugin Config
77
  * If no plugin config is passed during instantiation,
78
  * this will be an empty array.
79
  *
@@ -81,7 +88,7 @@ class Plugin {
81
  * @var array
82
  * @access protected
83
  */
84
- protected $pages = [];
85
 
86
  /**
87
  * Plugin data, as retrieved from get_plugin_data().
@@ -90,7 +97,7 @@ class Plugin {
90
  * @var array
91
  * @access protected
92
  */
93
- public $pluginData = [];
94
 
95
  /**
96
  * Update plugin data, as retrieved from 'update_plugins' site transient.
@@ -113,29 +120,52 @@ class Plugin {
113
  */
114
  protected $slug;
115
 
 
 
 
 
 
 
 
 
 
116
  /**
117
  * Constructor.
118
  *
119
  * @since 2.7.7
120
  *
121
- * @param string $slug For example: "plugin" from plugin/plugin.php
 
122
  */
123
- public function __construct( $slug, $pluginConfig = null ) {
124
- $this->slug = $slug;
125
-
126
- $this->setFile();
127
 
128
- $this->setPath();
129
-
130
- $this->setIsInstalled();
 
 
 
131
 
132
- $this->setChildPlugins();
 
 
133
 
134
- $this->pluginConfig = ! empty( $pluginConfig ) ? $pluginConfig : [];
135
 
136
  $this->setPages();
137
  }
138
 
 
 
 
 
 
 
 
 
 
 
 
139
  /**
140
  * Version compare for the first version of this plugin.
141
  *
@@ -194,30 +224,6 @@ class Plugin {
194
  return $this->childPlugins;
195
  }
196
 
197
- /**
198
- * Get config for this particular plugin.
199
- *
200
- * Within library.global.php, there is a config option called "plugins". This method loops through
201
- * those plugins and returns the configs for this particular plugin.
202
- *
203
- * @since 2.10.0
204
- *
205
- * @return array
206
- */
207
- public function getConfig() {
208
- $config = [];
209
-
210
- $plugins = Configs::get( 'plugins' );
211
- if ( $plugins ) {
212
- foreach ( $plugins as $plugin ) {
213
- if ( $plugin['file'] === $this->file ) {
214
- $config = $plugin;
215
- }
216
- }
217
- }
218
- return $config;
219
- }
220
-
221
  /**
222
  * Get data via the get_plugin_data() function.
223
  *
@@ -287,25 +293,6 @@ class Plugin {
287
  return $this->file;
288
  }
289
 
290
- /**
291
- * Get a plugin's slug from its file.
292
- *
293
- * For example, if the plugin's file is:
294
- * boldgrid-backup-premium/boldgrid-backup-premium.php
295
- * The plugin's slug is:
296
- * boldgrid-backup-premium
297
- *
298
- * @since 2.10.0
299
- *
300
- * @param string $file The plugin's file, as in plugin/plugin.php
301
- * @return string
302
- */
303
- public static function getFileSlug( $file ) {
304
- $slug = explode( '/', $file );
305
-
306
- return $slug[0];
307
- }
308
-
309
  /**
310
  * If a new version of a plugin is available, return the new version.
311
  *
@@ -320,7 +307,7 @@ class Plugin {
320
  }
321
 
322
  /**
323
- * Get plugin specific config array
324
  *
325
  * @return array
326
  * @since 2.12.0
@@ -351,9 +338,9 @@ class Plugin {
351
  * @return array
352
  */
353
  public function getPluginsChecked() {
354
- $pluginsChecked = Settings::getKey( 'plugins_checked', [] );
355
 
356
- $pluginsChecked = ! empty( $pluginsChecked[ $this->file ] ) ? $pluginsChecked[ $this->file ] : [];
357
 
358
  return $pluginsChecked;
359
  }
@@ -376,7 +363,7 @@ class Plugin {
376
  * @access private
377
  */
378
  public function setPages() {
379
- $pages = [];
380
  if ( isset( $this->pluginConfig['pages'] ) ) {
381
  foreach ( $this->pluginConfig['pages'] as $page ) {
382
  $pages[] = new Page( $this, $page );
@@ -386,11 +373,11 @@ class Plugin {
386
  }
387
 
388
  /**
389
- * Set all plugin notices as read
390
  *
391
  * @since 2.12.0
392
  *
393
- * @param bool $setToUnread if set to true, marks all items unread instead
394
  */
395
  public function setAllNoticesRead( $setToUnread = false ) {
396
  foreach ( $this->getPages() as $page ) {
@@ -415,7 +402,7 @@ class Plugin {
415
  *
416
  * @since 2.12.0
417
  *
418
- * @param string $slug
419
  * @return Page
420
  */
421
  public function getPageBySlug( $slug ) {
@@ -427,52 +414,14 @@ class Plugin {
427
  }
428
 
429
  /**
430
- * Set our child plugins.
431
- *
432
- * @since 2.10.0
433
- */
434
- public function setChildPlugins() {
435
- $config = $this->getConfig();
436
-
437
- if ( empty( $config['childPlugins'] ) ) {
438
- return;
439
- }
440
-
441
- foreach ( $config['childPlugins'] as $file ) {
442
- $slug = $this->getFileSlug( $file );
443
-
444
- $this->childPlugins[] = new Plugin( $slug );
445
- }
446
- }
447
-
448
- /**
449
- * Set file.
450
- *
451
- * @since 2.9.0
452
- *
453
- * @param string $file A plugin's file.
454
- */
455
- public function setFile( $file = null ) {
456
- $this->file = ! empty( $file ) ? $file : $this->slug . '/' . $this->slug . '.php';
457
- }
458
-
459
- /**
460
- * Set whether or not the plugin is installed (different from activated).
461
  *
462
- * @since 2.10.0
463
- */
464
- public function setIsInstalled() {
465
- $wp_filesystem = \Boldgrid\Library\Util\Version::getWpFilesystem();
466
- $this->isInstalled = $wp_filesystem->exists( $this->path );
467
- }
468
-
469
- /**
470
- * Set the plugin's path.
471
  *
472
- * @since 2.10.0
473
  */
474
- public function setPath() {
475
- $this->path = ABSPATH . 'wp-content/plugins/' . $this->file;
476
  }
477
 
478
  /**
@@ -578,4 +527,20 @@ class Plugin {
578
  return '<span class="bglib-unread-notice-count hidden"></span>';
579
  }
580
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
581
  }
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
  /**
3
  * BoldGrid Library Plugin Plugin.
4
  *
5
+ * Library package uses different naming convention.
6
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
7
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
8
+ *
9
  * @package Boldgrid\Plugin
10
  *
11
  * @since 2.7.7
12
  * @author BoldGrid <wpb@boldgrid.com>
13
  */
14
+
15
  namespace Boldgrid\Library\Library\Plugin;
16
 
17
  use Boldgrid\Library\Library\Configs;
18
  use Boldgrid\Library\Library\Settings;
19
+ use Boldgrid\Library\Library\Plugin\Page;
20
 
21
  /**
22
  * Generic plugin class.
35
  * @var array
36
  * @access protected
37
  */
38
+ protected $childPlugins = array();
39
 
40
  /**
41
  * Plugin file.
42
  *
43
+ * For example: plugin/plugin.php.
44
  *
45
  * @since 2.9.0
46
  * @var string
55
  *
56
  * @var array
57
  */
58
+ public $pluginConfig = array();
59
 
60
  /**
61
  * Whether or not this plugin is installed.
72
  * For example, ABSPATH/wp-content/plugins/plugin/plugin.php.
73
  *
74
  * @since 2.10.0
75
+ * @var string
76
  */
77
  protected $path;
78
 
79
  /**
80
  * Plugin pages.
81
  *
82
+ * This is an array of Boldgrid\Library\Library\Plugin\Page.
83
+ * objects based on the 'pages' list in the plugin Config.
84
  * If no plugin config is passed during instantiation,
85
  * this will be an empty array.
86
  *
88
  * @var array
89
  * @access protected
90
  */
91
+ protected $pages = array();
92
 
93
  /**
94
  * Plugin data, as retrieved from get_plugin_data().
97
  * @var array
98
  * @access protected
99
  */
100
+ public $pluginData = array();
101
 
102
  /**
103
  * Update plugin data, as retrieved from 'update_plugins' site transient.
120
  */
121
  protected $slug;
122
 
123
+ /**
124
+ * Plugin Update Data.
125
+ *
126
+ * @since 2.12.2
127
+ *
128
+ * @var Response
129
+ */
130
+ public $updateData;
131
+
132
  /**
133
  * Constructor.
134
  *
135
  * @since 2.7.7
136
  *
137
+ * @param array $pluginParams An array of parameters passed from Plugin Factory.
138
+ * @param array $pluginConfig Optionally passed array of Plugin Configuration Options.
139
  */
140
+ public function __construct( $pluginParams, $pluginConfig = null ) {
 
 
 
141
 
142
+ // Backwards Compatability: Some plugins don't know they're supposed to use the Factory.
143
+ // So this will direct them there. Once ALL plugins are using libary > 2.12.2 this can be removed.
144
+ if ( is_string( $pluginParams ) ) {
145
+ $plugin = Factory::create( $pluginParams, $pluginConfig );
146
+ $pluginParams = $plugin->getPluginParams();
147
+ }
148
 
149
+ foreach ( $pluginParams as $paramKey => $paramValue ) {
150
+ $this->$paramKey = $paramValue;
151
+ }
152
 
153
+ $this->updateData = ! empty( $this->getUpdateData ) ? $this->setUpdateData() : false;
154
 
155
  $this->setPages();
156
  }
157
 
158
+ /**
159
+ * Set UpdateData.
160
+ *
161
+ * @since 2.12.2
162
+ *
163
+ * @param bool $force Whether or not to force fetching from API.
164
+ */
165
+ public function setUpdateData( $force = false ) {
166
+ $this->updateData = new UpdateData( $this, null, $force );
167
+ }
168
+
169
  /**
170
  * Version compare for the first version of this plugin.
171
  *
224
  return $this->childPlugins;
225
  }
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  /**
228
  * Get data via the get_plugin_data() function.
229
  *
293
  return $this->file;
294
  }
295
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
296
  /**
297
  * If a new version of a plugin is available, return the new version.
298
  *
307
  }
308
 
309
  /**
310
+ * Get plugin specific config array.
311
  *
312
  * @return array
313
  * @since 2.12.0
338
  * @return array
339
  */
340
  public function getPluginsChecked() {
341
+ $pluginsChecked = Settings::getKey( 'plugins_checked', array() );
342
 
343
+ $pluginsChecked = ! empty( $pluginsChecked[ $this->file ] ) ? $pluginsChecked[ $this->file ] : array();
344
 
345
  return $pluginsChecked;
346
  }
363
  * @access private
364
  */
365
  public function setPages() {
366
+ $pages = array();
367
  if ( isset( $this->pluginConfig['pages'] ) ) {
368
  foreach ( $this->pluginConfig['pages'] as $page ) {
369
  $pages[] = new Page( $this, $page );
373
  }
374
 
375
  /**
376
+ * Set all plugin notices as read.
377
  *
378
  * @since 2.12.0
379
  *
380
+ * @param bool $setToUnread if set to true, marks all items unread instead.
381
  */
382
  public function setAllNoticesRead( $setToUnread = false ) {
383
  foreach ( $this->getPages() as $page ) {
402
  *
403
  * @since 2.12.0
404
  *
405
+ * @param string $slug The Plugin slug.
406
  * @return Page
407
  */
408
  public function getPageBySlug( $slug ) {
414
  }
415
 
416
  /**
417
+ * Set PluginData.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
418
  *
419
+ * @since 2.12.2
 
 
 
 
 
 
 
 
420
  *
421
+ * @param array $pluginData Plugin Data Array.
422
  */
423
+ public function setPluginData( $pluginData ) {
424
+ $this->pluginData = $pluginData;
425
  }
426
 
427
  /**
527
  return '<span class="bglib-unread-notice-count hidden"></span>';
528
  }
529
  }
530
+
531
+ /**
532
+ * Get Plugin Params.
533
+ *
534
+ * Gets an array of all plugin property parameters.
535
+ * This is useful for backwards compatibility with BoldGrid Plugins.
536
+ * That do not implement the Factory methods.
537
+ * Once ALL plugins are Library > 2.12.2 this can be removed.
538
+ *
539
+ * @since 2.12.2
540
+ *
541
+ * @return array
542
+ */
543
+ public function getPluginParams() {
544
+ return get_object_vars( $this );
545
+ }
546
  }
vendor/boldgrid/library/src/Library/Plugin/Plugins.php CHANGED
@@ -1,6 +1,8 @@
1
- <?php
2
  /**
3
  * BoldGrid Library Plugin Plugins.
 
 
4
  *
5
  * @package Boldgrid\Plugin
6
  *
@@ -21,7 +23,9 @@ use Boldgrid\Library\Library\Configs;
21
  */
22
  class Plugins {
23
  /**
24
- * Get our active plugins.
 
 
25
  *
26
  * @since 2.10.0
27
  *
@@ -29,9 +33,11 @@ class Plugins {
29
  */
30
  public static function getActive() {
31
  // Get an array of plugins that should be within the widget.
32
- $plugins = Configs::getPlugins( array(
33
- 'inNotificationsWidget' => true,
34
- ) );
 
 
35
 
36
  // Then filter that array of plugins to get our active plugins.
37
  $activePlugins = array();
@@ -44,4 +50,41 @@ class Plugins {
44
 
45
  return $activePlugins;
46
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
1
+ <?php //phpcs:ignore WordPress.Files.FileName
2
  /**
3
  * BoldGrid Library Plugin Plugins.
4
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
5
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
6
  *
7
  * @package Boldgrid\Plugin
8
  *
23
  */
24
  class Plugins {
25
  /**
26
+ * Get active BoldGrid plugins only ( based on the Configs data ).
27
+ *
28
+ * This is used for obtaining BoldGrid plugins for the Dashboard Notifications Widget.
29
  *
30
  * @since 2.10.0
31
  *
33
  */
34
  public static function getActive() {
35
  // Get an array of plugins that should be within the widget.
36
+ $plugins = Configs::getPlugins(
37
+ array(
38
+ 'inNotificationsWidget' => true,
39
+ )
40
+ );
41
 
42
  // Then filter that array of plugins to get our active plugins.
43
  $activePlugins = array();
50
 
51
  return $activePlugins;
52
  }
53
+
54
+ /**
55
+ * Get All Plugins.
56
+ *
57
+ * @since 2.12.2
58
+ *
59
+ * @return array
60
+ */
61
+ public static function getAllPlugins() {
62
+ include_once ABSPATH . 'wp-admin/includes/plugin.php';
63
+ $plugins = get_plugins();
64
+ $all_plugins = array();
65
+ foreach ( $plugins as $file => $plugin_data ) {
66
+ $all_plugins[] = Factory::create( $file );
67
+ }
68
+ return $all_plugins;
69
+ }
70
+
71
+ /**
72
+ * Get Active Plugin by Slug.
73
+ *
74
+ * @since 2.12.2
75
+ *
76
+ * @param array $activePlugins List of Plugin objects.
77
+ * @param string $slug Slug string.
78
+ *
79
+ * @return Plugin
80
+ */
81
+ public static function getBySlug( array $activePlugins, $slug ) {
82
+ $activePlugins = self::getAllPlugins();
83
+ foreach ( $activePlugins as $plugin ) {
84
+ if ( $plugin->getSlug() === $slug ) {
85
+ return $plugin;
86
+ }
87
+ }
88
+ return new \WP_Error( 'boldgrid_plugin_not_found', sprintf( 'No plugin could be found with the slug %s.', $slug ) );
89
+ }
90
  }
vendor/boldgrid/library/src/Library/Plugin/UpdateData.php ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
+ /**
3
+ * BoldGrid Library Update Data.
4
+ *
5
+ * Library package uses different naming convention.
6
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
7
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
8
+ *
9
+ * @package Boldgrid\Plugin
10
+ *
11
+ * @since 2.12.2
12
+ *
13
+ * @author BoldGrid <wpb@boldgrid.com>
14
+ */
15
+ namespace Boldgrid\Library\Library\Plugin;
16
+
17
+ use Boldgrid\Library\Library\Plugin\Plugin;
18
+
19
+ /**
20
+ * Update Data Class.
21
+ *
22
+ * This class stores the update data for a given plugin.
23
+ * Boldgrid\Library\Library\Plugin\Plugin class.
24
+ *
25
+ * @since 2.12.0
26
+ */
27
+ class UpdateData {
28
+ /**
29
+ * Plugin.
30
+ *
31
+ * @since 2.12.2
32
+ * @var Plugin
33
+ */
34
+ public $plugin;
35
+
36
+ /**
37
+ * Active Installs.
38
+ *
39
+ * @since 2.12.2
40
+ * @var string
41
+ */
42
+ public $activeInstalls;
43
+
44
+ /**
45
+ * Minor Version Installs.
46
+ *
47
+ * @since 2.12.2
48
+ * @var string
49
+ */
50
+ public $minorVersionInstalls;
51
+
52
+ /**
53
+ * Release Date.
54
+ *
55
+ * @since 2.12.2
56
+ * @var string
57
+ */
58
+ public $releaseDate;
59
+
60
+ /**
61
+ * Version.
62
+ *
63
+ * @since 2.12.2
64
+ * @var string
65
+ */
66
+ public $version;
67
+
68
+ /**
69
+ * Minor Version.
70
+ *
71
+ * @since 2.12.2
72
+ * @var string
73
+ */
74
+ public $minorVersion;
75
+
76
+ /**
77
+ * Stats.
78
+ *
79
+ * @since 2.12.2
80
+ * @var string
81
+ */
82
+ public $stats;
83
+
84
+ /**
85
+ * Days Since Release.
86
+ *
87
+ * @since 2.12.2
88
+ * @var int
89
+ */
90
+ public $days;
91
+
92
+ /**
93
+ * Response Data.
94
+ *
95
+ * @since 2.12.2
96
+ * @var Response
97
+ * @access private
98
+ */
99
+ private $responseData;
100
+
101
+ /**
102
+ * Current Transient.
103
+ *
104
+ * @since 2.12.2
105
+ * @var array
106
+ * @access private
107
+ */
108
+ private $currentTransient;
109
+
110
+ /**
111
+ * Timeout Setting.
112
+ *
113
+ * @since 2.12.2
114
+ * @var int
115
+ * @access private
116
+ */
117
+ private $timeoutSetting = 3600;
118
+
119
+ /**
120
+ * Constructor.
121
+ *
122
+ * @since 2.12.2
123
+ *
124
+ * @param Plugin $plugin The plugin we are getting data for.
125
+ * @param string $slug Optional slug of plugin if plugin object not given.
126
+ * @param bool $force Whether or not to force fetching data from API.
127
+ */
128
+ public function __construct( $plugin = null, $slug = null, $force = false ) {
129
+ include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
130
+
131
+ // If a plugin object is passed in constructer, use that, or else create a new one from slug.
132
+ $this->plugin = ( null !== $plugin ) ? $plugin : Factory::create( $slug );
133
+
134
+ $responseTransient = $this->getInformationTransient();
135
+
136
+ if ( false !== $responseTransient ) {
137
+ $this->responseData = (object) $responseTransient;
138
+ $this->activeInstalls = $responseTransient['active_installs'];
139
+ $this->version = $responseTransient['version'];
140
+ $this->downloaded = $responseTransient['downloaded'];
141
+ $this->releaseDate = $responseTransient['last_updated'];
142
+ $this->thirdParty = $responseTransient['third_party'];
143
+ $this->apiFetchTime = isset( $this->responseTransient['api_fetch_time'] ) ? $this->responseTransient['api_fetch_time'] : current_time( 'timestamp' );
144
+ } else {
145
+ $this->responseData = $this->fetchResponseData( $force );
146
+ $this->activeInstalls = isset( $this->responseData->active_installs ) ? $this->responseData->active_installs : '0';
147
+ $this->version = isset( $this->responseData->version ) ? $this->responseData->version : null;
148
+ $this->downloaded = isset( $this->responseData->downloaded ) ? $this->responseData->downloaded : '0';
149
+ $this->releaseDate = isset( $this->responseData->last_updated ) ? new \DateTime( $this->responseData->last_updated ) : new \DateTime( gmdate( 'Y-m-d H:i:s', 1 ) );
150
+ $this->thirdParty = isset( $this->responseData->third_party ) ? $this->responseData->third_party : false;
151
+ $this->apiFetchTime = isset( $this->responseData->api_fetch_time ) ? $this->responseData->api_fetch_time : false;
152
+
153
+ $this->setInformationTransient();
154
+ }
155
+ $now = new \DateTime();
156
+ $this->days = date_diff( $now, $this->releaseDate )->format( '%a' );
157
+ }
158
+
159
+ /**
160
+ * Get Minor Version Installs.
161
+ *
162
+ * @since SINCEVERSON
163
+ * @return int
164
+ */
165
+ public function getMinorVersionInstalls() {
166
+ foreach ( $this->stats as $minorVersion => $percentInstalls ) {
167
+ if ( $minorVersion === $this->minorVersion ) {
168
+ $x = $percentInstalls / 100;
169
+ return $this->activeInstalls * $x;
170
+ }
171
+ }
172
+ $now = new \DateTime();
173
+ $this->days = date_diff( $now, $this->releaseDate )->format( '%a' );
174
+ }
175
+
176
+ /**
177
+ * Get Response Data.
178
+ *
179
+ * @since 2.12.2
180
+ *
181
+ * @return Response
182
+ */
183
+ public function getResponseData() {
184
+ return $this->responseData;
185
+ }
186
+
187
+ /**
188
+ * Set Response Data.
189
+ *
190
+ * @since 2.12.2
191
+ *
192
+ * @param bool $force Whether or not to force fethcing from API.
193
+ *
194
+ * @return Response
195
+ */
196
+ public function fetchResponseData( $force = false ) {
197
+ global $wp_filter;
198
+ $is_timely_updates = apply_filters( 'boldgrid_backup_is_timely_updates', false );
199
+ $plugin_information = array();
200
+ $delay_time = $force ? 0 : 3;
201
+ $delayFetchingData = ( $this->getAgeOfTransient() < $delay_time );
202
+ if ( $is_timely_updates && ! $delayFetchingData ) {
203
+ /*
204
+ * Sometimes, other plugins will add filters to the 'plugins_api' hook.
205
+ * Doing this can sometimes 'short-circuit' other requests to this API.
206
+ * See: https://developer.wordpress.org/reference/hooks/plugins_api/
207
+ * This will remove those filters so we can be sure that this API request
208
+ * returns valid data. This should not affect other plugins from using those filters
209
+ * since their 'add_filters()' calls will re-register their filters.
210
+ */
211
+ \remove_all_filters( 'plugins_api' );
212
+ $plugin_information = plugins_api(
213
+ 'plugin_information',
214
+ (object) array(
215
+ 'slug' => $this->plugin->getSlug(),
216
+ 'fields' => array(
217
+ 'downloaded',
218
+ 'last_updated',
219
+ 'active_installs',
220
+ ),
221
+ )
222
+ );
223
+ /*
224
+ * A successful call to the WordPress.org Plugins API will NOT have a 'no_update' property.
225
+ * This conditional will ensure that such calls are marked as WP_Error objects and then the
226
+ * $plugin_information will be assigned the return value from $this->getGenericInfo() below.
227
+ */
228
+ if ( isset( $plugin_information->no_update ) ) {
229
+ $plugin_information = new \WP_Error( 'Plugin API returns unusable data' );
230
+ } else {
231
+ $plugin_information->api_fetch_time = current_time( 'timestamp' );
232
+ }
233
+
234
+ } else {
235
+ $plugin_information = array(
236
+ 'active_installs' => '0',
237
+ 'version' => '0',
238
+ 'downloaded' => '000000',
239
+ 'last_updated' => gmdate( 'Y-m-d H:i:s', 1 ),
240
+ 'api_fetch_time' => false,
241
+ );
242
+ }
243
+
244
+ if ( is_a( $plugin_information, 'WP_Error' ) ) {
245
+ $plugin_information = $this->getGenericInfo( $plugin_information );
246
+ return (object) $plugin_information;
247
+ }
248
+ return (object) $plugin_information;
249
+ }
250
+
251
+ /**
252
+ * Get Plugin Information from Transient.
253
+ *
254
+ * @since 2.12.2
255
+ *
256
+ * @return array
257
+ */
258
+ public function getInformationTransient() {
259
+ $transient = get_transient( 'boldgrid_plugin_information' );
260
+ if ( false === $transient ) {
261
+ $this->currentTransient = array();
262
+ return false;
263
+ } else {
264
+ $this->currentTransient = $transient;
265
+ }
266
+
267
+ if ( array_key_exists( $this->plugin->getSlug(), $transient ) && false === $transient[ $this->plugin->getSlug() ]['api_fetch_time'] ) {
268
+ return false;
269
+ }
270
+
271
+ if ( array_key_exists( $this->plugin->getSlug(), $transient ) ) {
272
+ return $transient[ $this->plugin->getSlug() ];
273
+ }
274
+ return false;
275
+ }
276
+
277
+ /** Get Age of Transient.
278
+ *
279
+ * @since 2.12.2
280
+ *
281
+ * @return string
282
+ */
283
+ public function getAgeOfTransient() {
284
+ if ( $this->currentTransient ) {
285
+ $timeout = get_option( '_transient_timeout_boldgrid_plugin_information' );
286
+ $current_timestamp = current_time( 'timestamp' );
287
+ return $this->timeoutSetting - ( $timeout - $current_timestamp );
288
+ }
289
+ }
290
+
291
+ /**
292
+ * Set Plugin Information Transient.
293
+ *
294
+ * @since 2.12.2
295
+ */
296
+ public function setInformationTransient() {
297
+ $transient = get_transient( 'boldgrid_plugin_information' );
298
+ if ( false === $transient ) {
299
+ $transient = array();
300
+ }
301
+
302
+ $transient[ $this->plugin->getSlug() ] = array(
303
+ 'active_installs' => $this->activeInstalls,
304
+ 'version' => $this->version,
305
+ 'downloaded' => $this->downloaded,
306
+ 'last_updated' => $this->releaseDate,
307
+ 'third_party' => $this->thirdParty,
308
+ 'api_fetch_time' => $this->apiFetchTime,
309
+ );
310
+
311
+ $is_timely_updates = apply_filters( 'boldgrid_backup_is_timely_updates', false );
312
+ if ( $is_timely_updates ) {
313
+ set_transient( 'boldgrid_plugin_information', $transient, $this->timeoutSetting );
314
+ }
315
+
316
+ }
317
+
318
+ /**
319
+ * Plugins Api Failed.
320
+ *
321
+ * @since 2.12.2
322
+ *
323
+ * @param \WP_Error $errors WordPress error returned by plugins_api().
324
+ */
325
+ public function getGenericInfo( \WP_Error $errors ) {
326
+ $current = get_site_transient( 'update_plugins' );
327
+ $new_version = isset( $current->response[ $this->plugin->getFile() ] ) ? $current->response[ $this->plugin->getFile() ]->new_version : '';
328
+
329
+ $plugin_information = array(
330
+ 'active_installs' => '0',
331
+ 'version' => $new_version,
332
+ 'downloaded' => '000000',
333
+ 'last_updated' => gmdate( 'Y-m-d H:i:s', 1 ),
334
+ 'third_party' => true,
335
+ 'api_fetch_time' => current_time( 'timestamp' ),
336
+ );
337
+
338
+ return $plugin_information;
339
+ }
340
+ }
vendor/boldgrid/library/src/Library/Start.php CHANGED
@@ -115,9 +115,6 @@ class Start {
115
  // Registration class runs Filter::add($this) in __construct.
116
  $registration = new \Boldgrid\Library\Library\Registration();
117
 
118
- // Update class runs Filter::add($this) in __construct.
119
- $update = new \Boldgrid\Library\Library\Update();
120
-
121
  // PostNewKey class runs Filter::add($this) in __construct.
122
  $postNewKey = new \Boldgrid\Library\Library\Key\PostNewKey();
123
 
115
  // Registration class runs Filter::add($this) in __construct.
116
  $registration = new \Boldgrid\Library\Library\Registration();
117
 
 
 
 
118
  // PostNewKey class runs Filter::add($this) in __construct.
119
  $postNewKey = new \Boldgrid\Library\Library\Key\PostNewKey();
120
 
vendor/boldgrid/library/src/Library/Theme/Theme.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
+ /**
3
+ * BoldGrid Library Theme Theme.
4
+ *
5
+ * Library package uses different naming convention.
6
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
7
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
8
+ *
9
+ * @package Boldgrid\Theme
10
+ *
11
+ * @since 2.12.2
12
+ * @author BoldGrid <wpb@boldgrid.com>
13
+ */
14
+ namespace Boldgrid\Library\Library\Theme;
15
+
16
+ /**
17
+ * Theme Class.
18
+ *
19
+ * Stores and retrieves various data for the themes on the site.
20
+ *
21
+ * Boldgrid\Library\Library\Theme\Theme class.
22
+ *
23
+ * @since 2.12.0
24
+ */
25
+ class Theme {
26
+ /**
27
+ * WP_Theme Object.
28
+ *
29
+ * @since 2.12.2
30
+ * @var WP_Theme
31
+ */
32
+ public $wp_theme;
33
+
34
+ /**
35
+ * Stylesheet.
36
+ *
37
+ * @since 2.12.2
38
+ * @var string
39
+ */
40
+ public $stylesheet;
41
+
42
+ /**
43
+ * Version.
44
+ *
45
+ * @since 2.12.2
46
+ * @var string
47
+ */
48
+ public $version;
49
+
50
+ /**
51
+ * Parent Theme.
52
+ *
53
+ * @since 2.12.2
54
+ * @var string
55
+ */
56
+ public $parent;
57
+
58
+ /**
59
+ * Is Active.
60
+ *
61
+ * @since 2.12.2
62
+ * @var bool
63
+ */
64
+ public $isActive;
65
+
66
+ /**
67
+ * Has Update.
68
+ *
69
+ * @since 2.12.2
70
+ * @var bool
71
+ */
72
+ public $hasUpdate;
73
+
74
+ /**
75
+ * UpdateData.
76
+ *
77
+ * @since 2.12.2
78
+ * @var UpdateData
79
+ */
80
+ public $updateData;
81
+
82
+ /**
83
+ * Constructor.
84
+ *
85
+ * @since 2.12.2
86
+ *
87
+ * @param \WP_Theme $wp_theme The WP_Theme object for this theme.
88
+ */
89
+ public function __construct( \WP_Theme $wp_theme ) {
90
+ $this->wp_theme = $wp_theme;
91
+ $this->stylesheet = $this->wp_theme->__get( 'stylesheet' );
92
+ $this->version = $this->wp_theme->__get( 'version' );
93
+ $this->getParent();
94
+ $this->setHasUpdate();
95
+ $this->setIsActive();
96
+ }
97
+
98
+ /**
99
+ * Set UpdateData.
100
+ *
101
+ * @since 2.12.2
102
+ *
103
+ * @param bool $force Whether or not to force fetching from API.
104
+ */
105
+ public function setUpdateData( $force = false ) {
106
+ $this->updateData = new UpdateData( $this, null, $force );
107
+ }
108
+
109
+ /**
110
+ * Determines the parent theme if this theme is a child theme.
111
+ *
112
+ * @since 2.12.2
113
+ *
114
+ * @return string
115
+ */
116
+ public function getParent() {
117
+ $this->parent = $this->wp_theme->parent();
118
+ return $this->parent;
119
+ }
120
+
121
+ /**
122
+ * Determine if this is the active theme or not.
123
+ *
124
+ * @since 2.12.2
125
+ */
126
+ private function setIsActive() {
127
+ $active_theme = wp_get_theme();
128
+ if ( $active_theme->__get( 'stylesheet' ) === $this->stylesheet ) {
129
+ $this->isActive = true;
130
+ } else {
131
+ $this->isActive = false;
132
+ }
133
+ }
134
+
135
+ /**
136
+ * Determine if this theme has an update available.
137
+ *
138
+ * @since 2.12.2
139
+ */
140
+ public function setHasUpdate() {
141
+ if ( get_site_transient( 'update_themes' ) ) {
142
+ $transient = get_site_transient( 'update_themes' )->response;
143
+ } else {
144
+ $transient = null;
145
+ }
146
+
147
+ $transient = null !== $transient ? $transient : array();
148
+
149
+ if ( array_key_exists( $this->stylesheet, $transient ) ) {
150
+ $this->hasUpdate = true;
151
+ } else {
152
+ $this->hasUpdate = false;
153
+ }
154
+ }
155
+ }
vendor/boldgrid/library/src/Library/Theme/Themes.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
+ /**
3
+ * BoldGrid Library Theme Themes.
4
+ *
5
+ * Library package uses different naming convention.
6
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
7
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
8
+ *
9
+ * @package Boldgrid\Theme
10
+ *
11
+ * @since 2.12.2
12
+ * @author BoldGrid <wpb@boldgrid.com>
13
+ */
14
+
15
+ namespace Boldgrid\Library\Library\Theme;
16
+
17
+ /**
18
+ * Themes Class.
19
+ *
20
+ * This class stores all Theme objects and helps retrieve them.
21
+ * Boldgrid\Library\Library\Theme\Theme class.
22
+ *
23
+ * @since 2.12.0
24
+ */
25
+ class Themes {
26
+ /**
27
+ * Themes array.
28
+ *
29
+ * @since 2.12.2
30
+ * @var array
31
+ */
32
+ public $themes;
33
+
34
+ /**
35
+ * Constructor.
36
+ *
37
+ * @since 2.12.2
38
+ */
39
+ public function __construct() {
40
+ $this->themes = array();
41
+ $wp_themes = wp_get_themes();
42
+ foreach ( $wp_themes as $wp_theme ) {
43
+ $this->themes[] = new Theme( $wp_theme );
44
+ }
45
+ }
46
+
47
+ /**
48
+ * Returns an array of Theme objects.
49
+ *
50
+ * @since 2.12.2
51
+ *
52
+ * @return array
53
+ */
54
+ public function get() {
55
+ return $this->themes;
56
+ }
57
+
58
+ /**
59
+ * Get Theme from Stylesheet.
60
+ *
61
+ * @since 2.12.2
62
+ *
63
+ * @param string $stylesheet Theme's Stylesheet.
64
+ * @return Theme
65
+ */
66
+ public function getFromStylesheet( $stylesheet ) {
67
+ foreach ( $this->get() as $theme ) {
68
+ if ( $theme->stylesheet === $stylesheet ) {
69
+ return $theme;
70
+ }
71
+ }
72
+ return new \WP_Error( 'boldgrid_theme_not_found', sprintf( 'No theme could be found with the stylesheet %s.', $stylesheet ) );
73
+ }
74
+
75
+ /**
76
+ * Get the Active Theme.
77
+ *
78
+ * @since 2.12.2
79
+ *
80
+ * @return Theme
81
+ */
82
+ public function getActive() {
83
+ return new Theme( wp_get_theme() );
84
+ }
85
+ }
vendor/boldgrid/library/src/Library/Theme/UpdateData.php ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
+ /**
3
+ * BoldGrid Library Update Data.
4
+ *
5
+ * Library package uses different naming convention.
6
+ * phpcs:disable WordPress.NamingConventions.ValidVariableName
7
+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName
8
+ *
9
+ * @package Boldgrid\Theme
10
+ *
11
+ * @since 2.12.2
12
+ *
13
+ * @author BoldGrid <wpb@boldgrid.com>
14
+ */
15
+ namespace Boldgrid\Library\Library\Theme;
16
+
17
+ use Boldgrid\Library\Library\Theme\Theme;
18
+
19
+ /**
20
+ * Update Data Class.
21
+ *
22
+ * This class stores the update data for a given theme.
23
+ * Boldgrid\Library\Library\Theme\Theme class.
24
+ *
25
+ * @since 2.12.0
26
+ */
27
+ class UpdateData {
28
+ /**
29
+ * Theme.
30
+ *
31
+ * @since 2.12.2
32
+ * @var Theme
33
+ */
34
+ public $theme;
35
+
36
+ /**
37
+ * Themes.
38
+ *
39
+ * @since 2.12.2
40
+ * @var string
41
+ */
42
+ public $themes;
43
+
44
+ /**
45
+ * Release Date.
46
+ *
47
+ * @since 2.12.2
48
+ * @var string
49
+ */
50
+ public $releaseDate;
51
+
52
+ /**
53
+ * Version.
54
+ *
55
+ * @since 2.12.2
56
+ * @var string
57
+ */
58
+ public $version;
59
+
60
+ /**
61
+ * Days Since Release.
62
+ *
63
+ * @since 2.12.2
64
+ * @var int
65
+ */
66
+ public $days;
67
+
68
+ /**
69
+ * Response Data.
70
+ *
71
+ * @since 2.12.2
72
+ * @var Response
73
+ * @access private
74
+ */
75
+ private $responseData;
76
+
77
+ /**
78
+ * Current Transient.
79
+ *
80
+ * @since 2.12.2
81
+ * @var array
82
+ * @access private
83
+ */
84
+ private $currentTransient;
85
+
86
+ /**
87
+ * Timeout Setting.
88
+ *
89
+ * @since 2.12.2
90
+ * @var int
91
+ * @access private
92
+ */
93
+ private $timeoutSetting = 3600;
94
+
95
+ /**
96
+ * Is Timely Updates Enabled.
97
+ *
98
+ * @since 2.12.3
99
+ * @var bool
100
+ * @access private
101
+ */
102
+ private $is_timely_updates;
103
+
104
+ /**
105
+ * Constructor.
106
+ *
107
+ * @since 2.12.2
108
+ *
109
+ * @param Theme $theme The Theme Object.
110
+ * @param string $stylesheet Theme's Stylesheet.
111
+ */
112
+ public function __construct( $theme = null, $stylesheet = null ) {
113
+ // If a theme object is passed in constructer, use that, or else create a new one from stylesheet.
114
+ $this->theme = ( null !== $theme ) ? $theme : new Theme( $stylesheet );
115
+
116
+ $settings = get_option( 'boldgrid_backup_settings' );
117
+ $this->is_timely_updates = ! empty( $settings['auto_update']['timely-updates-enabled'] );
118
+
119
+ $responseTransient = $this->getInformationTransient();
120
+
121
+ if ( false !== $responseTransient ) {
122
+ $this->responseData = (object) $responseTransient;
123
+ $this->version = $responseTransient['version'];
124
+ $this->downloaded = $responseTransient['downloaded'];
125
+ $this->releaseDate = $responseTransient['last_updated'];
126
+ $this->apiFetchTime = isset( $this->responseTransient['api_fetch_time'] ) ? $this->responseTransient['api_fetch_time'] : current_time( 'timestamp' );
127
+ } else {
128
+ $this->responseData = $this->fetchResponseData();
129
+ $this->version = $this->responseData->version;
130
+ $this->downloaded = $this->responseData->downloaded;
131
+ $this->releaseDate = new \DateTime( $this->responseData->last_updated );
132
+ $this->apiFetchTime = isset( $this->responseData->api_fetch_time ) ? $this->responseData->api_fetch_time : false;
133
+
134
+ $this->setInformationTransient();
135
+ }
136
+
137
+ $now = new \DateTime();
138
+
139
+ $this->days = date_diff( $now, $this->releaseDate )->format( '%a' );
140
+ }
141
+
142
+ /**
143
+ * Get Response Data.
144
+ *
145
+ * @since 2.12.2
146
+ *
147
+ * @return Response
148
+ */
149
+ public function getResponseData() {
150
+ return $this->responseData;
151
+ }
152
+
153
+ /**
154
+ * Set Response Data.
155
+ *
156
+ * @since 2.12.2
157
+ *
158
+ * @return Response
159
+ */
160
+ public function fetchResponseData() {
161
+ include_once ABSPATH . 'wp-admin/includes/theme.php';
162
+
163
+ $theme_information = array();
164
+
165
+ if ( $this->is_timely_updates ) {
166
+ $theme_information = themes_api(
167
+ 'theme_information',
168
+ array(
169
+ 'slug' => $this->theme->stylesheet,
170
+ 'fields' => array(
171
+ 'downloaded',
172
+ 'last_updated',
173
+ 'active_installs',
174
+ ),
175
+ )
176
+ );
177
+
178
+ $theme_information->api_fetch_time = current_time( 'timestamp' );
179
+ } else {
180
+ $theme_information = array(
181
+ 'active_installs' => '0',
182
+ 'version' => '0',
183
+ 'downloaded' => '000000',
184
+ 'last_updated' => gmdate( 'Y-m-d H:i:s', 1 ),
185
+ 'api_fetch_time' => false,
186
+ );
187
+ }
188
+
189
+ if ( is_a( $theme_information, 'WP_Error' ) ) {
190
+ $theme_information = $this->getGenericInfo( $theme_information );
191
+ return (object) $theme_information;
192
+ }
193
+
194
+ return (object) $theme_information;
195
+ }
196
+
197
+ /**
198
+ * Get Theme Information from Transient.
199
+ *
200
+ * @since 2.12.2
201
+ *
202
+ * @return array
203
+ */
204
+ public function getInformationTransient() {
205
+ $transient = get_transient( 'boldgrid_theme_information' );
206
+
207
+ if ( false === $transient ) {
208
+ $this->currentTransient = array();
209
+ return false;
210
+ } else {
211
+ $this->currentTransient = $transient;
212
+ }
213
+
214
+ if ( array_key_exists( $this->theme->stylesheet, $transient ) &&
215
+ false === $transient[ $this->theme->stylesheet ]['api_fetch_time'] ) {
216
+ return false;
217
+ }
218
+
219
+ if ( array_key_exists( $this->theme->stylesheet, $transient ) ) {
220
+ return $transient[ $this->theme->stylesheet ];
221
+ }
222
+ return false;
223
+ }
224
+
225
+ /**
226
+ * Set Theme Information Transient.
227
+ *
228
+ * @since 2.12.2
229
+ */
230
+ public function setInformationTransient() {
231
+ $transient = get_transient( 'boldgrid_theme_information' );
232
+ if ( false === $transient ) {
233
+ $transient = array();
234
+ }
235
+
236
+ $transient[ $this->theme->stylesheet ] = array(
237
+ 'version' => $this->version,
238
+ 'downloaded' => $this->downloaded,
239
+ 'last_updated' => $this->releaseDate,
240
+ 'api_fetch_time' => $this->apiFetchTime,
241
+ );
242
+
243
+ if ( $this->is_timely_updates ) {
244
+ set_transient( 'boldgrid_theme_information', $transient, $this->timeoutSetting );
245
+ }
246
+ }
247
+
248
+ /**
249
+ * Plugins Api Failed.
250
+ *
251
+ * @since 2.12.2
252
+ *
253
+ * @param \WP_Error $errors WordPress error returned by themes_api().
254
+ */
255
+ public function getGenericInfo( \WP_Error $errors ) {
256
+ $current = get_site_transient( 'update_themes' );
257
+ $new_version = isset( $current->checked[ $this->theme->stylesheet ] ) ? $current->checked[ $this->theme->stylesheet ] : '';
258
+
259
+ $theme_information = array(
260
+ 'active_installs' => '0',
261
+ 'version' => $new_version,
262
+ 'downloaded' => '000000',
263
+ 'last_updated' => gmdate( 'Y-m-d H:i:s', 1 ),
264
+ 'third_party' => true,
265
+ 'api_fetch_time' => current_time( 'timestamp' ),
266
+ );
267
+
268
+ return $theme_information;
269
+ }
270
+ }
vendor/boldgrid/library/src/Library/Ui/Page.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BoldGrid Library Ui Page.
4
+ *
5
+ * @package Boldgrid\Plugin
6
+ *
7
+ * @since 2.12.2
8
+ *
9
+ * @author BoldGrid <wpb@boldgrid.com>
10
+ */
11
+ namespace Boldgrid\Library\Library\Ui;
12
+
13
+ use Boldgrid\Library\Library;
14
+
15
+ /**
16
+ * Generic page class.
17
+ *
18
+ * @since 2.12.2
19
+ */
20
+ class Page {
21
+ /**
22
+ * Enqueue scripts.
23
+ *
24
+ * @since 2.12.2
25
+ */
26
+ public static function enqueueScripts() {
27
+ $handle = 'bglib-page';
28
+
29
+ wp_register_style(
30
+ $handle,
31
+ Library\Configs::get( 'libraryUrl' ) . 'src/assets/css/page.css',
32
+ [],
33
+ Library\Configs::get( 'libraryVersion' )
34
+ );
35
+
36
+ wp_enqueue_style( $handle );
37
+ }
38
+ }
vendor/boldgrid/library/src/Library/Update.php DELETED
@@ -1,202 +0,0 @@
1
- <?php
2
- /**
3
- * BoldGrid Update.
4
- *
5
- * @package Boldgrid\Library
6
- * @subpackage \Library
7
- *
8
- * @version 2.3.0
9
- * @author BoldGrid <wpb@boldgrid.com>
10
- */
11
-
12
- namespace Boldgrid\Library\Library;
13
-
14
- use Boldgrid\Library\Library;
15
-
16
- /**
17
- * BoldGrid Update.
18
- *
19
- * The main purpose of this class is to handle auto updates (as configured in
20
- * the boldgrid_settings option).
21
- *
22
- * @since 2.3.0
23
- *
24
- * @see https://codex.wordpress.org/Configuring_Automatic_Background_Updates
25
- */
26
- class Update {
27
- /**
28
- * Auto-update settings.
29
- *
30
- * @since 2.6.0
31
- *
32
- * @var array
33
- */
34
- protected $settings;
35
-
36
- /**
37
- * Constructor.
38
- *
39
- * @since 2.3.0
40
- *
41
- * @see \Boldgrid\Library\Util\Option::get()
42
- */
43
- public function __construct() {
44
- Filter::add( $this );
45
-
46
- $this->settings = (array) \Boldgrid\Library\Util\Option::get( 'autoupdate' );
47
- }
48
-
49
- /**
50
- * Auto update WordPress Core: All types.
51
- *
52
- * @since 2.6.0
53
- *
54
- * @hook: auto_update_core
55
- *
56
- * @param bool $update Update API response.
57
- * @return bool
58
- */
59
- public function auto_update_core( $update ) {
60
- if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
61
- return $update;
62
- }
63
-
64
- return $update || ! empty( $this->settings['wpcore']['all'] );
65
- }
66
-
67
- /**
68
- * Auto update WordPress Core: Major Updates.
69
- *
70
- * @since 2.6.0
71
- *
72
- * @hook: allow_major_auto_core_updates
73
- *
74
- * @param bool $update Update API response.
75
- * @return bool
76
- */
77
- public function allow_major_auto_core_updates( $update ) {
78
- if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
79
- return $update;
80
- }
81
-
82
- return $update || ! empty( $this->settings['wpcore']['all'] ) ||
83
- ! empty( $this->settings['wpcore']['major'] );
84
- }
85
-
86
- /**
87
- * Auto update WordPress Core: Minor Updates.
88
- *
89
- * @since 2.6.0
90
- *
91
- * @hook: allow_minor_auto_core_updates
92
- *
93
- * @param bool $update Update API response.
94
- * @return bool
95
- */
96
- public function allow_minor_auto_core_updates( $update ) {
97
- if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
98
- return $update;
99
- }
100
-
101
- return $update || ! empty( $this->settings['wpcore']['all'] ) ||
102
- ! empty( $this->settings['wpcore']['minor'] );
103
- }
104
-
105
- /**
106
- * Auto update WordPress Core: Development Updates.
107
- *
108
- * @since 2.6.0
109
- *
110
- * @hook: allow_dev_auto_core_updates
111
- *
112
- * @param bool $update Update API response.
113
- * @return bool
114
- */
115
- public function allow_dev_auto_core_updates( $update ) {
116
- if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
117
- return $update;
118
- }
119
-
120
- return $update || ! empty( $this->settings['wpcore']['all'] ) ||
121
- ! empty( $this->settings['wpcore']['dev'] );
122
- }
123
-
124
- /**
125
- * Auto update WordPress Core: Translation Updates.
126
- *
127
- * @since 2.6.0
128
- *
129
- * @hook: auto_update_translation
130
- *
131
- * @param bool $update Update API response.
132
- * @return bool
133
- */
134
- public function auto_update_translation( $update ) {
135
- if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
136
- return $update;
137
- }
138
-
139
- return $update || ! empty( $this->settings['wpcore']['all'] ) ||
140
- ! empty( $this->settings['wpcore']['translation'] );
141
- }
142
-
143
- /**
144
- * Auto update plugin.
145
- *
146
- * @since 2.3.0
147
- *
148
- * @hook: auto_update_plugin
149
- *
150
- * @param bool $update Update API response.
151
- * @param object $item Item being updated.
152
- * @return bool
153
- */
154
- public function auto_update_plugin( $update, $item ) {
155
- if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
156
- return $update;
157
- }
158
-
159
- // Old settings.
160
- $pluginAutoupdate = \Boldgrid\Library\Util\Option::get( 'plugin_autoupdate' );
161
-
162
- // Update if global setting is on, individual settings is on, or not set and default is on.
163
- if ( ! empty( $pluginAutoupdate ) ||
164
- ! empty( $this->settings['plugins'][ $item->plugin ] ) ||
165
- ( ! isset( $this->settings['plugins'][ $item->plugin ] ) &&
166
- ! empty( $this->settings['plugins']['default'] ) ) ) {
167
- $update = true;
168
- }
169
-
170
- return $update;
171
- }
172
-
173
- /**
174
- * Auto update theme.
175
- *
176
- * @since 2.3.0
177
- *
178
- * @hook: auto_update_theme
179
- *
180
- * @param bool $update Update API response.
181
- * @param object $item Item being updated.
182
- * @return bool
183
- */
184
- public function auto_update_theme( $update, $item ) {
185
- if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
186
- return $update;
187
- }
188
-
189
- // Old settings.
190
- $themeAutoupdate = \Boldgrid\Library\Util\Option::get( 'theme_autoupdate' );
191
-
192
- // Update if global setting is on, individual settings is on, or not set and default is on.
193
- if ( ! empty( $themeAutoupdate ) ||
194
- ! empty( $this->settings['themes'][ $item->theme ] ) ||
195
- ( ! isset( $this->settings['themes'][ $item->theme ] ) &&
196
- ! empty( $this->settings['themes']['default'] ) ) ) {
197
- $update = true;
198
- }
199
-
200
- return $update;
201
- }
202
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/boldgrid/library/src/assets/css/admin.css CHANGED
@@ -112,7 +112,7 @@ div .dashicons {
112
  transform: rotateZ(0deg);
113
  }
114
 
115
- .bglib-collapsible-open .dashicons {
116
  transform: rotateZ(-180deg);
117
  }
118
 
112
  transform: rotateZ(0deg);
113
  }
114
 
115
+ .bglib-collapsible-open.dashicons-arrow-down-alt2 {
116
  transform: rotateZ(-180deg);
117
  }
118
 
vendor/boldgrid/library/src/assets/css/dashboard.css CHANGED
@@ -46,7 +46,6 @@
46
  .bglib-card {
47
  border: 1px solid #ddd;
48
  background: #fff;
49
- height: fit-content;
50
  position: relative;
51
  }
52
 
@@ -249,7 +248,10 @@ a.wp-menu-open .bglib-unread-notice-count {
249
 
250
  .bglib-card-links {
251
  display: flex;
252
- justify-content: right;
253
  align-items: baseline;
254
- margin: 0 1em;
 
 
 
255
  }
46
  .bglib-card {
47
  border: 1px solid #ddd;
48
  background: #fff;
 
49
  position: relative;
50
  }
51
 
248
 
249
  .bglib-card-links {
250
  display: flex;
251
+ justify-content: flex-end;
252
  align-items: baseline;
253
+ padding: 10px 10px 15px 10px;
254
+ }
255
+ .bglib-smaller .bglib-card-links a {
256
+ margin: 0;
257
  }
vendor/boldgrid/library/src/assets/css/page.css ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #bglib-page-container {
2
+ margin: -10px -20px 0 -22px;
3
+ }
4
+
5
+ #bglib-page-top {
6
+ background: #fff;
7
+ box-shadow: 0 1px 0 #ccd0d4, 0 1px 1px 1px rgba(0,0,0,0.04);
8
+ min-height: 4em;
9
+ margin-bottom: 15px;
10
+ }
11
+
12
+ #bglib-page-header,
13
+ #bglib-page-content {
14
+ max-width: 1040px;
15
+ margin: 0 auto;
16
+ padding: 0;
17
+ }
18
+
19
+ #bglib-page-header.bglib-has-logo {
20
+ background-size: 35px 35px;
21
+ background-repeat: no-repeat;
22
+ background-position: 0 5px
23
+ }
24
+
25
+ #bglib-page-header.bglib-has-logo h1 {
26
+ padding-left: 50px;
27
+ }
28
+
29
+ #bglib-page-header h1 {
30
+ display: inline-block;
31
+ }
32
+
33
+ /*
34
+ * Media queries.
35
+ */
36
+ @media only screen and (max-width: 1200px) {
37
+ #bglib-page-header,
38
+ #bglib-page-content {
39
+ padding: 0 15px;
40
+ }
41
+
42
+ #bglib-page-header.bglib-has-logo {
43
+ background-position: 15px 5px;
44
+ }
45
+
46
+ #bglib-page-header.bglib-has-logo h1 {
47
+ padding-left: 50px;
48
+ }
49
+
50
+ #bglib-page-header .page-title-actions a {
51
+ display: inline-block;
52
+ }
53
+ }
54
+
55
+ @media only screen and (max-width: 960px) {
56
+ #bglib-page-header.bglib-has-logo .page-title-actions {
57
+ display: block;
58
+ padding-left: 50px;
59
+ }
60
+ }
vendor/boldgrid/library/src/library.global.php CHANGED
@@ -6,7 +6,8 @@
6
  defined( 'WPFORMS_SHAREASALE_ID' ) || define( 'WPFORMS_SHAREASALE_ID', '1581233' );
7
 
8
  return array(
9
- 'libraryVersion' => '2.12.2',
 
10
  'api' => 'https://api.boldgrid.com',
11
  'option' => 'license',
12
  'key' => get_site_option( 'boldgrid_api_key', null ),
6
  defined( 'WPFORMS_SHAREASALE_ID' ) || define( 'WPFORMS_SHAREASALE_ID', '1581233' );
7
 
8
  return array(
9
+ // libraryVersion is used to put the version number on js/css files.
10
+ 'libraryVersion' => '2.13.0',
11
  'api' => 'https://api.boldgrid.com',
12
  'option' => 'license',
13
  'key' => get_site_option( 'boldgrid_api_key', null ),
vendor/boldgrid/library/tests/Library/Library/test-activity.php CHANGED
@@ -90,19 +90,6 @@ class Test_Activty extends WP_UnitTestCase {
90
  $this->assertEquals( $this->activity, $this->activityClass->getActivities() );
91
  }
92
 
93
- /**
94
- * Get the configs for a particular activity.
95
- *
96
- * @since 2.7.7
97
- *
98
- * @var string $activity The name of the activity.
99
- * @var string $config_path The full path to the config file.
100
- * @return array An array of configs.
101
- */
102
- public function testGetActivityConfigs() {
103
- // NOT TESTED.
104
- }
105
-
106
  /**
107
  * Get the count for an activity.
108
  *
@@ -130,18 +117,6 @@ class Test_Activty extends WP_UnitTestCase {
130
  $this->assertEquals( $this->activity['boldgrid-backup'], $this->activityClass->getPluginActivities() );
131
  }
132
 
133
- /**
134
- * Maybe add a rating prompt for an activity.
135
- *
136
- * @since 2.7.7
137
- *
138
- * @param string $activity The name of an activity
139
- * @param string $config_path The path to our plugin's rating prompt configs.
140
- * @return bool Whether or not we added a rating prompt.
141
- */
142
- public function testMaybeAddRatingPrompt() {
143
- // NOT TESTED.
144
- }
145
 
146
  /**
147
  * Save all activities.
90
  $this->assertEquals( $this->activity, $this->activityClass->getActivities() );
91
  }
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  /**
94
  * Get the count for an activity.
95
  *
117
  $this->assertEquals( $this->activity['boldgrid-backup'], $this->activityClass->getPluginActivities() );
118
  }
119
 
 
 
 
 
 
 
 
 
 
 
 
 
120
 
121
  /**
122
  * Save all activities.
vendor/boldgrid/library/tests/Library/Library/test-rating-prompt.php CHANGED
@@ -204,26 +204,6 @@ class Test_Rating_Prompt extends WP_UnitTestCase {
204
  $this->assertFalse( $added );
205
  }
206
 
207
- /**
208
- * Add admin notices.
209
- *
210
- * @since 2.7.7
211
- */
212
- public function testAdminNotices() {
213
- // NOT TESTED.
214
- }
215
-
216
- /**
217
- * Dismiss a rating prompt via ajax.
218
- *
219
- * @since 2.7.7
220
- *
221
- * @hook wp_ajax_blib_rating_prompt_dismiss
222
- */
223
- public function testAjaxDismiss() {
224
- // NOT TESTED.
225
- }
226
-
227
  /**
228
  * Get an array of attributes for a decision's <a> tag.
229
  *
@@ -303,33 +283,6 @@ class Test_Rating_Prompt extends WP_UnitTestCase {
303
  $this->assertEquals( 3, $lastDismissed );
304
  }
305
 
306
- /**
307
- * Admin enqueue scripts.
308
- *
309
- * @since 2.7.7
310
- */
311
- public function testAdminEnqueueScripts() {
312
- // NOT TESTED.
313
- }
314
-
315
- /**
316
- * Return the markup of a prompt's slides.
317
- *
318
- * @since 2.7.7
319
- */
320
- public function testGetPromptSlides() {
321
- // NOT TESTED.
322
- }
323
-
324
- /**
325
- * Get the markup for an individual slide.
326
- *
327
- * @since 2.7.7
328
- */
329
- public function testGetSlideMarkup() {
330
- // NOT TESTED.
331
- }
332
-
333
  /**
334
  * Whether or not the minimum amount of time between showing prompts has been reached.
335
  *
204
  $this->assertFalse( $added );
205
  }
206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  /**
208
  * Get an array of attributes for a decision's <a> tag.
209
  *
283
  $this->assertEquals( 3, $lastDismissed );
284
  }
285
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  /**
287
  * Whether or not the minimum amount of time between showing prompts has been reached.
288
  *
vendor/boldgrid/library/tests/Library/Plugin/test-factory.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BoldGrid Source Code
4
+ *
5
+ * @package Boldgrid_Plugintest
6
+ * @copyright BoldGrid.com
7
+ * @version $Id$
8
+ * @author BoldGrid.com <wpb@boldgrid.com>
9
+ */
10
+
11
+ use Boldgrid\Library\Library\Configs;
12
+ use Boldgrid\Library\Library\Plugin;
13
+
14
+ /**
15
+ * BoldGrid Library Library Plugin Factory Test class.
16
+ *
17
+ * @since 2.12.2
18
+ */
19
+ class Test_BoldGrid_Library_Library_Plugin_Factory extends WP_UnitTestCase {
20
+
21
+ /**
22
+ * Plugin Data.
23
+ *
24
+ * @since 2.12.2
25
+ */
26
+ public $plugin_data;
27
+
28
+ /**
29
+ * Setup Function.
30
+ *
31
+ * @since 2.12.2
32
+ */
33
+ public function setUp() {
34
+ $plugin_data = array(
35
+ 'Name' => 'Total Upkeep',
36
+ 'PluginURI' => 'https://www.boldgrid.com/boldgrid-backup/',
37
+ 'Version' => '1.13.2',
38
+ 'Description' => 'Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need. By BoldGrid.',
39
+ 'Author' => 'BoldGrid',
40
+ 'AuthorURI' => 'https://www.boldgrid.com/',
41
+ 'TextDomain' => 'boldgrid-backup',
42
+ 'DomainPath' => '/languages',
43
+ );
44
+
45
+ $configs = new Configs();
46
+ }
47
+
48
+ /**
49
+ * Test Create.
50
+ *
51
+ * @since 2.12.2
52
+ */
53
+ public function test_create() {
54
+ $expected_class = 'Boldgrid\Library\Library\Plugin\Plugin';
55
+ $plugin_from_slug = Plugin\Factory::create( 'akismet' );
56
+ $this->assertTrue( $plugin_from_slug instanceof \Boldgrid\Library\Library\Plugin\Plugin );
57
+ $plugin_from_file = Plugin\Factory::create( 'akismet/akismet.php' );
58
+ $this->assertTrue( $plugin_from_file instanceof \Boldgrid\Library\Library\Plugin\Plugin );
59
+ }
60
+
61
+ /**
62
+ * Test fileFromSlug.
63
+ *
64
+ * @since 2.12.2
65
+ */
66
+ public function test_fileFromSlug() {
67
+ $file = Plugin\Factory::fileFromSlug( 'hello-dolly' );
68
+ $this->assertEquals( 'hello.php', $file );
69
+ $file = Plugin\Factory::fileFromSlug( 'hello' );
70
+ $this->assertEquals( 'hello.php', $file );
71
+ }
72
+
73
+ /**
74
+ * Test slugFromFile.
75
+ *
76
+ * @since 2.12.2
77
+ */
78
+ public function test_slugFromFile() {
79
+ $slug = Plugin\Factory::slugFromFile( 'hello.php' );
80
+ $this->assertEquals( 'hello-dolly', $slug );
81
+ }
82
+ }
vendor/boldgrid/library/tests/Library/Plugin/test-notice.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * BoldGrid Source Code
4
  *
5
  * @package Boldgrid_Plugintest
6
  * @copyright BoldGrid.com
@@ -9,6 +9,7 @@
9
  */
10
 
11
  use Boldgrid\Library\Library\Configs;
 
12
 
13
  /**
14
  * BoldGrid Library Library Plugin Notice Test class.
@@ -16,438 +17,209 @@ use Boldgrid\Library\Library\Configs;
16
  * @since 2.12.0
17
  */
18
  class Test_BoldGrid_Library_Library_Plugin_Notice extends WP_UnitTestCase {
19
-
20
- private
21
- $plugin,
22
- $page,
23
- $config,
24
- $notice,
25
- $plugin_data = [
26
- 'Name' => 'Total Upkeep',
27
- 'PluginURI' => 'https://www.boldgrid.com/boldgrid-backup/',
28
- 'Version' => '1.12.0',
29
- 'Description' => 'Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need. By BoldGrid.',
30
- 'Author' => 'BoldGrid',
31
- 'AuthorURI' => 'https://www.boldgrid.com/',
32
- 'TextDomain' => 'boldgrid-backup',
33
- 'DomainPath' => '/languages',
34
- ],
35
- $default_first_version = '1.0.0',
36
- $default_newest_version = '1.12.0';
37
-
38
  /**
39
  * Setup.
40
  *
41
- * @since 2.12.0
42
  */
43
  public function setUp() {
44
- // Setup our configs.
45
- $this->config = $this->getPluginConfig();
46
- $this->plugin = new Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup', $this->config );
47
- $this->page = $this->plugin->getPageBySlug( $this->config['pages'][0] );
48
- $this->notice = $this->page->getNotices()[0];
49
- $this->getFirstVersion();
50
- $this->getPluginsChecked();
51
 
52
- $this->makeFakePlugin();
 
 
 
 
 
 
 
53
  }
54
 
55
  /**
56
- * Set settings versions.
57
- *
58
- * Sets the version information in the boldgrid_settings option.
59
  *
60
- * @since 2.12.0
61
- *
62
- * @param string @first_version
63
- * @param string @current_version
64
  */
65
- public function set_settings_versions( $first_version, $current_version ) {
66
- $boldgrid_settings = get_option( 'boldgrid_settings', [] );
67
- $boldgrid_settings['plugins_checked']['boldgrid-backup/boldgrid-backup.php'] = [
68
- $first_version => 123456,
69
- $current_version => 123456,
70
- ];
71
- update_option( 'boldgrid_settings', $boldgrid_settings );
 
 
72
  }
 
73
  /**
74
- * Get the Plugin Config and / or change it
75
  *
76
- * Gets the plugin config file set here for testing
77
- *
78
- * @since 2.12.0
79
- *
80
- * @param string $version notice version number for testing.
81
- * @param array $add_pages optional. an array of page_slug strings.
82
- * @param array $add_notices optional. an array of page_notices to add.
83
- *
84
- * @return array
85
  */
86
- public function getPluginConfig( $version = '1.12.16', array $add_pages = [], array $add_notices = [] ) {
87
- $config = [
88
- 'pages' => [
89
- 'boldgrid-backup-premium-features',
90
- 'boldgrid-backup-settings',
91
- ],
92
- 'page_notices' => [
93
- [
94
- 'id' => 'bgbkup_database_encryption',
95
- 'page' => 'boldgrid-backup-premium-features',
96
- 'version' => $version,
97
- ],
98
- [
99
- 'id' => 'bgbkup_google_drive',
100
- 'page' => 'boldgrid-backup-premium-features',
101
- 'version' => $version,
102
- ],
103
- [
104
- 'id' => 'bgbkup_new_settings_feature',
105
- 'page' => 'boldgrid-backup-settings',
106
- 'version' => $version,
107
- ],
108
- ],
109
- ];
110
- foreach ( $add_pages as $page ) {
111
- $config['pages'][] = $page;
112
- }
113
- foreach ( $add_notices as $notice ) {
114
- $config['page_notices'][] = $notice;
115
- }
116
- return $config;
117
  }
118
 
119
  /**
120
- * getFirstVersion.
121
  *
122
- * @since 2.12.0
123
  */
124
- public function getFirstVersion() {
125
- // Good data we will be testing against.
126
- $backupPluginsChecked = [
127
- '1.11.0' => 123456,
128
- '1.12.0' => 123456,
129
- ];
130
 
131
- // Make sure good data gets us good data.
132
- $settings = [
133
- 'plugins_checked' => [
134
- 'other-plugin/other-plugin.php' => [
135
- '1.0.0' => 12345,
136
- '1.1.0' => 12346,
137
- ],
138
- 'boldgrid-backup/boldgrid-backup.php' => $backupPluginsChecked,
139
- ],
140
- ];
141
- update_option( 'boldgrid_settings', $settings );
142
- $this->plugin->getFirstVersion();
143
  }
144
 
145
  /**
146
- * getPluginsChecked.
147
  *
148
- * @since 2.12.0
149
  */
150
- public function getPluginsChecked() {
151
- // Good data we will be testing against.
152
- $backupPluginsChecked = [
153
- '1.11.0' => 123456,
154
- '1.12.0' => 123456,
155
- ];
156
 
157
- // Make sure wrong data gives us an empty array.
158
- update_option( 'boldgrid_settings', false );
159
-
160
- // Make sure wrong data gives us an empty array.
161
- $settings = [
162
- 'plugins_checked' => [],
163
- ];
164
- update_option( 'boldgrid_settings', $settings );
165
- $this->plugin->getPluginsChecked();
166
-
167
- // Make sure good data gets us good data.
168
- $settings = [
169
- 'plugins_checked' => [
170
- 'other-plugin/other-plugin.php' => [
171
- '1.0.0' => 12345,
172
- '1.1.0' => 12346,
173
- ],
174
- 'boldgrid-backup/boldgrid-backup.php' => $backupPluginsChecked,
175
- ],
176
- ];
177
- update_option( 'boldgrid_settings', $settings );
178
- $this->plugin->getPluginsChecked();
179
  }
180
 
181
  /**
182
- * Make a fake plugin to test this class against.
183
  *
184
- * @since 2.12.0
185
  */
186
- public function makeFakePlugin() {
187
- $path = ABSPATH . 'wp-content/plugins/fake-plugin';
188
-
189
- // Make the plugin's directory.
190
- if ( file_exists( $path ) ) {
191
- exec( 'rm -rf ' . ABSPATH . 'wp-content/plugins/fake-plugin' ); //phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_exec
192
- }
193
- mkdir( $path );
194
 
195
- // Add the plugin's main file.
196
- file_put_contents( //phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents
197
- $path . '/fake-plugin.php',
198
- '<?php
199
- /**
200
- * File: fake-plugin.php
201
- *
202
- * @link https://www.domain.com
203
- * @since 1.0.0
204
- * @package Fake_Plugin
205
- *
206
- * @wordpress-plugin
207
- * Plugin Name: Fake Plugin
208
- * Plugin URI: https://www.domain.com
209
- * Description: Description goes here.
210
- * Version: 1.5.0
211
- * Author: Me
212
- * Author URI: https://www.me.com
213
- * License: GPL-2.0+
214
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
215
- * Text Domain: fake-plugin
216
- * Domain Path: /languages
217
- */'
218
- );
219
-
220
- $configs = [
221
- 'pages' => [
222
- 'boldgrid-backup-premium-features',
223
- ],
224
- 'page_notices' => [
225
- [
226
- 'id' => 'notice-1',
227
- 'page' => 'boldgrid-backup-premium-features',
228
- 'version' => '1.1.0',
229
- ],
230
- ],
231
- ];
232
-
233
- $this->fakePlugin = new Boldgrid\Library\Library\Plugin\Plugin( 'fake-plugin', $configs );
234
-
235
- // Configure this plugin's version info (IE first version installed).
236
- $boldgrid_settings = get_option( 'boldgrid_settings', [] );
237
- $boldgrid_settings['plugins_checked']['fake-plugin/fake-plugin.php'] = [
238
- '1.0.0' => 946684800,
239
- '1.3.0' => 946685800,
240
- '1.5.0' => 946686800,
241
- ];
242
- update_option( 'boldgrid_settings', $boldgrid_settings );
243
  }
244
 
245
  /**
246
- * Test setIsUnread.
247
  *
248
- * @since 2.12.0
249
  */
250
- public function testSetIsUnread() {
251
- // Create a new notice.
252
- $notice = new Boldgrid\Library\Library\Plugin\Notice(
253
- $this->fakePlugin,
254
- [
255
- 'id' => 'notice-testSetUnread',
256
- 'page' => 'page-slug',
257
- 'version' => '1.5.0',
258
- ]
259
- );
260
-
261
- // By default, it should be unread.
262
- $this->assertTrue( $notice->getIsUnread() );
263
-
264
- // After we set it as being read, it should be read.
265
- $notice->setIsUnread( false );
266
- $this->assertFalse( $notice->getIsUnread() );
267
 
268
- // If for some reason we mark it as unread, it should be unread.
269
- $notice->setIsUnread( true );
270
- $this->assertTrue( $notice->getIsUnread() );
271
  }
272
 
273
- //Test Notice::setNoticeId.
274
- public function testSetNoticeId() {
275
- $original_notice_id = $this->notice->getId();
276
- $new_notice_id = 'test_set_new_id';
 
 
 
 
277
 
278
- $this->notice->setId( $new_notice_id );
279
- $this->assertEquals( $new_notice_id, $this->notice->getId() );
280
- $this->notice->setId( $original_notice_id );
281
- $this->assertEquals( $original_notice_id, $this->notice->getId() );
282
  }
283
 
284
- //Test Notice::setPageSlug().
285
- public function testSetPageSlug() {
286
- $original_slug = $this->notice->getPageSlug();
287
- $new_page_slug = 'test_set_page_slug';
288
- $this->notice->setPageSlug( $new_page_slug );
289
- $this->assertEquals( $new_page_slug, $this->notice->getPageSlug() );
290
- $this->notice->setPageSlug( $original_slug );
291
- $this->assertEquals( $original_slug, $this->notice->getPageSlug() );
292
- }
293
 
294
- //Test Notice::setVersion().
295
- public function testSetNoticeVersion() {
296
- $original_version = $this->notice->getVersion();
297
- $new_version = '9.9.9';
298
 
299
- $this->notice->setVersion( $new_version );
300
- $this->assertEquals( $new_version, $this->notice->getVersion() );
301
- $this->notice->setVersion( $original_version );
302
- $this->assertEquals( $original_version, $this->notice->getVersion() );
303
- }
 
 
 
304
 
305
- //Test that notices return as read if this is first install.
306
- public function testNoticeIfFirstInstall() {
307
- $this->plugin->pluginData = $this->plugin_data;
308
- $this->set_settings_versions( '1.12.0', '1.12.0' );
309
- $this->assertEquals( false, $this->notice->getIsUnread() );
310
- $this->set_settings_versions( $this->default_first_version, $this->default_newest_version );
311
- $this->assertEquals( true, $this->notice->getIsUnread() );
312
  }
313
 
314
  /**
315
- * Test alreadyExists.
316
  *
317
- * @since 2.12.0
318
  */
319
- public function testAlreadyExists() {
320
- // Create a new notice.
321
- $notice = new Boldgrid\Library\Library\Plugin\Notice(
322
- $this->fakePlugin,
323
- [
324
- 'id' => 'notice-testAlreadyExists',
325
- 'page' => 'page-slug',
326
- 'version' => '1.5.0',
327
- ]
328
- );
329
-
330
- // By default, it should not exist.
331
- $this->assertFalse( $notice->alreadyExists() );
332
 
333
- // After we set the notice as being read, it should exist.
334
  $notice->setIsUnread( false );
335
- $this->assertTrue( $notice->alreadyExists() );
336
- }
337
 
338
- //Test Notice::getPlugin().
339
- public function testGetPlugin() {
340
- $plugin = $this->notice->getPlugin();
341
- $this->assertEquals( $this->plugin, $plugin );
342
  }
343
 
344
  /**
345
- * Test maybeShow.
346
  *
347
- * @since 2.12.0
348
  */
349
- public function testMaybeShow() {
350
- /*
351
- * The notice should show in this scenario.
352
- *
353
- * We are on the version that this new feature is for.
354
- *
355
- * Plugin's first version: 1.0.0
356
- * This version: 1.5.0
357
- * This notice's version: 1.5.0
358
- */
359
- $notice = new Boldgrid\Library\Library\Plugin\Notice(
360
- $this->fakePlugin,
361
- [
362
- 'id' => 'notice-1',
363
- 'page' => 'page-slug',
364
- 'version' => '1.5.0',
365
- ]
366
- );
367
- $this->assertTrue( $notice->maybeShow() );
368
-
369
- /*
370
- * The notice should show in this scenario.
371
- *
372
- * Maybe we upgrade from 1.3.0 to 1.5.0, and this notice is for 1.4.0.
373
- *
374
- * Plugin's first version: 1.0.0
375
- * This version: 1.5.0
376
- * This notice's version: 1.4.0
377
- */
378
- $notice = new Boldgrid\Library\Library\Plugin\Notice(
379
- $this->fakePlugin,
380
- [
381
- 'id' => 'notice-2',
382
- 'page' => 'page-slug',
383
- 'version' => '1.4.0',
384
- ]
385
  );
386
- $this->assertTrue( $notice->maybeShow() );
387
 
388
- /*
389
- * The notice should NOT show in this scenario.
390
- *
391
- * The notice is for a version prior to what we installed.
392
- *
393
- * Plugin's first version: 1.0.0
394
- * This version: 1.5.0
395
- * This notice's version: 0.9.0
396
- */
397
- $notice = new Boldgrid\Library\Library\Plugin\Notice(
398
- $this->fakePlugin,
399
- [
400
- 'id' => 'notice-3',
401
- 'page' => 'page-slug',
402
- 'version' => '0.9.0',
403
- ]
404
  );
405
- $this->assertFalse( $notice->maybeShow() );
406
 
407
- /*
408
- * The notice should NOT show in this scenario.
409
- *
410
- * They just installed a plugin so essentially they shouldn't be seeing anything new.
411
- *
412
- * Plugin's first version: 1.0.0
413
- * This version: 1.5.0
414
- * This notice's version: 1.0.0
415
- */
416
- $notice = new Boldgrid\Library\Library\Plugin\Notice(
417
- $this->fakePlugin,
418
- [
419
- 'id' => 'notice-3',
420
- 'page' => 'page-slug',
421
- 'version' => '1.0.0',
422
- ]
423
- );
424
- $this->assertFalse( $notice->maybeShow() );
425
  }
426
 
427
- //Test Notice::noticeVersionChanged().
428
- public function testNoticeVersionChanged() {
429
- $this->plugin->pluginData = $this->plugin_data;
430
- $this->assertEquals( true, $this->notice->getIsUnread() );
431
- $this->notice->setIsUnread( false );
432
- $new_plugin = new Boldgrid\Library\Library\Plugin\Plugin(
433
- 'boldgrid-backup',
434
- $this->getPluginConfig( '2.12.16' )
435
- );
436
-
437
- $new_plugin->pluginData = $this->plugin_data;
438
-
439
- $this->page = $new_plugin->getPageBySlug( $this->config['pages'][0] );
440
- $this->notice = $this->page->getNotices()[0];
441
- $this->assertEquals( true, $this->notice->getIsUnread() );
442
 
443
- $this->assertEquals( true, true );
444
  }
445
 
446
- //Test Notice::setPlugin().
447
- public function testSetPlugin() {
448
- $new_plugin = new Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup' );
449
- $this->notice->setPlugin( $new_plugin );
450
- $plugin = $this->notice->getPlugin();
451
- $this->assertNotEquals( $this->plugin, $plugin );
 
 
 
 
 
452
  }
453
  }
1
  <?php
2
  /**
3
+ * BoldGrid Source Code.
4
  *
5
  * @package Boldgrid_Plugintest
6
  * @copyright BoldGrid.com
9
  */
10
 
11
  use Boldgrid\Library\Library\Configs;
12
+ use Boldgrid\Library\Library\Plugin;
13
 
14
  /**
15
  * BoldGrid Library Library Plugin Notice Test class.
17
  * @since 2.12.0
18
  */
19
  class Test_BoldGrid_Library_Library_Plugin_Notice extends WP_UnitTestCase {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  /**
21
  * Setup.
22
  *
23
+ * @since 2.12.2
24
  */
25
  public function setUp() {
26
+ $this->sample_plugin = Plugin\Factory::create( 'boldgrid-backup/boldgrid-backup.php' );
27
+ $this->sample_notice_array = array(
28
+ 'id' => 'bgbkup_database_encryption',
29
+ 'page' => 'boldgrid-backup-premium-features',
30
+ 'version' => '1.12.6',
31
+ 'isUnread' => true,
32
+ );
33
 
34
+ $this->mock_plugin = $this->getMockBuilder( \Boldgrid\Library\Library\Plugin\Plugin::class )
35
+ ->setMethods( array( 'getPluginData', 'firstVersionCompare' ) )
36
+ ->disableOriginalConstructor()
37
+ ->getMock();
38
+ $this->mock_plugin->method( 'getPluginData' )
39
+ ->will( $this->returnValue( array( 'Version' => '0.0.0' ) ) );
40
+ $this->mock_plugin->method( 'firstVersionCompare' )
41
+ ->will( $this->returnValue( true ) );
42
  }
43
 
44
  /**
45
+ * Test construct.
 
 
46
  *
47
+ * @since 2.12.2
 
 
 
48
  */
49
+ public function test_construct() {
50
+ $plugin = $this->sample_plugin;
51
+ $sample_notice = $this->sample_notice_array;
52
+
53
+ $notice = new Plugin\Notice( $plugin, $sample_notice );
54
+ $this->assertTrue( $notice instanceof \Boldgrid\Library\Library\Plugin\Notice );
55
+ update_option( 'boldgrid_plugin_page_notices', array( $sample_notice ) );
56
+ $notice = new Plugin\Notice( $plugin, $sample_notice );
57
+ $this->assertTrue( $notice instanceof \Boldgrid\Library\Library\Plugin\Notice );
58
  }
59
+
60
  /**
61
+ * Test getId.
62
  *
63
+ * @since 2.12.2
 
 
 
 
 
 
 
 
64
  */
65
+ public function test_getId() {
66
+ $plugin = $this->sample_plugin;
67
+ $sample_notice = $this->sample_notice_array;
68
+
69
+ $notice = new Plugin\Notice( $plugin, $sample_notice );
70
+ $this->assertEquals( $sample_notice['id'], $notice->getId() );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
 
73
  /**
74
+ * Test getPageSlug.
75
  *
76
+ * @since 2.12.2
77
  */
78
+ public function test_getPageSlug() {
79
+ $plugin = $this->sample_plugin;
80
+ $sample_notice = $this->sample_notice_array;
 
 
 
81
 
82
+ $notice = new Plugin\Notice( $plugin, $sample_notice );
83
+ $this->assertEquals( $sample_notice['page'], $notice->getPageSlug() );
 
 
 
 
 
 
 
 
 
 
84
  }
85
 
86
  /**
87
+ * Test setPageSlug.
88
  *
89
+ * @since 2.12.2
90
  */
91
+ public function test_setPageSlug() {
92
+ $plugin = $this->sample_plugin;
93
+ $sample_notice = $this->sample_notice_array;
 
 
 
94
 
95
+ $notice = new Plugin\Notice( $plugin, $sample_notice );
96
+ $notice->setPageSlug( 'newslug' );
97
+ $this->assertEquals( 'newslug', $notice->getPageSlug() );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  }
99
 
100
  /**
101
+ * Test getVersion.
102
  *
103
+ * @since 2.12.2
104
  */
105
+ public function test_getVersion() {
106
+ $plugin = $this->sample_plugin;
107
+ $sample_notice = $this->sample_notice_array;
 
 
 
 
 
108
 
109
+ $notice = new Plugin\Notice( $plugin, $sample_notice );
110
+ $this->assertEquals( $sample_notice['version'], $notice->getVersion() );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
112
 
113
  /**
114
+ * Test setVersion.
115
  *
116
+ * @since 2.12.2
117
  */
118
+ public function test_setVersion() {
119
+ $plugin = $this->sample_plugin;
120
+ $sample_notice = $this->sample_notice_array;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
+ $notice = new Plugin\Notice( $plugin, $sample_notice );
123
+ $notice->setVersion( '0.0.0' );
124
+ $this->assertEquals( '0.0.0', $notice->getVersion() );
125
  }
126
 
127
+ /**
128
+ * Test MaybeShow.
129
+ *
130
+ * @since 2.12.2
131
+ */
132
+ public function test_maybeShow() {
133
+ $sample_notice = $this->sample_notice_array;
134
+ $notice = new Plugin\Notice( $this->mock_plugin, $sample_notice );
135
 
136
+ $this->assertTrue( $notice->maybeShow() );
 
 
 
137
  }
138
 
139
+ /**
140
+ * Test getIsUnread.
141
+ *
142
+ * @since 2.12.2
143
+ */
144
+ public function test_getIsUnread() {
145
+ $sample_notice = $this->sample_notice_array;
146
+ $notice = new Plugin\Notice( $this->mock_plugin, $sample_notice );
 
147
 
148
+ $this->assertTrue( $notice->getIsUnread() );
 
 
 
149
 
150
+ $no_show_plugin = $this->getMockBuilder( \Boldgrid\Library\Library\Plugin\Plugin::class )
151
+ ->setMethods( array( 'getPluginData', 'firstVersionCompare' ) )
152
+ ->disableOriginalConstructor()
153
+ ->getMock();
154
+ $no_show_plugin->method( 'getPluginData' )
155
+ ->will( $this->returnValue( array( 'Version' => '0.0.0' ) ) );
156
+ $no_show_plugin->method( 'firstVersionCompare' )
157
+ ->will( $this->returnValue( false ) );
158
 
159
+ $read_notice = new Plugin\Notice( $no_show_plugin, $sample_notice );
160
+ $this->assertFalse( $read_notice->getIsUnread() );
 
 
 
 
 
161
  }
162
 
163
  /**
164
+ * Test setIsUnread.
165
  *
166
+ * @since 2.12.2
167
  */
168
+ public function test_setIsUnread() {
169
+ $sample_notice = $this->sample_notice_array;
170
+ $notice = new Plugin\Notice( $this->mock_plugin, $sample_notice );
 
 
 
 
 
 
 
 
 
 
171
 
 
172
  $notice->setIsUnread( false );
 
 
173
 
174
+ $this->assertFalse( $notice->getIsUnread() );
 
 
 
175
  }
176
 
177
  /**
178
+ * Test getFromOptions.
179
  *
180
+ * @since 2.12.2
181
  */
182
+ public function test_getFromOptions() {
183
+ $sample_notice_array = $this->sample_notice_array;
184
+ $second_notice_array = array(
185
+ 'id' => 'bgbkup_fake_notice',
186
+ 'page' => 'boldgrid-backup-premium-features',
187
+ 'version' => '1.12.6',
188
+ 'isUnread' => true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  );
 
190
 
191
+ $notice = new Plugin\Notice( $this->sample_plugin, $second_notice_array );
192
+ $expected_result = array( $second_notice_array, 1 );
193
+ update_option(
194
+ 'boldgrid_plugin_page_notices',
195
+ array( $sample_notice_array, $second_notice_array )
 
 
 
 
 
 
 
 
 
 
 
196
  );
 
197
 
198
+ $this->assertEquals( $expected_result, $notice->getFromOptions( 'bgbkup_fake_notice' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  }
200
 
201
+ /**
202
+ * Test getPlugin.
203
+ *
204
+ * @since 2.12.2
205
+ */
206
+ public function test_getPlugin() {
207
+ $sample_notice = $this->sample_notice_array;
208
+ $notice = new Plugin\Notice( $this->sample_plugin, $sample_notice );
 
 
 
 
 
 
 
209
 
210
+ $this->assertEquals( $this->sample_plugin, $notice->getPlugin() );
211
  }
212
 
213
+ /**
214
+ * Test setPlugin.
215
+ *
216
+ * @since 2.12.2
217
+ */
218
+ public function test_setPlugin() {
219
+ $sample_notice = $this->sample_notice_array;
220
+ $notice = new Plugin\Notice( $this->sample_plugin, $sample_notice );
221
+
222
+ $notice->setPlugin( $this->mock_plugin, $sample_notice );
223
+ $this->assertEquals( $this->mock_plugin, $notice->getPlugin() );
224
  }
225
  }
vendor/boldgrid/library/tests/Library/Plugin/test-page.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * BoldGrid Source Code
4
  *
5
  * @package Boldgrid_Plugintest
6
  * @copyright BoldGrid.com
@@ -9,210 +9,107 @@
9
  */
10
 
11
  use Boldgrid\Library\Library\Configs;
 
12
 
13
  /**
14
  * BoldGrid Library Library Plugin Page Test class.
15
  *
16
- * @since 2.7.7
17
  */
18
  class Test_BoldGrid_Library_Library_Plugin_Page extends WP_UnitTestCase {
19
-
20
- private
21
- $plugin,
22
- $page,
23
- $config,
24
- $plugin_data = [
25
- 'Name' => 'Total Upkeep',
26
- 'PluginURI' => 'https://www.boldgrid.com/boldgrid-backup/',
27
- 'Version' => '1.12.16',
28
- 'Description' => 'Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need. By BoldGrid.',
29
- 'Author' => 'BoldGrid',
30
- 'AuthorURI' => 'https://www.boldgrid.com/',
31
- 'TextDomain' => 'boldgrid-backup',
32
- 'DomainPath' => '/languages',
33
- ];
34
-
35
  /**
36
  * Setup.
37
  *
38
- * @since 1.7.7
39
  */
40
  public function setUp() {
41
- // Setup our configs.
42
- $this->config = $this->getPluginConfig();
43
- $this->plugin = new Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup', $this->config, $this->plugin_data );
44
- $this->page = $this->plugin->getPageBySlug( $this->config['pages'][0] );
45
- $this->getFirstVersion();
46
- $this->getPluginsChecked();
47
- }
48
-
49
- public function getPluginConfig( array $add_pages = [], array $add_notices = [] ) {
50
- $config = [
51
- 'pages' => [
52
  'boldgrid-backup-premium-features',
53
  'boldgrid-backup-settings',
54
- ],
55
- 'page_notices' => [
56
- [
57
  'id' => 'bgbkup_database_encryption',
58
  'page' => 'boldgrid-backup-premium-features',
59
  'version' => '1.12.16',
60
- ],
61
- [
62
  'id' => 'bgbkup_google_drive',
63
  'page' => 'boldgrid-backup-premium-features',
64
  'version' => '1.12.16',
65
- ],
66
- [
67
  'id' => 'bgbkup_new_settings_feature',
68
  'page' => 'boldgrid-backup-settings',
69
  'version' => '1.12.16',
70
- ],
71
- ],
72
- ];
73
- foreach ( $add_pages as $page ) {
74
- $config['pages'][] = $page;
75
- }
76
- foreach ( $add_notices as $notice ) {
77
- $config['page_notices'][] = $notice;
78
- }
79
- return $config;
 
 
 
 
80
  }
81
 
82
  /**
83
- * Test getFirstVersion.
84
  *
85
- * @since 2.11.0
86
  */
87
- public function getFirstVersion() {
88
- // Good data we will be testing against.
89
- $backupPluginsChecked = [
90
- '1.11.0' => 123456,
91
- '1.12.0' => 123456,
92
- ];
93
 
94
- // Make sure good data gets us good data.
95
- $settings = [
96
- 'plugins_checked' => [
97
- 'other-plugin/other-plugin.php' => [
98
- '1.0.0' => 12345,
99
- '1.1.0' => 12346,
100
- ],
101
- 'boldgrid-backup/boldgrid-backup.php' => $backupPluginsChecked,
102
- ],
103
- ];
104
- update_option( 'boldgrid_settings', $settings );
105
- $this->plugin->getFirstVersion();
106
  }
107
 
108
  /**
109
- * Test getPluginsChecked.
110
  *
111
- * @since 2.11.0
112
  */
113
- public function getPluginsChecked() {
114
- // Good data we will be testing against.
115
- $backupPluginsChecked = [
116
- '1.11.0' => 123456,
117
- '1.12.0' => 123456,
118
- ];
119
-
120
- // Make sure wrong data gives us an empty array.
121
- update_option( 'boldgrid_settings', false );
122
-
123
- // Make sure wrong data gives us an empty array.
124
- $settings = [
125
- 'plugins_checked' => [],
126
- ];
127
- update_option( 'boldgrid_settings', $settings );
128
- $this->plugin->getPluginsChecked();
129
-
130
- // Make sure good data gets us good data.
131
- $settings = [
132
- 'plugins_checked' => [
133
- 'other-plugin/other-plugin.php' => [
134
- '1.0.0' => 12345,
135
- '1.1.0' => 12346,
136
- ],
137
- 'boldgrid-backup/boldgrid-backup.php' => $backupPluginsChecked,
138
- ],
139
- ];
140
- update_option( 'boldgrid_settings', $settings );
141
- $this->plugin->getPluginsChecked();
142
- }
143
- //Test Page::getNoticeById()
144
- public function testGetNoticeById() {
145
- $expected_id = $this->config['page_notices'][0]['id'];
146
- $this->assertEquals( $expected_id, $this->page->getNoticeById( $expected_id )->getId() );
147
- }
148
-
149
- //Test Page::getNotices() to be sure it matches the config contents.
150
- public function testGetNotices() {
151
- $expected_notice_ids = [];
152
- foreach ( $this->config['page_notices'] as $config_notice ) {
153
- if ( $config_notice['page'] === $this->page->getSlug() ) {
154
- $expected_notice_ids[] = $config_notice['id'];
155
- }
156
- }
157
- sort( $expected_notice_ids );
158
- $notices = $this->page->getNotices();
159
- $notice_ids = [];
160
- foreach ( $notices as $notice ) {
161
- $notice_ids[] = $notice->getId();
162
- }
163
- sort( $notice_ids );
164
- $this->assertEquals( $expected_notice_ids, $notice_ids );
165
- }
166
 
167
- //Test Page::getPlugin() to be sure it matches $this->plugin
168
- public function testGetPlugin() {
169
- $this->assertEquals( $this->plugin, $this->page->getPlugin() );
170
  }
171
 
172
- //Test Page:getPluginConfig() to be sure it matchees the supplied config file.
173
- public function testGetPluginConfig() {
174
- $this->assertEquals( $this->config, $this->page->getPluginConfig() );
175
- }
 
 
 
 
176
 
177
- //Test that the UnreadCount for the page is correct.
178
- public function testGetUnreadCount() {
179
- $expected_count = 0;
180
- foreach ( $this->config['page_notices'] as $config_notice ) {
181
- if ( $config_notice['page'] === $this->page->getSlug() ) {
182
- $expected_count++;
183
- }
184
- }
185
- $this->plugin->pluginData = $this->plugin_data;
186
- $this->assertEquals( $expected_count, $this->page->getUnreadCount() );
187
- }
188
- //Test that the UnreadCountMarkup for the page is correct.
189
- public function testGetUnreadCountMarkup() {
190
- $expected_count = 0;
191
 
192
- foreach ( $this->config['page_notices'] as $config_notice ) {
193
- if ( $config_notice['page'] === $this->page->getSlug() ) {
194
- $expected_count++;
195
- }
196
- }
197
 
198
- $expected_markup = '<span class="bglib-unread-notice-count">' . $expected_count . '</span>';
199
 
200
- $this->plugin->pluginData = $this->plugin_data;
201
- $this->assertEquals( $expected_markup, $this->page->getUnreadMarkup() );
202
  }
203
 
204
- //Tests that all notices on page can be set to read
205
- public function testSetAllNoticesRead() {
206
- $expected_markup = '<span class="bglib-unread-notice-count hidden"></span>';
 
 
 
 
 
207
 
208
- $this->plugin->pluginData = $this->plugin_data;
209
- $this->page->setAllNoticesRead();
210
- $this->assertEquals( $expected_markup, $this->page->getUnreadMarkup() );
211
- $this->page->setAllNoticesRead( true );
212
- }
213
- //Tests trying to get a Notice that does not exist
214
- public function testGetNonExistNotice() {
215
- $expected_id = null;
216
- $this->assertEquals( $expected_id, $this->page->getNoticeById( 'non_existant_notice' ) );
217
  }
218
  }
1
  <?php
2
  /**
3
+ * BoldGrid Source Code.
4
  *
5
  * @package Boldgrid_Plugintest
6
  * @copyright BoldGrid.com
9
  */
10
 
11
  use Boldgrid\Library\Library\Configs;
12
+ use Boldgrid\Library\Library\Plugin;
13
 
14
  /**
15
  * BoldGrid Library Library Plugin Page Test class.
16
  *
17
+ * @since 2.12.2
18
  */
19
  class Test_BoldGrid_Library_Library_Plugin_Page extends WP_UnitTestCase {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  /**
21
  * Setup.
22
  *
23
+ * @since 2.12.2
24
  */
25
  public function setUp() {
26
+ $this->config = array(
27
+ 'pages' => array(
 
 
 
 
 
 
 
 
 
28
  'boldgrid-backup-premium-features',
29
  'boldgrid-backup-settings',
30
+ ),
31
+ 'page_notices' => array(
32
+ array(
33
  'id' => 'bgbkup_database_encryption',
34
  'page' => 'boldgrid-backup-premium-features',
35
  'version' => '1.12.16',
36
+ ),
37
+ array(
38
  'id' => 'bgbkup_google_drive',
39
  'page' => 'boldgrid-backup-premium-features',
40
  'version' => '1.12.16',
41
+ ),
42
+ array(
43
  'id' => 'bgbkup_new_settings_feature',
44
  'page' => 'boldgrid-backup-settings',
45
  'version' => '1.12.16',
46
+ ),
47
+ ),
48
+ );
49
+
50
+ $this->sample_plugin = Plugin\Factory::create( 'boldgrid-backup/boldgrid-backup.php', $this->config );
51
+
52
+ $this->mock_plugin = $this->getMockBuilder( \Boldgrid\Library\Library\Plugin\Plugin::class )
53
+ ->setMethods( array( 'getPluginData', 'firstVersionCompare' ) )
54
+ ->disableOriginalConstructor()
55
+ ->getMock();
56
+ $this->mock_plugin->method( 'getPluginData' )
57
+ ->will( $this->returnValue( array( 'Version' => '0.0.0' ) ) );
58
+ $this->mock_plugin->method( 'firstVersionCompare' )
59
+ ->will( $this->returnValue( true ) );
60
  }
61
 
62
  /**
63
+ * Test Construct.
64
  *
65
+ * @since 2.12.2
66
  */
67
+ public function test_construct() {
68
+ $plugin = $this->sample_plugin;
69
+ $page = new \Boldgrid\Library\Library\Plugin\Page( $plugin, 'boldgrid-backup-premium-features' );
 
 
 
70
 
71
+ $this->assertTrue( $page instanceof \Boldgrid\Library\Library\Plugin\Page );
 
 
 
 
 
 
 
 
 
 
 
72
  }
73
 
74
  /**
75
+ * Test getNotices.
76
  *
77
+ * @since 2.12.2
78
  */
79
+ public function test_getNotices() {
80
+ $plugin = $this->sample_plugin;
81
+ $page = new \Boldgrid\Library\Library\Plugin\Page( $plugin, 'boldgrid-backup-premium-features' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
+ $this->assertTrue( $page->getNotices()[0] instanceof \Boldgrid\Library\Library\Plugin\Notice );
 
 
84
  }
85
 
86
+ /**
87
+ * Test getNoticeById.
88
+ *
89
+ * @since 2.12.2
90
+ */
91
+ public function test_getNoticeById() {
92
+ $plugin = $this->sample_plugin;
93
+ $page = new \Boldgrid\Library\Library\Plugin\Page( $plugin, 'boldgrid-backup-premium-features' );
94
 
95
+ $expected_id = $this->config['page_notices'][0]['id'];
 
 
 
 
 
 
 
 
 
 
 
 
 
96
 
97
+ $retrieved_notice = $page->getNoticeById( $expected_id );
 
 
 
 
98
 
99
+ $this->assertEquals( $expected_id, $retrieved_notice->getId() );
100
 
101
+ $this->assertNull( $page->getNoticeById( 'fake-id' ) );
 
102
  }
103
 
104
+ /**
105
+ * Test getSlug.
106
+ *
107
+ * @since 2.12.2
108
+ */
109
+ public function test_getSlug() {
110
+ $plugin = $this->sample_plugin;
111
+ $page = new \Boldgrid\Library\Library\Plugin\Page( $plugin, 'boldgrid-backup-premium-features' );
112
 
113
+ $this->assertEquals( 'boldgrid-backup-premium-features', $page->getSlug() );
 
 
 
 
 
 
 
 
114
  }
115
  }
vendor/boldgrid/library/tests/Library/Plugin/test-plugin.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * BoldGrid Source Code
4
  *
5
  * @package Boldgrid_Plugintest
6
  * @copyright BoldGrid.com
@@ -9,252 +9,243 @@
9
  */
10
 
11
  use Boldgrid\Library\Library\Configs;
 
12
 
13
  /**
14
  * BoldGrid Library Library Plugin Plugin Test class.
15
  *
16
- * @since 2.7.7
17
  */
18
  class Test_BoldGrid_Library_Library_Plugin_Plugin extends WP_UnitTestCase {
19
-
20
- private
21
- $backup,
22
- $backup_premium,
23
- $key = 'CONNECT-KEY',
24
- $config,
25
- $plugin_data = [
26
- 'Name' => 'Total Upkeep',
27
- 'PluginURI' => 'https://www.boldgrid.com/boldgrid-backup/',
28
- 'Version' => '1.12.16',
29
- 'Description' => 'Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need. By BoldGrid.',
30
- 'Author' => 'BoldGrid',
31
- 'AuthorURI' => 'https://www.boldgrid.com/',
32
- 'TextDomain' => 'boldgrid-backup',
33
- 'DomainPath' => '/languages',
34
- ];
35
-
36
  /**
37
  * Setup.
38
  *
39
- * @since 1.7.7
40
  */
41
  public function setUp() {
42
- // Setup our configs.
43
- update_site_option( 'boldgrid_api_key', $this->key );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
- $this->resetConfigs();
46
- $this->config = $this->getPluginConfig();
47
- $this->backup = new Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup', $this->config, $this->plugin_data );
48
- $this->backup_premium = new Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup-premium' );
 
 
 
 
49
  }
50
 
51
  /**
52
- * Reset library configs.
 
 
 
 
 
 
 
 
 
 
53
  *
54
- * @since 2.11.0
55
  */
56
- public function resetConfigs() {
57
- $configsFile = dirname( dirname( dirname( __DIR__ ) ) ) . '/src/library.global.php';
 
 
58
 
59
- $defaults = include $configsFile;
60
- Configs::set( $defaults );
61
  }
62
 
63
- public function getPluginConfig( array $add_pages = [], array $add_notices = [] ) {
64
- $config = [
65
- 'pages' => [
66
- 'boldgrid-backup-premium-features',
67
- ],
68
- 'page_notices' => [
69
- [
70
- 'id' => 'bgbkup_database_encryption',
71
- 'page' => 'boldgrid-backup-premium-features',
72
- 'version' => '1.12.16',
73
- ],
74
- ],
75
- ];
76
- foreach ( $add_pages as $page ) {
77
- $config['pages'][] = $page;
78
- }
79
- foreach ( $add_notices as $notice ) {
80
- $config['page_notices'][] = $notice;
81
- }
82
- return $config;
83
  }
84
 
85
  /**
86
- * Test getDownloadUrl.
87
  *
88
- * @since 2.7.7
89
  */
90
- public function testGetDownloadUrl() {
91
- $this->resetConfigs();
 
92
 
93
- $this->assertEquals( $this->backup->getDownloadUrl(), 'https://api.boldgrid.com/v1/plugins/boldgrid-backup/download?key=' . $this->key );
 
 
 
 
 
 
 
 
 
 
94
 
95
- $this->assertEquals( $this->backup_premium->getDownloadUrl(), 'https://api.boldgrid.com/v1/plugins/boldgrid-backup-premium/download?key=' . $this->key );
96
  }
97
 
98
  /**
99
- * Test firstVersionCompare.
100
  *
101
- * @since 2.11.0
102
  */
103
- public function testFirstVersionCompare() {
104
- // Good data we will be testing against.
105
- $backupPluginsChecked = [
106
- '1.11.0' => 123456,
107
- '1.12.0' => 123456,
108
- ];
109
-
110
- // Make sure good data gets us good data.
111
- $settings = [
112
- 'plugins_checked' => [
113
- 'other-plugin/other-plugin.php' => [
114
- '1.0.0' => 12345,
115
- '1.1.0' => 12346,
116
- ],
117
- 'boldgrid-backup/boldgrid-backup.php' => $backupPluginsChecked,
118
- ],
119
- ];
120
- update_option( 'boldgrid_settings', $settings );
121
- $this->assertTrue( $this->backup->firstVersionCompare( '1.10.0', '>=' ) );
122
- $this->assertTrue( $this->backup->firstVersionCompare( '1.11.0', '==' ) );
123
- $this->assertTrue( $this->backup->firstVersionCompare( '1.12.0', '<=' ) );
124
  }
125
 
126
  /**
127
- * Test getFirstVersion.
128
  *
129
- * @since 2.11.0
130
  */
131
- public function testGetFirstVersion() {
132
- // Good data we will be testing against.
133
- $backupPluginsChecked = [
134
- '1.11.0' => 123456,
135
- '1.12.0' => 123456,
136
- ];
137
-
138
- // Make sure good data gets us good data.
139
- $settings = [
140
- 'plugins_checked' => [
141
- 'other-plugin/other-plugin.php' => [
142
- '1.0.0' => 12345,
143
- '1.1.0' => 12346,
144
- ],
145
- 'boldgrid-backup/boldgrid-backup.php' => $backupPluginsChecked,
146
- ],
147
- ];
148
- update_option( 'boldgrid_settings', $settings );
149
- $this->assertEquals( $this->backup->getFirstVersion(), '1.11.0' );
150
  }
151
 
152
  /**
153
- * Test getPluginsChecked.
154
  *
155
- * @since 2.11.0
156
  */
157
- public function testGetPluginsChecked() {
158
- // Good data we will be testing against.
159
- $backupPluginsChecked = [
160
- '1.11.0' => 123456,
161
- '1.12.0' => 123456,
162
- ];
163
-
164
- // Make sure wrong data gives us an empty array.
165
- update_option( 'boldgrid_settings', false );
166
- $this->assertEquals( $this->backup->getPluginsChecked(), [] );
167
-
168
- // Make sure wrong data gives us an empty array.
169
- $settings = [
170
- 'plugins_checked' => [],
171
- ];
172
- update_option( 'boldgrid_settings', $settings );
173
- $this->assertEquals( $this->backup->getPluginsChecked(), [] );
174
-
175
- // Make sure good data gets us good data.
176
- $settings = [
177
- 'plugins_checked' => [
178
- 'other-plugin/other-plugin.php' => [
179
- '1.0.0' => 12345,
180
- '1.1.0' => 12346,
181
- ],
182
- 'boldgrid-backup/boldgrid-backup.php' => $backupPluginsChecked,
183
- ],
184
- ];
185
- update_option( 'boldgrid_settings', $settings );
186
- $this->assertEquals( $this->backup->getPluginsChecked(), $backupPluginsChecked );
187
  }
188
- // Make sure that the Plugin::getPages and Plugin::setPages are working from passed $config array
189
- public function testGetSetPages() {
190
- $page_count = count( $this->config['pages'] );
191
- $this->assertEquals( count( $this->backup->getPages() ), $page_count );
 
 
 
 
 
 
 
192
  }
193
- // Ensure that the initial getUnreadCount is correct
194
- public function testGetUnreadCount() {
195
- $expected_count = count( $this->config['page_notices'] );
196
 
197
- $this->backup->pluginData = $this->plugin_data;
198
- $this->assertEquals( $this->backup->getUnreadCount(), $expected_count );
 
 
 
 
 
 
 
 
 
199
  }
200
- // Ensure that the getUnreadMarkup is correct
201
- public function testGetUnreadMarkup() {
202
- $expected_markup = '<span class="bglib-unread-notice-count">' . count( $this->config['page_notices'] ) . '</span>';
203
 
204
- $this->backup->pluginData = $this->plugin_data;
205
- $this->assertEquals( $this->backup->getUnreadMarkup(), $expected_markup );
 
 
 
 
 
 
 
 
206
  }
207
 
208
- public function testNoNoticesMarkup() {
209
- $expected_markup = '<span class="bglib-unread-notice-count hidden"></span>';
 
 
 
 
 
 
210
 
211
- $this->backup->pluginData = $this->plugin_data;
212
- $this->backup->setAllNoticesRead();
213
- $this->assertEquals( $this->backup->getUnreadMarkup(), $expected_markup );
214
- $this->backup->setAllNoticesRead( true );
215
  }
216
 
217
- public function testTwoPagesWithNotices() {
218
- $two_page_config = $this->getPluginConfig(
219
- [ 'boldgrid-backup-settings' ],
220
- [
221
- [
222
- 'id' => 'bgbkup_backup_settings_test',
223
- 'page' => 'boldgrid-backup-settings',
224
- 'version' => '1.12.16',
225
- ],
226
- ]
227
- );
 
228
 
229
- $expected_markup = '<span class="bglib-unread-notice-count">' . count( $two_page_config['page_notices'] ) . '</span>';
230
- $plugin = new Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup', $two_page_config, $this->plugin_data );
231
- $plugin->pluginData = $this->plugin_data;
232
- $this->assertEquals( $plugin->getUnreadMarkup(), $expected_markup );
233
  }
234
 
235
- public function testGetPageBySlug() {
236
- $two_page_config = $this->getPluginConfig(
237
- [ 'boldgrid-backup-settings' ],
238
- [
239
- [
240
- 'id' => 'bgbkup_backup_settings_test',
241
- 'page' => 'boldgrid-backup-settings',
242
- 'version' => '1.12.16',
243
- ],
244
- ]
245
- );
246
 
247
- $plugin = new Boldgrid\Library\Library\Plugin\Plugin( 'boldgrid-backup', $two_page_config, $this->plugin_data );
248
- $plugin->pluginData = $this->plugin_data;
249
- $success_count = 0;
250
- foreach ( $two_page_config['pages'] as $config_page ) {
251
- $pageSlug = $plugin->getPageBySlug( $config_page );
252
- if ( $pageSlug ) {
253
- $success_count++;
254
- }
255
- }
256
- $this->assertEquals( $success_count, count( $two_page_config['pages'] ) );
257
 
258
- $this->assertTrue( empty( $plugin->getPageBySlug( 'not_a_real_page_slug' ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
259
  }
260
  }
1
  <?php
2
  /**
3
+ * BoldGrid Source Code.
4
  *
5
  * @package Boldgrid_Plugintest
6
  * @copyright BoldGrid.com
9
  */
10
 
11
  use Boldgrid\Library\Library\Configs;
12
+ use Boldgrid\Library\Library\Plugin;
13
 
14
  /**
15
  * BoldGrid Library Library Plugin Plugin Test class.
16
  *
17
+ * @since 2.12.2
18
  */
19
  class Test_BoldGrid_Library_Library_Plugin_Plugin extends WP_UnitTestCase {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  /**
21
  * Setup.
22
  *
23
+ * @since 2.12.2
24
  */
25
  public function setUp() {
26
+ $this->config = array(
27
+ 'pages' => array(
28
+ 'boldgrid-backup-premium-features',
29
+ 'boldgrid-backup-settings',
30
+ ),
31
+ 'page_notices' => array(
32
+ array(
33
+ 'id' => 'bgbkup_database_encryption',
34
+ 'page' => 'boldgrid-backup-premium-features',
35
+ 'version' => '1.12.16',
36
+ ),
37
+ array(
38
+ 'id' => 'bgbkup_google_drive',
39
+ 'page' => 'boldgrid-backup-premium-features',
40
+ 'version' => '1.12.16',
41
+ ),
42
+ array(
43
+ 'id' => 'bgbkup_new_settings_feature',
44
+ 'page' => 'boldgrid-backup-settings',
45
+ 'version' => '1.12.16',
46
+ ),
47
+ ),
48
+ );
49
+
50
+ $this->sample_plugin = Plugin\Factory::create( 'boldgrid-backup/boldgrid-backup.php', $this->config );
51
 
52
+ $this->mock_plugin = $this->getMockBuilder( \Boldgrid\Library\Library\Plugin\Plugin::class )
53
+ ->setMethods( array( 'getPluginData', 'getFirstVersion' ) )
54
+ ->disableOriginalConstructor()
55
+ ->getMock();
56
+ $this->mock_plugin->method( 'getPluginData' )
57
+ ->will( $this->returnValue( array( 'Version' => '0.0.0' ) ) );
58
+ $this->mock_plugin->method( 'getFirstVersion' )
59
+ ->will( $this->returnValue( '1.0.0' ) );
60
  }
61
 
62
  /**
63
+ * Test firstVersionCompare.
64
+ *
65
+ * @since 2.12.2
66
+ */
67
+ public function test_firstVersionCompare() {
68
+ $version_compare = $this->mock_plugin->firstVersionCompare( '1.1.0', '<=' );
69
+ $this->assertTrue( $version_compare );
70
+ }
71
+
72
+ /**
73
+ * Test firstVersionCompare.
74
  *
75
+ * @since 2.12.2
76
  */
77
+ public function test_getActivateUrl() {
78
+ $plugin = $this->sample_plugin;
79
+ $expected_base_url = 'http://example.org/wp-admin/plugins.php?action=activate&amp;plugin=boldgrid-backup%2Fboldgrid-backup.php';
80
+ $is_correct = strpos( $plugin->getActivateUrl(), $expected_base_url );
81
 
82
+ $this->assertNotFalse( $is_correct );
 
83
  }
84
 
85
+ /**
86
+ * Test getIcons.
87
+ *
88
+ * @since 2.12.2
89
+ */
90
+ public function test_getIcons() {
91
+ $plugin = $this->sample_plugin;
92
+ $icons = $plugin->getIcons();
93
+
94
+ $this->assertTrue( is_array( $icons ) );
 
 
 
 
 
 
 
 
 
 
95
  }
96
 
97
  /**
98
+ * Test getChildPlugins.
99
  *
100
+ * @since 2.12.2
101
  */
102
+ public function test_getChildPlugins() {
103
+ $plugin = $this->sample_plugin;
104
+ $child_plugins = $plugin->getChildPlugins();
105
 
106
+ $this->assertTrue( is_array( $child_plugins ) );
107
+ }
108
+
109
+ /**
110
+ * Test getData.
111
+ *
112
+ * @since 2.12.2
113
+ */
114
+ public function test_getData() {
115
+ $plugin = $this->mock_plugin;
116
+ $version = $plugin->getData( 'Version' );
117
 
118
+ $this->assertEquals( '0.0.0', $version );
119
  }
120
 
121
  /**
122
+ * Test getInstallUrl.
123
  *
124
+ * @since 2.12.2
125
  */
126
+ public function test_getInstallUrl() {
127
+ $plugin = $this->sample_plugin;
128
+ $expected_base_url = $plugin->getInstallUrl();
129
+ $is_correct = strpos( $plugin->getInstallUrl(), $expected_base_url );
130
+
131
+ $this->assertNotFalse( $is_correct );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  }
133
 
134
  /**
135
+ * Test getIsInstalled.
136
  *
137
+ * @since 2.12.2
138
  */
139
+ public function test_getIsInstalled() {
140
+ $plugin = Plugin\Factory::create( 'akismet/akismet.php' );
141
+ $is_installed = $plugin->getIsInstalled();
142
+
143
+ $this->assertTrue( $is_installed );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  }
145
 
146
  /**
147
+ * Test getFile.
148
  *
149
+ * @since 2.12.2
150
  */
151
+ public function test_getFile() {
152
+ $plugin = $this->sample_plugin;
153
+ $file = $plugin->getFile();
154
+
155
+ $this->assertEquals( 'boldgrid-backup/boldgrid-backup.php', $file );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  }
157
+
158
+ /**
159
+ * Test getNewVersion.
160
+ *
161
+ * @since 2.12.2
162
+ */
163
+ public function test_getNewVersion() {
164
+ $plugin = $this->sample_plugin;
165
+ $new_version = $plugin->getNewVersion();
166
+
167
+ $this->assertEquals( '0', $new_version );
168
  }
 
 
 
169
 
170
+ /**
171
+ * Test getPluginData.
172
+ *
173
+ * @since 2.12.2
174
+ */
175
+ public function test_getPlugindata() {
176
+ $plugin = Plugin\Factory::create( 'akismet/akismet.php', $this->config );
177
+ $plugin_data = $plugin->getPluginData();
178
+ $text_domain = $plugin_data['TextDomain'];
179
+
180
+ $this->assertEquals( 'akismet', $text_domain );
181
  }
 
 
 
182
 
183
+ /**
184
+ * Test getPluginsChecked.
185
+ *
186
+ * @since 2.12.2
187
+ */
188
+ public function test_getPluginsChecked() {
189
+ $plugin = $this->sample_plugin;
190
+ $plugins_checked = $plugin->getPluginsChecked();
191
+
192
+ $this->assertTrue( is_array( $plugins_checked ) );
193
  }
194
 
195
+ /**
196
+ * Test getPages.
197
+ *
198
+ * @since 2.12.2
199
+ */
200
+ public function test_getPages() {
201
+ $plugin = $this->sample_plugin;
202
+ $pages = $plugin->getPages();
203
 
204
+ foreach ( $pages as $page ) {
205
+ $this->assertTrue( $page instanceof \Boldgrid\Library\Library\Plugin\Page );
206
+ }
 
207
  }
208
 
209
+ /**
210
+ * Test getPageBySlug.
211
+ *
212
+ * @since 2.12.2
213
+ */
214
+ public function test_getPageBySlug() {
215
+ $plugin = $this->sample_plugin;
216
+ $page = $plugin->getPageBySlug( 'boldgrid-backup-premium-features' );
217
+
218
+ $this->assertEquals( 'boldgrid-backup-premium-features', $page->getSlug() );
219
+
220
+ $page = $plugin->getPageBySlug( 'non-existant-page' );
221
 
222
+ $this->assertNull( $page );
 
 
 
223
  }
224
 
225
+ /**
226
+ * Test hasUpdate.
227
+ *
228
+ * @since 2.12.2
229
+ */
230
+ public function test_hasUpdate() {
231
+ $plugin = $this->sample_plugin;
232
+ $has_update = $plugin->hasUpdate();
 
 
 
233
 
234
+ $this->assertFalse( $has_update );
235
+ }
 
 
 
 
 
 
 
 
236
 
237
+ /**
238
+ * Test getPluginData.
239
+ *
240
+ * @since 2.12.2
241
+ */
242
+ public function test_isActive() {
243
+ $plugin = Plugin\Factory::create( 'akismet/akismet.php', $this->config );
244
+ $is_active = $plugin->isActive();
245
+ $this->assertFalse( $is_active );
246
+
247
+ activate_plugin( $plugin->getFile() );
248
+ $is_active = $plugin->isActive();
249
+ $this->assertTrue( $is_active );
250
  }
251
  }
vendor/boldgrid/library/tests/Library/Plugin/test-plugins.php ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BoldGrid Source Code.
4
+ *
5
+ * @package Boldgrid_Plugintest
6
+ * @copyright BoldGrid.com
7
+ * @version $Id$
8
+ * @author BoldGrid.com <wpb@boldgrid.com>
9
+ */
10
+
11
+ use Boldgrid\Library\Library\Configs;
12
+ use Boldgrid\Library\Library\Plugin;
13
+
14
+ /**
15
+ * BoldGrid Library Library Plugin Plugin Test class.
16
+ *
17
+ * @since 2.7.7
18
+ */
19
+ class Test_BoldGrid_Library_Library_Plugin_Plugins extends WP_UnitTestCase {
20
+
21
+ private
22
+ $plugins,
23
+ $expected_plugins,
24
+ $expected_active,
25
+ $expected_plugin_slugs;
26
+
27
+ /**
28
+ * Setup.
29
+ *
30
+ * @since 1.7.7
31
+ */
32
+ public function setUp() {
33
+ $plugin_dirs = scandir( ABSPATH . '/wp-content/plugins/' );
34
+ $this->expected_plugins = array();
35
+ $this->expected_plugin_slugs = array();
36
+ foreach ( $plugin_dirs as $plugin_dir ) {
37
+ if ( is_dir( ABSPATH . '/wp-content/plugins/' . $plugin_dir ) && '..' !== $plugin_dir && '.' !== $plugin_dir ) {
38
+ $this->expected_plugin_slugs[] = $plugin_dir;
39
+ $this->expected_plugins[] = $plugin_dir . '/' . $plugin_dir . '.php';
40
+ } elseif ( is_file( ABSPATH . '/wp-content/plugins/' . $plugin_dir ) && 'index.php' !== $plugin_dir && false !== strpos( $plugin_dir, '.php' ) ) {
41
+ $this->expected_plugins[] = $plugin_dir;
42
+ $file_contents = file_get_contents( WP_PLUGIN_DIR . '/' . $plugin_dir );
43
+ $lines = explode( "\n", $file_contents );
44
+ foreach ( $lines as $line ) {
45
+ if ( false !== strpos( $line, '@package' ) ) {
46
+ $package = strtolower( explode( ' ', $line )[3] );
47
+ $this->expected_plugin_slugs[] = str_replace( '_', '-', $package );
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ sort( $this->expected_plugins );
54
+ activate_plugin( 'akismet/akismet.php' );
55
+
56
+ $this->expected_active = array( 'akismet/akismet.php' );
57
+
58
+ $this->plugins = new Plugin\Plugins();
59
+ }
60
+
61
+ /**
62
+ * Test getAllPlugins.
63
+ *
64
+ * @since SINCEVERSIOn
65
+ */
66
+ public function test_getAllPlugins() {
67
+ $all_plugins = $this->plugins->getAllPlugins();
68
+ $all_plugins_list = array();
69
+ foreach ( $all_plugins as $plugin ) {
70
+ $all_plugins_list[] = $plugin->getFile();
71
+ }
72
+
73
+ sort( $all_plugins_list );
74
+ $this->assertEquals( $this->expected_plugins, $all_plugins_list );
75
+ }
76
+
77
+ /**
78
+ * Test getBySlug.
79
+ *
80
+ * @since 2.12.2
81
+ */
82
+ public function test_getBySlug() {
83
+ $all_plugins = $this->plugins->getAllPlugins();
84
+ $x = 0;
85
+
86
+ foreach ( $this->expected_plugin_slugs as $expected_plugin_slug ) {
87
+ $plugin = $this->plugins->getBySlug( $all_plugins, $expected_plugin_slug );
88
+ $plugin_slug = isset( $plugin ) ? $plugin->getSlug() : null;
89
+ $this->assertEquals( $expected_plugin_slug, $plugin_slug );
90
+ if ( $expected_plugin_slug === $plugin->getSlug() ) {
91
+ $x++;
92
+ }
93
+ }
94
+
95
+ $this->assertCount( $x, $this->expected_plugins );
96
+
97
+ $this->assertTrue( is_wp_error( $this->plugins->getBySlug( $all_plugins, 'FakeFake' ) ) );
98
+ }
99
+
100
+ }
vendor/boldgrid/library/tests/Library/Theme/test-theme.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BoldGrid Source Code
4
+ *
5
+ * @package Boldgrid_Plugintest
6
+ * @copyright BoldGrid.com
7
+ * @version $Id$
8
+ * @author BoldGrid.com <wpb@boldgrid.com>
9
+ */
10
+
11
+ use Boldgrid\Library\Library\Configs;
12
+ use Boldgrid\Library\Library\Theme;
13
+
14
+ /**
15
+ * BoldGrid Library Library Plugin Plugin Test class.
16
+ *
17
+ * @since 2.7.7
18
+ */
19
+ class Test_BoldGrid_Library_Library_Theme_Theme extends WP_UnitTestCase {
20
+
21
+ private
22
+ $stylesheet,
23
+ $old_theme_url;
24
+
25
+ /**
26
+ * Setup.
27
+ *
28
+ * @since 1.7.7
29
+ */
30
+ public function setUp() {
31
+ // Setup our configs.
32
+ delete_site_transient( 'update_themes' );
33
+ $this->stylesheet = 'twentytwenty';
34
+ $this->old_theme_url = 'https://downloads.wordpress.org/theme/twentytwenty.1.0.zip';
35
+ $this->transient_data = array(
36
+ $this->stylesheet => array(
37
+ 'version' => '1.1',
38
+ 'downloaded' => 482251,
39
+ 'last_updated' => new DateTime('2020-02-05'),
40
+ ),
41
+ );
42
+ }
43
+
44
+ public function test_constructor() {
45
+ $wp_theme = wp_get_theme( $this->stylesheet );
46
+ $theme = new Theme\Theme( $wp_theme );
47
+ $this->assertEquals( $wp_theme, $theme->wp_theme );
48
+ $this->assertEquals( $this->stylesheet, $theme->stylesheet );
49
+ }
50
+ }
vendor/boldgrid/library/tests/Library/Theme/test-themes.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BoldGrid Source Code
4
+ *
5
+ * @package Boldgrid_Plugintest
6
+ * @copyright BoldGrid.com
7
+ * @version $Id$
8
+ * @author BoldGrid.com <wpb@boldgrid.com>
9
+ */
10
+
11
+ use Boldgrid\Library\Library\Configs;
12
+ use Boldgrid\Library\Library\Theme;
13
+
14
+ /**
15
+ * BoldGrid Library Library Plugin Plugin Test class.
16
+ *
17
+ * @since 2.7.7
18
+ */
19
+ class Test_BoldGrid_Library_Library_Theme_Themes extends WP_UnitTestCase {
20
+
21
+ private
22
+ $themes,
23
+ $wp_themes,
24
+ $expected_themes,
25
+ $active_theme;
26
+
27
+ /**
28
+ * Setup.
29
+ *
30
+ * @since 1.7.7
31
+ */
32
+ public function setUp() {
33
+ global $wpdb;
34
+
35
+ $this->themes = new Theme\Themes();
36
+ $this->wp_themes = wp_get_themes();
37
+ $theme_dirs = scandir( ABSPATH . '/wp-content/themes/' );
38
+ $expected_themes = array();
39
+ foreach ( $theme_dirs as $theme_dir ) {
40
+ if ( is_dir( ABSPATH . '/wp-content/themes/' . $theme_dir ) && '..' !== $theme_dir && '.' !== $theme_dir ) {
41
+ $expected_themes[] = $theme_dir;
42
+ }
43
+ }
44
+
45
+ $this->active_theme = $wpdb->get_var(
46
+ $wpdb->prepare(
47
+ "SELECT option_value FROM {$wpdb->prefix}options WHERE option_name = %s",
48
+ "stylesheet"
49
+ )
50
+ );
51
+
52
+ $this->expected_themes = $expected_themes;
53
+ sort( $this->expected_themes);
54
+ }
55
+
56
+ public function test_getList() {
57
+ $stylesheet_list = [];
58
+ $themes_list = $this->themes->get();
59
+ foreach ( $themes_list as $theme ) {
60
+ $stylesheet_list[] = $theme->stylesheet;
61
+ }
62
+ sort( $stylesheet_list );
63
+ $this->assertEquals( $this->expected_themes, $stylesheet_list );
64
+ }
65
+
66
+ public function test_getFromStylesheet() {
67
+ $x = 0;
68
+ foreach( $this->expected_themes as $expected_theme ) {
69
+ $theme = $this->themes->getFromStylesheet( $expected_theme );
70
+ $this->assertEquals( $expected_theme, $theme->stylesheet );
71
+ if ( $expected_theme === $theme->stylesheet ) {
72
+ $x++;
73
+ }
74
+ }
75
+
76
+ $this->assertCount( $x, $this->expected_themes );
77
+
78
+ $this->assertTrue( is_wp_error( $this->themes->getFromStylesheet( 'FakeTheme' ) ) );
79
+ }
80
+
81
+ public function test_getActive() {
82
+ $this->assertEquals( $this->active_theme, $this->themes->getActive()->stylesheet );
83
+ }
84
+ }
vendor/boldgrid/library/tests/Library/Theme/test-update-data.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BoldGrid Source Code
4
+ *
5
+ * @package Boldgrid_Plugintest
6
+ * @copyright BoldGrid.com
7
+ * @version $Id$
8
+ * @author BoldGrid.com <wpb@boldgrid.com>
9
+ */
10
+
11
+ use Boldgrid\Library\Library\Configs;
12
+ use Boldgrid\Library\Library\Theme;
13
+
14
+ /**
15
+ * BoldGrid Library Library Plugin Plugin Test class.
16
+ *
17
+ * @since 2.7.7
18
+ */
19
+ class Test_BoldGrid_Library_Library_Theme_UpdateData extends WP_UnitTestCase {
20
+
21
+ private
22
+ $theme,
23
+ $transient_data,
24
+ $transient_data_props,
25
+ $active_theme;
26
+
27
+ /**
28
+ * Setup.
29
+ *
30
+ * @since 1.7.7
31
+ */
32
+ public function setUp() {
33
+ // Setup our configs.
34
+ delete_transient( 'boldgrid_theme_information' );
35
+ $this->transient_data = array(
36
+ 'twentytwenty' => array(
37
+ 'version' => '1.1',
38
+ 'downloaded' => 482251,
39
+ 'last_updated' => new DateTime('2020-02-05'),
40
+ 'api_fetch_time' => false,
41
+ 'active_installs' => 1000
42
+ ),
43
+ );
44
+ }
45
+
46
+ public function test_getResponseData() {
47
+ $updateData = new Theme\UpdateData( new Theme\Theme( wp_get_theme( 'twentytwenty' ) ) );
48
+ $responseData = $updateData->getResponseData();
49
+ $responseData_props = array_keys( ( array ) $responseData );
50
+ sort( $responseData_props );
51
+ $expected_data = array_keys( $this->transient_data['twentytwenty'] );
52
+ sort( $expected_data );
53
+ $this->assertEquals( $expected_data, $responseData_props );
54
+ }
55
+
56
+ public function test_getInformationTransient() {
57
+ $updateData = new Theme\UpdateData( new Theme\Theme( wp_get_theme( 'twentytwenty' ) ) );
58
+ $this->assertFalse( $updateData->getInformationTransient() );
59
+
60
+ set_transient( 'boldgrid_theme_information', array(), 60 );
61
+ $this->assertFalse( $updateData->getInformationTransient() );
62
+
63
+ delete_transient( 'boldgrid_theme_information' );
64
+ }
65
+ }
vendor/boldgrid/library/tests/bootstrap.php CHANGED
@@ -32,8 +32,14 @@ require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Filter.php';
32
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Reseller.php';
33
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Util/Plugin.php';
34
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/Plugin.php';
 
 
 
35
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/Page.php';
36
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/Notice.php';
 
 
 
37
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/RatingPrompt.php';
38
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Activity.php';
39
  require_once dirname( dirname( __FILE__ ) ) . '/src/Util/Option.php';
32
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Reseller.php';
33
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Util/Plugin.php';
34
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/Plugin.php';
35
+ require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/Factory.php';
36
+ require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/Plugins.php';
37
+ require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/UpdateData.php';
38
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/Page.php';
39
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Plugin/Notice.php';
40
+ require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Theme/Theme.php';
41
+ require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Theme/Themes.php';
42
+ require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Theme/UpdateData.php';
43
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/RatingPrompt.php';
44
  require_once dirname( dirname( __FILE__ ) ) . '/src/Library/Activity.php';
45
  require_once dirname( dirname( __FILE__ ) ) . '/src/Util/Option.php';
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit003a36ea3ce708618a9d533403417f74
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit003a36ea3ce708618a9d533403417f74
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit003a36ea3ce708618a9d533403417f74', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit003a36ea3ce708618a9d533403417f74', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit003a36ea3ce708618a9d533403417f74::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit003a36ea3ce708618a9d533403417f74
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit003a36ea3ce708618a9d533403417f74::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire003a36ea3ce708618a9d533403417f74($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire003a36ea3ce708618a9d533403417f74($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit8b2073f67e3daaebdefe3ef5925bc9c2
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit8b2073f67e3daaebdefe3ef5925bc9c2', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit8b2073f67e3daaebdefe3ef5925bc9c2', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit8b2073f67e3daaebdefe3ef5925bc9c2::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit8b2073f67e3daaebdefe3ef5925bc9c2::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire8b2073f67e3daaebdefe3ef5925bc9c2($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire8b2073f67e3daaebdefe3ef5925bc9c2($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit003a36ea3ce708618a9d533403417f74
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit003a36ea3ce708618a9d533403417f74
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit003a36ea3ce708618a9d533403417f74::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit003a36ea3ce708618a9d533403417f74::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit003a36ea3ce708618a9d533403417f74::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit8b2073f67e3daaebdefe3ef5925bc9c2
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
+ $loader->prefixLengthsPsr4 = ComposerStaticInit8b2073f67e3daaebdefe3ef5925bc9c2::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInit8b2073f67e3daaebdefe3ef5925bc9c2::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInit8b2073f67e3daaebdefe3ef5925bc9c2::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
vendor/composer/installed.json CHANGED
@@ -1,20 +1,20 @@
1
  [
2
  {
3
  "name": "boldgrid/library",
4
- "version": "2.12.3",
5
- "version_normalized": "2.12.3.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/BoldGrid/library.git",
9
- "reference": "89e27be7bc66d175908fa7d405bca479b7fd80a7"
10
  },
11
  "dist": {
12
  "type": "zip",
13
- "url": "https://api.github.com/repos/BoldGrid/library/zipball/89e27be7bc66d175908fa7d405bca479b7fd80a7",
14
- "reference": "89e27be7bc66d175908fa7d405bca479b7fd80a7",
15
  "shasum": ""
16
  },
17
- "time": "2020-06-23T20:00:26+00:00",
18
  "type": "library",
19
  "installation-source": "dist",
20
  "autoload": {
@@ -215,20 +215,6 @@
215
  "twofish",
216
  "x.509",
217
  "x509"
218
- ],
219
- "funding": [
220
- {
221
- "url": "https://github.com/terrafrost",
222
- "type": "github"
223
- },
224
- {
225
- "url": "https://www.patreon.com/phpseclib",
226
- "type": "patreon"
227
- },
228
- {
229
- "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib",
230
- "type": "tidelift"
231
- }
232
  ]
233
  }
234
  ]
1
  [
2
  {
3
  "name": "boldgrid/library",
4
+ "version": "2.13.0",
5
+ "version_normalized": "2.13.0.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/BoldGrid/library.git",
9
+ "reference": "5eac0d3f4b318479d6b762dcd92f913377ba4d03"
10
  },
11
  "dist": {
12
  "type": "zip",
13
+ "url": "https://api.github.com/repos/BoldGrid/library/zipball/5eac0d3f4b318479d6b762dcd92f913377ba4d03",
14
+ "reference": "5eac0d3f4b318479d6b762dcd92f913377ba4d03",
15
  "shasum": ""
16
  },
17
+ "time": "2020-07-07T14:32:25+00:00",
18
  "type": "library",
19
  "installation-source": "dist",
20
  "autoload": {
215
  "twofish",
216
  "x.509",
217
  "x509"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  ]
219
  }
220
  ]