Version Description
Download this release
Release Info
Developer | boldgrid |
Plugin | Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid |
Version | 2.0.0.202101120840 |
Comparing to | |
See all releases |
Code changes from version branch.issue-435.202012241027 to 2.0.0.202101120840
- admin/class-boldgrid-backup-admin-archive-log.php +13 -1
- admin/class-boldgrid-backup-admin-archive.php +131 -10
- admin/class-boldgrid-backup-admin-backup-dir.php +55 -0
- admin/class-boldgrid-backup-admin-cli.php +6 -9
- admin/class-boldgrid-backup-admin-core.php +83 -311
- admin/class-boldgrid-backup-admin-cron.php +45 -8
- admin/class-boldgrid-backup-admin-db-dump.php +42 -19
- admin/class-boldgrid-backup-admin-email.php +1 -5
- admin/class-boldgrid-backup-admin-in-progress-data.php +16 -0
- admin/class-boldgrid-backup-admin-in-progress-tmp.php +15 -0
- admin/class-boldgrid-backup-admin-log.php +2 -1
- admin/class-boldgrid-backup-admin-nopriv.php +138 -0
- admin/class-boldgrid-backup-admin-settings.php +18 -0
- admin/class-boldgrid-backup-admin-task-helper.php +124 -0
- admin/class-boldgrid-backup-admin-task.md +129 -0
- admin/class-boldgrid-backup-admin-task.php +297 -0
- admin/class-boldgrid-backup-admin-upload.php +6 -116
- admin/class-boldgrid-backup-admin-utility.php +13 -0
- admin/class-boldgrid-backup-admin-wp-cron.php +2 -1
- admin/compressor/class-boldgrid-backup-admin-compressor-pcl-zip.php +4 -4
- admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php +0 -4
- admin/compressor/class-boldgrid-backup-admin-compressor-system-zip.php +0 -4
- admin/cron/class-crontab.php +0 -2
- admin/js/boldgrid-backup-admin-archive-details.js +22 -3
- admin/js/boldgrid-backup-admin-backup-now.js +13 -6
- admin/partials/archive-details/dir.php +55 -0
- admin/partials/boldgrid-backup-admin-archive-details.php +3 -1
- admin/partials/boldgrid-backup-admin-settings.php +2 -1
- admin/partials/settings/format.php +60 -0
- boldgrid-backup-cron.php +1 -0
- boldgrid-backup.php +3 -1
- cli/{verify-40ffd4cbdc279dfa880a7510790279fe.php → verify-db16e91791975a3ef7fb2be0c23b2b63.php} +0 -0
- coverage.xml +5600 -3821
- includes/archive/class-factory.php +92 -0
- includes/archive/class-option.php +126 -0
- includes/archiver/class-info.php +97 -0
- includes/class-boldgrid-backup-archive-fetcher.php +290 -0
- includes/class-boldgrid-backup-archiver.php +394 -0
- includes/class-boldgrid-backup-restorer.php +251 -0
- includes/class-boldgrid-backup.php +69 -0
- includes/config/config.cron.php +9 -0
- includes/v2/archiver/class-archiver.php +87 -0
- includes/v2/archiver/class-factory.php +52 -0
- includes/v2/archiver/class-resumer.php +99 -0
- includes/v2/archiver/steps/archive_files/class-part.php +240 -0
- includes/v2/archiver/steps/archive_files/class-parts.php +65 -0
- includes/v2/archiver/steps/class-archive-database.php +171 -0
- includes/v2/archiver/steps/class-archive-files.php +281 -0
- includes/v2/archiver/steps/class-discovery.php +74 -0
- includes/v2/filelist/class-create.php +110 -0
- includes/v2/step/class-data.php +99 -0
- includes/v2/step/class-json-file.php +88 -0
- includes/v2/step/class-step.php +412 -0
- rest/README.MD +69 -0
- rest/class-boldgrid-backup-rest-archive.php +277 -0
- rest/class-boldgrid-backup-rest-controller.php +84 -0
- rest/class-boldgrid-backup-rest-job.php +145 -0
- rest/class-boldgrid-backup-rest-setting.php +195 -0
- rest/class-boldgrid-backup-rest-test.php +107 -0
- rest/class-boldgrid-backup-rest-utility.php +73 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
admin/class-boldgrid-backup-admin-archive-log.php
CHANGED
@@ -188,8 +188,20 @@ class Boldgrid_Backup_Admin_Archive_Log {
|
|
188 |
require_once ABSPATH . 'wp-admin/includes/class-pclzip.php';
|
189 |
}
|
190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
// Open the archive.
|
192 |
-
$archive = new \PclZip( $
|
193 |
if ( 0 === $archive ) {
|
194 |
return false;
|
195 |
}
|
188 |
require_once ABSPATH . 'wp-admin/includes/class-pclzip.php';
|
189 |
}
|
190 |
|
191 |
+
/*
|
192 |
+
* Determine which archive file to add our log to.
|
193 |
+
*
|
194 |
+
* # One: /home/user/boldgrid_backup/boldgrid-backup-example.org-213c1637-20210111-181725.zip
|
195 |
+
* # Many: /home/user/boldgrid_backup/boldgrid-backup-213c1637-ed5c1123168c8eb0/zip-other-1.zip
|
196 |
+
*/
|
197 |
+
if ( 'one' === $info['format'] ) {
|
198 |
+
$filepath = $info['filepath'];
|
199 |
+
} else {
|
200 |
+
$filepath = dirname( $info['filepath'] ) . '/' . wp_basename( $info['filepath'], '.zip' ) . '/zip-other-1.zip';
|
201 |
+
}
|
202 |
+
|
203 |
// Open the archive.
|
204 |
+
$archive = new \PclZip( $filepath );
|
205 |
if ( 0 === $archive ) {
|
206 |
return false;
|
207 |
}
|
admin/class-boldgrid-backup-admin-archive.php
CHANGED
@@ -27,6 +27,16 @@ class Boldgrid_Backup_Admin_Archive {
|
|
27 |
*/
|
28 |
private $core;
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
/**
|
31 |
* Compressor used when creating archive.
|
32 |
*
|
@@ -56,6 +66,19 @@ class Boldgrid_Backup_Admin_Archive {
|
|
56 |
*/
|
57 |
public $filepath = null;
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
/**
|
60 |
* The contents of the archive's log file.
|
61 |
*
|
@@ -106,6 +129,36 @@ class Boldgrid_Backup_Admin_Archive {
|
|
106 |
*/
|
107 |
public $view_details_url = '';
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
/**
|
110 |
* Constructor.
|
111 |
*
|
@@ -113,7 +166,11 @@ class Boldgrid_Backup_Admin_Archive {
|
|
113 |
*
|
114 |
* @param Boldgrid_Backup_Admin_Core $core Core class object.
|
115 |
*/
|
116 |
-
public function __construct( $core ) {
|
|
|
|
|
|
|
|
|
117 |
$this->core = $core;
|
118 |
}
|
119 |
|
@@ -231,7 +288,56 @@ class Boldgrid_Backup_Admin_Archive {
|
|
231 |
* @since 1.11.0
|
232 |
*/
|
233 |
public function get_filesize() {
|
234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
}
|
236 |
|
237 |
/**
|
@@ -253,6 +359,9 @@ class Boldgrid_Backup_Admin_Archive {
|
|
253 |
$this->filepath = $filepath;
|
254 |
$this->filename = basename( $this->filepath );
|
255 |
|
|
|
|
|
|
|
256 |
$this->log_filepath = $this->core->archive_log->path_from_zip( $this->filepath );
|
257 |
$this->log_filename = basename( $this->log_filepath );
|
258 |
|
@@ -277,6 +386,8 @@ class Boldgrid_Backup_Admin_Archive {
|
|
277 |
$this->compressor = ! empty( $this->log['compressor'] ) ? $this->log['compressor'] : 'php_zip';
|
278 |
|
279 |
$this->view_details_url = admin_url( 'admin.php?page=boldgrid-backup-archive-details&filename=' . $this->filename );
|
|
|
|
|
280 |
}
|
281 |
|
282 |
/**
|
@@ -348,19 +459,18 @@ class Boldgrid_Backup_Admin_Archive {
|
|
348 |
* @return bool
|
349 |
*/
|
350 |
public function is_archive( $filepath ) {
|
351 |
-
$
|
352 |
-
|
353 |
-
|
354 |
-
return false;
|
355 |
-
}
|
356 |
|
357 |
foreach ( $archives as $archive ) {
|
358 |
-
if ( $
|
359 |
-
|
|
|
360 |
}
|
361 |
}
|
362 |
|
363 |
-
return
|
364 |
}
|
365 |
|
366 |
/**
|
@@ -482,6 +592,17 @@ class Boldgrid_Backup_Admin_Archive {
|
|
482 |
return $this->core->archive_log->write( $this->log );
|
483 |
}
|
484 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
485 |
/**
|
486 |
* Update an archive's timestamp based on the time in the log.
|
487 |
*
|
27 |
*/
|
28 |
private $core;
|
29 |
|
30 |
+
/**
|
31 |
+
* The basename of this archive.
|
32 |
+
*
|
33 |
+
* IE if we are looking at "backup-1234.zip", the basename is "backup-1234".
|
34 |
+
*
|
35 |
+
* @since SINCEVERSION
|
36 |
+
* @var string
|
37 |
+
*/
|
38 |
+
public $basename;
|
39 |
+
|
40 |
/**
|
41 |
* Compressor used when creating archive.
|
42 |
*
|
66 |
*/
|
67 |
public $filepath = null;
|
68 |
|
69 |
+
/**
|
70 |
+
* Whether or not this is a virtual archive.
|
71 |
+
*
|
72 |
+
* A "virtual archive" is an empty archive, like
|
73 |
+
* backup-1234.zip
|
74 |
+
* That actually refers to a folder, like
|
75 |
+
* backup-1234/
|
76 |
+
*
|
77 |
+
* @since SINCEVERSION
|
78 |
+
* @var bool
|
79 |
+
*/
|
80 |
+
public $is_virtual;
|
81 |
+
|
82 |
/**
|
83 |
* The contents of the archive's log file.
|
84 |
*
|
129 |
*/
|
130 |
public $view_details_url = '';
|
131 |
|
132 |
+
/**
|
133 |
+
* Archive id.
|
134 |
+
*
|
135 |
+
* The archive id is the archive's id as found in the boldgrid_backup_backups option.
|
136 |
+
*
|
137 |
+
* This class includes the self::set_id() method to set the actual id, but this class doesn't actually
|
138 |
+
* call that method to set the id. The id is generally set within Boldgrid\Backup\Archive\Factory.
|
139 |
+
*
|
140 |
+
* @since SINCEVERSION
|
141 |
+
* @access private
|
142 |
+
* @var int
|
143 |
+
*
|
144 |
+
* @see Boldgrid\Backup\Archive\Option for more information about the boldgrid_backup_backups option.
|
145 |
+
*/
|
146 |
+
private $id;
|
147 |
+
|
148 |
+
/**
|
149 |
+
* The archive key.
|
150 |
+
*
|
151 |
+
* When retrieving a list of archives, you'll get an array, and this is the archives location in
|
152 |
+
* the array.
|
153 |
+
*
|
154 |
+
* @since SINCEVERSION
|
155 |
+
* @access private
|
156 |
+
* @var int
|
157 |
+
*
|
158 |
+
* @see self::init() To see this property initialized.
|
159 |
+
*/
|
160 |
+
private $key;
|
161 |
+
|
162 |
/**
|
163 |
* Constructor.
|
164 |
*
|
166 |
*
|
167 |
* @param Boldgrid_Backup_Admin_Core $core Core class object.
|
168 |
*/
|
169 |
+
public function __construct( $core = null ) {
|
170 |
+
if ( empty( $core ) ) {
|
171 |
+
$core = apply_filters( 'boldgrid_backup_get_core', null );
|
172 |
+
}
|
173 |
+
|
174 |
$this->core = $core;
|
175 |
}
|
176 |
|
288 |
* @since 1.11.0
|
289 |
*/
|
290 |
public function get_filesize() {
|
291 |
+
if ( $this->is_virtual ) {
|
292 |
+
return get_dirsize( $this->core->backup_dir->get_path_to( $this->basename ) );
|
293 |
+
} else {
|
294 |
+
return $this->core->wp_filesystem->size( $this->filepath );
|
295 |
+
}
|
296 |
+
}
|
297 |
+
|
298 |
+
/**
|
299 |
+
* Get the archive id.
|
300 |
+
*
|
301 |
+
* @since SINCEVERSION
|
302 |
+
*
|
303 |
+
* @return int
|
304 |
+
*/
|
305 |
+
public function get_id() {
|
306 |
+
return $this->id;
|
307 |
+
}
|
308 |
+
|
309 |
+
/**
|
310 |
+
* Get the index of this backup.
|
311 |
+
*
|
312 |
+
* @since SINCEVERSION
|
313 |
+
*
|
314 |
+
* @return mixed Int on success, false on failure.
|
315 |
+
*/
|
316 |
+
public function get_index() {
|
317 |
+
$index = null;
|
318 |
+
|
319 |
+
$indexes = $this->core->backup_dir->get_indexed_backups();
|
320 |
+
|
321 |
+
foreach ( $indexes as $key => $filename ) {
|
322 |
+
if ( $filename === $this->filename ) {
|
323 |
+
$index = $key;
|
324 |
+
break;
|
325 |
+
}
|
326 |
+
}
|
327 |
+
|
328 |
+
return $index;
|
329 |
+
|
330 |
+
}
|
331 |
+
|
332 |
+
/**
|
333 |
+
* Get the archive key.
|
334 |
+
*
|
335 |
+
* @since SINCEVERSION
|
336 |
+
*
|
337 |
+
* @return int
|
338 |
+
*/
|
339 |
+
public function get_key() {
|
340 |
+
return $this->key;
|
341 |
}
|
342 |
|
343 |
/**
|
359 |
$this->filepath = $filepath;
|
360 |
$this->filename = basename( $this->filepath );
|
361 |
|
362 |
+
$this->basename = wp_basename( $this->filename, '.zip' );
|
363 |
+
$this->is_virtual = $this->core->backup_dir->exists( $this->basename );
|
364 |
+
|
365 |
$this->log_filepath = $this->core->archive_log->path_from_zip( $this->filepath );
|
366 |
$this->log_filename = basename( $this->log_filepath );
|
367 |
|
386 |
$this->compressor = ! empty( $this->log['compressor'] ) ? $this->log['compressor'] : 'php_zip';
|
387 |
|
388 |
$this->view_details_url = admin_url( 'admin.php?page=boldgrid-backup-archive-details&filename=' . $this->filename );
|
389 |
+
|
390 |
+
$this->key = $this->get_index();
|
391 |
}
|
392 |
|
393 |
/**
|
459 |
* @return bool
|
460 |
*/
|
461 |
public function is_archive( $filepath ) {
|
462 |
+
$is_archive = false;
|
463 |
+
$basename = wp_basename( $filepath );
|
464 |
+
$archives = $this->core->backup_dir->get_indexed_backups();
|
|
|
|
|
465 |
|
466 |
foreach ( $archives as $archive ) {
|
467 |
+
if ( $basename === $archive ) {
|
468 |
+
$is_archive = true;
|
469 |
+
break;
|
470 |
}
|
471 |
}
|
472 |
|
473 |
+
return $is_archive;
|
474 |
}
|
475 |
|
476 |
/**
|
592 |
return $this->core->archive_log->write( $this->log );
|
593 |
}
|
594 |
|
595 |
+
/**
|
596 |
+
* Set the archive id.
|
597 |
+
*
|
598 |
+
* @since SINCEVERSION
|
599 |
+
*
|
600 |
+
* @param int $id The archive id.
|
601 |
+
*/
|
602 |
+
public function set_id( $id ) {
|
603 |
+
$this->id = (int) $id;
|
604 |
+
}
|
605 |
+
|
606 |
/**
|
607 |
* Update an archive's timestamp based on the time in the log.
|
608 |
*
|
admin/class-boldgrid-backup-admin-backup-dir.php
CHANGED
@@ -230,6 +230,18 @@ class Boldgrid_Backup_Admin_Backup_Dir {
|
|
230 |
return $matches;
|
231 |
}
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
/**
|
234 |
* Get and return the backup directory path.
|
235 |
*
|
@@ -256,6 +268,49 @@ class Boldgrid_Backup_Admin_Backup_Dir {
|
|
256 |
return $this->guess_and_set();
|
257 |
}
|
258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
/**
|
260 |
* Get the directory to our logs folder.
|
261 |
*
|
230 |
return $matches;
|
231 |
}
|
232 |
|
233 |
+
/**
|
234 |
+
* Determine whether or not the given file / folder exists in the backup dir.
|
235 |
+
*
|
236 |
+
* @since SINCEVERSION
|
237 |
+
*
|
238 |
+
* @param string $filename The name of a file or folder.
|
239 |
+
* @return bool True if the file exists.
|
240 |
+
*/
|
241 |
+
public function exists( $filename ) {
|
242 |
+
return $this->core->wp_filesystem->exists( $this->get_path_to( $filename ) );
|
243 |
+
}
|
244 |
+
|
245 |
/**
|
246 |
* Get and return the backup directory path.
|
247 |
*
|
268 |
return $this->guess_and_set();
|
269 |
}
|
270 |
|
271 |
+
/**
|
272 |
+
* Get an array of indexed backups.
|
273 |
+
*
|
274 |
+
* Backups can sometimes be refered to by their index / key in the array.
|
275 |
+
*
|
276 |
+
* @since SINCEVERSION
|
277 |
+
*
|
278 |
+
* @return array
|
279 |
+
*/
|
280 |
+
public function get_indexed_backups() {
|
281 |
+
$index = array();
|
282 |
+
|
283 |
+
$dirlist = $this->dirlist();
|
284 |
+
if ( empty( $dirlist ) ) {
|
285 |
+
return array();
|
286 |
+
}
|
287 |
+
|
288 |
+
// Sort the dirlist array by "lastmodunix" descending.
|
289 |
+
uasort(
|
290 |
+
$dirlist,
|
291 |
+
function ( $a, $b ) {
|
292 |
+
if ( $a['lastmodunix'] < $b['lastmodunix'] ) {
|
293 |
+
return 1;
|
294 |
+
}
|
295 |
+
|
296 |
+
if ( $a['lastmodunix'] > $b['lastmodunix'] ) {
|
297 |
+
return - 1;
|
298 |
+
}
|
299 |
+
|
300 |
+
return 0;
|
301 |
+
}
|
302 |
+
);
|
303 |
+
|
304 |
+
// Filter the array.
|
305 |
+
foreach ( $dirlist as $fileinfo ) {
|
306 |
+
if ( $this->core->archive->is_site_archive( $fileinfo['name'] ) ) {
|
307 |
+
$index[] = $fileinfo['name'];
|
308 |
+
}
|
309 |
+
}
|
310 |
+
|
311 |
+
return $index;
|
312 |
+
}
|
313 |
+
|
314 |
/**
|
315 |
* Get the directory to our logs folder.
|
316 |
*
|
admin/class-boldgrid-backup-admin-cli.php
CHANGED
@@ -109,7 +109,7 @@ class Boldgrid_Backup_Admin_Cli {
|
|
109 |
break 2;
|
110 |
}
|
111 |
|
112 |
-
break;
|
113 |
|
114 |
case 'passthru':
|
115 |
// If output buffering is enabled, then use passthru.
|
@@ -127,13 +127,10 @@ class Boldgrid_Backup_Admin_Cli {
|
|
127 |
}
|
128 |
}
|
129 |
|
130 |
-
break;
|
131 |
|
132 |
case 'popen':
|
133 |
$handle = popen( $command, 'r' );
|
134 |
-
if ( false === $handle ) {
|
135 |
-
break;
|
136 |
-
}
|
137 |
|
138 |
$output = fread( $handle, 4096 );
|
139 |
|
@@ -152,7 +149,7 @@ class Boldgrid_Backup_Admin_Cli {
|
|
152 |
}
|
153 |
}
|
154 |
|
155 |
-
break;
|
156 |
|
157 |
case 'proc_open':
|
158 |
// Create the descriptor spec array.
|
@@ -198,7 +195,7 @@ class Boldgrid_Backup_Admin_Cli {
|
|
198 |
}
|
199 |
}
|
200 |
|
201 |
-
break;
|
202 |
|
203 |
case 'shell_exec':
|
204 |
$output = shell_exec( $command );
|
@@ -209,7 +206,7 @@ class Boldgrid_Backup_Admin_Cli {
|
|
209 |
break 2;
|
210 |
}
|
211 |
|
212 |
-
break;
|
213 |
|
214 |
case 'system':
|
215 |
// If output buffering is enabled, then use system.
|
@@ -227,7 +224,7 @@ class Boldgrid_Backup_Admin_Cli {
|
|
227 |
}
|
228 |
}
|
229 |
|
230 |
-
break;
|
231 |
|
232 |
default:
|
233 |
break;
|
109 |
break 2;
|
110 |
}
|
111 |
|
112 |
+
break 2;
|
113 |
|
114 |
case 'passthru':
|
115 |
// If output buffering is enabled, then use passthru.
|
127 |
}
|
128 |
}
|
129 |
|
130 |
+
break 2;
|
131 |
|
132 |
case 'popen':
|
133 |
$handle = popen( $command, 'r' );
|
|
|
|
|
|
|
134 |
|
135 |
$output = fread( $handle, 4096 );
|
136 |
|
149 |
}
|
150 |
}
|
151 |
|
152 |
+
break 2;
|
153 |
|
154 |
case 'proc_open':
|
155 |
// Create the descriptor spec array.
|
195 |
}
|
196 |
}
|
197 |
|
198 |
+
break 2;
|
199 |
|
200 |
case 'shell_exec':
|
201 |
$output = shell_exec( $command );
|
206 |
break 2;
|
207 |
}
|
208 |
|
209 |
+
break 2;
|
210 |
|
211 |
case 'system':
|
212 |
// If output buffering is enabled, then use system.
|
224 |
}
|
225 |
}
|
226 |
|
227 |
+
break 2;
|
228 |
|
229 |
default:
|
230 |
break;
|
admin/class-boldgrid-backup-admin-core.php
CHANGED
@@ -342,16 +342,6 @@ class Boldgrid_Backup_Admin_Core {
|
|
342 |
*/
|
343 |
public $archive_fail;
|
344 |
|
345 |
-
/**
|
346 |
-
* Whether or not we're in the middle of archiving files.
|
347 |
-
*
|
348 |
-
* This is set at the beginning and end of self::archive_files().
|
349 |
-
*
|
350 |
-
* @since 1.13.4
|
351 |
-
* @var bool
|
352 |
-
*/
|
353 |
-
public $archiving_files = false;
|
354 |
-
|
355 |
/**
|
356 |
* Db Dump.
|
357 |
*
|
@@ -553,8 +543,6 @@ class Boldgrid_Backup_Admin_Core {
|
|
553 |
*
|
554 |
* @since 1.13.5
|
555 |
* @var bool
|
556 |
-
*
|
557 |
-
* @see self::archiving_files
|
558 |
*/
|
559 |
public $restoring_archive_file = false;
|
560 |
|
@@ -1154,7 +1142,7 @@ class Boldgrid_Backup_Admin_Core {
|
|
1154 |
*
|
1155 |
* @return bool Status of the operation.
|
1156 |
*/
|
1157 |
-
private function backup_database() {
|
1158 |
/*
|
1159 |
* If we're omitting all the tables, we can skip trying to backup the
|
1160 |
* database.
|
@@ -1180,61 +1168,42 @@ class Boldgrid_Backup_Admin_Core {
|
|
1180 |
return [ 'error' => esc_html__( 'Unable to create backup, functionality test failed.', 'boldgrid_backup' ) ];
|
1181 |
}
|
1182 |
|
1183 |
-
// Get the backup directory path.
|
1184 |
-
$backup_directory = $this->backup_dir->get();
|
1185 |
-
|
1186 |
-
// Connect to the WordPress Filesystem API.
|
1187 |
-
global $wp_filesystem;
|
1188 |
-
|
1189 |
-
// Check if the backup directory is writable.
|
1190 |
-
if ( ! $wp_filesystem->is_writable( $backup_directory ) ) {
|
1191 |
-
return [
|
1192 |
-
'error' => sprintf(
|
1193 |
-
// translators: 1: Backup directory path.
|
1194 |
-
__( 'The backup directory is not writable: %1$s.', 'boldgrid-backup' ),
|
1195 |
-
$backup_directory
|
1196 |
-
),
|
1197 |
-
];
|
1198 |
-
}
|
1199 |
-
|
1200 |
// Create a file path for the dump file.
|
1201 |
-
$db_dump_filepath = $
|
1202 |
-
|
1203 |
-
// Save the file path.
|
1204 |
-
$this->db_dump_filepath = $db_dump_filepath;
|
1205 |
|
1206 |
$this->set_time_limit();
|
1207 |
|
1208 |
// Create a dump of our database.
|
1209 |
-
$status = $this->db_dump->dump( $db_dump_filepath );
|
1210 |
if ( ! empty( $status['error'] ) ) {
|
1211 |
return [ 'error' => $status['error'] ];
|
1212 |
}
|
1213 |
|
1214 |
// Ensure file is written and is over 100 bytes.
|
1215 |
-
$exists = $this->test->exists( $db_dump_filepath );
|
1216 |
if ( ! $exists ) {
|
1217 |
return [
|
1218 |
'error' => sprintf(
|
1219 |
// translators: 1: MySQL dump file path.
|
1220 |
__( 'mysqldump file does not exist: %1$s', 'boldgrid-backup' ),
|
1221 |
-
$db_dump_filepath
|
1222 |
),
|
1223 |
];
|
1224 |
}
|
1225 |
-
$dump_file_size = $this->wp_filesystem->size( $db_dump_filepath );
|
1226 |
if ( 100 > $dump_file_size ) {
|
1227 |
return [
|
1228 |
'error' => sprintf(
|
1229 |
// translators: 1: MySQL dump file path.
|
1230 |
__( 'mysqldump file was not written to: %1$s', 'boldgrid-backup' ),
|
1231 |
-
$db_dump_filepath
|
1232 |
),
|
1233 |
];
|
1234 |
}
|
1235 |
|
1236 |
// Limit file permissions to the dump file.
|
1237 |
-
$wp_filesystem->chmod( $db_dump_filepath, 0600 );
|
1238 |
|
1239 |
// Return success.
|
1240 |
return true;
|
@@ -1573,164 +1542,28 @@ class Boldgrid_Backup_Admin_Core {
|
|
1573 |
* @see Boldgrid_Backup_Admin_Core::backup_database()
|
1574 |
* @see Boldgrid_Backup_Admin_Archive::write_results_file()
|
1575 |
*
|
1576 |
-
* @param bool $save A switch to save the archive file. Default is FALSE.
|
1577 |
-
* @param bool $dryrun An optional switch to perform a dry run test.
|
1578 |
* @return array An array of archive file information.
|
1579 |
*/
|
1580 |
-
public function archive_files(
|
1581 |
-
$this->archiving_files = true;
|
1582 |
-
|
1583 |
-
$log_time = time();
|
1584 |
-
$this->logger->init( 'archive-' . $log_time . '.log' );
|
1585 |
-
$this->logger->add( 'Backup process initialized.' );
|
1586 |
-
|
1587 |
-
$this->utility->bump_memory_limit( '1G' );
|
1588 |
-
|
1589 |
-
$this->pre_auto_update = 'pre_auto_update' === current_filter();
|
1590 |
-
|
1591 |
-
/*
|
1592 |
-
* A scheduled backup is a backup triggered by the user's Settings > Backup Schedule. If the user clicked
|
1593 |
-
* "Backup Site Now" or this is a backup before an auto update occurs, this is not a scheduled backup.
|
1594 |
-
*/
|
1595 |
-
$this->is_scheduled_backup = $this->doing_cron && ! $this->pre_auto_update;
|
1596 |
-
|
1597 |
-
Boldgrid_Backup_Admin_In_Progress_Data::set_args(
|
1598 |
-
[ 'status' => esc_html__( 'Initializing backup', 'boldgrid-backup' ) ]
|
1599 |
-
);
|
1600 |
-
|
1601 |
-
/**
|
1602 |
-
* Actions to take before any archiving begins.
|
1603 |
-
*
|
1604 |
-
* @since 1.5.2
|
1605 |
-
*/
|
1606 |
-
do_action( 'boldgrid_backup_archive_files_init' );
|
1607 |
-
|
1608 |
-
if ( $save && ! $dryrun ) {
|
1609 |
-
$this->in_progress->set();
|
1610 |
-
}
|
1611 |
-
|
1612 |
-
/*
|
1613 |
-
* If this is a scheduled backup and no location is selected to save the
|
1614 |
-
* backup to, abort.
|
1615 |
-
*
|
1616 |
-
* While we could prevent he user from setting this up in the first place,
|
1617 |
-
* at the moment the settings page saves all settings. So, if the user
|
1618 |
-
* wanted to change their retention settings but did not want to schedule
|
1619 |
-
* backups, validating storage locations would be problematic.
|
1620 |
-
*/
|
1621 |
-
if ( $this->is_scheduled_backup && ! $this->remote->any_enabled() ) {
|
1622 |
-
$error = esc_html__( 'No backup locations selected! While we could create a backup archive, you have not selected where the backup archive should be saved. Please choose a storage location in your settings for where to save this backup archive.', 'boldgrid-backup' );
|
1623 |
-
$this->archive_fail->schedule_fail_email( $error );
|
1624 |
-
$this->logger->add( $error );
|
1625 |
-
return [ 'error' => $error ];
|
1626 |
-
}
|
1627 |
-
|
1628 |
-
// Check if functional.
|
1629 |
-
if ( ! $this->test->run_functionality_tests() ) {
|
1630 |
-
// Display an error notice, if not already on the test page.
|
1631 |
-
if ( ! isset( $_GET['page'] ) || 'boldgrid-backup-test' !== $_GET['page'] ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
|
1632 |
-
// Display an error notice.
|
1633 |
-
$this->notice->functionality_fail_notice();
|
1634 |
-
}
|
1635 |
-
$error = __( 'Functionality tests fail.', 'boldgrid-backup' );
|
1636 |
-
$this->logger->add( $error );
|
1637 |
-
return [ 'error' => $error ];
|
1638 |
-
}
|
1639 |
-
|
1640 |
-
// Close any PHP session, so that another session can open during the backup operation.
|
1641 |
-
session_write_close();
|
1642 |
-
|
1643 |
-
/*
|
1644 |
-
* Initialize return array and add "compressor" and "save" keys.
|
1645 |
-
* Since 1.6.0, the folder include and exclude settings below are
|
1646 |
-
* for informational purposes only. This array cannot be filtered to
|
1647 |
-
* adjust which folders are actually included / excluded.
|
1648 |
-
*/
|
1649 |
-
$info = [
|
1650 |
-
'mode' => 'backup',
|
1651 |
-
'dryrun' => $dryrun,
|
1652 |
-
'compressor' => null,
|
1653 |
-
'filesize' => 0,
|
1654 |
-
'save' => $save,
|
1655 |
-
'total_size' => 0,
|
1656 |
-
'folder_include' => $this->folder_exclusion->from_settings( 'include' ),
|
1657 |
-
'folder_exclude' => $this->folder_exclusion->from_settings( 'exclude' ),
|
1658 |
-
'table_exclude' => $this->db_omit->get_excluded_tables(),
|
1659 |
-
'title' => ! empty( $_POST['backup_title'] ) ? stripslashes( $_POST['backup_title'] ) : null, // phpcs:ignore WordPress.CSRF.NonceVerification,WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine
|
1660 |
-
'description' => ! empty( $_POST['backup_description'] ) ? stripslashes( $_POST['backup_description'] ) : null, // phpcs:ignore WordPress.CSRF.NonceVerification,WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine
|
1661 |
-
// Information used for the emergency restoration process.
|
1662 |
-
'ABSPATH' => ABSPATH,
|
1663 |
-
'backup_id' => $this->get_backup_identifier(),
|
1664 |
-
'siteurl' => site_url(),
|
1665 |
-
'timestamp' => time(), // @todo Is this a duplicate value? $info['lastmodunix'] is added below.
|
1666 |
-
// Environment information.
|
1667 |
-
'gateway_interface' => getenv( 'GATEWAY_INTERFACE' ),
|
1668 |
-
'http_host' => getenv( 'HTTP_HOST' ),
|
1669 |
-
'php_sapi_name' => php_sapi_name(),
|
1670 |
-
'php_uname' => php_uname(),
|
1671 |
-
'php_version' => phpversion(),
|
1672 |
-
'server_addr' => getenv( 'SERVER_ADDR' ) ? getenv( 'SERVER_ADDR' ) : getenv( 'LOCAL_ADDR' ),
|
1673 |
-
'server_name' => getenv( 'SERVER_NAME' ),
|
1674 |
-
'server_protocol' => getenv( 'SERVER_PROTOCOL' ),
|
1675 |
-
'server_software' => getenv( 'SERVER_SOFTWARE' ),
|
1676 |
-
'uid' => getmyuid(),
|
1677 |
-
'username' => get_current_user(),
|
1678 |
-
'encrypt_db' => false,
|
1679 |
-
];
|
1680 |
-
|
1681 |
-
// Determine how this backup was triggered.
|
1682 |
-
if ( $this->pre_auto_update ) {
|
1683 |
-
$info['trigger'] = esc_html__( 'Auto update', 'boldgrid-bakcup' );
|
1684 |
-
} elseif ( $this->doing_ajax && is_user_logged_in() ) {
|
1685 |
-
$current_user = wp_get_current_user();
|
1686 |
-
$info['trigger'] = $current_user->user_login . ' (' . $current_user->user_email . ')';
|
1687 |
-
} elseif ( $this->doing_wp_cron ) {
|
1688 |
-
$info['trigger'] = 'WP cron';
|
1689 |
-
} elseif ( $this->doing_cron ) {
|
1690 |
-
$info['trigger'] = 'Cron';
|
1691 |
-
} else {
|
1692 |
-
$info['trigger'] = esc_html__( 'Unknown', 'boldgrid-backup' );
|
1693 |
-
}
|
1694 |
-
|
1695 |
-
$info['compressor'] = $this->compressors->get();
|
1696 |
-
|
1697 |
-
// If there is no available compressor, then fail.
|
1698 |
-
if ( null === $info['compressor'] ) {
|
1699 |
-
return [ 'error' => 'No available compressor.' ];
|
1700 |
-
}
|
1701 |
-
|
1702 |
-
// Cleanup. Enforce retention and delete orphaned files.
|
1703 |
-
$this->enforce_retention();
|
1704 |
-
$orphan_cleanup = new Boldgrid\Backup\Admin\Orphan\Cleanup();
|
1705 |
-
$orphan_cleanup->run();
|
1706 |
-
|
1707 |
-
// Prevent this script from dying.
|
1708 |
-
ignore_user_abort( true );
|
1709 |
-
|
1710 |
-
// Start timer.
|
1711 |
-
$time_start = microtime( true );
|
1712 |
-
|
1713 |
// Backup the database, if saving an archive file and not a dry run.
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
$this->logger->add_memory();
|
1718 |
|
1719 |
-
|
1720 |
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
}
|
1730 |
}
|
1731 |
|
1732 |
// Keep track of how long the site was paused for / the time to backup the database.
|
1733 |
-
$db_time_stop = microtime( true );
|
1734 |
|
1735 |
// Get the file list.
|
1736 |
$filelist = $this->get_filtered_filelist( ABSPATH );
|
@@ -1738,16 +1571,6 @@ class Boldgrid_Backup_Admin_Core {
|
|
1738 |
// Initialize total_size.
|
1739 |
$info['total_size'] = 0;
|
1740 |
|
1741 |
-
// If not saving, then just return info.
|
1742 |
-
if ( ! $save ) {
|
1743 |
-
foreach ( $filelist as $fileinfo ) {
|
1744 |
-
// Add the file size to the total.
|
1745 |
-
$info['total_size'] += $fileinfo[2];
|
1746 |
-
}
|
1747 |
-
|
1748 |
-
return $info;
|
1749 |
-
}
|
1750 |
-
|
1751 |
// Get the backup directory path.
|
1752 |
$backup_directory = $this->backup_dir->get();
|
1753 |
|
@@ -1891,107 +1714,15 @@ class Boldgrid_Backup_Admin_Core {
|
|
1891 |
|
1892 |
$info['lastmodunix'] = $this->wp_filesystem->mtime( $info['filepath'] );
|
1893 |
|
1894 |
-
|
1895 |
-
|
1896 |
-
$this->wp_filesystem->chmod( $info['filepath'], 0600 );
|
1897 |
-
|
1898 |
-
// Add some statistics to the return.
|
1899 |
-
$info['filesize'] = $this->wp_filesystem->size( $info['filepath'] );
|
1900 |
-
|
1901 |
-
// Delete the temporary database dump file.
|
1902 |
-
$this->wp_filesystem->delete( $this->db_dump_filepath, false, 'f' );
|
1903 |
-
}
|
1904 |
-
|
1905 |
-
// Stop timer.
|
1906 |
-
$time_stop = microtime( true );
|
1907 |
-
|
1908 |
-
// Calculate duration.
|
1909 |
-
$info['duration'] = number_format( ( $time_stop - $time_start ), 2, '.', '' );
|
1910 |
-
$info['db_duration'] = number_format( ( $db_time_stop - $time_start ), 2, '.', '' );
|
1911 |
-
$info['db_filename'] = basename( $this->db_dump_filepath );
|
1912 |
-
|
1913 |
-
/**
|
1914 |
-
* Actions to take after a backup has been created.
|
1915 |
-
*
|
1916 |
-
* At priority 10, we add to the jobs queue the tasks of uploading this backup to our remote
|
1917 |
-
* storage providers. Each remote storage provider individually hooks into this action and adds
|
1918 |
-
* a job to the queue.
|
1919 |
-
*
|
1920 |
-
* At priority 100, we add a job to delete the local backup file if the user does
|
1921 |
-
* not want to keep it.
|
1922 |
-
*
|
1923 |
-
* At priority 200, we send an email to the user with a summary of the
|
1924 |
-
* backup and the jobs.
|
1925 |
-
*
|
1926 |
-
* @since 1.5.2
|
1927 |
-
*
|
1928 |
-
* @param array $info {
|
1929 |
-
* An array of info about the backup just created.
|
1930 |
-
*
|
1931 |
-
* @type string $mode backup
|
1932 |
-
* @type bool $dryrun
|
1933 |
-
* @type string $compressor pcl_zip
|
1934 |
-
* @type int $filesize 30992482
|
1935 |
-
* @type bool $save
|
1936 |
-
* @type int $total_size
|
1937 |
-
* @type string $filepath C:\file.zip
|
1938 |
-
* @type int $lastmodunix 1506602959
|
1939 |
-
* @type int $duration 57.08
|
1940 |
-
* @type int $db_duration 0.35
|
1941 |
-
* @type bool $mail_success
|
1942 |
-
* }
|
1943 |
-
*/
|
1944 |
-
do_action( 'boldgrid_backup_post_archive_files', $info );
|
1945 |
-
|
1946 |
-
/*
|
1947 |
-
* Send an email to the user, RIGHT NOW.
|
1948 |
-
*
|
1949 |
-
* Only send an email to the user now IF they are manually creating a backup. If this backup
|
1950 |
-
* was created during a scheduled backup, the user will get an email from the jobs queue.
|
1951 |
-
* Scheduled backups receive email notifications from the jobs queue because that email will
|
1952 |
-
* not only include the standard info about the backup (which we're sending now), it will
|
1953 |
-
* also include info about other jobs that were run (such as uploading the backup remotely).
|
1954 |
-
*/
|
1955 |
-
if ( $this->email->user_wants_notification( 'backup' ) && ! $this->is_scheduled_backup ) {
|
1956 |
-
$this->logger->add( 'Starting sending of email...' );
|
1957 |
-
|
1958 |
-
$email_parts = $this->email->post_archive_parts( $info );
|
1959 |
-
$email_body = $email_parts['body']['main'] . $email_parts['body']['signature'];
|
1960 |
-
$info['mail_success'] = $this->email->send( $email_parts['subject'], $email_body );
|
1961 |
-
|
1962 |
-
$this->logger->add( 'Sending of email complete! Status: ' . $info['mail_success'] );
|
1963 |
-
}
|
1964 |
-
|
1965 |
-
// If not a dry-run test, update the last backup option and enforce retention.
|
1966 |
-
if ( ! $dryrun ) {
|
1967 |
-
// Update WP option for "boldgrid_backup_last_backup".
|
1968 |
-
update_site_option( 'boldgrid_backup_last_backup', time() );
|
1969 |
-
|
1970 |
-
$this->archive_log->write( $info );
|
1971 |
-
|
1972 |
-
// Enforce retention setting.
|
1973 |
-
$this->enforce_retention();
|
1974 |
-
|
1975 |
-
update_option( 'boldgrid_backup_latest_backup', $info );
|
1976 |
-
}
|
1977 |
-
|
1978 |
-
// Actions to take if we're creating a full site backup.
|
1979 |
-
if ( ! $dryrun && $this->archiver_utility->is_full_backup() ) {
|
1980 |
-
$this->archive->write_results_file( $info );
|
1981 |
-
}
|
1982 |
-
|
1983 |
-
Boldgrid_Backup_Admin_In_Progress_Data::set_args( [ 'status' => esc_html__( 'Backup complete!', 'boldgrid-backup' ) ] );
|
1984 |
|
1985 |
-
|
1986 |
-
|
1987 |
-
}
|
1988 |
|
1989 |
-
|
1990 |
-
$this->
|
1991 |
|
1992 |
-
$this->archiving_files = false;
|
1993 |
-
|
1994 |
-
// Return the array of archive information.
|
1995 |
return $info;
|
1996 |
}
|
1997 |
|
@@ -2068,6 +1799,9 @@ class Boldgrid_Backup_Admin_Core {
|
|
2068 |
continue;
|
2069 |
}
|
2070 |
|
|
|
|
|
|
|
2071 |
// Create the return array.
|
2072 |
// @todo Should we use the data and time from the filename, or rely on lastmodunix?
|
2073 |
$archive_files[ $index ] = [
|
@@ -2076,7 +1810,7 @@ class Boldgrid_Backup_Admin_Core {
|
|
2076 |
'filedate' => get_date_from_gmt(
|
2077 |
date( 'Y-m-d H:i:s', $fileinfo['lastmodunix'] ), 'n/j/Y g:i A'
|
2078 |
),
|
2079 |
-
'filesize' => $
|
2080 |
'lastmodunix' => $fileinfo['lastmodunix'],
|
2081 |
];
|
2082 |
|
@@ -2299,10 +2033,16 @@ class Boldgrid_Backup_Admin_Core {
|
|
2299 |
*
|
2300 |
* @see https://codex.wordpress.org/Function_Reference/flush_rewrite_rules
|
2301 |
*
|
2302 |
-
* @param
|
|
|
|
|
|
|
|
|
|
|
|
|
2303 |
* @return array An array of archive file information.
|
2304 |
*/
|
2305 |
-
public function restore_archive_file( $dryrun = false ) {
|
2306 |
$this->restoring_archive_file = true;
|
2307 |
|
2308 |
$this->logger->init( 'restore-' . time() . '.log' );
|
@@ -2314,6 +2054,14 @@ class Boldgrid_Backup_Admin_Core {
|
|
2314 |
|
2315 |
$restore_ok = true;
|
2316 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2317 |
// If a restoration was not requested, then abort.
|
2318 |
if ( empty( $_POST['restore_now'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
|
2319 |
$error_message = esc_html__( 'Invalid restore_now value.', 'boldgrid-backup' );
|
@@ -2321,6 +2069,12 @@ class Boldgrid_Backup_Admin_Core {
|
|
2321 |
return [ 'error' => $error_message ];
|
2322 |
}
|
2323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2324 |
// Check if functional.
|
2325 |
if ( ! $this->test->run_functionality_tests() ) {
|
2326 |
$error_message = esc_html__( 'Functionality tests fail.', 'boldgrid-backup' );
|
@@ -2328,12 +2082,15 @@ class Boldgrid_Backup_Admin_Core {
|
|
2328 |
return [ 'error' => $error_message ];
|
2329 |
}
|
2330 |
|
2331 |
-
|
2332 |
-
|
2333 |
-
|
2334 |
-
|
2335 |
-
|
2336 |
-
|
|
|
|
|
|
|
2337 |
$archive_key = (int) $_POST['archive_key'];
|
2338 |
} else {
|
2339 |
$error_message = esc_html__( 'Invalid key for the selected archive file.', 'boldgrid-backup' );
|
@@ -2341,8 +2098,15 @@ class Boldgrid_Backup_Admin_Core {
|
|
2341 |
return [ 'error' => $error_message ];
|
2342 |
}
|
2343 |
|
2344 |
-
|
2345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2346 |
$archive_filename = sanitize_file_name( $_POST['archive_filename'] );
|
2347 |
} else {
|
2348 |
$error_message = esc_html__( 'Invalid filename for the selected archive file.', 'boldgrid-backup' );
|
@@ -2633,7 +2397,10 @@ class Boldgrid_Backup_Admin_Core {
|
|
2633 |
$this->is_archiving_update_protection = ! empty( $_POST['is_updating'] ) &&
|
2634 |
'true' === $_POST['is_updating'];
|
2635 |
|
2636 |
-
$
|
|
|
|
|
|
|
2637 |
|
2638 |
// If there were any errors encountered during the backup, save them to the In Progress data.
|
2639 |
if ( ! empty( $archive_info['error'] ) ) {
|
@@ -2966,7 +2733,11 @@ class Boldgrid_Backup_Admin_Core {
|
|
2966 |
wp_send_json_error();
|
2967 |
}
|
2968 |
|
2969 |
-
|
|
|
|
|
|
|
|
|
2970 |
|
2971 |
/*
|
2972 |
* Generate success message and add as a user notice.
|
@@ -3029,7 +2800,8 @@ class Boldgrid_Backup_Admin_Core {
|
|
3029 |
}
|
3030 |
|
3031 |
// Perform the backup operation.
|
3032 |
-
$
|
|
|
3033 |
}
|
3034 |
|
3035 |
/**
|
342 |
*/
|
343 |
public $archive_fail;
|
344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
/**
|
346 |
* Db Dump.
|
347 |
*
|
543 |
*
|
544 |
* @since 1.13.5
|
545 |
* @var bool
|
|
|
|
|
546 |
*/
|
547 |
public $restoring_archive_file = false;
|
548 |
|
1142 |
*
|
1143 |
* @return bool Status of the operation.
|
1144 |
*/
|
1145 |
+
private function backup_database( &$info ) {
|
1146 |
/*
|
1147 |
* If we're omitting all the tables, we can skip trying to backup the
|
1148 |
* database.
|
1168 |
return [ 'error' => esc_html__( 'Unable to create backup, functionality test failed.', 'boldgrid_backup' ) ];
|
1169 |
}
|
1170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1171 |
// Create a file path for the dump file.
|
1172 |
+
$this->db_dump_filepath = $this->backup_dir->get_path_to( DB_NAME . '.' . date( 'Ymd-His' ) . '.sql' );
|
1173 |
+
$info['db_filename'] = basename( $this->db_dump_filepath );
|
|
|
|
|
1174 |
|
1175 |
$this->set_time_limit();
|
1176 |
|
1177 |
// Create a dump of our database.
|
1178 |
+
$status = $this->db_dump->dump( $this->db_dump_filepath );
|
1179 |
if ( ! empty( $status['error'] ) ) {
|
1180 |
return [ 'error' => $status['error'] ];
|
1181 |
}
|
1182 |
|
1183 |
// Ensure file is written and is over 100 bytes.
|
1184 |
+
$exists = $this->test->exists( $this->db_dump_filepath );
|
1185 |
if ( ! $exists ) {
|
1186 |
return [
|
1187 |
'error' => sprintf(
|
1188 |
// translators: 1: MySQL dump file path.
|
1189 |
__( 'mysqldump file does not exist: %1$s', 'boldgrid-backup' ),
|
1190 |
+
$this->db_dump_filepath
|
1191 |
),
|
1192 |
];
|
1193 |
}
|
1194 |
+
$dump_file_size = $this->wp_filesystem->size( $this->db_dump_filepath );
|
1195 |
if ( 100 > $dump_file_size ) {
|
1196 |
return [
|
1197 |
'error' => sprintf(
|
1198 |
// translators: 1: MySQL dump file path.
|
1199 |
__( 'mysqldump file was not written to: %1$s', 'boldgrid-backup' ),
|
1200 |
+
$this->db_dump_filepath
|
1201 |
),
|
1202 |
];
|
1203 |
}
|
1204 |
|
1205 |
// Limit file permissions to the dump file.
|
1206 |
+
$this->wp_filesystem->chmod( $this->db_dump_filepath, 0600 );
|
1207 |
|
1208 |
// Return success.
|
1209 |
return true;
|
1542 |
* @see Boldgrid_Backup_Admin_Core::backup_database()
|
1543 |
* @see Boldgrid_Backup_Admin_Archive::write_results_file()
|
1544 |
*
|
|
|
|
|
1545 |
* @return array An array of archive file information.
|
1546 |
*/
|
1547 |
+
public function archive_files( &$info ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1548 |
// Backup the database, if saving an archive file and not a dry run.
|
1549 |
+
$this->logger->add_separator();
|
1550 |
+
$this->logger->add( 'Starting dump of database...' );
|
1551 |
+
$this->logger->add_memory();
|
|
|
1552 |
|
1553 |
+
$status = $this->backup_database( $info );
|
1554 |
|
1555 |
+
$this->logger->add( 'Dump of database complete! $status = ' . print_r( $status, 1 ) ); // phpcs:ignore
|
1556 |
+
$this->logger->add_memory();
|
1557 |
+
$this->logger->add_separator();
|
1558 |
|
1559 |
+
if ( false === $status || ! empty( $status['error'] ) ) {
|
1560 |
+
$error = ! empty( $status['error'] ) ? $status['error'] : __( 'An unknown error occurred when backing up the database.', 'boldgrid-backup' );
|
1561 |
+
$this->logger->add( $error );
|
1562 |
+
return array( 'error' => $error );
|
|
|
1563 |
}
|
1564 |
|
1565 |
// Keep track of how long the site was paused for / the time to backup the database.
|
1566 |
+
$info['db_time_stop'] = microtime( true );
|
1567 |
|
1568 |
// Get the file list.
|
1569 |
$filelist = $this->get_filtered_filelist( ABSPATH );
|
1571 |
// Initialize total_size.
|
1572 |
$info['total_size'] = 0;
|
1573 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1574 |
// Get the backup directory path.
|
1575 |
$backup_directory = $this->backup_dir->get();
|
1576 |
|
1714 |
|
1715 |
$info['lastmodunix'] = $this->wp_filesystem->mtime( $info['filepath'] );
|
1716 |
|
1717 |
+
// Modify the archive file permissions to help protect from public access.
|
1718 |
+
$this->wp_filesystem->chmod( $info['filepath'], 0600 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1719 |
|
1720 |
+
// Add some statistics to the return.
|
1721 |
+
$info['filesize'] = $this->wp_filesystem->size( $info['filepath'] );
|
|
|
1722 |
|
1723 |
+
// Delete the temporary database dump file.
|
1724 |
+
$this->wp_filesystem->delete( $this->db_dump_filepath, false, 'f' );
|
1725 |
|
|
|
|
|
|
|
1726 |
return $info;
|
1727 |
}
|
1728 |
|
1799 |
continue;
|
1800 |
}
|
1801 |
|
1802 |
+
$archive = new Boldgrid_Backup_Admin_Archive();
|
1803 |
+
$archive->init_by_filename( $fileinfo['name'] );
|
1804 |
+
|
1805 |
// Create the return array.
|
1806 |
// @todo Should we use the data and time from the filename, or rely on lastmodunix?
|
1807 |
$archive_files[ $index ] = [
|
1810 |
'filedate' => get_date_from_gmt(
|
1811 |
date( 'Y-m-d H:i:s', $fileinfo['lastmodunix'] ), 'n/j/Y g:i A'
|
1812 |
),
|
1813 |
+
'filesize' => $archive->get_filesize(),
|
1814 |
'lastmodunix' => $fileinfo['lastmodunix'],
|
1815 |
];
|
1816 |
|
2033 |
*
|
2034 |
* @see https://codex.wordpress.org/Function_Reference/flush_rewrite_rules
|
2035 |
*
|
2036 |
+
* @param bool $dryrun An optional switch to perform a dry run test.
|
2037 |
+
* @param array $args {
|
2038 |
+
* An optional array of args.
|
2039 |
+
*
|
2040 |
+
* @type int $archive_key An archive key.
|
2041 |
+
* @type string $archive_filename An archive filename.
|
2042 |
+
* }
|
2043 |
* @return array An array of archive file information.
|
2044 |
*/
|
2045 |
+
public function restore_archive_file( $dryrun = false, $args = [] ) {
|
2046 |
$this->restoring_archive_file = true;
|
2047 |
|
2048 |
$this->logger->init( 'restore-' . time() . '.log' );
|
2054 |
|
2055 |
$restore_ok = true;
|
2056 |
|
2057 |
+
/*
|
2058 |
+
* This is a generic method to restore an archive. Do not assume the request to restore is coming
|
2059 |
+
* from a user directly via $_POST.
|
2060 |
+
*
|
2061 |
+
* Refer to check_ajax_referer usage below to help protect ajax requests.
|
2062 |
+
*/
|
2063 |
+
$is_post_restore = isset( $_POST['action'] ) && 'boldgrid_backup_restore_archive' === $_POST['action']; // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
|
2064 |
+
|
2065 |
// If a restoration was not requested, then abort.
|
2066 |
if ( empty( $_POST['restore_now'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
|
2067 |
$error_message = esc_html__( 'Invalid restore_now value.', 'boldgrid-backup' );
|
2069 |
return [ 'error' => $error_message ];
|
2070 |
}
|
2071 |
|
2072 |
+
if ( $is_post_restore && ! check_ajax_referer( 'boldgrid_backup_restore_archive', 'archive_auth', false ) ) {
|
2073 |
+
$error_message = esc_html__( 'Invalid nonce.', 'boldgrid-backup' );
|
2074 |
+
$this->logger->add( $error_message );
|
2075 |
+
return [ 'error' => $error_message ];
|
2076 |
+
}
|
2077 |
+
|
2078 |
// Check if functional.
|
2079 |
if ( ! $this->test->run_functionality_tests() ) {
|
2080 |
$error_message = esc_html__( 'Functionality tests fail.', 'boldgrid-backup' );
|
2082 |
return [ 'error' => $error_message ];
|
2083 |
}
|
2084 |
|
2085 |
+
/*
|
2086 |
+
* Get our archive key.
|
2087 |
+
*
|
2088 |
+
* It can be passed in via $args or $_POST.
|
2089 |
+
*/
|
2090 |
+
$archive_key = false;
|
2091 |
+
if ( isset( $args['archive_key'] ) ) {
|
2092 |
+
$archive_key = (int) $args['archive_key'];
|
2093 |
+
} elseif ( isset( $_POST['archive_key'] ) && is_numeric( $_POST['archive_key'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
|
2094 |
$archive_key = (int) $_POST['archive_key'];
|
2095 |
} else {
|
2096 |
$error_message = esc_html__( 'Invalid key for the selected archive file.', 'boldgrid-backup' );
|
2098 |
return [ 'error' => $error_message ];
|
2099 |
}
|
2100 |
|
2101 |
+
/*
|
2102 |
+
* Get our archive filename.
|
2103 |
+
*
|
2104 |
+
* It can be passed in via $args or $_POST.
|
2105 |
+
*/
|
2106 |
+
$archive_filename = false;
|
2107 |
+
if ( ! empty( $args['archive_filename'] ) ) {
|
2108 |
+
$archive_filename = sanitize_file_name( $args['archive_filename'] );
|
2109 |
+
} elseif ( ! empty( $_POST['archive_filename'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
|
2110 |
$archive_filename = sanitize_file_name( $_POST['archive_filename'] );
|
2111 |
} else {
|
2112 |
$error_message = esc_html__( 'Invalid filename for the selected archive file.', 'boldgrid-backup' );
|
2397 |
$this->is_archiving_update_protection = ! empty( $_POST['is_updating'] ) &&
|
2398 |
'true' === $_POST['is_updating'];
|
2399 |
|
2400 |
+
$archiver = new Boldgrid_Backup_Archiver();
|
2401 |
+
$archiver->run();
|
2402 |
+
|
2403 |
+
$archive_info = $archiver->get_info();
|
2404 |
|
2405 |
// If there were any errors encountered during the backup, save them to the In Progress data.
|
2406 |
if ( ! empty( $archive_info['error'] ) ) {
|
2733 |
wp_send_json_error();
|
2734 |
}
|
2735 |
|
2736 |
+
// Do the actual restoration.
|
2737 |
+
$restorer = new Boldgrid_Backup_Restorer();
|
2738 |
+
$restorer->run();
|
2739 |
+
|
2740 |
+
$archive_info = $restorer->get_info();
|
2741 |
|
2742 |
/*
|
2743 |
* Generate success message and add as a user notice.
|
2800 |
}
|
2801 |
|
2802 |
// Perform the backup operation.
|
2803 |
+
$archiver = new Boldgrid_Backup_Archiver();
|
2804 |
+
$archiver->run();
|
2805 |
}
|
2806 |
|
2807 |
/**
|
admin/class-boldgrid-backup-admin-cron.php
CHANGED
@@ -1080,7 +1080,10 @@ class Boldgrid_Backup_Admin_Cron {
|
|
1080 |
/**
|
1081 |
* Hook into "wp_ajax_nopriv_boldgrid_backup_run_backup" and generate backup.
|
1082 |
*
|
1083 |
-
*
|
|
|
|
|
|
|
1084 |
*
|
1085 |
* @see Boldgrid_Backup_Admin_Cron::is_valid_call()
|
1086 |
*
|
@@ -1091,9 +1094,10 @@ class Boldgrid_Backup_Admin_Cron {
|
|
1091 |
wp_die( esc_html__( 'Error: Invalid request.', 'boldgrid-backup' ) );
|
1092 |
}
|
1093 |
|
1094 |
-
$
|
|
|
1095 |
|
1096 |
-
return $
|
1097 |
}
|
1098 |
|
1099 |
/**
|
@@ -1106,16 +1110,49 @@ class Boldgrid_Backup_Admin_Cron {
|
|
1106 |
* @return array An array of archive file information.
|
1107 |
*/
|
1108 |
public function restore() {
|
|
|
|
|
|
|
|
|
1109 |
if ( ! $this->is_valid_call() ) {
|
1110 |
wp_die( esc_html__( 'Error: Invalid request.', 'boldgrid-backup' ) );
|
1111 |
}
|
1112 |
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
|
|
1116 |
|
1117 |
-
|
1118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1119 |
}
|
1120 |
|
1121 |
return $archive_info;
|
1080 |
/**
|
1081 |
* Hook into "wp_ajax_nopriv_boldgrid_backup_run_backup" and generate backup.
|
1082 |
*
|
1083 |
+
* A scheduled backup (via cron) will call a url which ultimately triggers this method to be ran
|
1084 |
+
* to backup the site.
|
1085 |
+
*
|
1086 |
+
* @since 1.6.1
|
1087 |
*
|
1088 |
* @see Boldgrid_Backup_Admin_Cron::is_valid_call()
|
1089 |
*
|
1094 |
wp_die( esc_html__( 'Error: Invalid request.', 'boldgrid-backup' ) );
|
1095 |
}
|
1096 |
|
1097 |
+
$archiver = new Boldgrid_Backup_Archiver();
|
1098 |
+
$archiver->run();
|
1099 |
|
1100 |
+
return $archiver->get_info();
|
1101 |
}
|
1102 |
|
1103 |
/**
|
1110 |
* @return array An array of archive file information.
|
1111 |
*/
|
1112 |
public function restore() {
|
1113 |
+
// phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification
|
1114 |
+
$task_id = ! empty( $_POST['task_id'] ) ? $_POST['task_id'] : null;
|
1115 |
+
// phpcs:enable WordPress.CSRF.NonceVerification.NoNonceVerification
|
1116 |
+
|
1117 |
if ( ! $this->is_valid_call() ) {
|
1118 |
wp_die( esc_html__( 'Error: Invalid request.', 'boldgrid-backup' ) );
|
1119 |
}
|
1120 |
|
1121 |
+
// A default error to return if restoration is not started in conditionals below.
|
1122 |
+
$archive_info = [
|
1123 |
+
'error' => __( 'Unknown error attempting restore.', 'boldgrid-backup' ),
|
1124 |
+
];
|
1125 |
|
1126 |
+
/*
|
1127 |
+
* Restore an archive.
|
1128 |
+
*
|
1129 |
+
* As of @SINCEVERSION, archives can be restored via REST. If we have a task, we're handling
|
1130 |
+
* a REST restore. Otherwise, we're handling a standard restore request.
|
1131 |
+
*/
|
1132 |
+
if ( ! empty( $task_id ) ) {
|
1133 |
+
$task = new Boldgrid_Backup_Admin_Task();
|
1134 |
+
$task_found = $task->init_by_id( $task_id );
|
1135 |
+
$restorer = new Boldgrid_Backup_Restorer();
|
1136 |
+
|
1137 |
+
if ( ! $task_found ) {
|
1138 |
+
$archive_info = [
|
1139 |
+
'error' => __( 'Resore error: Unable to instantiate task.', 'boldgrid-backup' ),
|
1140 |
+
];
|
1141 |
+
} elseif ( false !== $task->get_data( 'url' ) ) {
|
1142 |
+
$restorer->run_by_url( $task->get_data( 'url' ) );
|
1143 |
+
$archive_info = $restorer->get_info();
|
1144 |
+
} elseif ( false !== $task->get_data( 'backup_id' ) ) {
|
1145 |
+
$restorer->run_by_id( $task->get_data( 'backup_id' ) );
|
1146 |
+
$archive_info = $restorer->get_info();
|
1147 |
+
} else {
|
1148 |
+
$archive_info = [
|
1149 |
+
'error' => __( 'Restore error: Missing url / id.', 'boldgrid-backup' ),
|
1150 |
+
];
|
1151 |
+
}
|
1152 |
+
} else {
|
1153 |
+
if ( $this->core->restore_helper->prepare_restore() ) {
|
1154 |
+
$archive_info = $this->core->restore_archive_file();
|
1155 |
+
}
|
1156 |
}
|
1157 |
|
1158 |
return $archive_info;
|
admin/class-boldgrid-backup-admin-db-dump.php
CHANGED
@@ -53,32 +53,22 @@ class Boldgrid_Backup_Admin_Db_Dump {
|
|
53 |
public function dump( $file ) {
|
54 |
global $wpdb;
|
55 |
|
56 |
-
$
|
57 |
-
|
|
|
58 |
return array( 'error' => esc_html__( 'No tables selected to backup.', 'boldgrid-backup' ) );
|
59 |
}
|
60 |
|
61 |
-
/*
|
62 |
-
* Create separate arrays for the "tables" and "views" that we want to dump.
|
63 |
-
*
|
64 |
-
* When dumping our database, we need to send a separate list of tables to dump, and a separate
|
65 |
-
* one for views to dump. $include_tables is an array possibly containing both tables and views,
|
66 |
-
* so we'll split it up now.
|
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(
|
75 |
array(
|
76 |
'status' => __( 'Backing up database...', 'boldgrid-backup' ),
|
77 |
-
'tables' => $
|
78 |
'step' => 1,
|
79 |
)
|
80 |
);
|
81 |
|
|
|
|
|
82 |
/**
|
83 |
* Take action before a database is dumped.
|
84 |
*
|
@@ -87,8 +77,8 @@ class Boldgrid_Backup_Admin_Db_Dump {
|
|
87 |
do_action( 'boldgrid_backup_pre_dump', $file );
|
88 |
|
89 |
$settings = array(
|
90 |
-
'include-tables' => $
|
91 |
-
'include-views' => $
|
92 |
'add-drop-table' => true,
|
93 |
'no-autocommit' => false,
|
94 |
);
|
@@ -107,7 +97,7 @@ class Boldgrid_Backup_Admin_Db_Dump {
|
|
107 |
$settings['default-character-set'] = $wpdb->charset;
|
108 |
}
|
109 |
|
110 |
-
if ( ! empty( $
|
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 ) {
|
@@ -139,6 +129,8 @@ class Boldgrid_Backup_Admin_Db_Dump {
|
|
139 |
*/
|
140 |
do_action( 'boldgrid_backup_post_dump', $file );
|
141 |
|
|
|
|
|
142 |
return true;
|
143 |
}
|
144 |
|
@@ -207,6 +199,37 @@ class Boldgrid_Backup_Admin_Db_Dump {
|
|
207 |
return $connection_string;
|
208 |
}
|
209 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
/**
|
211 |
* Get data on all tables and the number of records in the backup file.
|
212 |
*
|
53 |
public function dump( $file ) {
|
54 |
global $wpdb;
|
55 |
|
56 |
+
$table_list = $this->get_table_list();
|
57 |
+
|
58 |
+
if ( empty( $table_list['tables'] ) && empty( $table_list['views'] ) ) {
|
59 |
return array( 'error' => esc_html__( 'No tables selected to backup.', 'boldgrid-backup' ) );
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
Boldgrid_Backup_Admin_In_Progress_Data::set_args(
|
63 |
array(
|
64 |
'status' => __( 'Backing up database...', 'boldgrid-backup' ),
|
65 |
+
'tables' => $table_list['tables'],
|
66 |
'step' => 1,
|
67 |
)
|
68 |
);
|
69 |
|
70 |
+
// BEGIN V2 COPY
|
71 |
+
|
72 |
/**
|
73 |
* Take action before a database is dumped.
|
74 |
*
|
77 |
do_action( 'boldgrid_backup_pre_dump', $file );
|
78 |
|
79 |
$settings = array(
|
80 |
+
'include-tables' => $table_list['tables'],
|
81 |
+
'include-views' => $table_list['views'],
|
82 |
'add-drop-table' => true,
|
83 |
'no-autocommit' => false,
|
84 |
);
|
97 |
$settings['default-character-set'] = $wpdb->charset;
|
98 |
}
|
99 |
|
100 |
+
if ( ! empty( $table_list['views'] ) ) {
|
101 |
$db_import = new Boldgrid_Backup_Admin_Db_Import();
|
102 |
$user_has_privileges = $db_import->has_db_privileges( array( 'SHOW VIEW' ) );
|
103 |
if ( false === $user_has_privileges ) {
|
129 |
*/
|
130 |
do_action( 'boldgrid_backup_post_dump', $file );
|
131 |
|
132 |
+
// END V2 COPY
|
133 |
+
|
134 |
return true;
|
135 |
}
|
136 |
|
199 |
return $connection_string;
|
200 |
}
|
201 |
|
202 |
+
/**
|
203 |
+
* Get a list of tables and views we will backup.
|
204 |
+
*
|
205 |
+
* We may not backup all tables, so this is a selective list based on the user's settings.
|
206 |
+
*
|
207 |
+
* This code originally lived in self::dump, and has been moved here for reusability in v2.
|
208 |
+
*
|
209 |
+
* @since SINCEVERSION
|
210 |
+
*
|
211 |
+
* @return array
|
212 |
+
*/
|
213 |
+
public function get_table_list() {
|
214 |
+
$table_list = array();
|
215 |
+
|
216 |
+
$include_tables = $this->core->db_omit->get_filtered_tables();
|
217 |
+
|
218 |
+
/*
|
219 |
+
* Create separate arrays for the "tables" and "views" that we want to dump.
|
220 |
+
*
|
221 |
+
* When dumping our database, we need to send a separate list of tables to dump, and a separate
|
222 |
+
* one for views to dump. $include_tables is an array possibly containing both tables and views,
|
223 |
+
* so we'll split it up now.
|
224 |
+
*
|
225 |
+
* In the list below, it is important that $include_tables is processed last.
|
226 |
+
*/
|
227 |
+
$table_list['views'] = $this->core->db_get->filter_by_type( $include_tables, 'VIEW' );
|
228 |
+
$table_list['tables'] = $this->core->db_get->filter_by_type( $include_tables, 'BASE TABLE' );
|
229 |
+
|
230 |
+
return $table_list;
|
231 |
+
}
|
232 |
+
|
233 |
/**
|
234 |
* Get data on all tables and the number of records in the backup file.
|
235 |
*
|
admin/class-boldgrid-backup-admin-email.php
CHANGED
@@ -120,10 +120,6 @@ class Boldgrid_Backup_Admin_Email {
|
|
120 |
|
121 |
$parts['body']['main'] = esc_html__( 'Hello', 'boldgrid-backup' ) . ",\n\n";
|
122 |
|
123 |
-
if ( $info['dryrun'] ) {
|
124 |
-
$body['main'] .= esc_html__( 'THIS OPERATION WAS A DRY-RUN TEST', 'boldgrid-backup' ) . ".\n\n";
|
125 |
-
}
|
126 |
-
|
127 |
$parts['body']['main'] .= sprintf(
|
128 |
// translators: 1: Site identifier/name.
|
129 |
esc_html__( 'A backup archive has been created for %1$s', 'boldgrid-backup' ),
|
@@ -257,7 +253,7 @@ class Boldgrid_Backup_Admin_Email {
|
|
257 |
*/
|
258 |
public function wp_mail_failed( $wp_error ) {
|
259 |
// If in the middle of archiving files and an email failed, add info about it to the log.
|
260 |
-
if (
|
261 |
$errors = array(
|
262 |
'wp_error' => $wp_error,
|
263 |
'last_error' => error_get_last(),
|
120 |
|
121 |
$parts['body']['main'] = esc_html__( 'Hello', 'boldgrid-backup' ) . ",\n\n";
|
122 |
|
|
|
|
|
|
|
|
|
123 |
$parts['body']['main'] .= sprintf(
|
124 |
// translators: 1: Site identifier/name.
|
125 |
esc_html__( 'A backup archive has been created for %1$s', 'boldgrid-backup' ),
|
253 |
*/
|
254 |
public function wp_mail_failed( $wp_error ) {
|
255 |
// If in the middle of archiving files and an email failed, add info about it to the log.
|
256 |
+
if ( Boldgrid_Backup_Archiver::is_archiving() || $this->core->restoring_archive_file ) {
|
257 |
$errors = array(
|
258 |
'wp_error' => $wp_error,
|
259 |
'last_error' => error_get_last(),
|
admin/class-boldgrid-backup-admin-in-progress-data.php
CHANGED
@@ -69,6 +69,22 @@ class Boldgrid_Backup_Admin_In_Progress_Data {
|
|
69 |
return get_option( self::$option_name );
|
70 |
}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
/**
|
73 |
* Get required markup to show the progress bar.
|
74 |
*
|
69 |
return get_option( self::$option_name );
|
70 |
}
|
71 |
|
72 |
+
/**
|
73 |
+
*
|
74 |
+
*/
|
75 |
+
public static function get_backup_id() {
|
76 |
+
/*
|
77 |
+
* boldgrid-backup-2cc84b67-c0952649a8c78a20
|
78 |
+
*/
|
79 |
+
$dir = self::get_arg( 'dir' );
|
80 |
+
if ( empty( $dir ) ) {
|
81 |
+
return false;
|
82 |
+
}
|
83 |
+
|
84 |
+
preg_match( '/boldgrid-backup-2cc84b67-(.{16})/', $dir, $matches );
|
85 |
+
return ! empty( $matches[1] ) ? $matches[1] : false;
|
86 |
+
}
|
87 |
+
|
88 |
/**
|
89 |
* Get required markup to show the progress bar.
|
90 |
*
|
admin/class-boldgrid-backup-admin-in-progress-tmp.php
CHANGED
@@ -57,6 +57,21 @@ class Boldgrid_Backup_Admin_In_Progress_Tmp {
|
|
57 |
* @return array
|
58 |
*/
|
59 |
public function get() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
$data = [];
|
61 |
|
62 |
$compressor = Boldgrid_Backup_Admin_In_Progress_Data::get_arg( 'compressor' );
|
57 |
* @return array
|
58 |
*/
|
59 |
public function get() {
|
60 |
+
$dir = Boldgrid_Backup_Admin_In_Progress_Data::get_arg( 'dir' );
|
61 |
+
// Steps to take if this is a v2 backup.
|
62 |
+
if ( ! empty( $dir ) ) {
|
63 |
+
// GET THE DIRSIZE CORRECTLY.
|
64 |
+
// $dirsize = get_dirsize( $dir );
|
65 |
+
exec( 'du -b ' . $dir . ' | cut -f1', $dirsize ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_exec
|
66 |
+
$dirsize = $dirsize[0];
|
67 |
+
|
68 |
+
return array(
|
69 |
+
'size' => $dirsize,
|
70 |
+
// 'lastmodunix' => $dirlist[ $filename ]['lastmodunix'],
|
71 |
+
'size_format' => size_format( $dirsize, 2 ),
|
72 |
+
);
|
73 |
+
}
|
74 |
+
|
75 |
$data = [];
|
76 |
|
77 |
$compressor = Boldgrid_Backup_Admin_In_Progress_Data::get_arg( 'compressor' );
|
admin/class-boldgrid-backup-admin-log.php
CHANGED
@@ -122,7 +122,8 @@ class Boldgrid_Backup_Admin_Log {
|
|
122 |
|
123 |
$this->add( 'WordPress Version: ' . get_bloginfo( 'version' ) );
|
124 |
|
125 |
-
$
|
|
|
126 |
}
|
127 |
|
128 |
/**
|
122 |
|
123 |
$this->add( 'WordPress Version: ' . get_bloginfo( 'version' ) );
|
124 |
|
125 |
+
$version = defined( 'BOLDGRID_BACKUP_VERSION' ) ? BOLDGRID_BACKUP_VERSION : 'Unknown';
|
126 |
+
$this->add( 'Total Upkeep version: ' . $version );
|
127 |
}
|
128 |
|
129 |
/**
|
admin/class-boldgrid-backup-admin-nopriv.php
ADDED
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-admin-nopriv.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @subpackage Boldgrid_Backup/admin
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @version $Id$
|
12 |
+
* @author BoldGrid <support@boldgrid.com>
|
13 |
+
*/
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Class: Boldgrid_Backup_Admin_Nopriv
|
17 |
+
*
|
18 |
+
* This is a generic utility class for nopriv calls.
|
19 |
+
*
|
20 |
+
* It includes methods like making an async call to trigger a backup.
|
21 |
+
*
|
22 |
+
* @since SINCEVERSION
|
23 |
+
*/
|
24 |
+
class Boldgrid_Backup_Admin_Nopriv {
|
25 |
+
/**
|
26 |
+
* Generate a backup.
|
27 |
+
*
|
28 |
+
* This makes an async call to generate a backup, so that the calling method knows a backup has
|
29 |
+
* been instantiated and can continue on to other things right away.
|
30 |
+
*
|
31 |
+
* @since SINCEVERSION
|
32 |
+
*
|
33 |
+
* @param array $args {
|
34 |
+
* Optional. An array of args.
|
35 |
+
*
|
36 |
+
* @type string $task_id A task id (if one already exists).
|
37 |
+
* }
|
38 |
+
* @return mixed The results of the wp_remote_post call. An array of data on success, or a WP_Error
|
39 |
+
* on fail.
|
40 |
+
* Example return data when creating a backup via rest: https://pastebin.com/BeACwA2k
|
41 |
+
*/
|
42 |
+
public function do_backup( $args = [] ) {
|
43 |
+
$url = $this->get_backup_url();
|
44 |
+
|
45 |
+
$body = [
|
46 |
+
/*
|
47 |
+
* Sometimes a task id will already be defined before the backup is started. One example
|
48 |
+
* is when a backup is started via REST. It (1) creates a task, (2) calls this method to
|
49 |
+
* start the backup, (3) immediately returns the tasks id - which a status can be queried
|
50 |
+
* for ASAP.
|
51 |
+
*/
|
52 |
+
'task_id' => ! empty( $args['task_id'] ) ? $args['task_id'] : '',
|
53 |
+
];
|
54 |
+
|
55 |
+
$post_args = [
|
56 |
+
'timeout' => 1,
|
57 |
+
'blocking' => false,
|
58 |
+
'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
|
59 |
+
'body' => $body,
|
60 |
+
];
|
61 |
+
|
62 |
+
return wp_remote_post( $url, $post_args );
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Restore a backup via url.
|
67 |
+
*
|
68 |
+
* @since SINCEVERSION
|
69 |
+
*
|
70 |
+
* @param array $args An optional array of args.
|
71 |
+
* @return mixed Response from wp_remote_post.
|
72 |
+
*/
|
73 |
+
public function do_restore( $args = [] ) {
|
74 |
+
$url = $this->get_restore_url();
|
75 |
+
|
76 |
+
$body = [
|
77 |
+
/*
|
78 |
+
* Sometimes a task id will already be defined before the restore is started. One example
|
79 |
+
* is when a restore is started via REST. It (1) creates a task, (2) calls this method to
|
80 |
+
* start the restore, (3) immediately returns the tasks id - which a status can be queried
|
81 |
+
* for ASAP.
|
82 |
+
*/
|
83 |
+
'task_id' => ! empty( $args['task_id'] ) ? $args['task_id'] : '',
|
84 |
+
'restore_now' => 1,
|
85 |
+
];
|
86 |
+
|
87 |
+
$post_args = [
|
88 |
+
'timeout' => 1,
|
89 |
+
'blocking' => false,
|
90 |
+
'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
|
91 |
+
'body' => $body,
|
92 |
+
];
|
93 |
+
|
94 |
+
return wp_remote_post( $url, $post_args );
|
95 |
+
}
|
96 |
+
|
97 |
+
/**
|
98 |
+
* Get the nopriv url for generating a backup.
|
99 |
+
*
|
100 |
+
* @since SINCEVERSION
|
101 |
+
*
|
102 |
+
* @return string
|
103 |
+
*/
|
104 |
+
public function get_backup_url() {
|
105 |
+
$core = apply_filters( 'boldgrid_backup_get_core', null );
|
106 |
+
|
107 |
+
return add_query_arg(
|
108 |
+
[
|
109 |
+
'action' => 'boldgrid_backup_run_backup',
|
110 |
+
'id' => $core->get_backup_identifier(),
|
111 |
+
'secret' => $core->cron->get_cron_secret(),
|
112 |
+
'doing_wp_cron' => time(),
|
113 |
+
],
|
114 |
+
admin_url( 'admin-ajax.php' )
|
115 |
+
);
|
116 |
+
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Get the nopriv url for restoring a backup via url.
|
120 |
+
*
|
121 |
+
* @since SINCEVERSION
|
122 |
+
*
|
123 |
+
* @return string
|
124 |
+
*/
|
125 |
+
public function get_restore_url() {
|
126 |
+
$core = apply_filters( 'boldgrid_backup_get_core', null );
|
127 |
+
|
128 |
+
return add_query_arg(
|
129 |
+
[
|
130 |
+
'action' => 'boldgrid_backup_run_restore',
|
131 |
+
'id' => $core->get_backup_identifier(),
|
132 |
+
'secret' => $core->cron->get_cron_secret(),
|
133 |
+
'doing_wp_cron' => time(),
|
134 |
+
],
|
135 |
+
admin_url( 'admin-ajax.php' )
|
136 |
+
);
|
137 |
+
}
|
138 |
+
}
|
admin/class-boldgrid-backup-admin-settings.php
CHANGED
@@ -84,6 +84,9 @@ class Boldgrid_Backup_Admin_Settings {
|
|
84 |
/**
|
85 |
* Get a setting from the settings.
|
86 |
*
|
|
|
|
|
|
|
87 |
* @since 1.9.0
|
88 |
*
|
89 |
* @param string $key The setting name.
|
@@ -258,6 +261,11 @@ class Boldgrid_Backup_Admin_Settings {
|
|
258 |
// Auto Updates.
|
259 |
$settings['auto_update'] = $this->set_update_settings( $settings );
|
260 |
|
|
|
|
|
|
|
|
|
|
|
261 |
// Return the settings array.
|
262 |
return $settings;
|
263 |
}
|
@@ -821,6 +829,16 @@ class Boldgrid_Backup_Admin_Settings {
|
|
821 |
$update_error = $settings['auto_update'] ? $update_error : true;
|
822 |
}
|
823 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
824 |
// Read BoldGrid settings form POST request, sanitize, and merge settings with saved.
|
825 |
$boldgrid_settings = array_merge(
|
826 |
get_option( 'boldgrid_settings' ),
|
84 |
/**
|
85 |
* Get a setting from the settings.
|
86 |
*
|
87 |
+
* A default parameter doesn't exist for this method. It was going to be added in 2.0.0, however
|
88 |
+
* the first call to get_settings() includes default settings. @todo Does this need to change?
|
89 |
+
*
|
90 |
* @since 1.9.0
|
91 |
*
|
92 |
* @param string $key The setting name.
|
261 |
// Auto Updates.
|
262 |
$settings['auto_update'] = $this->set_update_settings( $settings );
|
263 |
|
264 |
+
// Format. Should be either "one" or "many" (v2). Refers to how many zips we create.
|
265 |
+
if ( empty( $settings['format'] ) ) {
|
266 |
+
$settings['format'] = 'one';
|
267 |
+
}
|
268 |
+
|
269 |
// Return the settings array.
|
270 |
return $settings;
|
271 |
}
|
829 |
$update_error = $settings['auto_update'] ? $update_error : true;
|
830 |
}
|
831 |
|
832 |
+
/*
|
833 |
+
* Save format options.
|
834 |
+
*
|
835 |
+
* @since SINCEVERSION
|
836 |
+
*/
|
837 |
+
$valid_formats = array( 'one', 'many' );
|
838 |
+
if ( ! empty( $_POST['format'] ) && in_array( $_POST['format'], $valid_formats, true ) ) {
|
839 |
+
$settings['format'] = $_POST['format'];
|
840 |
+
}
|
841 |
+
|
842 |
// Read BoldGrid settings form POST request, sanitize, and merge settings with saved.
|
843 |
$boldgrid_settings = array_merge(
|
844 |
get_option( 'boldgrid_settings' ),
|
admin/class-boldgrid-backup-admin-task-helper.php
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-admin-task-helper.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @subpackage Boldgrid_Backup/admin
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @version $Id$
|
12 |
+
* @author BoldGrid <support@boldgrid.com>
|
13 |
+
*/
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Class: Boldgrid_Backup_Admin_Task_Helper
|
17 |
+
*
|
18 |
+
* This class is a helper class for the Boldgrid_Backup_Admin_Task class.
|
19 |
+
*
|
20 |
+
* An example of tasks can be found here: admin/class-boldgrid-backup-admin-task.md#example-tasks
|
21 |
+
*
|
22 |
+
* @since SINCEVERSION
|
23 |
+
*/
|
24 |
+
class Boldgrid_Backup_Admin_Task_Helper {
|
25 |
+
/**
|
26 |
+
* Option name storing our tasks.
|
27 |
+
*
|
28 |
+
* @since SINCEVERSION
|
29 |
+
* @access private
|
30 |
+
* @var string
|
31 |
+
*/
|
32 |
+
private $option = 'boldgrid_backup_tasks';
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Get a task by id.
|
36 |
+
*
|
37 |
+
* @since SINCEVERSION
|
38 |
+
*
|
39 |
+
* @param string $id A task id.
|
40 |
+
* @return array
|
41 |
+
*/
|
42 |
+
public function get_by_id( $id ) {
|
43 |
+
$return_task = [];
|
44 |
+
|
45 |
+
$tasks = $this->get_tasks();
|
46 |
+
|
47 |
+
foreach ( $tasks as $task ) {
|
48 |
+
if ( $task['id'] === $id ) {
|
49 |
+
$return_task = $task;
|
50 |
+
break;
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
return $return_task;
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Get all tasks.
|
59 |
+
*
|
60 |
+
* @since SINCEVERSION
|
61 |
+
*
|
62 |
+
* @return array
|
63 |
+
*/
|
64 |
+
public function get_tasks() {
|
65 |
+
return get_option( $this->option, [] );
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Update a task.
|
70 |
+
*
|
71 |
+
* @since SINCEVERSION
|
72 |
+
*
|
73 |
+
* @param array $update_task The task that needs updating.
|
74 |
+
* @return bool True on success.
|
75 |
+
*/
|
76 |
+
public function update( $update_task ) {
|
77 |
+
// A task id is required.
|
78 |
+
if ( empty( $update_task['id'] ) ) {
|
79 |
+
return false;
|
80 |
+
}
|
81 |
+
|
82 |
+
$tasks = $this->get_tasks();
|
83 |
+
|
84 |
+
$existing_task = $this->get_by_id( $update_task['id'] );
|
85 |
+
|
86 |
+
/*
|
87 |
+
* Add our task to $tasks.
|
88 |
+
*
|
89 |
+
* If the task already exists, find it and update it. Otherwise, add it.
|
90 |
+
*/
|
91 |
+
if ( ! empty( $existing_task ) ) {
|
92 |
+
foreach ( $tasks as $key => $task ) {
|
93 |
+
// Keep looking for our task by id until it's found.
|
94 |
+
if ( $task['id'] !== $update_task['id'] ) {
|
95 |
+
continue;
|
96 |
+
}
|
97 |
+
|
98 |
+
// It's been found. Replace the task by the task passed into this method.
|
99 |
+
$tasks[ $key ] = $update_task;
|
100 |
+
break;
|
101 |
+
}
|
102 |
+
} else {
|
103 |
+
// This is a new task. Simply add it to the list.
|
104 |
+
$tasks[] = $update_task;
|
105 |
+
}
|
106 |
+
|
107 |
+
return $this->update_tasks( $tasks );
|
108 |
+
}
|
109 |
+
|
110 |
+
/**
|
111 |
+
* Update all tasks.
|
112 |
+
*
|
113 |
+
* @since SINCEVERSION
|
114 |
+
*
|
115 |
+
* @param array $tasks An array of all our tasks.
|
116 |
+
*/
|
117 |
+
public function update_tasks( $tasks ) {
|
118 |
+
if ( ! is_array( $tasks ) ) {
|
119 |
+
return false;
|
120 |
+
}
|
121 |
+
|
122 |
+
update_option( $this->option, $tasks );
|
123 |
+
}
|
124 |
+
}
|
admin/class-boldgrid-backup-admin-task.md
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Tasks vs. Jobs
|
2 |
+
|
3 |
+
## Jobs
|
4 |
+
|
5 |
+
Jobs is a "jobs queue". The queue is checked every 5 minutes, and if a job is found, it is ran. Each
|
6 |
+
job in the queue is really just a WordPress action/hook that is ran. When it is completed, it is marked
|
7 |
+
as complete. The next time the jobs queue is processed, it will run the next action in line.
|
8 |
+
|
9 |
+
For example, when a backup is made, 2 items may be add to the the jobs queue:
|
10 |
+
1. Upload to Google Drive
|
11 |
+
2. Upload to Amazon S3
|
12 |
+
|
13 |
+
Every 5 minutes the jobs queue is triggered. First, the Google Drive upload will be processed. When
|
14 |
+
it is done, it will be flagged as complete. 5 minutes later, when the queue is processed again, it will
|
15 |
+
find that the Amazon S3 job is next, and it will run the action for that.
|
16 |
+
|
17 |
+
## Tasks
|
18 |
+
|
19 |
+
A tasks is a thing to do, like "make a backup".
|
20 |
+
|
21 |
+
Here's an example of how a task works:
|
22 |
+
|
23 |
+
1. A Rest API call comes in to create a backup. We create a new backup task and then execute it.
|
24 |
+
|
25 |
+
```
|
26 |
+
$task = new Boldgrid_Backup_Admin_Task();
|
27 |
+
$task->init( [ 'type' => 'backup' ] );
|
28 |
+
|
29 |
+
// Trigger our backup.
|
30 |
+
$nopriv = new Boldgrid_Backup_Admin_Nopriv();
|
31 |
+
$nopriv->do_backup( [ 'task_id' => $task->get_id() ] );
|
32 |
+
```
|
33 |
+
|
34 |
+
This new task now has an id, status, a start time, etc.
|
35 |
+
|
36 |
+
2. Let's say that backup takes 5 minutes. Throughout that time, other Rest API calls can request the
|
37 |
+
status of that task. They'll continue to see "in progress" until the backup is complete and then the
|
38 |
+
task status will be "complete".
|
39 |
+
|
40 |
+
## The Difference
|
41 |
+
|
42 |
+
Jobs is a collection of jobs:
|
43 |
+
|
44 |
+
```
|
45 |
+
jobs queue
|
46 |
+
1. job
|
47 |
+
2. job
|
48 |
+
3. job
|
49 |
+
```
|
50 |
+
|
51 |
+
Theoretically, it could look like this (but it doesn't):
|
52 |
+
|
53 |
+
```
|
54 |
+
jobs queue
|
55 |
+
1. task
|
56 |
+
2. task
|
57 |
+
3. task
|
58 |
+
```
|
59 |
+
|
60 |
+
Tasks were written ~2 or so years after the jobs queue was written, and are completely independent.
|
61 |
+
While a task and a job could be the same, the only similarities within Total Upkeep is that they represent
|
62 |
+
an action, and have things like a start time, a status, etc.
|
63 |
+
|
64 |
+
Jobs are a wordpress action/hook and belong to the jobs queue. Tasks are independent and could potentially
|
65 |
+
float around the system. Tasks are really just a tracking system for things to do.
|
66 |
+
|
67 |
+
# Example tasks
|
68 |
+
|
69 |
+
```
|
70 |
+
wp option get boldgrid_backup_tasks
|
71 |
+
array (
|
72 |
+
0 => array (
|
73 |
+
'id' => '1597861098-2e90c6',
|
74 |
+
'type' => 'backup',
|
75 |
+
'created_at' => 1597861098,
|
76 |
+
'started_at' => 1597861098,
|
77 |
+
'completed_at' => 1597861109,
|
78 |
+
'status' => 'done',
|
79 |
+
'data' => array (),
|
80 |
+
),
|
81 |
+
1 => array (
|
82 |
+
'id' => '1597861521-1b2848',
|
83 |
+
'type' => 'backup',
|
84 |
+
'created_at' => 1597861521,
|
85 |
+
'started_at' => 1597861522,
|
86 |
+
'completed_at' => 1597861527,
|
87 |
+
'status' => 'done',
|
88 |
+
'data' => array(),
|
89 |
+
),
|
90 |
+
2 => array (
|
91 |
+
'id' => '1598616953-986059',
|
92 |
+
'type' => 'backup',
|
93 |
+
'created_at' => 1598616953,
|
94 |
+
'started_at' => 1598616954,
|
95 |
+
'completed_at' => 1598616959,
|
96 |
+
'status' => 'done',
|
97 |
+
'data' => array(),
|
98 |
+
),
|
99 |
+
3 => array (
|
100 |
+
'id' => '1598617517-e6f0a3',
|
101 |
+
'type' => 'backup',
|
102 |
+
'created_at' => 1598617517,
|
103 |
+
'started_at' => 1598617518,
|
104 |
+
'completed_at' => 1598617523,
|
105 |
+
'status' => 'done',
|
106 |
+
'data' => array(),
|
107 |
+
),
|
108 |
+
4 => array (
|
109 |
+
'id' => '1598619019-8d3da6',
|
110 |
+
'type' => 'backup',
|
111 |
+
'created_at' => 1598619019,
|
112 |
+
'started_at' => 1598619020,
|
113 |
+
'completed_at' => NULL,
|
114 |
+
'status' => 'in_progress',
|
115 |
+
'data' => array(),
|
116 |
+
),
|
117 |
+
5 => array (
|
118 |
+
'id' => '1598619948-985ee2',
|
119 |
+
'type' => 'restore',
|
120 |
+
'created_at' => '2020-08-28T13:05:48+00:00',
|
121 |
+
'started_at' => 1598619949,
|
122 |
+
'completed_at' => 1598619951,
|
123 |
+
'status' => 'done',
|
124 |
+
'data' => array (
|
125 |
+
'backup_id' => '4',
|
126 |
+
),
|
127 |
+
),
|
128 |
+
)
|
129 |
+
```
|
admin/class-boldgrid-backup-admin-task.php
ADDED
@@ -0,0 +1,297 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-admin-task.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @subpackage Boldgrid_Backup/admin
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @version $Id$
|
12 |
+
* @author BoldGrid <support@boldgrid.com>
|
13 |
+
*/
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Class: Boldgrid_Backup_Admin_Task
|
17 |
+
*
|
18 |
+
* Tasks are similar to the jobs queue, but not quite the same. Please see class-boldgrid-backup-admin-task.md
|
19 |
+
*
|
20 |
+
* @since SINCEVERSION
|
21 |
+
*
|
22 |
+
* @todo Look into merging tasks with the jobs queue.
|
23 |
+
*/
|
24 |
+
class Boldgrid_Backup_Admin_Task {
|
25 |
+
/**
|
26 |
+
* A date format used in returning times.
|
27 |
+
*
|
28 |
+
* For example, 'c' in date( 'c', time() ).
|
29 |
+
*
|
30 |
+
* @since SINCEVERSION
|
31 |
+
* @var string
|
32 |
+
*/
|
33 |
+
public $date_format;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* The time this task was completed.
|
37 |
+
*
|
38 |
+
* @since SINCEVERSION
|
39 |
+
* @access private
|
40 |
+
* @var int
|
41 |
+
*/
|
42 |
+
private $completed_at;
|
43 |
+
|
44 |
+
/**
|
45 |
+
* The time this task was created.
|
46 |
+
*
|
47 |
+
* @since SINCEVERSION
|
48 |
+
* @access private
|
49 |
+
* @var int
|
50 |
+
*/
|
51 |
+
private $created_at;
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Misc data associated with this task.
|
55 |
+
*
|
56 |
+
* @since SINCEVERSION
|
57 |
+
* @access private
|
58 |
+
* @var array
|
59 |
+
*/
|
60 |
+
private $data;
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Our helper class.
|
64 |
+
*
|
65 |
+
* @since SINCEVERSION
|
66 |
+
* @access private
|
67 |
+
* @var Boldgrid_Backup_Admin_Task_Helper
|
68 |
+
*/
|
69 |
+
private $helper;
|
70 |
+
|
71 |
+
/**
|
72 |
+
* The task id.
|
73 |
+
*
|
74 |
+
* @since SINCEVERSION
|
75 |
+
* @access private
|
76 |
+
* @var string
|
77 |
+
*/
|
78 |
+
private $id;
|
79 |
+
|
80 |
+
/**
|
81 |
+
* The time this task was started.
|
82 |
+
*
|
83 |
+
* @since SINCEVERSION
|
84 |
+
* @access private
|
85 |
+
* @var int
|
86 |
+
*/
|
87 |
+
private $started_at;
|
88 |
+
|
89 |
+
/**
|
90 |
+
* The task type.
|
91 |
+
*
|
92 |
+
* For example: backup
|
93 |
+
*
|
94 |
+
* @since SINCEVERSION
|
95 |
+
* @access private
|
96 |
+
* @var string
|
97 |
+
*/
|
98 |
+
private $type;
|
99 |
+
|
100 |
+
/**
|
101 |
+
* Constructor.
|
102 |
+
*
|
103 |
+
* @since SINCEVERSION
|
104 |
+
*/
|
105 |
+
public function __construct() {
|
106 |
+
$this->helper = new Boldgrid_Backup_Admin_Task_Helper();
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Mark this task as being complete.
|
111 |
+
*
|
112 |
+
* @since SINCEVERSION
|
113 |
+
*/
|
114 |
+
public function end() {
|
115 |
+
$this->completed_at = time();
|
116 |
+
|
117 |
+
$this->update();
|
118 |
+
}
|
119 |
+
|
120 |
+
/**
|
121 |
+
* Get the properties of this class.
|
122 |
+
*
|
123 |
+
* @since SINCEVERSION
|
124 |
+
*
|
125 |
+
* @return array
|
126 |
+
*/
|
127 |
+
public function get() {
|
128 |
+
return [
|
129 |
+
'id' => $this->id,
|
130 |
+
'type' => $this->type,
|
131 |
+
'created_at' => empty( $this->date_format ) ? $this->created_at : date( $this->date_format, $this->created_at ),
|
132 |
+
'started_at' => empty( $this->started_at ) ?
|
133 |
+
null :
|
134 |
+
( empty( $this->date_format ) ? $this->started_at : date( $this->date_format, $this->started_at ) ),
|
135 |
+
'completed_at' => empty( $this->completed_at ) ?
|
136 |
+
null :
|
137 |
+
( empty( $this->date_format ) ? $this->completed_at : date( $this->date_format, $this->completed_at ) ),
|
138 |
+
'status' => $this->get_status(),
|
139 |
+
'data' => $this->data,
|
140 |
+
];
|
141 |
+
}
|
142 |
+
|
143 |
+
/**
|
144 |
+
* Get a specific value from the data.
|
145 |
+
*
|
146 |
+
* @since SINCEVERSION
|
147 |
+
*
|
148 |
+
* @param string $key The key to get.
|
149 |
+
* @param mixed $default The default value to return.
|
150 |
+
* @return mixed
|
151 |
+
*/
|
152 |
+
public function get_data( $key, $default = false ) {
|
153 |
+
return isset( $this->data[ $key ] ) ? $this->data[ $key ] : $default;
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Get our task id.
|
158 |
+
*
|
159 |
+
* @since SINCEVERSION
|
160 |
+
*
|
161 |
+
* @return string
|
162 |
+
*/
|
163 |
+
public function get_id() {
|
164 |
+
return $this->id;
|
165 |
+
}
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Get the status of this task.
|
169 |
+
*
|
170 |
+
* @since SINCEVERSION
|
171 |
+
*
|
172 |
+
* @return string
|
173 |
+
*/
|
174 |
+
public function get_status() {
|
175 |
+
if ( empty( $this->started_at ) ) {
|
176 |
+
$status = 'pending';
|
177 |
+
} elseif ( empty( $this->completed_at ) ) {
|
178 |
+
$status = 'in_progress';
|
179 |
+
} else {
|
180 |
+
$status = 'done';
|
181 |
+
}
|
182 |
+
|
183 |
+
return $status;
|
184 |
+
}
|
185 |
+
|
186 |
+
/**
|
187 |
+
* Initialize a new task.
|
188 |
+
*
|
189 |
+
* @since SINCEVERSION
|
190 |
+
*
|
191 |
+
* @param array $args An array of args.
|
192 |
+
* @return bool True if this task was initialized.
|
193 |
+
*/
|
194 |
+
public function init( $args ) {
|
195 |
+
$this->id = ! empty( $args['id'] ) ? $args['id'] : $this->set_id();
|
196 |
+
$this->created_at = ! empty( $args['created_at'] ) ? $args['created_at'] : time();
|
197 |
+
$this->started_at = ! empty( $args['started_at'] ) ? $args['started_at'] : null;
|
198 |
+
$this->completed_at = ! empty( $args['completed_at'] ) ? $args['completed_at'] : null;
|
199 |
+
$this->data = ! empty( $args['data'] ) ? $args['data'] : [];
|
200 |
+
|
201 |
+
// You must supply a type.
|
202 |
+
$type = ! empty( $args['type'] ) ? $args['type'] : null;
|
203 |
+
if ( empty( $type ) ) {
|
204 |
+
return false;
|
205 |
+
} elseif ( ! $this->set_type( $type ) ) {
|
206 |
+
return false;
|
207 |
+
}
|
208 |
+
|
209 |
+
return true;
|
210 |
+
}
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Init this task by a task id.
|
214 |
+
*
|
215 |
+
* @since SINCEVERSION
|
216 |
+
*
|
217 |
+
* @param string $id A task id.
|
218 |
+
* @return bool True if this task was initialized.
|
219 |
+
*/
|
220 |
+
public function init_by_id( $id ) {
|
221 |
+
$task = $this->helper->get_by_id( $id );
|
222 |
+
|
223 |
+
return $this->init( $task );
|
224 |
+
}
|
225 |
+
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Create a new task id.
|
229 |
+
*
|
230 |
+
* @since SINCEVERSION
|
231 |
+
*
|
232 |
+
* @return string
|
233 |
+
*/
|
234 |
+
private function set_id() {
|
235 |
+
// A task id is the current time + 6 random chars.
|
236 |
+
$this->id = time() . '-' . substr( md5( time() ), -6 );
|
237 |
+
|
238 |
+
return $this->id;
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Set our task type.
|
243 |
+
*
|
244 |
+
* @since SINCEVERSION
|
245 |
+
*
|
246 |
+
* @param string $type Our task type.
|
247 |
+
* @return bool True if the type was set.
|
248 |
+
*/
|
249 |
+
private function set_type( $type ) {
|
250 |
+
$valid_types = [
|
251 |
+
'backup',
|
252 |
+
'restore',
|
253 |
+
];
|
254 |
+
|
255 |
+
if ( ! in_array( $type, $valid_types, true ) ) {
|
256 |
+
return false;
|
257 |
+
}
|
258 |
+
|
259 |
+
$this->type = $type;
|
260 |
+
|
261 |
+
return true;
|
262 |
+
}
|
263 |
+
|
264 |
+
/**
|
265 |
+
* Start this task.
|
266 |
+
*
|
267 |
+
* @since SINCEVERSION
|
268 |
+
*/
|
269 |
+
public function start() {
|
270 |
+
$this->started_at = time();
|
271 |
+
|
272 |
+
$this->update();
|
273 |
+
}
|
274 |
+
|
275 |
+
/**
|
276 |
+
* Update data for a task.
|
277 |
+
*
|
278 |
+
* @since SINCEVERSION
|
279 |
+
*
|
280 |
+
* @param string key The key to update.
|
281 |
+
* @param mixed $value The value to assign to the key.
|
282 |
+
*/
|
283 |
+
public function update_data( $key, $value ) {
|
284 |
+
$this->data[ $key ] = $value;
|
285 |
+
|
286 |
+
$this->update();
|
287 |
+
}
|
288 |
+
|
289 |
+
/**
|
290 |
+
* Update / save this task.
|
291 |
+
*
|
292 |
+
* @since SINCEVERSION
|
293 |
+
*/
|
294 |
+
public function update() {
|
295 |
+
return $this->helper->update( $this->get() );
|
296 |
+
}
|
297 |
+
}
|
admin/class-boldgrid-backup-admin-upload.php
CHANGED
@@ -424,126 +424,16 @@ class Boldgrid_Backup_Admin_Upload {
|
|
424 |
);
|
425 |
}
|
426 |
|
427 |
-
$url
|
428 |
-
$url_regex = '/' . $this->core->configs['url_regex'] . '/i';
|
429 |
|
430 |
-
|
431 |
-
|
432 |
-
array(
|
433 |
-
'error' => __( 'Invalid URL address.', 'boldgrid-backup' ),
|
434 |
-
)
|
435 |
-
);
|
436 |
-
}
|
437 |
-
|
438 |
-
$backup_directory = $this->core->backup_dir->get();
|
439 |
-
|
440 |
-
if ( ! $this->core->backup_dir->is_valid( $backup_directory ) &&
|
441 |
-
! empty( $this->core->backup_dir->errors ) ) {
|
442 |
-
wp_send_json_error(
|
443 |
-
array(
|
444 |
-
'error' => implode( '<br />', $this->core->backup_dir->errors ),
|
445 |
-
)
|
446 |
-
);
|
447 |
-
}
|
448 |
-
|
449 |
-
$filepath = $this->get_save_path( basename( $url ) );
|
450 |
-
|
451 |
-
$allowed_content_types = array(
|
452 |
-
'application/octet-stream',
|
453 |
-
'binary/octet-stream',
|
454 |
-
'application/zip',
|
455 |
-
);
|
456 |
-
|
457 |
-
$response = wp_remote_get(
|
458 |
-
$url, array(
|
459 |
-
'filename' => $filepath,
|
460 |
-
'headers' => 'Accept: ' . implode( ', ', $allowed_content_types ),
|
461 |
-
'sslverify' => false,
|
462 |
-
'stream' => true,
|
463 |
-
'timeout' => MINUTE_IN_SECONDS * 20,
|
464 |
-
)
|
465 |
-
);
|
466 |
-
|
467 |
-
if ( is_array( $response ) && ! is_wp_error( $response ) &&
|
468 |
-
in_array( $response['headers']['content-type'], $allowed_content_types, true ) ) {
|
469 |
-
$logger->add( 'Archive downloaded successfully.' );
|
470 |
-
$logger->add( 'Headers: ' . ( empty( $response['headers'] ) ? 'Empty' : print_r( $response['headers'], 1 ) ) ); // phpcs:ignore
|
471 |
-
|
472 |
-
// Determine the archive log file path.
|
473 |
-
$log_filepath = $filepath;
|
474 |
-
|
475 |
-
if ( ! empty( $response['headers']['content-disposition'] ) ) {
|
476 |
-
$log_filepath = trim(
|
477 |
-
str_replace(
|
478 |
-
'attachment; filename=', '', $response['headers']['content-disposition']
|
479 |
-
), '"'
|
480 |
-
);
|
481 |
-
|
482 |
-
$log_filepath = $this->core->backup_dir->get_path_to( $log_filepath );
|
483 |
-
}
|
484 |
-
|
485 |
-
$log_filepath = $this->core->archive_log->path_from_zip( $log_filepath );
|
486 |
-
$filename = basename( $filepath );
|
487 |
-
|
488 |
-
// Restore the log file from the archive.
|
489 |
-
$restored = $this->core->archive_log->restore_by_zip( $filepath, basename( $log_filepath ) );
|
490 |
-
$logger->add( 'Log restored from zip: ' . ( $restored ? 'Success' : 'Fail' ) );
|
491 |
-
|
492 |
-
// Update the archive file modification time, based on the log file contents.
|
493 |
-
$this->core->remote->post_download( $filepath );
|
494 |
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
wp_send_json_success(
|
499 |
-
[
|
500 |
-
'filepath' => $filepath,
|
501 |
-
'detailsUrl' => admin_url(
|
502 |
-
'admin.php?page=boldgrid-backup-archive-details&filename=' .
|
503 |
-
basename( $filepath )
|
504 |
-
),
|
505 |
-
'archiveFilename' => $filename,
|
506 |
-
'archiveKey' => $archive['key'],
|
507 |
-
]
|
508 |
-
);
|
509 |
-
} else {
|
510 |
-
// Get the data from the $response that we want to print to the log.
|
511 |
-
// @todo simply the below.
|
512 |
-
if ( is_wp_error( $response ) ) {
|
513 |
-
$log_data = $response;
|
514 |
-
} elseif ( is_array( $response ) ) {
|
515 |
-
$log_data = array();
|
516 |
-
|
517 |
-
if ( ! empty( $response['body'] ) ) {
|
518 |
-
$log_data['body'] = $response['body'];
|
519 |
-
}
|
520 |
-
if ( ! empty( $response['response'] ) ) {
|
521 |
-
$log_data['response'] = $response['response'];
|
522 |
-
}
|
523 |
-
}
|
524 |
-
|
525 |
-
$logger->add( 'Failed to download archive. Additional info: ' . print_r( $log_data, 1 ) ); // phpcs:ignore
|
526 |
-
$this->core->wp_filesystem->delete( $filepath );
|
527 |
-
}
|
528 |
-
|
529 |
-
// Determine the error message the user will see and return it.
|
530 |
-
$error_message = __( 'Could not retrieve the remote file.', 'boldgrid-backup' );
|
531 |
-
if ( is_wp_error( $response ) ) {
|
532 |
-
// Example: cURL error 28: Connection timed out after 100001 milliseconds.
|
533 |
-
$error_message .= ' ' . $response->get_error_message();
|
534 |
-
} elseif ( ! empty( $response['response']['code'] && ! empty( $response['response']['message'] ) ) ) {
|
535 |
-
// Example: 403 Forbidden
|
536 |
-
$error_message .= ' ' . $response['response']['code'] . ' ' . $response['response']['message'];
|
537 |
} else {
|
538 |
-
|
539 |
-
$error_message .= ' ' . __( 'Unknown error. It may not be a ZIP file, or the link is no longer valid.', 'boldgrid-backup' );
|
540 |
}
|
541 |
-
|
542 |
-
wp_send_json_error(
|
543 |
-
[
|
544 |
-
'error' => $error_message,
|
545 |
-
]
|
546 |
-
);
|
547 |
}
|
548 |
|
549 |
/**
|
424 |
);
|
425 |
}
|
426 |
|
427 |
+
$url = ! empty( $_POST['url'] ) ? esc_url_raw( $_POST['url'] ) : null;
|
|
|
428 |
|
429 |
+
$archive_fetcher = new Boldgrid_Backup_Archive_Fetcher( $url );
|
430 |
+
$archive_fetcher->download();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
|
432 |
+
if ( $archive_fetcher->has_error() ) {
|
433 |
+
wp_send_json_error( [ 'error' => $archive_fetcher->get_error() ] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
} else {
|
435 |
+
wp_send_json_success( $archive_fetcher->get_info() );
|
|
|
436 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
}
|
438 |
|
439 |
/**
|
admin/class-boldgrid-backup-admin-utility.php
CHANGED
@@ -323,6 +323,19 @@ class Boldgrid_Backup_Admin_Utility {
|
|
323 |
return true;
|
324 |
}
|
325 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
/**
|
327 |
* Increase the PHP max execution time.
|
328 |
*
|
323 |
return true;
|
324 |
}
|
325 |
|
326 |
+
/**
|
327 |
+
* Whether or not a string starts with another.
|
328 |
+
*
|
329 |
+
* @since SINCEVERSION
|
330 |
+
*
|
331 |
+
* @param string $string The string we're checking as a whole.
|
332 |
+
* @param string $search The string we're checking to see if starts with.
|
333 |
+
* @return bool
|
334 |
+
*/
|
335 |
+
public static function starts_with( $string, $search ) {
|
336 |
+
return substr( $string, 0, strlen( $search ) ) === $search;
|
337 |
+
}
|
338 |
+
|
339 |
/**
|
340 |
* Increase the PHP max execution time.
|
341 |
*
|
admin/class-boldgrid-backup-admin-wp-cron.php
CHANGED
@@ -349,6 +349,7 @@ class Boldgrid_Backup_Admin_WP_Cron {
|
|
349 |
* @since 1.5.1
|
350 |
*/
|
351 |
public function backup() {
|
352 |
-
$
|
|
|
353 |
}
|
354 |
}
|
349 |
* @since 1.5.1
|
350 |
*/
|
351 |
public function backup() {
|
352 |
+
$archiver = new Boldgrid_Backup_Archiver();
|
353 |
+
$archiver->run();
|
354 |
}
|
355 |
}
|
admin/compressor/class-boldgrid-backup-admin-compressor-pcl-zip.php
CHANGED
@@ -168,10 +168,6 @@ class Boldgrid_Backup_Admin_Compressor_Pcl_Zip extends Boldgrid_Backup_Admin_Com
|
|
168 |
* }
|
169 |
*/
|
170 |
public function archive_files( $filelist, &$info ) {
|
171 |
-
if ( $info['dryrun'] ) {
|
172 |
-
return true;
|
173 |
-
}
|
174 |
-
|
175 |
$cwd = $this->wp_filesystem->cwd();
|
176 |
|
177 |
$archive = new PclZip( $info['filepath'] );
|
@@ -336,6 +332,10 @@ class Boldgrid_Backup_Admin_Compressor_Pcl_Zip extends Boldgrid_Backup_Admin_Com
|
|
336 |
}
|
337 |
|
338 |
$file_contents = $this->get_file( $filepath, $file );
|
|
|
|
|
|
|
|
|
339 |
|
340 |
// Make sure the file's dir exists, write the file, and adjust the timestamp.
|
341 |
$file_abspath = ABSPATH . $file;
|
168 |
* }
|
169 |
*/
|
170 |
public function archive_files( $filelist, &$info ) {
|
|
|
|
|
|
|
|
|
171 |
$cwd = $this->wp_filesystem->cwd();
|
172 |
|
173 |
$archive = new PclZip( $info['filepath'] );
|
332 |
}
|
333 |
|
334 |
$file_contents = $this->get_file( $filepath, $file );
|
335 |
+
if ( ! is_array( $file_contents ) ) {
|
336 |
+
$this->errors[] = __( 'Unable to extract file from archive.', 'boldgrid-backup' );
|
337 |
+
return false;
|
338 |
+
}
|
339 |
|
340 |
// Make sure the file's dir exists, write the file, and adjust the timestamp.
|
341 |
$file_abspath = ABSPATH . $file;
|
admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php
CHANGED
@@ -126,10 +126,6 @@ class Boldgrid_Backup_Admin_Compressor_Php_Zip extends Boldgrid_Backup_Admin_Com
|
|
126 |
$number_files_todo = count( $filelist );
|
127 |
$last_x_files = array();
|
128 |
|
129 |
-
if ( $info['dryrun'] ) {
|
130 |
-
return true;
|
131 |
-
}
|
132 |
-
|
133 |
// Prevent this process from ending; allow the archive to be completed.
|
134 |
ignore_user_abort( true );
|
135 |
set_time_limit( 0 );
|
126 |
$number_files_todo = count( $filelist );
|
127 |
$last_x_files = array();
|
128 |
|
|
|
|
|
|
|
|
|
129 |
// Prevent this process from ending; allow the archive to be completed.
|
130 |
ignore_user_abort( true );
|
131 |
set_time_limit( 0 );
|
admin/compressor/class-boldgrid-backup-admin-compressor-system-zip.php
CHANGED
@@ -127,10 +127,6 @@ class Boldgrid_Backup_Admin_Compressor_System_Zip extends Boldgrid_Backup_Admin_
|
|
127 |
* }
|
128 |
*/
|
129 |
public function archive_files( $filelist, &$info ) {
|
130 |
-
if ( $info['dryrun'] ) {
|
131 |
-
return true;
|
132 |
-
}
|
133 |
-
|
134 |
// Prevent this process from ending; allow the archive to be completed.
|
135 |
ignore_user_abort( true );
|
136 |
set_time_limit( 0 );
|
127 |
* }
|
128 |
*/
|
129 |
public function archive_files( $filelist, &$info ) {
|
|
|
|
|
|
|
|
|
130 |
// Prevent this process from ending; allow the archive to be completed.
|
131 |
ignore_user_abort( true );
|
132 |
set_time_limit( 0 );
|
admin/cron/class-crontab.php
CHANGED
@@ -54,8 +54,6 @@ class Crontab {
|
|
54 |
*/
|
55 |
public function find_crons( array $patterns = [] ) {
|
56 |
$all_crons = $this->core->cron->get_all( false );
|
57 |
-
// Ensure we have an array. Failure to get crons could give us false.
|
58 |
-
$all_crons = empty( $all_crons ) ? array() : $all_crons;
|
59 |
|
60 |
$matched_crons = [];
|
61 |
|
54 |
*/
|
55 |
public function find_crons( array $patterns = [] ) {
|
56 |
$all_crons = $this->core->cron->get_all( false );
|
|
|
|
|
57 |
|
58 |
$matched_crons = [];
|
59 |
|
admin/js/boldgrid-backup-admin-archive-details.js
CHANGED
@@ -124,17 +124,29 @@ BoldGrid.ArchiveDetails = function( $ ) {
|
|
124 |
* @since 1.6.0
|
125 |
*/
|
126 |
self.onClickTab = function() {
|
127 |
-
var $
|
|
|
|
|
128 |
$fileElements = $( '[data-view-type="file"]' ),
|
129 |
view;
|
130 |
|
131 |
-
|
132 |
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
switch ( view ) {
|
136 |
case 'file':
|
137 |
$dbElements.hide();
|
|
|
138 |
$fileElements.show();
|
139 |
|
140 |
break;
|
@@ -142,6 +154,13 @@ BoldGrid.ArchiveDetails = function( $ ) {
|
|
142 |
BoldGrid.ZipBrowser.onClickViewDb();
|
143 |
|
144 |
$dbElements.show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
$fileElements.hide();
|
146 |
|
147 |
break;
|
124 |
* @since 1.6.0
|
125 |
*/
|
126 |
self.onClickTab = function() {
|
127 |
+
var $tab = $( this ),
|
128 |
+
$dbElements = $( '[data-view-type="db"]' ),
|
129 |
+
$dirElements = $( '[data-view-type="dir"]' ),
|
130 |
$fileElements = $( '[data-view-type="file"]' ),
|
131 |
view;
|
132 |
|
133 |
+
console.log( $tab );
|
134 |
|
135 |
+
// $contentWrap.toggleClass( 'html-active tmce-active' );
|
136 |
+
// view = $contentWrap.hasClass( 'html-active' ) ? 'db' : 'file';
|
137 |
+
|
138 |
+
if ( $tab.hasClass( 'switch-tmce' ) ) {
|
139 |
+
view = 'db';
|
140 |
+
} else if ( $tab.hasClass( 'switch-html' ) ) {
|
141 |
+
view = 'file';
|
142 |
+
} else if ( $tab.hasClass( 'switch-dir' ) ) {
|
143 |
+
view = 'dir';
|
144 |
+
}
|
145 |
|
146 |
switch ( view ) {
|
147 |
case 'file':
|
148 |
$dbElements.hide();
|
149 |
+
$dirElements.hide();
|
150 |
$fileElements.show();
|
151 |
|
152 |
break;
|
154 |
BoldGrid.ZipBrowser.onClickViewDb();
|
155 |
|
156 |
$dbElements.show();
|
157 |
+
$dirElements.hide();
|
158 |
+
$fileElements.hide();
|
159 |
+
|
160 |
+
break;
|
161 |
+
case 'dir':
|
162 |
+
$dbElements.hide();
|
163 |
+
$dirElements.show();
|
164 |
$fileElements.hide();
|
165 |
|
166 |
break;
|
admin/js/boldgrid-backup-admin-backup-now.js
CHANGED
@@ -17,9 +17,7 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
|
|
17 |
BOLDGRID.BACKUP.BackupNow = function( $ ) {
|
18 |
'use strict';
|
19 |
|
20 |
-
var self = this
|
21 |
-
$backupNowType = $( '[name="folder_exclusion_type"]' ),
|
22 |
-
$tablesType = $( '[name="table_inclusion_type"]' );
|
23 |
|
24 |
$( function() {
|
25 |
$( 'body' ).on( 'click', '#backup-site-now', self.backupNow );
|
@@ -39,9 +37,18 @@ BOLDGRID.BACKUP.BackupNow = function( $ ) {
|
|
39 |
wpHttpReferer,
|
40 |
isUpdating,
|
41 |
data,
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
includeTables = [],
|
46 |
type = 'full',
|
47 |
tablesType = null;
|
17 |
BOLDGRID.BACKUP.BackupNow = function( $ ) {
|
18 |
'use strict';
|
19 |
|
20 |
+
var self = this;
|
|
|
|
|
21 |
|
22 |
$( function() {
|
23 |
$( 'body' ).on( 'click', '#backup-site-now', self.backupNow );
|
37 |
wpHttpReferer,
|
38 |
isUpdating,
|
39 |
data,
|
40 |
+
|
41 |
+
/*
|
42 |
+
* As of @SINCEVERSION, the selectors below were updated to include #TB_ajaxContent. This
|
43 |
+
* is because if we are on the settings page, the [name] selectors will exist twice and
|
44 |
+
* will therefore cause problems. As we're in "backup site now", we know we're specifically
|
45 |
+
* looking for data in the modal.
|
46 |
+
*/
|
47 |
+
$backupNowType = $( '#TB_ajaxContent [name="folder_exclusion_type"]' ),
|
48 |
+
$tablesType = $( '#TB_ajaxContent [name="table_inclusion_type"]' ),
|
49 |
+
$folderExclude = $( '#TB_ajaxContent [name="folder_exclusion_exclude"]' ),
|
50 |
+
$folderInclude = $( '#TB_ajaxContent [name="folder_exclusion_include"]' ),
|
51 |
+
$tableInclude = $( '#TB_ajaxContent [name="include_tables[]"]' ),
|
52 |
includeTables = [],
|
53 |
type = 'full',
|
54 |
tablesType = null;
|
admin/partials/archive-details/dir.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: dir.php
|
4 |
+
*
|
5 |
+
* If many backups, list directory contents.
|
6 |
+
*
|
7 |
+
* @link https://www.boldgrid.com
|
8 |
+
* @since SINCEVERSION
|
9 |
+
*
|
10 |
+
* @package Boldgrid_Backup
|
11 |
+
* @subpackage Boldgrid_Backup/admin/partials/archive-details
|
12 |
+
* @copyright BoldGrid
|
13 |
+
* @author BoldGrid <support@boldgrid.com>
|
14 |
+
*/
|
15 |
+
|
16 |
+
defined( 'WPINC' ) || die;
|
17 |
+
|
18 |
+
$dir_browser_contents = 'Dirlist not found';
|
19 |
+
if ( $this->core->archive->is_virtual ) {
|
20 |
+
$dir = $this->core->backup_dir->get_path_to( $this->core->archive->basename );
|
21 |
+
$dirlist = $this->core->wp_filesystem->dirlist( $dir );
|
22 |
+
|
23 |
+
// Sort by filename.
|
24 |
+
usort( $dirlist, function ( $item1, $item2 ) {
|
25 |
+
return $item1['name'] < $item2['name'] ? -1 : 1;
|
26 |
+
});
|
27 |
+
|
28 |
+
$dir_browser_contents = '
|
29 |
+
<table class="widefat fixed striped">
|
30 |
+
<thead>
|
31 |
+
<tr>
|
32 |
+
<th>File</th>
|
33 |
+
<th>Size</th>
|
34 |
+
</tr>
|
35 |
+
</thead>
|
36 |
+
<tbody>';
|
37 |
+
foreach ( $dirlist as $file ) {
|
38 |
+
$dir_browser_contents .= '
|
39 |
+
<tr>
|
40 |
+
<td>' . esc_html( $file['name'] ) . '</td>
|
41 |
+
<td>' . size_format( $file['size'], 2 ) . '</td>
|
42 |
+
</tr>';
|
43 |
+
}
|
44 |
+
$dir_browser_contents .= '
|
45 |
+
</tbody>
|
46 |
+
</table>';
|
47 |
+
}
|
48 |
+
|
49 |
+
$dir_browser = '
|
50 |
+
<div class="hidden" data-view-type="dir">
|
51 |
+
' . $dir_browser_contents . '
|
52 |
+
</div>
|
53 |
+
';
|
54 |
+
|
55 |
+
return $dir_browser;
|
admin/partials/boldgrid-backup-admin-archive-details.php
CHANGED
@@ -54,6 +54,7 @@ $details = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-detail
|
|
54 |
$remote_storage = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/remote-storage.php';
|
55 |
$browser = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/browser.php';
|
56 |
$db = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/db.php';
|
|
|
57 |
|
58 |
// Special situations where the backup file is not local and/or remote.
|
59 |
$only_remote = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/only-remote.php';
|
@@ -326,6 +327,7 @@ $editor_tools = sprintf(
|
|
326 |
<div class="wp-editor-tabs">
|
327 |
<button type="button" id="content-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="content">%2$s</button>
|
328 |
<button type="button" id="content-html" class="wp-switch-editor switch-html" data-wp-editor-id="content">%3$s</button>
|
|
|
329 |
</div>
|
330 |
</div>
|
331 |
',
|
@@ -398,7 +400,7 @@ $main_content = '
|
|
398 |
<p>
|
399 |
' . esc_html__( 'Use the File & Folders and Database tools below to browse the contents of this backup file.', 'boldgrid-backup' ) . '
|
400 |
</p>
|
401 |
-
' . $intro . $editor_tools . $browser . $db['browser'] . '
|
402 |
</div>
|
403 |
</div>
|
404 |
';
|
54 |
$remote_storage = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/remote-storage.php';
|
55 |
$browser = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/browser.php';
|
56 |
$db = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/db.php';
|
57 |
+
$dir = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/dir.php';
|
58 |
|
59 |
// Special situations where the backup file is not local and/or remote.
|
60 |
$only_remote = include BOLDGRID_BACKUP_PATH . '/admin/partials/archive-details/only-remote.php';
|
327 |
<div class="wp-editor-tabs">
|
328 |
<button type="button" id="content-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="content">%2$s</button>
|
329 |
<button type="button" id="content-html" class="wp-switch-editor switch-html" data-wp-editor-id="content">%3$s</button>
|
330 |
+
<button type="button" class="wp-switch-editor switch-dir">Backup Directory</button>
|
331 |
</div>
|
332 |
</div>
|
333 |
',
|
400 |
<p>
|
401 |
' . esc_html__( 'Use the File & Folders and Database tools below to browse the contents of this backup file.', 'boldgrid-backup' ) . '
|
402 |
</p>
|
403 |
+
' . $intro . $editor_tools . $browser . $db['browser'] . $dir . '
|
404 |
</div>
|
405 |
</div>
|
406 |
';
|
admin/partials/boldgrid-backup-admin-settings.php
CHANGED
@@ -19,6 +19,7 @@ defined( 'WPINC' ) || die;
|
|
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 |
$backup_logs = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/backup-logs.php';
|
23 |
$folders_include = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/folders.php';
|
24 |
$db = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/db.php';
|
@@ -58,7 +59,7 @@ $sections = [
|
|
58 |
[
|
59 |
'id' => 'section_process',
|
60 |
'title' => __( 'Backup Process', 'boldgrid-backup' ),
|
61 |
-
'content' => $compressor . $backup_logs,
|
62 |
],
|
63 |
[
|
64 |
'id' => 'connect_key',
|
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 |
+
$format = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/format.php';
|
23 |
$backup_logs = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/backup-logs.php';
|
24 |
$folders_include = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/folders.php';
|
25 |
$db = include BOLDGRID_BACKUP_PATH . '/admin/partials/settings/db.php';
|
59 |
[
|
60 |
'id' => 'section_process',
|
61 |
'title' => __( 'Backup Process', 'boldgrid-backup' ),
|
62 |
+
'content' => $compressor . $backup_logs . $format,
|
63 |
],
|
64 |
[
|
65 |
'id' => 'connect_key',
|
admin/partials/settings/format.php
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: format.php
|
4 |
+
*
|
5 |
+
* Format on settings page.
|
6 |
+
*
|
7 |
+
* @link https://www.boldgrid.com
|
8 |
+
* @since SINCEVERSION
|
9 |
+
*
|
10 |
+
* @package Boldgrid_Backup
|
11 |
+
* @subpackage Boldgrid_Backup/admin/partials/settings
|
12 |
+
* @copyright BoldGrid
|
13 |
+
* @version $Id$
|
14 |
+
* @author BoldGrid <support@boldgrid.com>
|
15 |
+
*/
|
16 |
+
|
17 |
+
defined( 'WPINC' ) || die;
|
18 |
+
|
19 |
+
$core = apply_filters( 'boldgrid_backup_get_core', null );
|
20 |
+
|
21 |
+
$format_setting = $core->settings->get_setting( 'format' );
|
22 |
+
$one_selected = 'one' === $format_setting ? 'selected' : '';
|
23 |
+
$many_selected = 'many' === $format_setting ? 'selected' : '';
|
24 |
+
|
25 |
+
$select_format = '
|
26 |
+
<select name="format">
|
27 |
+
<option value="one" ' . $one_selected . '>One zip file</option>
|
28 |
+
<option value="many" ' . $many_selected . '>Several zip files</option>
|
29 |
+
</select>
|
30 |
+
';
|
31 |
+
|
32 |
+
ob_start();
|
33 |
+
?>
|
34 |
+
<div class="bg-box">
|
35 |
+
<div class="bg-box-top">
|
36 |
+
<?php esc_html_e( 'Format', 'boldgrid-backup' ); ?>
|
37 |
+
<span class='dashicons dashicons-editor-help' data-id='format'></span>
|
38 |
+
</div>
|
39 |
+
<div class="bg-box-bottom">
|
40 |
+
<p class="help" data-id="format">
|
41 |
+
<?php
|
42 |
+
esc_html_e( 'Todo. More info needed', 'boldgrid-backup' );
|
43 |
+
?>
|
44 |
+
</p>
|
45 |
+
|
46 |
+
<table class="form-table">
|
47 |
+
<tr>
|
48 |
+
<th><?php esc_html_e( 'Format', 'boldgrid-backup' ); ?>:</th>
|
49 |
+
<td>
|
50 |
+
<?php echo $select_format; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
|
51 |
+
</td>
|
52 |
+
</tr>
|
53 |
+
</table>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
|
57 |
+
<?php
|
58 |
+
$output = ob_get_contents();
|
59 |
+
ob_end_clean();
|
60 |
+
return $output;
|
boldgrid-backup-cron.php
CHANGED
@@ -59,6 +59,7 @@ if ( $error ) {
|
|
59 |
$valid_modes = array(
|
60 |
'backup',
|
61 |
'restore',
|
|
|
62 |
);
|
63 |
|
64 |
if ( ! in_array( $input['mode'], $valid_modes, true ) ) {
|
59 |
$valid_modes = array(
|
60 |
'backup',
|
61 |
'restore',
|
62 |
+
'resume',
|
63 |
);
|
64 |
|
65 |
if ( ! in_array( $input['mode'], $valid_modes, true ) ) {
|
boldgrid-backup.php
CHANGED
@@ -50,6 +50,8 @@ if ( ! defined( 'BOLDGRID_BACKUP_TITLE' ) ) {
|
|
50 |
define( 'BOLDGRID_BACKUP_TITLE', 'Total Upkeep' );
|
51 |
}
|
52 |
|
|
|
|
|
53 |
/**
|
54 |
* The code that runs during plugin activation.
|
55 |
* This action is documented in includes/class-boldgrid-backup-activator.php
|
@@ -140,7 +142,7 @@ function load_boldgrid_backup() {
|
|
140 |
*
|
141 |
* Run the plugin only if on a wp-admin page or when DOING_CRON.
|
142 |
*/
|
143 |
-
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || defined( 'WP_CLI' ) && WP_CLI ) {
|
144 |
// If we could not load boldgrid_backup (missing system requirements), abort.
|
145 |
if ( load_boldgrid_backup() ) {
|
146 |
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup.php';
|
50 |
define( 'BOLDGRID_BACKUP_TITLE', 'Total Upkeep' );
|
51 |
}
|
52 |
|
53 |
+
require_once BOLDGRID_BACKUP_PATH . '/rest/class-boldgrid-backup-rest-utility.php';
|
54 |
+
|
55 |
/**
|
56 |
* The code that runs during plugin activation.
|
57 |
* This action is documented in includes/class-boldgrid-backup-activator.php
|
142 |
*
|
143 |
* Run the plugin only if on a wp-admin page or when DOING_CRON.
|
144 |
*/
|
145 |
+
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || defined( 'WP_CLI' ) && WP_CLI || Boldgrid_Backup_Rest_Utility::is_rest() ) {
|
146 |
// If we could not load boldgrid_backup (missing system requirements), abort.
|
147 |
if ( load_boldgrid_backup() ) {
|
148 |
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup.php';
|
cli/{verify-40ffd4cbdc279dfa880a7510790279fe.php → verify-db16e91791975a3ef7fb2be0c23b2b63.php}
RENAMED
File without changes
|
coverage.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<coverage generated="
|
3 |
-
<project timestamp="
|
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">
|
@@ -1087,28 +1087,28 @@
|
|
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="
|
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="
|
1096 |
-
<line num="50" type="stmt" count="
|
1097 |
-
<line num="52" type="stmt" count="
|
1098 |
-
<line num="53" type="stmt" count="
|
1099 |
<line num="54" type="stmt" count="0"/>
|
1100 |
-
<line num="57" type="stmt" count="
|
1101 |
-
<line num="68" type="method" name="get_by_zip" visibility="public" complexity="3" crap="3.14" count="
|
1102 |
-
<line num="69" type="stmt" count="
|
1103 |
-
<line num="71" type="stmt" count="
|
1104 |
-
<line num="72" type="stmt" count="
|
1105 |
<line num="73" type="stmt" count="0"/>
|
1106 |
-
<line num="76" type="stmt" count="
|
1107 |
-
<line num="77" type="stmt" count="
|
1108 |
<line num="78" type="stmt" count="0"/>
|
1109 |
-
<line num="81" type="stmt" count="
|
1110 |
-
<line num="94" type="method" name="path_from_zip" visibility="public" complexity="1" crap="1" count="
|
1111 |
-
<line num="95" type="stmt" count="
|
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,265 +1117,294 @@
|
|
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="
|
1121 |
-
<line num="136" type="stmt" count="
|
1122 |
-
<line num="138" type="stmt" count="
|
1123 |
<line num="139" type="stmt" count="0"/>
|
1124 |
-
<line num="142" type="stmt" count="
|
1125 |
-
<line num="143" type="stmt" count="
|
1126 |
-
<line num="146" type="stmt" count="
|
1127 |
-
<line num="147" type="stmt" count="
|
1128 |
-
<line num="148" type="stmt" count="
|
1129 |
-
<line num="149" type="stmt" count="
|
1130 |
<line num="153" type="stmt" count="0"/>
|
1131 |
<line num="154" type="stmt" count="0"/>
|
1132 |
<line num="156" type="stmt" count="0"/>
|
1133 |
-
<line num="169" type="method" name="write" visibility="public" complexity="
|
1134 |
-
<line num="170" type="stmt" count="
|
1135 |
<line num="171" type="stmt" count="0"/>
|
1136 |
-
<line num="174" type="stmt" count="
|
1137 |
-
<line num="176" type="stmt" count="
|
1138 |
-
<line num="177" type="stmt" count="
|
1139 |
<line num="178" type="stmt" count="0"/>
|
1140 |
-
<line num="181" type="stmt" count="
|
1141 |
-
<line num="182" type="stmt" count="
|
1142 |
<line num="183" type="stmt" count="0"/>
|
1143 |
-
<line num="187" type="stmt" count="
|
1144 |
<line num="188" type="stmt" count="0"/>
|
1145 |
<line num="189" type="stmt" count="0"/>
|
1146 |
-
<line num="
|
1147 |
-
<line num="
|
1148 |
-
<line num="
|
1149 |
-
<line num="
|
1150 |
-
<line num="
|
1151 |
-
<line num="
|
1152 |
-
<line num="
|
1153 |
-
<line num="
|
1154 |
-
<line num="
|
1155 |
-
<
|
|
|
|
|
|
|
|
|
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="
|
1160 |
</class>
|
1161 |
-
<line num="
|
1162 |
-
<line num="
|
1163 |
-
<line num="
|
1164 |
-
<line num="
|
1165 |
-
<line num="
|
1166 |
-
<line num="
|
1167 |
-
<line num="
|
1168 |
-
<line num="
|
1169 |
-
<line num="
|
1170 |
-
<line num="
|
1171 |
-
<line num="
|
1172 |
-
<line num="
|
1173 |
-
<line num="
|
1174 |
-
<line num="
|
1175 |
-
<line num="
|
1176 |
-
<line num="
|
1177 |
-
<line num="
|
1178 |
-
<line num="
|
1179 |
-
<line num="
|
1180 |
-
<line num="
|
1181 |
-
<line num="
|
1182 |
-
<line num="
|
1183 |
-
<line num="
|
1184 |
-
<line num="
|
1185 |
-
<line num="
|
1186 |
-
<line num="
|
1187 |
-
<line num="
|
1188 |
-
<line num="
|
1189 |
-
<line num="
|
1190 |
-
<line num="
|
1191 |
-
<line num="
|
1192 |
-
<line num="
|
1193 |
-
<line num="
|
1194 |
-
<line num="
|
1195 |
-
<line num="
|
1196 |
-
<line num="
|
1197 |
-
<line num="
|
1198 |
-
<line num="
|
1199 |
-
<line num="
|
1200 |
-
<line num="
|
1201 |
-
<line num="
|
1202 |
-
<line num="
|
1203 |
-
<line num="
|
1204 |
-
<line num="
|
1205 |
-
<line num="
|
1206 |
-
<line num="
|
1207 |
-
<line num="
|
1208 |
-
<line num="
|
1209 |
-
<line num="
|
1210 |
-
<line num="
|
1211 |
-
<line num="
|
1212 |
-
<line num="
|
1213 |
-
<line num="
|
1214 |
-
<line num="
|
1215 |
-
<line num="
|
1216 |
-
<line num="
|
1217 |
-
<line num="
|
1218 |
-
<line num="
|
1219 |
-
<line num="
|
1220 |
-
<line num="
|
1221 |
-
<line num="
|
1222 |
-
<line num="
|
1223 |
-
<line num="
|
1224 |
-
<line num="
|
1225 |
-
<line num="
|
1226 |
-
<line num="
|
1227 |
-
<line num="
|
1228 |
-
<line num="
|
1229 |
-
<line num="
|
1230 |
-
<line num="
|
1231 |
-
<line num="
|
1232 |
-
<line num="
|
1233 |
-
<line num="
|
1234 |
-
<line num="
|
1235 |
-
<line num="
|
1236 |
-
<line num="
|
1237 |
-
<line num="
|
1238 |
-
<line num="
|
1239 |
-
<line num="
|
1240 |
-
<line num="
|
1241 |
-
<line num="
|
1242 |
-
<line num="
|
1243 |
-
<line num="
|
1244 |
-
<line num="
|
1245 |
-
<line num="
|
1246 |
-
<line num="
|
1247 |
-
<line num="
|
1248 |
-
<line num="
|
1249 |
-
<line num="
|
1250 |
-
<line num="
|
1251 |
-
<line num="
|
1252 |
-
<line num="
|
1253 |
-
<line num="
|
1254 |
-
<line num="
|
1255 |
-
<line num="
|
1256 |
-
<line num="
|
1257 |
-
<line num="
|
1258 |
-
<line num="
|
1259 |
-
<line num="
|
1260 |
-
<line num="
|
1261 |
-
<line num="
|
1262 |
-
<line num="
|
1263 |
-
<line num="
|
1264 |
-
<line num="
|
1265 |
-
<line num="
|
1266 |
-
<line num="
|
1267 |
-
<line num="
|
1268 |
-
<line num="
|
1269 |
-
<line num="
|
1270 |
-
<line num="
|
1271 |
-
<line num="
|
1272 |
-
<line num="
|
1273 |
-
<line num="
|
1274 |
-
<line num="
|
1275 |
-
<line num="
|
1276 |
-
<line num="
|
1277 |
-
<line num="
|
1278 |
-
<line num="
|
1279 |
-
<line num="
|
1280 |
-
<line num="
|
1281 |
-
<line num="
|
1282 |
-
<line num="
|
1283 |
-
<line num="
|
1284 |
-
<line num="
|
1285 |
-
<line num="
|
1286 |
-
<line num="
|
1287 |
-
<line num="
|
1288 |
-
<line num="
|
1289 |
-
<line num="
|
1290 |
-
<line num="
|
1291 |
-
<line num="
|
1292 |
-
<line num="
|
1293 |
-
<line num="538" type="stmt" count="0"/>
|
1294 |
-
<line num="539" type="stmt" count="0"/>
|
1295 |
-
<line num="540" type="stmt" count="0"/>
|
1296 |
-
<line num="542" type="stmt" count="0"/>
|
1297 |
-
<line num="544" type="stmt" count="0"/>
|
1298 |
-
<line num="545" type="stmt" count="0"/>
|
1299 |
-
<line num="546" type="stmt" count="0"/>
|
1300 |
-
<line num="548" type="stmt" count="0"/>
|
1301 |
-
<line num="549" type="stmt" count="0"/>
|
1302 |
-
<line num="551" type="stmt" count="0"/>
|
1303 |
-
<line num="552" type="stmt" count="0"/>
|
1304 |
-
<line num="553" type="stmt" count="0"/>
|
1305 |
-
<line num="555" type="stmt" count="0"/>
|
1306 |
-
<line num="571" type="method" name="generate_download_link" visibility="public" complexity="2" crap="6" count="0"/>
|
1307 |
<line num="572" type="stmt" count="0"/>
|
1308 |
-
<line num="574" type="stmt" count="0"/>
|
1309 |
-
<line num="575" type="stmt" count="0"/>
|
1310 |
-
<line num="576" type="stmt" count="0"/>
|
1311 |
-
<line num="578" type="stmt" count="0"/>
|
1312 |
-
<line num="579" type="stmt" count="0"/>
|
1313 |
-
<line num="581" type="stmt" count="0"/>
|
1314 |
-
<line num="583" type="stmt" count="0"/>
|
1315 |
-
<line num="584" type="stmt" count="0"/>
|
1316 |
-
<line num="585" type="stmt" count="0"/>
|
1317 |
-
<line num="586" type="stmt" count="0"/>
|
1318 |
-
<line num="587" type="stmt" count="0"/>
|
1319 |
<line num="588" type="stmt" count="0"/>
|
1320 |
-
<line num="
|
1321 |
-
<line num="
|
1322 |
-
<line num="
|
1323 |
-
<line num="
|
1324 |
-
<line num="
|
1325 |
-
<line num="
|
1326 |
-
<line num="
|
1327 |
-
<line num="
|
1328 |
-
<line num="
|
|
|
1329 |
<line num="635" type="stmt" count="0"/>
|
1330 |
-
<line num="636" type="stmt" count="0"/>
|
1331 |
-
<line num="637" type="stmt" count="0"/>
|
1332 |
<line num="638" type="stmt" count="0"/>
|
1333 |
<line num="639" type="stmt" count="0"/>
|
1334 |
<line num="640" type="stmt" count="0"/>
|
1335 |
-
<line num="
|
1336 |
-
<line num="642" type="stmt" count="0"/>
|
1337 |
<line num="644" type="stmt" count="0"/>
|
1338 |
<line num="645" type="stmt" count="0"/>
|
1339 |
-
<line num="646" type="stmt" count="0"/>
|
1340 |
-
<line num="647" type="stmt" count="0"/>
|
1341 |
<line num="648" type="stmt" count="0"/>
|
1342 |
<line num="649" type="stmt" count="0"/>
|
1343 |
<line num="650" type="stmt" count="0"/>
|
1344 |
-
<line num="651" type="stmt" count="0"/>
|
1345 |
<line num="652" type="stmt" count="0"/>
|
1346 |
-
<line num="
|
1347 |
-
<line num="
|
1348 |
-
<line num="658" type="stmt" count="0"/>
|
1349 |
<line num="659" type="stmt" count="0"/>
|
1350 |
<line num="660" type="stmt" count="0"/>
|
1351 |
<line num="661" type="stmt" count="0"/>
|
1352 |
-
<line num="662" type="stmt" count="0"/>
|
1353 |
<line num="663" type="stmt" count="0"/>
|
1354 |
-
<line num="664" type="stmt" count="0"/>
|
1355 |
<line num="665" type="stmt" count="0"/>
|
1356 |
<line num="666" type="stmt" count="0"/>
|
1357 |
-
<line num="
|
1358 |
<line num="669" type="stmt" count="0"/>
|
1359 |
<line num="670" type="stmt" count="0"/>
|
1360 |
<line num="672" type="stmt" count="0"/>
|
1361 |
<line num="673" type="stmt" count="0"/>
|
1362 |
-
<line num="
|
1363 |
-
<line num="
|
1364 |
-
<line num="
|
1365 |
-
<line num="
|
1366 |
-
<line num="690" type="stmt" count="4"/>
|
1367 |
-
<line num="692" type="stmt" count="4"/>
|
1368 |
-
<line num="693" type="stmt" count="4"/>
|
1369 |
-
<line num="694" type="stmt" count="4"/>
|
1370 |
<line num="695" type="stmt" count="0"/>
|
|
|
1371 |
<line num="697" type="stmt" count="0"/>
|
1372 |
-
<line num="698" type="stmt" count="0"/>
|
1373 |
<line num="699" type="stmt" count="0"/>
|
1374 |
<line num="700" type="stmt" count="0"/>
|
1375 |
-
<line num="
|
1376 |
-
<line num="
|
1377 |
-
<line num="
|
1378 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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">
|
@@ -1384,21 +1413,21 @@
|
|
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="
|
1388 |
-
<line num="52" type="stmt" count="
|
1389 |
<line num="53" type="stmt" count="0"/>
|
1390 |
-
<line num="56" type="stmt" count="
|
1391 |
<line num="57" type="stmt" count="0"/>
|
1392 |
-
<line num="60" type="stmt" count="
|
1393 |
<line num="61" type="stmt" count="0"/>
|
1394 |
-
<line num="64" type="stmt" count="
|
1395 |
<line num="65" type="stmt" count="0"/>
|
1396 |
-
<line num="68" type="stmt" count="
|
1397 |
<metrics loc="70" ncloc="29" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="7" elements="13" coveredelements="8"/>
|
1398 |
</file>
|
1399 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archives-all.php">
|
1400 |
<class name="Boldgrid_Backup_Admin_Archives_All" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archives">
|
1401 |
-
<metrics complexity="20" methods="5" coveredmethods="
|
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"/>
|
@@ -1420,47 +1449,47 @@
|
|
1420 |
<line num="130" type="stmt" count="0"/>
|
1421 |
<line num="131" type="stmt" count="0"/>
|
1422 |
<line num="132" type="stmt" count="0"/>
|
1423 |
-
<line num="143" type="method" name="has_location_type" visibility="public" complexity="4" crap="
|
1424 |
-
<line num="144" type="stmt" count="
|
1425 |
-
<line num="145" type="stmt" count="
|
1426 |
-
<line num="146" type="stmt" count="
|
1427 |
-
<line num="148" type="stmt" count="
|
1428 |
-
<line num="150" type="stmt" count="
|
1429 |
-
<line num="158" type="method" name="init_location_count" visibility="public" complexity="6" crap="
|
1430 |
-
<line num="160" type="stmt" count="
|
1431 |
-
<line num="162" type="stmt" count="
|
1432 |
-
<line num="164" type="stmt" count="
|
1433 |
<line num="165" type="stmt" count="0"/>
|
1434 |
-
<line num="168" type="stmt" count="
|
1435 |
-
<line num="169" type="stmt" count="
|
1436 |
-
<line num="170" type="stmt" count="
|
1437 |
-
<line num="173" type="stmt" count="
|
1438 |
-
<line num="174" type="stmt" count="
|
1439 |
-
<line num="175" type="stmt" count="
|
1440 |
-
<line num="177" type="stmt" count="
|
1441 |
-
<line num="178" type="stmt" count="
|
1442 |
-
<line num="179" type="stmt" count="
|
1443 |
-
<line num="180" type="stmt" count="
|
1444 |
-
<line num="187" type="method" name="init" visibility="public" complexity="3" crap="
|
1445 |
-
<line num="188" type="stmt" count="
|
1446 |
-
<line num="189" type="stmt" count="
|
1447 |
-
<line num="192" type="stmt" count="
|
1448 |
-
<line num="194" type="stmt" count="
|
1449 |
-
<line num="195" type="stmt" count="
|
1450 |
-
<line num="196" type="stmt" count="
|
1451 |
-
<line num="197" type="stmt" count="
|
1452 |
-
<line num="198" type="stmt" count="
|
1453 |
-
<line num="201" type="stmt" count="
|
1454 |
-
<line num="202" type="stmt" count="
|
1455 |
-
<line num="203" type="stmt" count="
|
1456 |
-
<line num="204" type="stmt" count="
|
1457 |
-
<line num="207" type="stmt" count="
|
1458 |
-
<line num="208" type="stmt" count="
|
1459 |
-
<line num="210" type="stmt" count="
|
1460 |
-
<line num="212" type="stmt" count="
|
1461 |
-
<line num="214" type="stmt" count="
|
1462 |
-
<line num="215" type="stmt" count="
|
1463 |
-
<metrics loc="216" ncloc="108" classes="1" methods="5" coveredmethods="
|
1464 |
</file>
|
1465 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archives.php">
|
1466 |
<class name="Boldgrid_Backup_Admin_Archives" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
@@ -2163,14 +2192,14 @@
|
|
2163 |
</file>
|
2164 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-backup-dir.php">
|
2165 |
<class name="Boldgrid_Backup_Admin_Backup_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Backup">
|
2166 |
-
<metrics complexity="
|
2167 |
</class>
|
2168 |
<line num="64" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
2169 |
<line num="65" type="stmt" count="29"/>
|
2170 |
<line num="66" type="stmt" count="29"/>
|
2171 |
-
<line num="75" type="method" name="can_exec_write" visibility="public" complexity="1" crap="1" count="
|
2172 |
-
<line num="76" type="stmt" count="
|
2173 |
-
<line num="78" type="stmt" count="
|
2174 |
<line num="89" type="method" name="create" visibility="public" complexity="11" crap="11.15" count="3"/>
|
2175 |
<line num="90" type="stmt" count="3"/>
|
2176 |
<line num="93" type="stmt" count="3"/>
|
@@ -2228,171 +2257,193 @@
|
|
2228 |
<line num="171" type="stmt" count="3"/>
|
2229 |
<line num="172" type="stmt" count="3"/>
|
2230 |
<line num="174" type="stmt" count="3"/>
|
2231 |
-
<line num="184" type="method" name="dirlist" visibility="public" complexity="2" crap="2" count="
|
2232 |
-
<line num="185" type="stmt" count="
|
2233 |
-
<line num="187" type="stmt" count="
|
2234 |
-
<line num="189" type="stmt" count="
|
2235 |
-
<line num="190" type="stmt" count="
|
2236 |
-
<line num="191" type="stmt" count="
|
2237 |
-
<line num="193" type="stmt" count="
|
2238 |
-
<line num="208" type="method" name="dirlist_containing" visibility="public" complexity="5" crap="5.39" count="
|
2239 |
-
<line num="209" type="stmt" count="
|
2240 |
-
<line num="210" type="stmt" count="
|
2241 |
-
<line num="213" type="stmt" count="
|
2242 |
-
<line num="215" type="stmt" count="
|
2243 |
-
<line num="217" type="stmt" count="
|
2244 |
<line num="218" type="stmt" count="0"/>
|
2245 |
<line num="219" type="stmt" count="0"/>
|
2246 |
-
<line num="220" type="stmt" count="
|
2247 |
-
<line num="221" type="stmt" count="
|
2248 |
-
<line num="223" type="stmt" count="
|
2249 |
<line num="224" type="stmt" count="0"/>
|
2250 |
<line num="225" type="stmt" count="0"/>
|
2251 |
-
<line num="226" type="stmt" count="
|
2252 |
-
<line num="227" type="stmt" count="
|
2253 |
-
<line num="228" type="stmt" count="
|
2254 |
-
<line num="230" type="stmt" count="
|
2255 |
-
<line num="
|
2256 |
-
<line num="
|
2257 |
-
<line num="
|
2258 |
-
<line num="
|
2259 |
-
<line num="
|
2260 |
-
<line num="
|
2261 |
-
<line num="
|
2262 |
-
<line num="
|
2263 |
-
<line num="
|
2264 |
-
<line num="
|
2265 |
-
<line num="268" type="stmt" count="
|
2266 |
-
<line num="
|
2267 |
-
<line num="
|
2268 |
-
<line num="283" type="stmt" count="
|
2269 |
-
<line num="284" type="stmt" count="
|
2270 |
-
<line num="
|
2271 |
-
<line num="
|
2272 |
-
<line num="
|
2273 |
-
<line num="
|
2274 |
-
<line num="
|
2275 |
-
<line num="
|
2276 |
-
<line num="296" type="stmt" count="
|
2277 |
-
<line num="
|
2278 |
-
<line num="
|
2279 |
-
<line num="
|
2280 |
-
<line num="
|
2281 |
-
<line num="
|
2282 |
-
<line num="
|
2283 |
-
<line num="
|
2284 |
-
<line num="
|
2285 |
-
<line num="
|
2286 |
-
<line num="
|
2287 |
-
<line num="
|
2288 |
-
<line num="
|
2289 |
-
<line num="
|
2290 |
-
<line num="
|
2291 |
-
<line num="
|
2292 |
-
<line num="
|
2293 |
-
<line num="
|
2294 |
-
<line num="
|
2295 |
-
<line num="
|
2296 |
-
<line num="
|
2297 |
-
<line num="
|
2298 |
-
<line num="
|
2299 |
-
<line num="
|
2300 |
-
<line num="
|
2301 |
-
<line num="
|
2302 |
-
<line num="
|
2303 |
-
<line num="
|
2304 |
-
<line num="
|
2305 |
-
<line num="
|
2306 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2307 |
<line num="403" type="stmt" count="2"/>
|
2308 |
-
<line num="
|
2309 |
-
<line num="
|
2310 |
-
<line num="
|
2311 |
-
<line num="
|
2312 |
-
<line num="
|
2313 |
-
<line num="
|
2314 |
-
<line num="
|
2315 |
-
<line num="
|
2316 |
-
<line num="
|
2317 |
-
<line num="428" type="stmt" count="0"/>
|
2318 |
-
<line num="432" type="stmt" count="2"/>
|
2319 |
-
<line num="433" type="stmt" count="2"/>
|
2320 |
-
<line num="435" type="stmt" count="2"/>
|
2321 |
<line num="436" type="stmt" count="0"/>
|
2322 |
-
<line num="
|
2323 |
-
<line num="
|
2324 |
-
<line num="
|
2325 |
-
<line num="
|
2326 |
-
<line num="
|
2327 |
-
<line num="
|
2328 |
-
<line num="
|
2329 |
-
<line num="
|
2330 |
-
<line num="
|
2331 |
-
<line num="
|
2332 |
-
<line num="
|
2333 |
-
<line num="
|
2334 |
-
<line num="
|
2335 |
-
<line num="
|
2336 |
-
<line num="
|
2337 |
-
<line num="
|
2338 |
-
<line num="
|
2339 |
-
<line num="
|
2340 |
-
<line num="
|
2341 |
-
<line num="
|
2342 |
-
<line num="
|
2343 |
-
<line num="
|
2344 |
-
<line num="
|
2345 |
-
<line num="
|
2346 |
-
<line num="
|
2347 |
-
<line num="
|
2348 |
-
<line num="
|
2349 |
-
<line num="
|
2350 |
-
<line num="
|
2351 |
-
<line num="
|
2352 |
-
<line num="
|
2353 |
-
<line num="
|
2354 |
-
<line num="
|
2355 |
-
<line num="
|
2356 |
-
<line num="
|
2357 |
-
<line num="
|
2358 |
-
<line num="533" type="stmt" count="0"/>
|
2359 |
-
<line num="535" type="stmt" count="2"/>
|
2360 |
-
<line num="536" type="stmt" count="0"/>
|
2361 |
-
<line num="538" type="stmt" count="0"/>
|
2362 |
-
<line num="539" type="stmt" count="0"/>
|
2363 |
-
<line num="541" type="stmt" count="0"/>
|
2364 |
-
<line num="543" type="stmt" count="0"/>
|
2365 |
-
<line num="544" type="stmt" count="0"/>
|
2366 |
-
<line num="553" type="stmt" count="2"/>
|
2367 |
-
<line num="554" type="stmt" count="2"/>
|
2368 |
-
<line num="555" type="stmt" count="2"/>
|
2369 |
-
<line num="556" type="stmt" count="0"/>
|
2370 |
<line num="558" type="stmt" count="0"/>
|
2371 |
-
<line num="
|
2372 |
<line num="561" type="stmt" count="0"/>
|
2373 |
-
<line num="
|
2374 |
-
<line num="564" type="stmt" count="0"/>
|
2375 |
<line num="565" type="stmt" count="0"/>
|
2376 |
-
<line num="
|
2377 |
-
<line num="
|
2378 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2379 |
<line num="582" type="stmt" count="0"/>
|
2380 |
-
<line num="
|
2381 |
-
<line num="
|
2382 |
<line num="587" type="stmt" count="0"/>
|
2383 |
-
<line num="
|
2384 |
-
<line num="
|
2385 |
-
<line num="
|
2386 |
-
<line num="
|
2387 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2388 |
</file>
|
2389 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php">
|
2390 |
<class name="Boldgrid_Backup_Admin_Cli" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2391 |
-
<metrics complexity="
|
2392 |
</class>
|
2393 |
-
<line num="41" type="method" name="get_execution_functions" visibility="public" complexity="5" crap="5.10" count="
|
2394 |
-
<line num="43" type="stmt" count="
|
2395 |
-
<line num="44" type="stmt" count="
|
2396 |
<line num="48" type="stmt" count="1"/>
|
2397 |
<line num="49" type="stmt" count="0"/>
|
2398 |
<line num="53" type="stmt" count="1"/>
|
@@ -2410,18 +2461,18 @@
|
|
2410 |
<line num="70" type="stmt" count="1"/>
|
2411 |
<line num="73" type="stmt" count="1"/>
|
2412 |
<line num="75" type="stmt" count="1"/>
|
2413 |
-
<line num="90" type="method" name="call_command" visibility="public" complexity="
|
2414 |
-
<line num="91" type="stmt" count="
|
2415 |
-
<line num="96" type="stmt" count="
|
2416 |
-
<line num="98" type="stmt" count="
|
2417 |
-
<line num="100" type="stmt" count="
|
2418 |
-
<line num="101" type="stmt" count="
|
2419 |
-
<line num="104" type="stmt" count="
|
2420 |
<line num="105" type="stmt" count="0"/>
|
2421 |
<line num="107" type="stmt" count="0"/>
|
2422 |
<line num="109" type="stmt" count="0"/>
|
2423 |
-
<line num="112" type="stmt" count="
|
2424 |
-
<line num="114" type="stmt" count="
|
2425 |
<line num="116" type="stmt" count="0"/>
|
2426 |
<line num="117" type="stmt" count="0"/>
|
2427 |
<line num="120" type="stmt" count="0"/>
|
@@ -2430,75 +2481,73 @@
|
|
2430 |
<line num="126" type="stmt" count="0"/>
|
2431 |
<line num="128" type="stmt" count="0"/>
|
2432 |
<line num="130" type="stmt" count="0"/>
|
2433 |
-
<line num="132" type="stmt" count="
|
2434 |
-
<line num="133" type="stmt" count="
|
2435 |
-
<line num="
|
2436 |
-
<line num="
|
2437 |
-
<line num="
|
2438 |
-
<line num="
|
2439 |
-
<line num="
|
2440 |
-
<line num="148" type="stmt" count="
|
2441 |
-
<line num="
|
2442 |
-
<line num="
|
2443 |
-
<line num="
|
2444 |
-
<line num="
|
2445 |
-
<line num="
|
2446 |
-
<line num="
|
2447 |
-
<line num="162" type="stmt" count="
|
2448 |
-
<line num="163" type="stmt" count="
|
2449 |
-
<line num="
|
2450 |
-
<line num="166" type="stmt" count="
|
2451 |
-
<line num="167" type="stmt" count="
|
2452 |
-
<line num="
|
2453 |
-
<line num="
|
2454 |
-
<line num="
|
2455 |
-
<line num="
|
2456 |
-
<line num="
|
2457 |
-
<line num="
|
2458 |
-
<line num="
|
2459 |
-
<line num="
|
2460 |
-
<line num="
|
2461 |
-
<line num="
|
2462 |
-
<line num="
|
2463 |
-
<line num="194" type="stmt" count="
|
2464 |
-
<line num="
|
2465 |
-
<line num="
|
2466 |
-
<line num="
|
2467 |
-
<line num="201" type="stmt" count="
|
2468 |
-
<line num="203" type="stmt" count="
|
2469 |
-
<line num="204" type="stmt" count="
|
2470 |
-
<line num="206" type="stmt" count="
|
2471 |
-
<line num="
|
2472 |
-
<line num="
|
2473 |
-
<line num="
|
2474 |
<line num="214" type="stmt" count="0"/>
|
2475 |
-
<line num="216" type="stmt" count="0"/>
|
2476 |
<line num="217" type="stmt" count="0"/>
|
2477 |
<line num="220" type="stmt" count="0"/>
|
|
|
2478 |
<line num="223" type="stmt" count="0"/>
|
2479 |
-
<line num="
|
2480 |
-
<line num="
|
2481 |
-
<line num="
|
2482 |
<line num="230" type="stmt" count="0"/>
|
2483 |
-
<line num="
|
2484 |
-
<line num="
|
2485 |
-
<line num="
|
2486 |
-
<line num="
|
2487 |
-
<line num="
|
2488 |
-
<line num="240" type="stmt" count="
|
2489 |
-
<
|
2490 |
-
<line num="243" type="stmt" count="5"/>
|
2491 |
-
<metrics loc="245" ncloc="143" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="96" coveredstatements="66" elements="98" coveredelements="66"/>
|
2492 |
</file>
|
2493 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-compressor.php">
|
2494 |
<class name="Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2495 |
<metrics complexity="8" methods="6" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="7" elements="17" coveredelements="11"/>
|
2496 |
</class>
|
2497 |
-
<line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="
|
2498 |
-
<line num="47" type="stmt" count="
|
2499 |
-
<line num="48" type="stmt" count="
|
2500 |
-
<line num="50" type="stmt" count="
|
2501 |
-
<line num="51" type="stmt" count="
|
2502 |
<line num="74" type="method" name="archive_files" visibility="public" complexity="1" crap="2" count="0"/>
|
2503 |
<line num="75" type="stmt" count="0"/>
|
2504 |
<line num="86" type="method" name="is_available" visibility="public" complexity="1" crap="1" count="1"/>
|
@@ -2515,7 +2564,7 @@
|
|
2515 |
</file>
|
2516 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-compressors.php">
|
2517 |
<class name="Boldgrid_Backup_Admin_Compressors" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2518 |
-
<metrics complexity="17" methods="7" coveredmethods="
|
2519 |
</class>
|
2520 |
<line num="50" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="29"/>
|
2521 |
<line num="51" type="stmt" count="29"/>
|
@@ -2523,14 +2572,14 @@
|
|
2523 |
<line num="58" type="stmt" count="29"/>
|
2524 |
<line num="59" type="stmt" count="29"/>
|
2525 |
<line num="60" type="stmt" count="29"/>
|
2526 |
-
<line num="69" type="method" name="get" visibility="public" complexity="3" crap="3
|
2527 |
-
<line num="70" type="stmt" count="
|
2528 |
-
<line num="71" type="stmt" count="
|
2529 |
-
<line num="77" type="stmt" count="
|
2530 |
<line num="78" type="stmt" count="4"/>
|
2531 |
-
<line num="82" type="stmt" count="
|
2532 |
-
<line num="92" type="method" name="get_available" visibility="public" complexity="1" crap="1" count="
|
2533 |
-
<line num="93" type="stmt" count="
|
2534 |
<line num="103" type="method" name="get_default" visibility="public" complexity="1" crap="1" count="1"/>
|
2535 |
<line num="104" type="stmt" count="1"/>
|
2536 |
<line num="115" type="method" name="get_object" visibility="public" complexity="4" crap="20" count="0"/>
|
@@ -2553,11 +2602,11 @@
|
|
2553 |
<line num="158" type="stmt" count="0"/>
|
2554 |
<line num="159" type="stmt" count="0"/>
|
2555 |
<line num="162" type="stmt" count="0"/>
|
2556 |
-
<metrics loc="164" ncloc="65" classes="1" methods="7" coveredmethods="
|
2557 |
</file>
|
2558 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-config.php">
|
2559 |
<class name="Boldgrid_Backup_Admin_Config" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2560 |
-
<metrics complexity="55" methods="13" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="
|
2561 |
</class>
|
2562 |
<line num="131" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="29"/>
|
2563 |
<line num="133" type="stmt" count="29"/>
|
@@ -2609,14 +2658,14 @@
|
|
2609 |
<line num="226" type="stmt" count="0"/>
|
2610 |
<line num="229" type="stmt" count="0"/>
|
2611 |
<line num="231" type="stmt" count="0"/>
|
2612 |
-
<line num="243" type="method" name="get_is_premium" visibility="public" complexity="1" crap="1" count="
|
2613 |
-
<line num="244" type="stmt" count="
|
2614 |
<line num="252" type="method" name="get_license_string" visibility="public" complexity="2" crap="6" count="0"/>
|
2615 |
<line num="253" type="stmt" count="0"/>
|
2616 |
<line num="254" type="stmt" count="0"/>
|
2617 |
<line num="256" type="stmt" count="0"/>
|
2618 |
-
<line num="267" type="method" name="get_default_retention" visibility="public" complexity="1" crap="1" count="
|
2619 |
-
<line num="268" type="stmt" count="
|
2620 |
<line num="277" type="method" name="set_lang" visibility="public" complexity="1" crap="1" count="29"/>
|
2621 |
<line num="278" type="stmt" count="29"/>
|
2622 |
<line num="279" type="stmt" count="29"/>
|
@@ -2637,20 +2686,20 @@
|
|
2637 |
<line num="310" type="stmt" count="0"/>
|
2638 |
<line num="311" type="stmt" count="0"/>
|
2639 |
<line num="313" type="stmt" count="0"/>
|
2640 |
-
<line num="323" type="method" name="get_admin_email" visibility="public" complexity="6" crap="9.54" count="
|
2641 |
-
<line num="325" type="stmt" count="
|
2642 |
-
<line num="329" type="stmt" count="
|
2643 |
-
<line num="330" type="stmt" count="
|
2644 |
-
<line num="331" type="stmt" count="
|
2645 |
-
<line num="334" type="stmt" count="
|
2646 |
<line num="336" type="stmt" count="0"/>
|
2647 |
<line num="339" type="stmt" count="0"/>
|
2648 |
<line num="340" type="stmt" count="0"/>
|
2649 |
<line num="344" type="stmt" count="0"/>
|
2650 |
<line num="345" type="stmt" count="0"/>
|
2651 |
-
<line num="348" type="stmt" count="
|
2652 |
<line num="349" type="stmt" count="0"/>
|
2653 |
-
<line num="353" type="stmt" count="
|
2654 |
<line num="364" type="method" name="add_compressor" visibility="private" complexity="3" crap="3" count="1"/>
|
2655 |
<line num="365" type="stmt" count="1"/>
|
2656 |
<line num="366" type="stmt" count="1"/>
|
@@ -2669,12 +2718,12 @@
|
|
2669 |
<line num="399" type="stmt" count="0"/>
|
2670 |
<line num="403" type="stmt" count="0"/>
|
2671 |
<line num="405" type="stmt" count="0"/>
|
2672 |
-
<line num="420" type="method" name="get_available_compressors" visibility="public" complexity="13" crap="13.
|
2673 |
-
<line num="422" type="stmt" count="
|
2674 |
-
<line num="423" type="stmt" count="
|
2675 |
<line num="426" type="stmt" count="1"/>
|
2676 |
-
<line num="427" type="stmt" count="
|
2677 |
-
<line num="428" type="stmt" count="
|
2678 |
<line num="431" type="stmt" count="1"/>
|
2679 |
<line num="434" type="stmt" count="1"/>
|
2680 |
<line num="435" type="stmt" count="1"/>
|
@@ -2701,7 +2750,7 @@
|
|
2701 |
<line num="470" type="stmt" count="1"/>
|
2702 |
<line num="471" type="stmt" count="1"/>
|
2703 |
<line num="473" type="stmt" count="1"/>
|
2704 |
-
<metrics loc="475" ncloc="203" classes="1" methods="13" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="
|
2705 |
</file>
|
2706 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core-files.php">
|
2707 |
<class name="Boldgrid_Backup_Admin_Core_Files" namespace="global" fullPackage="Boldgrid.Backup.Admin.Core">
|
@@ -2710,38 +2759,44 @@
|
|
2710 |
<line num="71" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
2711 |
<line num="72" type="stmt" count="29"/>
|
2712 |
<line num="73" type="stmt" count="29"/>
|
2713 |
-
<line num="83" type="method" name="is_core_file" visibility="public" complexity="5" crap="5.07" count="
|
2714 |
-
<line num="84" type="stmt" count="
|
2715 |
<line num="85" type="stmt" count="0"/>
|
2716 |
-
<line num="88" type="stmt" count="
|
2717 |
-
<line num="89" type="stmt" count="
|
2718 |
-
<line num="90" type="stmt" count="
|
2719 |
-
<line num="92" type="stmt" count="
|
2720 |
-
<line num="94" type="stmt" count="
|
2721 |
<metrics loc="96" ncloc="46" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="8" elements="11" coveredelements="9"/>
|
2722 |
</file>
|
2723 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php">
|
2724 |
<class name="Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2725 |
-
<metrics complexity="
|
2726 |
</class>
|
2727 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2728 |
<line num="605" type="stmt" count="29"/>
|
2729 |
<line num="607" type="stmt" count="29"/>
|
2730 |
-
<line num="
|
2731 |
-
<line num="609" type="stmt" count="29"/>
|
2732 |
-
<line num="611" type="stmt" count="29"/>
|
2733 |
<line num="613" type="stmt" count="29"/>
|
2734 |
-
<line num="
|
2735 |
-
<line num="615" type="stmt" count="29"/>
|
2736 |
-
<line num="617" type="stmt" count="29"/>
|
2737 |
<line num="619" type="stmt" count="29"/>
|
2738 |
<line num="622" type="stmt" count="29"/>
|
2739 |
<line num="625" type="stmt" count="29"/>
|
2740 |
<line num="628" type="stmt" count="29"/>
|
2741 |
-
<line num="
|
2742 |
<line num="634" type="stmt" count="29"/>
|
2743 |
-
<line num="
|
|
|
2744 |
<line num="640" type="stmt" count="29"/>
|
|
|
2745 |
<line num="644" type="stmt" count="29"/>
|
2746 |
<line num="646" type="stmt" count="29"/>
|
2747 |
<line num="648" type="stmt" count="29"/>
|
@@ -2777,1126 +2832,1020 @@
|
|
2777 |
<line num="708" type="stmt" count="29"/>
|
2778 |
<line num="710" type="stmt" count="29"/>
|
2779 |
<line num="712" type="stmt" count="29"/>
|
2780 |
-
<line num="714" type="stmt" count="29"/>
|
2781 |
-
<line num="716" type="stmt" count="29"/>
|
2782 |
<line num="718" type="stmt" count="29"/>
|
2783 |
<line num="720" type="stmt" count="29"/>
|
2784 |
-
<line num="722" type="stmt" count="29"/>
|
2785 |
<line num="724" type="stmt" count="29"/>
|
2786 |
-
<line num="
|
2787 |
-
<line num="
|
2788 |
-
<line num="
|
2789 |
-
<line num="
|
2790 |
-
<line num="
|
2791 |
-
<line num="
|
|
|
|
|
|
|
2792 |
<line num="743" type="stmt" count="29"/>
|
2793 |
-
<line num="
|
|
|
|
|
2794 |
<line num="747" type="stmt" count="29"/>
|
|
|
|
|
2795 |
<line num="750" type="stmt" count="29"/>
|
2796 |
-
<line num="
|
2797 |
-
<line num="
|
2798 |
-
<line num="
|
2799 |
-
<line num="
|
2800 |
-
<line num="
|
2801 |
-
<line num="
|
2802 |
-
<line num="
|
2803 |
-
<line num="
|
2804 |
-
<line num="
|
2805 |
-
<line num="
|
2806 |
-
<line num="
|
2807 |
-
<line num="
|
2808 |
-
<line num="
|
2809 |
-
<line num="
|
2810 |
-
<line num="
|
2811 |
-
<line num="
|
2812 |
-
<line num="
|
2813 |
-
<line num="
|
2814 |
-
<line num="
|
2815 |
-
<line num="
|
2816 |
-
<line num="
|
2817 |
-
<line num="
|
2818 |
-
<line num="
|
2819 |
-
<line num="
|
2820 |
-
<line num="
|
2821 |
-
<line num="
|
2822 |
-
<line num="
|
2823 |
-
<line num="
|
2824 |
-
<line num="
|
2825 |
-
<line num="810" type="stmt" count="1"/>
|
2826 |
-
<line num="822" type="method" name="get_core" visibility="public" complexity="1" crap="1" count="21"/>
|
2827 |
-
<line num="823" type="stmt" count="21"/>
|
2828 |
-
<line num="833" type="method" name="init_premium" visibility="public" complexity="5" crap="30" count="0"/>
|
2829 |
-
<line num="834" type="stmt" count="0"/>
|
2830 |
-
<line num="836" type="stmt" count="0"/>
|
2831 |
<line num="842" type="stmt" count="0"/>
|
2832 |
<line num="843" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
2833 |
<line num="851" type="stmt" count="0"/>
|
2834 |
<line num="852" type="stmt" count="0"/>
|
|
|
2835 |
<line num="854" type="stmt" count="0"/>
|
2836 |
<line num="855" type="stmt" count="0"/>
|
2837 |
-
<line num="
|
2838 |
<line num="858" type="stmt" count="0"/>
|
2839 |
<line num="860" type="stmt" count="0"/>
|
2840 |
<line num="861" type="stmt" count="0"/>
|
2841 |
-
<line num="862" type="stmt" count="0"/>
|
2842 |
<line num="863" type="stmt" count="0"/>
|
2843 |
-
<line num="864" type="stmt" count="0"/>
|
2844 |
<line num="865" type="stmt" count="0"/>
|
2845 |
<line num="866" type="stmt" count="0"/>
|
2846 |
<line num="867" type="stmt" count="0"/>
|
2847 |
<line num="868" type="stmt" count="0"/>
|
2848 |
-
<line num="
|
|
|
2849 |
<line num="872" type="stmt" count="0"/>
|
2850 |
<line num="873" type="stmt" count="0"/>
|
2851 |
<line num="875" type="stmt" count="0"/>
|
2852 |
-
<line num="877" type="stmt" count="0"/>
|
2853 |
<line num="878" type="stmt" count="0"/>
|
2854 |
<line num="879" type="stmt" count="0"/>
|
2855 |
<line num="880" type="stmt" count="0"/>
|
2856 |
-
<line num="
|
2857 |
-
<line num="
|
2858 |
-
<line num="
|
2859 |
-
<line num="
|
2860 |
-
<line num="
|
2861 |
-
<line num="
|
2862 |
-
<line num="
|
2863 |
-
<line num="
|
2864 |
-
<line num="
|
2865 |
-
<line num="
|
2866 |
-
<line num="
|
2867 |
-
<line num="
|
2868 |
-
<line num="
|
2869 |
-
<line num="
|
2870 |
-
<line num="
|
2871 |
-
<line num="
|
2872 |
-
<line num="
|
2873 |
-
<line num="
|
2874 |
-
<line num="
|
2875 |
-
<line num="
|
|
|
|
|
2876 |
<line num="936" type="stmt" count="0"/>
|
2877 |
<line num="939" type="stmt" count="0"/>
|
2878 |
-
<line num="940" type="stmt" count="0"/>
|
2879 |
-
<line num="941" type="stmt" count="0"/>
|
2880 |
<line num="942" type="stmt" count="0"/>
|
2881 |
-
<line num="943" type="stmt" count="0"/>
|
2882 |
-
<line num="944" type="stmt" count="0"/>
|
2883 |
<line num="945" type="stmt" count="0"/>
|
2884 |
<line num="946" type="stmt" count="0"/>
|
2885 |
-
<line num="947" type="stmt" count="0"/>
|
2886 |
<line num="948" type="stmt" count="0"/>
|
2887 |
-
<line num="
|
|
|
|
|
|
|
2888 |
<line num="954" type="stmt" count="0"/>
|
2889 |
-
<line num="
|
2890 |
-
<line num="
|
2891 |
<line num="960" type="stmt" count="0"/>
|
2892 |
<line num="961" type="stmt" count="0"/>
|
2893 |
<line num="962" type="stmt" count="0"/>
|
|
|
2894 |
<line num="964" type="stmt" count="0"/>
|
2895 |
-
<line num="965" type="stmt" count="0"/>
|
2896 |
<line num="966" type="stmt" count="0"/>
|
2897 |
-
<line num="
|
2898 |
-
<line num="
|
2899 |
<line num="972" type="stmt" count="0"/>
|
2900 |
<line num="973" type="stmt" count="0"/>
|
2901 |
<line num="974" type="stmt" count="0"/>
|
2902 |
<line num="975" type="stmt" count="0"/>
|
2903 |
<line num="976" type="stmt" count="0"/>
|
2904 |
-
<line num="
|
2905 |
<line num="979" type="stmt" count="0"/>
|
2906 |
-
<line num="
|
2907 |
-
<line num="
|
2908 |
<line num="985" type="stmt" count="0"/>
|
2909 |
<line num="986" type="stmt" count="0"/>
|
2910 |
<line num="987" type="stmt" count="0"/>
|
2911 |
<line num="988" type="stmt" count="0"/>
|
2912 |
<line num="989" type="stmt" count="0"/>
|
2913 |
-
<line num="
|
2914 |
<line num="992" type="stmt" count="0"/>
|
2915 |
-
<line num="
|
2916 |
-
<line num="
|
2917 |
<line num="998" type="stmt" count="0"/>
|
2918 |
<line num="999" type="stmt" count="0"/>
|
2919 |
<line num="1000" type="stmt" count="0"/>
|
2920 |
<line num="1001" type="stmt" count="0"/>
|
2921 |
<line num="1002" type="stmt" count="0"/>
|
2922 |
-
<line num="
|
2923 |
<line num="1005" type="stmt" count="0"/>
|
2924 |
-
<line num="
|
2925 |
-
<line num="
|
2926 |
-
<line num="1011" type="stmt" count="0"/>
|
2927 |
-
<line num="1012" type="stmt" count="0"/>
|
2928 |
-
<line num="1013" type="stmt" count="0"/>
|
2929 |
-
<line num="1014" type="stmt" count="0"/>
|
2930 |
<line num="1015" type="stmt" count="0"/>
|
|
|
2931 |
<line num="1017" type="stmt" count="0"/>
|
2932 |
<line num="1018" type="stmt" count="0"/>
|
|
|
2933 |
<line num="1020" type="stmt" count="0"/>
|
2934 |
-
<line num="
|
|
|
|
|
2935 |
<line num="1028" type="stmt" count="0"/>
|
2936 |
<line num="1029" type="stmt" count="0"/>
|
2937 |
<line num="1030" type="stmt" count="0"/>
|
2938 |
<line num="1031" type="stmt" count="0"/>
|
2939 |
<line num="1032" type="stmt" count="0"/>
|
2940 |
-
<line num="
|
2941 |
<line num="1035" type="stmt" count="0"/>
|
2942 |
-
<line num="
|
2943 |
-
<line num="
|
2944 |
<line num="1041" type="stmt" count="0"/>
|
2945 |
<line num="1042" type="stmt" count="0"/>
|
2946 |
<line num="1043" type="stmt" count="0"/>
|
2947 |
<line num="1044" type="stmt" count="0"/>
|
2948 |
<line num="1045" type="stmt" count="0"/>
|
2949 |
-
<line num="
|
2950 |
<line num="1048" type="stmt" count="0"/>
|
2951 |
-
<line num="
|
2952 |
-
<line num="
|
2953 |
<line num="1054" type="stmt" count="0"/>
|
2954 |
<line num="1055" type="stmt" count="0"/>
|
2955 |
<line num="1056" type="stmt" count="0"/>
|
2956 |
<line num="1057" type="stmt" count="0"/>
|
2957 |
<line num="1058" type="stmt" count="0"/>
|
2958 |
-
<line num="
|
2959 |
<line num="1061" type="stmt" count="0"/>
|
2960 |
-
<line num="
|
2961 |
-
<line num="
|
2962 |
<line num="1067" type="stmt" count="0"/>
|
2963 |
<line num="1068" type="stmt" count="0"/>
|
2964 |
<line num="1069" type="stmt" count="0"/>
|
2965 |
-
<line num="1070" type="stmt" count="0"/>
|
2966 |
<line num="1071" type="stmt" count="0"/>
|
|
|
2967 |
<line num="1073" type="stmt" count="0"/>
|
2968 |
-
<line num="
|
2969 |
<line num="1076" type="stmt" count="0"/>
|
2970 |
-
<line num="
|
2971 |
-
<line num="1080" type="stmt" count="0"/>
|
2972 |
-
<line num="1081" type="stmt" count="0"/>
|
2973 |
-
<line num="1083" type="stmt" count="0"/>
|
2974 |
-
<line num="1084" type="stmt" count="0"/>
|
2975 |
<line num="1085" type="stmt" count="0"/>
|
2976 |
-
<line num="
|
2977 |
<line num="1088" type="stmt" count="0"/>
|
|
|
2978 |
<line num="1090" type="stmt" count="0"/>
|
2979 |
-
<line num="
|
2980 |
-
<line num="
|
2981 |
-
<line num="
|
2982 |
-
<line num="1101" type="stmt" count="0"/>
|
2983 |
<line num="1102" type="stmt" count="0"/>
|
2984 |
<line num="1103" type="stmt" count="0"/>
|
2985 |
<line num="1104" type="stmt" count="0"/>
|
|
|
2986 |
<line num="1106" type="stmt" count="0"/>
|
2987 |
-
<line num="
|
2988 |
-
<line num="
|
2989 |
-
<line num="
|
2990 |
-
<line num="
|
2991 |
-
<line num="
|
2992 |
-
<line num="1119" type="stmt" count="0"/>
|
2993 |
<line num="1120" type="stmt" count="0"/>
|
2994 |
<line num="1121" type="stmt" count="0"/>
|
2995 |
<line num="1122" type="stmt" count="0"/>
|
2996 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
2997 |
<line num="1132" type="stmt" count="0"/>
|
2998 |
<line num="1133" type="stmt" count="0"/>
|
2999 |
-
<line num="
|
3000 |
-
<line num="
|
3001 |
-
<line num="
|
3002 |
-
<line num="
|
3003 |
-
<line num="
|
3004 |
-
<line num="
|
3005 |
-
<line num="
|
3006 |
-
<line num="
|
3007 |
-
<line num="
|
3008 |
-
<line num="
|
3009 |
-
<line num="
|
3010 |
-
<line num="
|
3011 |
-
<line num="
|
3012 |
-
<line num="1174" type="stmt" count="4"/>
|
3013 |
-
<line num="1177" type="stmt" count="4"/>
|
3014 |
-
<line num="1179" type="stmt" count="0"/>
|
3015 |
<line num="1180" type="stmt" count="0"/>
|
3016 |
-
<line num="1184" type="stmt" count="
|
3017 |
-
<line num="
|
3018 |
-
<line num="
|
|
|
|
|
|
|
3019 |
<line num="1192" type="stmt" count="0"/>
|
3020 |
-
<line num="1194" type="stmt" count="
|
3021 |
-
<line num="
|
3022 |
<line num="1197" type="stmt" count="0"/>
|
3023 |
-
<line num="
|
3024 |
-
<line num="
|
3025 |
-
<line num="
|
3026 |
-
<line num="
|
3027 |
-
<line num="
|
3028 |
-
<line num="
|
3029 |
-
<line num="
|
3030 |
-
<line num="
|
3031 |
-
<line num="1218" type="stmt" count="0"/>
|
3032 |
-
<line num="1220" type="stmt" count="0"/>
|
3033 |
-
<line num="1222" type="stmt" count="0"/>
|
3034 |
-
<line num="1223" type="stmt" count="0"/>
|
3035 |
-
<line num="1225" type="stmt" count="4"/>
|
3036 |
-
<line num="1226" type="stmt" count="4"/>
|
3037 |
-
<line num="1228" type="stmt" count="0"/>
|
3038 |
-
<line num="1230" type="stmt" count="0"/>
|
3039 |
-
<line num="1232" type="stmt" count="0"/>
|
3040 |
<line num="1233" type="stmt" count="0"/>
|
3041 |
-
<line num="
|
3042 |
-
<line num="
|
3043 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3044 |
<line num="1262" type="stmt" count="1"/>
|
3045 |
-
<line num="1264" type="stmt" count="0"/>
|
3046 |
-
<line num="1265" type="stmt" count="0"/>
|
3047 |
-
<line num="1266" type="stmt" count="0"/>
|
3048 |
<line num="1268" type="stmt" count="0"/>
|
3049 |
-
<line num="
|
3050 |
-
<line num="
|
|
|
|
|
3051 |
<line num="1276" type="stmt" count="0"/>
|
|
|
3052 |
<line num="1278" type="stmt" count="0"/>
|
3053 |
<line num="1282" type="stmt" count="1"/>
|
3054 |
-
<line num="
|
3055 |
-
<line num="
|
3056 |
-
<line num="
|
3057 |
<line num="1291" type="stmt" count="1"/>
|
3058 |
-
<line num="
|
3059 |
-
<line num="
|
|
|
3060 |
<line num="1300" type="stmt" count="0"/>
|
3061 |
-
<line num="
|
3062 |
-
<line num="1304" type="stmt" count="
|
3063 |
-
<line num="
|
|
|
3064 |
<line num="1307" type="stmt" count="0"/>
|
3065 |
-
<line num="1308" type="stmt" count="0"/>
|
3066 |
<line num="1309" type="stmt" count="0"/>
|
3067 |
-
<line num="
|
3068 |
-
<line num="
|
3069 |
-
<line num="
|
|
|
3070 |
<line num="1319" type="stmt" count="0"/>
|
3071 |
-
<line num="
|
|
|
3072 |
<line num="1325" type="stmt" count="1"/>
|
3073 |
-
<line num="
|
3074 |
-
<line num="
|
3075 |
-
<line num="1331" type="stmt" count="0"/>
|
3076 |
-
<line num="1333" type="stmt" count="0"/>
|
3077 |
-
<line num="1335" type="stmt" count="0"/>
|
3078 |
-
<line num="1336" type="stmt" count="0"/>
|
3079 |
-
<line num="1337" type="stmt" count="0"/>
|
3080 |
-
<line num="1338" type="stmt" count="0"/>
|
3081 |
<line num="1340" type="stmt" count="0"/>
|
3082 |
-
<line num="
|
3083 |
-
<line num="
|
3084 |
-
<line num="
|
3085 |
-
<line num="
|
3086 |
-
<line num="
|
3087 |
-
<line num="
|
3088 |
-
<line num="
|
3089 |
-
<line num="
|
3090 |
-
<line num="
|
3091 |
-
<line num="
|
3092 |
-
<line num="
|
3093 |
-
<line num="
|
3094 |
-
<line num="
|
3095 |
-
<line num="
|
3096 |
-
<line num="
|
3097 |
-
<line num="
|
3098 |
-
<line num="
|
3099 |
-
<line num="
|
3100 |
-
<line num="
|
3101 |
-
<line num="
|
3102 |
-
<line num="
|
3103 |
-
<line num="
|
3104 |
-
<line num="
|
3105 |
-
<line num="
|
3106 |
-
<line num="
|
3107 |
-
<line num="
|
3108 |
-
<line num="
|
3109 |
-
<line num="
|
3110 |
-
<line num="
|
3111 |
-
<line num="
|
3112 |
-
<line num="
|
3113 |
-
<line num="
|
3114 |
-
<line num="
|
3115 |
-
<line num="
|
3116 |
-
<line num="
|
3117 |
-
<line num="
|
3118 |
-
<line num="
|
3119 |
-
<line num="
|
3120 |
-
<line num="
|
3121 |
-
<line num="
|
3122 |
-
<line num="
|
3123 |
-
<line num="
|
3124 |
-
<line num="
|
3125 |
-
<line num="
|
3126 |
-
<line num="
|
3127 |
-
<line num="
|
3128 |
-
<line num="
|
3129 |
-
<line num="
|
3130 |
-
<line num="
|
3131 |
-
<line num="
|
3132 |
-
<line num="
|
3133 |
-
<line num="
|
3134 |
-
<line num="
|
3135 |
-
<line num="
|
3136 |
-
<line num="
|
3137 |
-
<line num="
|
3138 |
-
<line num="
|
3139 |
-
<line num="
|
3140 |
-
<line num="
|
3141 |
-
<line num="
|
3142 |
-
<line num="
|
3143 |
-
<line num="
|
3144 |
-
<line num="
|
3145 |
-
<line num="
|
3146 |
-
<line num="
|
3147 |
-
<line num="
|
3148 |
-
<line num="
|
3149 |
-
<line num="
|
3150 |
-
<line num="
|
3151 |
-
<line num="
|
3152 |
-
<line num="
|
3153 |
-
<line num="
|
3154 |
-
<line num="
|
3155 |
-
<line num="
|
3156 |
-
<line num="
|
3157 |
-
<line num="
|
3158 |
-
<line num="
|
3159 |
-
<line num="1549" type="stmt" count="
|
3160 |
-
<line num="1550" type="stmt" count="
|
3161 |
-
<line num="1551" type="stmt" count="
|
3162 |
-
<line num="
|
3163 |
-
<line num="1555" type="stmt" count="
|
3164 |
-
<line num="
|
3165 |
-
<line num="
|
3166 |
-
<line num="
|
3167 |
-
<line num="
|
3168 |
-
<line num="
|
3169 |
-
<line num="
|
3170 |
-
<line num="
|
3171 |
-
<line num="
|
3172 |
-
<line num="
|
3173 |
-
<line num="
|
3174 |
-
<line num="
|
3175 |
-
<line num="
|
3176 |
-
<line num="
|
3177 |
-
<line num="
|
3178 |
-
<line num="
|
3179 |
-
<line num="
|
3180 |
-
<line num="
|
3181 |
-
<line num="
|
3182 |
-
<line num="
|
3183 |
-
<line num="
|
3184 |
-
<line num="
|
3185 |
-
<line num="
|
3186 |
-
<line num="
|
3187 |
-
<line num="
|
3188 |
-
<line num="
|
3189 |
-
<line num="
|
3190 |
-
<line num="
|
3191 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3192 |
<line num="1634" type="stmt" count="0"/>
|
3193 |
<line num="1635" type="stmt" count="0"/>
|
3194 |
<line num="1636" type="stmt" count="0"/>
|
3195 |
-
<line num="
|
3196 |
-
<line num="
|
3197 |
-
<line num="
|
3198 |
-
<line num="
|
3199 |
-
<line num="
|
3200 |
-
<line num="
|
|
|
|
|
|
|
|
|
3201 |
<line num="1654" type="stmt" count="4"/>
|
3202 |
<line num="1655" type="stmt" count="4"/>
|
3203 |
<line num="1656" type="stmt" count="4"/>
|
3204 |
<line num="1657" type="stmt" count="4"/>
|
3205 |
-
<line num="1658" type="stmt" count="
|
3206 |
-
<line num="
|
3207 |
-
<line num="
|
3208 |
-
<line num="1662" type="stmt" count="
|
3209 |
-
<line num="
|
3210 |
-
<line num="
|
3211 |
-
<line num="
|
3212 |
-
<line num="
|
3213 |
-
<line num="
|
3214 |
-
<line num="
|
3215 |
-
<line num="
|
3216 |
-
<line num="
|
3217 |
-
<line num="
|
3218 |
-
<line num="
|
3219 |
-
<line num="
|
3220 |
-
<line num="
|
3221 |
-
<line num="
|
3222 |
-
<line num="
|
3223 |
-
<line num="
|
3224 |
-
<line num="
|
3225 |
-
<line num="
|
3226 |
-
<line num="
|
3227 |
-
<line num="
|
3228 |
-
<line num="
|
3229 |
-
<line num="
|
3230 |
-
<line num="1687" type="stmt" count="4"/>
|
3231 |
-
<line num="1688" type="stmt" count="0"/>
|
3232 |
-
<line num="1689" type="stmt" count="4"/>
|
3233 |
<line num="1690" type="stmt" count="0"/>
|
3234 |
-
<line num="1691" type="stmt" count="
|
3235 |
-
<line num="1692" type="stmt" count="
|
3236 |
-
<line num="
|
3237 |
-
<line num="
|
3238 |
-
<line num="
|
3239 |
-
<line num="
|
3240 |
-
<line num="
|
3241 |
-
<line num="
|
3242 |
-
<line num="
|
3243 |
-
<line num="
|
3244 |
-
<line num="
|
3245 |
-
<line num="
|
3246 |
-
<line num="
|
3247 |
-
<line num="
|
3248 |
-
<line num="
|
3249 |
-
<line num="
|
3250 |
-
<line num="
|
3251 |
-
<line num="
|
3252 |
-
<line num="
|
3253 |
-
<line num="
|
3254 |
-
<line num="
|
3255 |
-
<line num="
|
3256 |
-
<line num="
|
3257 |
-
<line num="
|
3258 |
-
<line num="
|
3259 |
-
<line num="
|
3260 |
-
<line num="
|
3261 |
-
<line num="
|
3262 |
-
<line num="
|
3263 |
-
<line num="
|
3264 |
-
<line num="
|
3265 |
-
<line num="
|
3266 |
-
<line num="
|
3267 |
-
<line num="
|
3268 |
-
<line num="
|
3269 |
-
<line num="
|
3270 |
-
<line num="
|
3271 |
-
<line num="
|
3272 |
-
<line num="
|
3273 |
-
<line num="
|
3274 |
-
<line num="
|
3275 |
-
<line num="
|
3276 |
-
<line num="
|
3277 |
-
<line num="
|
3278 |
-
<line num="
|
3279 |
-
<line num="
|
3280 |
-
<line num="
|
3281 |
-
<line num="
|
3282 |
-
<line num="
|
3283 |
-
<line num="
|
3284 |
-
<line num="
|
3285 |
-
<line num="
|
3286 |
-
<line num="
|
3287 |
-
<line num="
|
3288 |
-
<line num="
|
3289 |
-
<line num="
|
3290 |
-
<line num="
|
3291 |
-
<line num="
|
3292 |
-
<line num="
|
3293 |
-
<line num="
|
3294 |
-
<line num="
|
3295 |
-
<line num="
|
3296 |
-
<line num="
|
3297 |
-
<line num="
|
3298 |
-
<line num="
|
3299 |
-
<line num="
|
3300 |
-
<line num="
|
3301 |
-
<line num="
|
3302 |
-
<line num="1819" type="stmt" count="0"/>
|
3303 |
-
<line num="1820" type="stmt" count="0"/>
|
3304 |
-
<line num="1826" type="stmt" count="4"/>
|
3305 |
-
<line num="1827" type="stmt" count="4"/>
|
3306 |
-
<line num="1828" type="stmt" count="1"/>
|
3307 |
-
<line num="1829" type="stmt" count="1"/>
|
3308 |
-
<line num="1830" type="stmt" count="1"/>
|
3309 |
-
<line num="1831" type="stmt" count="4"/>
|
3310 |
-
<line num="1832" type="stmt" count="4"/>
|
3311 |
-
<line num="1833" type="stmt" count="4"/>
|
3312 |
-
<line num="1834" type="stmt" count="4"/>
|
3313 |
-
<line num="1835" type="stmt" count="1"/>
|
3314 |
-
<line num="1837" type="stmt" count="0"/>
|
3315 |
-
<line num="1838" type="stmt" count="0"/>
|
3316 |
-
<line num="1839" type="stmt" count="1"/>
|
3317 |
-
<line num="1841" type="stmt" count="0"/>
|
3318 |
-
<line num="1842" type="stmt" count="0"/>
|
3319 |
-
<line num="1843" type="stmt" count="1"/>
|
3320 |
-
<line num="1845" type="stmt" count="0"/>
|
3321 |
-
<line num="1846" type="stmt" count="0"/>
|
3322 |
-
<line num="1847" type="stmt" count="1"/>
|
3323 |
-
<line num="1849" type="stmt" count="0"/>
|
3324 |
<line num="1850" type="stmt" count="0"/>
|
3325 |
-
<line num="1851" type="stmt" count="
|
3326 |
-
<line num="1852" type="stmt" count="
|
3327 |
-
<line num="1853" type="stmt" count="
|
3328 |
-
<line num="1854" type="stmt" count="1"/>
|
3329 |
<line num="1855" type="stmt" count="0"/>
|
3330 |
<line num="1856" type="stmt" count="0"/>
|
3331 |
<line num="1857" type="stmt" count="0"/>
|
3332 |
-
<line num="
|
3333 |
-
<line num="
|
3334 |
-
<line num="
|
3335 |
-
<line num="1864" type="stmt" count="4"/>
|
3336 |
-
<line num="1865" type="stmt" count="4"/>
|
3337 |
<line num="1866" type="stmt" count="0"/>
|
3338 |
<line num="1867" type="stmt" count="0"/>
|
3339 |
-
<line num="
|
3340 |
-
<line num="
|
3341 |
-
<line num="
|
3342 |
-
<line num="
|
3343 |
-
<line num="
|
3344 |
-
<line num="
|
3345 |
-
<line num="
|
3346 |
-
<line num="1875" type="stmt" count="4"/>
|
3347 |
-
<line num="1876" type="stmt" count="4"/>
|
3348 |
-
<line num="1878" type="stmt" count="4"/>
|
3349 |
-
<line num="1879" type="stmt" count="4"/>
|
3350 |
-
<line num="1881" type="stmt" count="4"/>
|
3351 |
-
<line num="1883" type="stmt" count="4"/>
|
3352 |
<line num="1884" type="stmt" count="0"/>
|
3353 |
-
<line num="
|
3354 |
-
<line num="1887" type="stmt" count="4"/>
|
3355 |
-
<line num="1888" type="stmt" count="0"/>
|
3356 |
<line num="1889" type="stmt" count="0"/>
|
3357 |
-
<line num="
|
3358 |
-
<line num="
|
3359 |
-
<line num="
|
3360 |
-
<line num="
|
3361 |
-
<line num="
|
3362 |
-
<line num="
|
3363 |
-
<line num="
|
3364 |
-
<line num="
|
3365 |
-
<line num="
|
3366 |
-
<line num="
|
3367 |
-
<line num="
|
3368 |
-
<line num="
|
3369 |
-
<line num="
|
3370 |
-
<line num="
|
3371 |
-
<line num="
|
3372 |
-
<line num="
|
3373 |
-
<line num="
|
3374 |
-
<line num="
|
3375 |
-
<line num="
|
3376 |
-
<line num="
|
3377 |
-
<line num="
|
3378 |
-
<line num="
|
3379 |
-
<line num="
|
3380 |
-
<line num="
|
3381 |
-
<line num="
|
3382 |
-
<line num="
|
3383 |
-
<line num="
|
3384 |
-
<line num="
|
3385 |
-
<line num="
|
3386 |
-
<line num="
|
|
|
|
|
3387 |
<line num="1987" type="stmt" count="0"/>
|
3388 |
-
<line num="
|
3389 |
-
<line num="
|
3390 |
-
<line num="
|
3391 |
-
<line num="
|
3392 |
-
<line num="
|
3393 |
-
<line num="
|
3394 |
-
<line num="
|
3395 |
-
<line num="
|
3396 |
-
<line num="
|
3397 |
-
<line num="
|
3398 |
-
<line num="
|
3399 |
-
<line num="
|
3400 |
-
<line num="
|
3401 |
-
<line num="
|
3402 |
-
<line num="
|
3403 |
-
<line num="
|
3404 |
-
<line num="
|
3405 |
-
<line num="
|
3406 |
-
<line num="
|
3407 |
-
<line num="
|
3408 |
-
<line num="
|
3409 |
-
<line num="
|
3410 |
-
<line num="
|
3411 |
-
<line num="
|
3412 |
-
<line num="
|
3413 |
-
<line num="
|
3414 |
-
<line num="
|
3415 |
-
<line num="2067" type="stmt" count="
|
3416 |
<line num="2068" type="stmt" count="0"/>
|
3417 |
-
<line num="
|
3418 |
-
<line num="
|
3419 |
-
<line num="
|
3420 |
-
<line num="
|
3421 |
-
<line num="
|
3422 |
-
<line num="
|
3423 |
-
<line num="
|
3424 |
-
<line num="
|
3425 |
-
<line num="
|
3426 |
-
<line num="
|
3427 |
-
<line num="
|
3428 |
-
<line num="
|
3429 |
-
<line num="
|
3430 |
-
<line num="
|
3431 |
-
<line num="
|
3432 |
-
<line num="
|
3433 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3434 |
<line num="2113" type="stmt" count="0"/>
|
3435 |
-
<line num="
|
3436 |
-
<line num="
|
3437 |
-
<line num="
|
3438 |
-
<line num="
|
3439 |
-
<line num="2121" type="stmt" count="0"/>
|
3440 |
<line num="2122" type="stmt" count="0"/>
|
3441 |
<line num="2123" type="stmt" count="0"/>
|
3442 |
-
<line num="
|
3443 |
-
<line num="2127" type="stmt" count="
|
|
|
|
|
3444 |
<line num="2131" type="stmt" count="0"/>
|
3445 |
<line num="2132" type="stmt" count="0"/>
|
3446 |
-
<line num="
|
3447 |
-
<line num="
|
3448 |
-
<line num="
|
3449 |
-
<line num="
|
3450 |
-
<line num="
|
3451 |
<line num="2141" type="stmt" count="0"/>
|
3452 |
-
<line num="
|
3453 |
-
<line num="
|
3454 |
-
<line num="
|
3455 |
-
<line num="
|
3456 |
-
<line num="
|
3457 |
-
<line num="
|
3458 |
-
<line num="
|
3459 |
-
<line num="
|
3460 |
-
<line num="
|
3461 |
-
<line num="
|
3462 |
-
<line num="
|
3463 |
-
<line num="
|
3464 |
-
<line num="
|
3465 |
-
<line num="
|
3466 |
-
<line num="
|
3467 |
-
<line num="2175" type="stmt" count="0"/>
|
3468 |
<line num="2177" type="stmt" count="0"/>
|
|
|
3469 |
<line num="2179" type="stmt" count="0"/>
|
3470 |
-
<line num="
|
3471 |
-
<line num="
|
3472 |
-
<line num="
|
3473 |
-
<line num="
|
3474 |
-
<line num="
|
|
|
|
|
|
|
3475 |
<line num="2192" type="stmt" count="0"/>
|
3476 |
-
<line num="
|
3477 |
-
<line num="
|
3478 |
-
<line num="
|
3479 |
-
<line num="
|
3480 |
<line num="2207" type="stmt" count="0"/>
|
|
|
3481 |
<line num="2210" type="stmt" count="0"/>
|
3482 |
-
<line num="
|
3483 |
-
<line num="
|
3484 |
-
<line num="
|
3485 |
-
<line num="
|
3486 |
-
<line num="
|
3487 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3488 |
<line num="2249" type="stmt" count="1"/>
|
3489 |
-
<line num="
|
3490 |
-
<line num="
|
|
|
|
|
|
|
3491 |
<line num="2259" type="stmt" count="0"/>
|
3492 |
<line num="2260" type="stmt" count="0"/>
|
3493 |
-
<line num="
|
3494 |
-
<line num="
|
3495 |
-
<line num="
|
3496 |
-
<line num="2267" type="stmt" count="
|
3497 |
-
<line num="
|
3498 |
-
<line num="
|
3499 |
-
<line num="
|
3500 |
-
<line num="
|
3501 |
-
<line num="
|
3502 |
-
<line num="
|
3503 |
-
<line num="
|
3504 |
-
<line num="
|
3505 |
-
<line num="
|
3506 |
-
<line num="
|
3507 |
-
<line num="
|
3508 |
-
<line num="
|
3509 |
-
<line num="
|
3510 |
-
<line num="
|
3511 |
-
<line num="
|
3512 |
-
<line num="
|
3513 |
-
<line num="2313" type="stmt" count="1"/>
|
3514 |
-
<line num="2315" type="stmt" count="1"/>
|
3515 |
-
<line num="2318" type="stmt" count="1"/>
|
3516 |
<line num="2319" type="stmt" count="0"/>
|
3517 |
-
<line num="
|
3518 |
-
<line num="
|
3519 |
-
<line num="2325" type="stmt" count="
|
3520 |
-
<line num="2326" type="stmt" count="0"/>
|
3521 |
-
<line num="2327" type="stmt" count="0"/>
|
3522 |
<line num="2328" type="stmt" count="0"/>
|
3523 |
-
<line num="
|
3524 |
-
<line num="
|
3525 |
-
<line num="
|
3526 |
-
<line num="
|
3527 |
-
<line num="
|
3528 |
<line num="2339" type="stmt" count="0"/>
|
3529 |
-
<line num="
|
3530 |
-
<line num="
|
3531 |
-
<line num="2345" type="stmt" count="
|
3532 |
-
<line num="2346" type="stmt" count="
|
3533 |
-
<line num="2347" type="stmt" count="1"/>
|
3534 |
-
<line num="2348" type="stmt" count="0"/>
|
3535 |
<line num="2349" type="stmt" count="0"/>
|
3536 |
-
<line num="
|
3537 |
-
<line num="2354" type="stmt" count="
|
3538 |
-
<line num="
|
3539 |
-
<line num="
|
3540 |
<line num="2358" type="stmt" count="0"/>
|
3541 |
-
<line num="
|
3542 |
-
<line num="
|
3543 |
-
<line num="
|
3544 |
-
<line num="
|
3545 |
-
<line num="
|
3546 |
-
<line num="2367" type="stmt" count="0"/>
|
3547 |
-
<line num="2368" type="stmt" count="0"/>
|
3548 |
-
<line num="2371" type="stmt" count="1"/>
|
3549 |
-
<line num="2373" type="stmt" count="1"/>
|
3550 |
-
<line num="2374" type="stmt" count="1"/>
|
3551 |
-
<line num="2375" type="stmt" count="1"/>
|
3552 |
<line num="2376" type="stmt" count="0"/>
|
3553 |
-
<line num="2377" type="stmt" count="0"/>
|
3554 |
<line num="2378" type="stmt" count="0"/>
|
3555 |
-
<line num="
|
3556 |
-
<line num="
|
3557 |
-
<line num="
|
3558 |
-
<line num="
|
3559 |
-
<line num="
|
3560 |
-
<line num="
|
3561 |
-
<line num="
|
3562 |
-
<line num="
|
3563 |
-
<line num="2391" type="stmt" count="
|
3564 |
-
<line num="
|
3565 |
-
<line num="
|
3566 |
-
<line num="
|
3567 |
-
<line num="
|
3568 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3569 |
<line num="2413" type="stmt" count="0"/>
|
3570 |
-
<line num="2414" type="stmt" count="0"/>
|
3571 |
<line num="2415" type="stmt" count="0"/>
|
3572 |
-
<line num="
|
3573 |
-
<line num="
|
3574 |
-
<line num="
|
3575 |
-
<line num="
|
3576 |
-
<line num="
|
3577 |
-
<line num="2424" type="stmt" count="1"/>
|
3578 |
-
<line num="2425" type="stmt" count="1"/>
|
3579 |
-
<line num="2427" type="stmt" count="1"/>
|
3580 |
-
<line num="2428" type="stmt" count="0"/>
|
3581 |
-
<line num="2438" type="stmt" count="0"/>
|
3582 |
-
<line num="2440" type="stmt" count="0"/>
|
3583 |
<line num="2441" type="stmt" count="0"/>
|
3584 |
-
<line num="2442" type="stmt" count="0"/>
|
3585 |
-
<line num="2443" type="stmt" count="0"/>
|
3586 |
<line num="2444" type="stmt" count="0"/>
|
|
|
3587 |
<line num="2446" type="stmt" count="0"/>
|
3588 |
-
<line num="
|
3589 |
-
<line num="
|
3590 |
-
<line num="
|
3591 |
-
<line num="
|
3592 |
-
<line num="
|
3593 |
-
<line num="
|
3594 |
-
<line num="
|
3595 |
-
<line num="
|
3596 |
-
<line num="
|
3597 |
-
<line num="
|
3598 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3599 |
<line num="2479" type="stmt" count="0"/>
|
3600 |
<line num="2480" type="stmt" count="0"/>
|
3601 |
<line num="2481" type="stmt" count="0"/>
|
3602 |
-
<line num="
|
3603 |
-
<line num="
|
3604 |
-
<line num="
|
3605 |
-
<line num="
|
3606 |
-
<line num="
|
3607 |
-
<line num="
|
3608 |
-
<line num="
|
3609 |
<line num="2495" type="stmt" count="0"/>
|
3610 |
-
<line num="
|
3611 |
-
<line num="
|
3612 |
-
<line num="
|
3613 |
-
<line num="
|
3614 |
-
<line num="
|
3615 |
-
<line num="
|
3616 |
-
<line num="
|
3617 |
-
<line num="
|
3618 |
-
<line num="
|
3619 |
-
<line num="
|
3620 |
-
<line num="
|
3621 |
-
<line num="
|
3622 |
-
<line num="
|
3623 |
-
<line num="
|
3624 |
-
<line num="
|
3625 |
-
<line num="
|
3626 |
-
<line num="
|
3627 |
-
<line num="2546" type="
|
3628 |
-
<line num="
|
3629 |
-
<line num="
|
3630 |
-
<line num="
|
3631 |
-
<line num="2555" type="stmt" count="0"/>
|
3632 |
<line num="2558" type="stmt" count="0"/>
|
3633 |
<line num="2559" type="stmt" count="0"/>
|
3634 |
-
<line num="
|
|
|
3635 |
<line num="2564" type="stmt" count="0"/>
|
3636 |
<line num="2565" type="stmt" count="0"/>
|
3637 |
<line num="2566" type="stmt" count="0"/>
|
|
|
3638 |
<line num="2568" type="stmt" count="0"/>
|
3639 |
<line num="2569" type="stmt" count="0"/>
|
|
|
3640 |
<line num="2572" type="stmt" count="0"/>
|
3641 |
<line num="2575" type="stmt" count="0"/>
|
|
|
|
|
3642 |
<line num="2578" type="stmt" count="0"/>
|
|
|
3643 |
<line num="2580" type="stmt" count="0"/>
|
3644 |
-
<line num="2581" type="stmt" count="0"/>
|
3645 |
<line num="2582" type="stmt" count="0"/>
|
3646 |
-
<line num="
|
|
|
|
|
3647 |
<line num="2587" type="stmt" count="0"/>
|
|
|
3648 |
<line num="2590" type="stmt" count="0"/>
|
3649 |
<line num="2591" type="stmt" count="0"/>
|
3650 |
-
<line num="
|
3651 |
<line num="2594" type="stmt" count="0"/>
|
3652 |
-
<line num="
|
3653 |
-
<line num="
|
3654 |
-
<line num="
|
3655 |
-
<line num="
|
3656 |
-
<line num="
|
3657 |
<line num="2612" type="stmt" count="0"/>
|
|
|
3658 |
<line num="2614" type="stmt" count="0"/>
|
3659 |
-
<line num="
|
3660 |
-
<line num="2616" type="stmt" count="0"/>
|
3661 |
<line num="2619" type="stmt" count="0"/>
|
3662 |
-
<line num="
|
3663 |
-
<line num="
|
3664 |
-
<line num="
|
3665 |
-
<line num="
|
3666 |
-
<line num="
|
3667 |
-
<line num="
|
3668 |
-
<line num="
|
3669 |
-
<line num="
|
3670 |
-
<line num="
|
3671 |
-
<line num="
|
3672 |
-
<line num="
|
3673 |
-
<line num="
|
3674 |
-
<line num="
|
3675 |
-
<line num="
|
3676 |
-
<line num="
|
3677 |
-
<line num="
|
3678 |
-
<line num="
|
3679 |
-
<line num="
|
3680 |
-
<line num="
|
3681 |
-
<line num="
|
3682 |
-
<line num="
|
3683 |
-
<line num="
|
3684 |
-
<line num="
|
3685 |
-
<line num="
|
3686 |
-
<line num="
|
3687 |
-
<line num="
|
3688 |
-
<line num="
|
3689 |
-
<line num="
|
3690 |
-
<line num="
|
3691 |
-
<line num="
|
3692 |
-
<line num="
|
3693 |
-
<line num="
|
3694 |
-
<line num="
|
3695 |
-
<line num="
|
3696 |
-
<line num="
|
3697 |
-
<line num="
|
3698 |
-
<line num="
|
3699 |
-
<line num="
|
3700 |
-
<line num="
|
3701 |
-
<line num="
|
3702 |
-
<line num="2699" type="stmt" count="0"/>
|
3703 |
-
<line num="2702" type="stmt" count="0"/>
|
3704 |
-
<line num="2703" type="stmt" count="0"/>
|
3705 |
-
<line num="2704" type="stmt" count="0"/>
|
3706 |
-
<line num="2705" type="stmt" count="0"/>
|
3707 |
-
<line num="2708" type="stmt" count="0"/>
|
3708 |
-
<line num="2711" type="stmt" count="0"/>
|
3709 |
-
<line num="2712" type="stmt" count="0"/>
|
3710 |
-
<line num="2713" type="stmt" count="0"/>
|
3711 |
-
<line num="2714" type="stmt" count="0"/>
|
3712 |
-
<line num="2718" type="stmt" count="0"/>
|
3713 |
<line num="2719" type="stmt" count="0"/>
|
3714 |
<line num="2720" type="stmt" count="0"/>
|
|
|
3715 |
<line num="2723" type="stmt" count="0"/>
|
3716 |
<line num="2724" type="stmt" count="0"/>
|
3717 |
<line num="2725" type="stmt" count="0"/>
|
3718 |
-
<line num="2726" type="stmt" count="0"/>
|
3719 |
<line num="2728" type="stmt" count="0"/>
|
|
|
3720 |
<line num="2730" type="stmt" count="0"/>
|
3721 |
<line num="2732" type="stmt" count="0"/>
|
3722 |
<line num="2733" type="stmt" count="0"/>
|
3723 |
<line num="2734" type="stmt" count="0"/>
|
3724 |
<line num="2737" type="stmt" count="0"/>
|
3725 |
<line num="2738" type="stmt" count="0"/>
|
3726 |
-
<line num="
|
3727 |
-
<line num="2750" type="stmt" count="0"/>
|
3728 |
<line num="2753" type="stmt" count="0"/>
|
|
|
3729 |
<line num="2756" type="stmt" count="0"/>
|
|
|
|
|
3730 |
<line num="2759" type="stmt" count="0"/>
|
|
|
3731 |
<line num="2762" type="stmt" count="0"/>
|
|
|
3732 |
<line num="2764" type="stmt" count="0"/>
|
|
|
3733 |
<line num="2767" type="stmt" count="0"/>
|
|
|
3734 |
<line num="2770" type="stmt" count="0"/>
|
3735 |
-
<line num="
|
3736 |
-
<line num="
|
3737 |
-
<line num="2779" type="stmt" count="0"/>
|
3738 |
-
<line num="2781" type="stmt" count="0"/>
|
3739 |
-
<line num="2789" type="stmt" count="0"/>
|
3740 |
<line num="2790" type="stmt" count="0"/>
|
3741 |
<line num="2791" type="stmt" count="0"/>
|
3742 |
-
<line num="
|
3743 |
-
<line num="2793" type="stmt" count="0"/>
|
3744 |
-
<line num="2796" type="stmt" count="0"/>
|
3745 |
-
<line num="2797" type="stmt" count="0"/>
|
3746 |
<line num="2798" type="stmt" count="0"/>
|
3747 |
<line num="2799" type="stmt" count="0"/>
|
3748 |
-
<line num="2800" type="stmt" count="0"/>
|
3749 |
-
<line num="2801" type="stmt" count="0"/>
|
3750 |
-
<line num="2802" type="stmt" count="0"/>
|
3751 |
<line num="2803" type="stmt" count="0"/>
|
|
|
3752 |
<line num="2805" type="stmt" count="0"/>
|
3753 |
-
<line num="
|
3754 |
-
<line num="
|
3755 |
-
<line num="
|
3756 |
-
<line num="
|
3757 |
-
<line num="
|
3758 |
-
<line num="
|
3759 |
-
<line num="
|
3760 |
-
<line num="
|
3761 |
-
<line num="
|
3762 |
-
<line num="
|
3763 |
-
<line num="
|
3764 |
-
<line num="
|
3765 |
-
<line num="
|
3766 |
-
<line num="
|
3767 |
-
<line num="
|
3768 |
-
<line num="
|
3769 |
-
<line num="
|
3770 |
-
<line num="
|
3771 |
-
<line num="
|
3772 |
-
<line num="
|
3773 |
-
<line num="
|
3774 |
-
<line num="2845" type="stmt" count="
|
3775 |
-
<line num="
|
3776 |
-
<line num="
|
3777 |
-
<line num="
|
3778 |
-
<line num="
|
3779 |
-
<line num="
|
3780 |
-
<line num="
|
3781 |
-
<line num="
|
3782 |
-
<line num="
|
3783 |
-
<line num="
|
3784 |
-
<line num="
|
3785 |
-
<line num="
|
3786 |
-
<line num="
|
3787 |
-
<line num="
|
3788 |
-
<line num="
|
3789 |
-
<line num="
|
3790 |
-
<line num="
|
3791 |
-
<line num="
|
3792 |
-
<line num="2893" type="
|
3793 |
-
<line num="2894" type="stmt" count="
|
3794 |
-
<line num="2895" type="stmt" count="
|
3795 |
-
<line num="2896" type="stmt" count="
|
3796 |
-
<line num="2897" type="stmt" count="
|
3797 |
-
<
|
3798 |
-
<line num="2900" type="stmt" count="29"/>
|
3799 |
-
<line num="2901" type="stmt" count="29"/>
|
3800 |
-
<line num="2902" type="stmt" count="29"/>
|
3801 |
-
<line num="2908" type="stmt" count="29"/>
|
3802 |
-
<line num="2910" type="stmt" count="29"/>
|
3803 |
-
<line num="2911" type="stmt" count="29"/>
|
3804 |
-
<line num="2912" type="stmt" count="29"/>
|
3805 |
-
<line num="2913" type="stmt" count="29"/>
|
3806 |
-
<line num="2914" type="stmt" count="29"/>
|
3807 |
-
<line num="2916" type="stmt" count="29"/>
|
3808 |
-
<line num="2919" type="stmt" count="29"/>
|
3809 |
-
<line num="2920" type="stmt" count="29"/>
|
3810 |
-
<line num="2922" type="stmt" count="29"/>
|
3811 |
-
<line num="2924" type="stmt" count="29"/>
|
3812 |
-
<line num="2936" type="method" name="set_time_limit" visibility="public" complexity="2" crap="2" count="4"/>
|
3813 |
-
<line num="2937" type="stmt" count="4"/>
|
3814 |
-
<line num="2939" type="stmt" count="4"/>
|
3815 |
-
<line num="2940" type="stmt" count="4"/>
|
3816 |
-
<line num="2947" type="method" name="wp_ajax_restore" visibility="public" complexity="6" crap="42" count="0"/>
|
3817 |
-
<line num="2948" type="stmt" count="0"/>
|
3818 |
-
<line num="2949" type="stmt" count="0"/>
|
3819 |
-
<line num="2952" type="stmt" count="0"/>
|
3820 |
-
<line num="2953" type="stmt" count="0"/>
|
3821 |
-
<line num="2954" type="stmt" count="0"/>
|
3822 |
-
<line num="2956" type="stmt" count="0"/>
|
3823 |
-
<line num="2957" type="stmt" count="0"/>
|
3824 |
-
<line num="2958" type="stmt" count="0"/>
|
3825 |
-
<line num="2961" type="stmt" count="0"/>
|
3826 |
-
<line num="2962" type="stmt" count="0"/>
|
3827 |
-
<line num="2963" type="stmt" count="0"/>
|
3828 |
-
<line num="2965" type="stmt" count="0"/>
|
3829 |
-
<line num="2966" type="stmt" count="0"/>
|
3830 |
-
<line num="2967" type="stmt" count="0"/>
|
3831 |
-
<line num="2969" type="stmt" count="0"/>
|
3832 |
-
<line num="2982" type="stmt" count="0"/>
|
3833 |
-
<line num="2983" type="stmt" count="0"/>
|
3834 |
-
<line num="2985" type="stmt" count="0"/>
|
3835 |
-
<line num="2986" type="stmt" count="0"/>
|
3836 |
-
<line num="2987" type="stmt" count="0"/>
|
3837 |
-
<line num="2988" type="stmt" count="0"/>
|
3838 |
-
<line num="2989" type="stmt" count="0"/>
|
3839 |
-
<line num="2991" type="stmt" count="0"/>
|
3840 |
-
<line num="2992" type="stmt" count="0"/>
|
3841 |
-
<line num="2993" type="stmt" count="0"/>
|
3842 |
-
<line num="2994" type="stmt" count="0"/>
|
3843 |
-
<line num="2996" type="stmt" count="0"/>
|
3844 |
-
<line num="2998" type="stmt" count="0"/>
|
3845 |
-
<line num="2999" type="stmt" count="0"/>
|
3846 |
-
<line num="3015" type="method" name="boldgrid_backup_now_auto" visibility="public" complexity="4" crap="20" count="0"/>
|
3847 |
-
<line num="3017" type="stmt" count="0"/>
|
3848 |
-
<line num="3019" type="stmt" count="0"/>
|
3849 |
-
<line num="3020" type="stmt" count="0"/>
|
3850 |
-
<line num="3024" type="stmt" count="0"/>
|
3851 |
-
<line num="3027" type="stmt" count="0"/>
|
3852 |
-
<line num="3028" type="stmt" count="0"/>
|
3853 |
-
<line num="3032" type="stmt" count="0"/>
|
3854 |
-
<line num="3033" type="stmt" count="0"/>
|
3855 |
-
<line num="3044" type="method" name="enforce_retention" visibility="public" complexity="8" crap="8.07" count="4"/>
|
3856 |
-
<line num="3045" type="stmt" count="4"/>
|
3857 |
-
<line num="3046" type="stmt" count="4"/>
|
3858 |
-
<line num="3047" type="stmt" count="4"/>
|
3859 |
-
<line num="3049" type="stmt" count="4"/>
|
3860 |
-
<line num="3050" type="stmt" count="4"/>
|
3861 |
-
<line num="3052" type="stmt" count="4"/>
|
3862 |
-
<line num="3053" type="stmt" count="4"/>
|
3863 |
-
<line num="3056" type="stmt" count="4"/>
|
3864 |
-
<line num="3057" type="stmt" count="4"/>
|
3865 |
-
<line num="3058" type="stmt" count="4"/>
|
3866 |
-
<line num="3059" type="stmt" count="4"/>
|
3867 |
-
<line num="3060" type="stmt" count="0"/>
|
3868 |
-
<line num="3061" type="stmt" count="0"/>
|
3869 |
-
<line num="3062" type="stmt" count="0"/>
|
3870 |
-
<line num="3063" type="stmt" count="4"/>
|
3871 |
-
<line num="3064" type="stmt" count="4"/>
|
3872 |
-
<line num="3065" type="stmt" count="4"/>
|
3873 |
-
<line num="3068" type="stmt" count="4"/>
|
3874 |
-
<line num="3071" type="stmt" count="4"/>
|
3875 |
-
<line num="3072" type="stmt" count="4"/>
|
3876 |
-
<line num="3073" type="stmt" count="4"/>
|
3877 |
-
<line num="3077" type="stmt" count="1"/>
|
3878 |
-
<line num="3080" type="stmt" count="1"/>
|
3879 |
-
<line num="3083" type="stmt" count="1"/>
|
3880 |
-
<line num="3084" type="stmt" count="1"/>
|
3881 |
-
<line num="3085" type="stmt" count="1"/>
|
3882 |
-
<line num="3088" type="stmt" count="1"/>
|
3883 |
-
<line num="3091" type="stmt" count="1"/>
|
3884 |
-
<line num="3094" type="stmt" count="1"/>
|
3885 |
-
<line num="3096" type="stmt" count="1"/>
|
3886 |
-
<line num="3097" type="stmt" count="1"/>
|
3887 |
-
<line num="3106" type="stmt" count="1"/>
|
3888 |
-
<line num="3107" type="stmt" count="1"/>
|
3889 |
-
<line num="3108" type="stmt" count="0"/>
|
3890 |
-
<line num="3110" type="stmt" count="1"/>
|
3891 |
-
<line num="3112" type="stmt" count="1"/>
|
3892 |
-
<line num="3113" type="stmt" count="1"/>
|
3893 |
-
<line num="3114" type="stmt" count="1"/>
|
3894 |
-
<line num="3121" type="method" name="add_thickbox" visibility="public" complexity="2" crap="6" count="0"/>
|
3895 |
-
<line num="3122" type="stmt" count="0"/>
|
3896 |
-
<line num="3123" type="stmt" count="0"/>
|
3897 |
-
<line num="3124" type="stmt" count="0"/>
|
3898 |
-
<line num="3125" type="stmt" count="0"/>
|
3899 |
-
<metrics loc="3126" ncloc="1631" classes="1" methods="29" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="1143" coveredstatements="544" elements="1172" coveredelements="548"/>
|
3900 |
</file>
|
3901 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cron-log.php">
|
3902 |
<class name="Boldgrid_Backup_Admin_Cron_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin.Cron">
|
@@ -4074,13 +4023,13 @@
|
|
4074 |
</file>
|
4075 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cron.php">
|
4076 |
<class name="Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
4077 |
-
<metrics complexity="
|
4078 |
</class>
|
4079 |
<line num="87" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
4080 |
<line num="89" type="stmt" count="29"/>
|
4081 |
<line num="90" type="stmt" count="29"/>
|
4082 |
-
<line num="97" type="method" name="get_cron_command" visibility="public" complexity="1" crap="
|
4083 |
-
<line num="98" type="stmt" count="
|
4084 |
<line num="114" type="method" name="add_cron_entry" visibility="public" complexity="9" crap="90" count="0"/>
|
4085 |
<line num="115" type="stmt" count="0"/>
|
4086 |
<line num="116" type="stmt" count="0"/>
|
@@ -4298,22 +4247,22 @@
|
|
4298 |
<line num="624" type="stmt" count="0"/>
|
4299 |
<line num="625" type="stmt" count="0"/>
|
4300 |
<line num="627" type="stmt" count="0"/>
|
4301 |
-
<line num="648" type="method" name="get_all" visibility="public" complexity="5" crap="5.47" count="
|
4302 |
-
<line num="655" type="stmt" count="
|
4303 |
<line num="656" type="stmt" count="0"/>
|
4304 |
-
<line num="668" type="stmt" count="
|
4305 |
-
<line num="669" type="stmt" count="
|
4306 |
-
<line num="672" type="stmt" count="
|
4307 |
-
<line num="673" type="stmt" count="
|
4308 |
-
<line num="676" type="stmt" count="
|
4309 |
-
<line num="677" type="stmt" count="
|
4310 |
-
<line num="679" type="stmt" count="
|
4311 |
-
<line num="680" type="stmt" count="
|
4312 |
<line num="681" type="stmt" count="0"/>
|
4313 |
<line num="682" type="stmt" count="0"/>
|
4314 |
-
<line num="685" type="stmt" count="
|
4315 |
<line num="686" type="stmt" count="0"/>
|
4316 |
-
<line num="689" type="stmt" count="
|
4317 |
<line num="702" type="method" name="get_our_crons" visibility="public" complexity="4" crap="20" count="0"/>
|
4318 |
<line num="703" type="stmt" count="0"/>
|
4319 |
<line num="704" type="stmt" count="0"/>
|
@@ -4490,16 +4439,16 @@
|
|
4490 |
<line num="985" type="stmt" count="0"/>
|
4491 |
<line num="987" type="stmt" count="0"/>
|
4492 |
<line num="989" type="stmt" count="0"/>
|
4493 |
-
<line num="1000" type="method" name="get_cron_secret" visibility="public" complexity="3" crap="
|
4494 |
-
<line num="1001" type="stmt" count="
|
4495 |
-
<line num="1002" type="stmt" count="
|
4496 |
-
<line num="1004" type="stmt" count="
|
4497 |
-
<line num="1005" type="stmt" count="
|
4498 |
-
<line num="1007" type="stmt" count="
|
4499 |
-
<line num="1008" type="stmt" count="
|
4500 |
-
<line num="1010" type="stmt" count="
|
4501 |
-
<line num="1011" type="stmt" count="
|
4502 |
-
<line num="1013" type="stmt" count="
|
4503 |
<line num="1030" type="method" name="is_valid_call" visibility="public" complexity="5" crap="30" count="0"/>
|
4504 |
<line num="1032" type="stmt" count="0"/>
|
4505 |
<line num="1033" type="stmt" count="0"/>
|
@@ -4520,23 +4469,42 @@
|
|
4520 |
<line num="1074" type="stmt" count="0"/>
|
4521 |
<line num="1075" type="stmt" count="0"/>
|
4522 |
<line num="1077" type="stmt" count="0"/>
|
4523 |
-
<line num="
|
4524 |
-
<line num="
|
4525 |
-
<line num="1091" type="stmt" count="0"/>
|
4526 |
-
<line num="1092" type="stmt" count="0"/>
|
4527 |
<line num="1094" type="stmt" count="0"/>
|
4528 |
-
<line num="
|
4529 |
-
<line num="
|
4530 |
-
<line num="
|
4531 |
-
<line num="
|
4532 |
-
<line num="
|
4533 |
<line num="1114" type="stmt" count="0"/>
|
4534 |
-
<line num="1115" type="stmt" count="0"/>
|
4535 |
<line num="1117" type="stmt" count="0"/>
|
4536 |
<line num="1118" type="stmt" count="0"/>
|
4537 |
<line num="1119" type="stmt" count="0"/>
|
4538 |
-
<line num="
|
4539 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4540 |
</file>
|
4541 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-crypt.php">
|
4542 |
<class name="Boldgrid_Backup_Admin_Crypt" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
@@ -4648,123 +4616,127 @@
|
|
4648 |
</file>
|
4649 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-dump.php">
|
4650 |
<class name="Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
|
4651 |
-
<metrics complexity="
|
4652 |
</class>
|
4653 |
<line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
4654 |
<line num="40" type="stmt" count="29"/>
|
4655 |
<line num="41" type="stmt" count="29"/>
|
4656 |
-
<line num="53" type="method" name="dump" visibility="public" complexity="
|
4657 |
-
<line num="54" type="stmt" count="
|
4658 |
-
<line num="56" type="stmt" count="
|
4659 |
-
<line num="
|
4660 |
-
<line num="
|
4661 |
-
<line num="
|
4662 |
-
<line num="
|
4663 |
-
<line num="
|
4664 |
-
<line num="
|
4665 |
-
<line num="
|
4666 |
-
<line num="
|
4667 |
-
<line num="80" type="stmt" count="
|
4668 |
-
<line num="
|
4669 |
-
<line num="
|
4670 |
-
<line num="
|
4671 |
-
<line num="
|
4672 |
-
<line num="
|
4673 |
-
<line num="
|
4674 |
-
<line num="
|
4675 |
-
<line num="
|
4676 |
-
<line num="
|
4677 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
4678 |
<line num="111" type="stmt" count="3"/>
|
4679 |
-
<line num="
|
4680 |
-
<line num="
|
4681 |
-
<line num="
|
4682 |
-
<line num="
|
4683 |
-
<line num="
|
4684 |
-
<line num="
|
4685 |
-
<line num="121" type="stmt" count="
|
4686 |
-
<line num="
|
4687 |
-
<line num="
|
4688 |
-
<line num="
|
4689 |
-
<line num="
|
4690 |
-
<line num="
|
4691 |
-
<line num="
|
4692 |
-
<line num="
|
4693 |
-
<line num="
|
4694 |
-
<line num="
|
4695 |
-
<line num="
|
4696 |
-
<line num="
|
4697 |
-
<line num="
|
4698 |
-
<line num="
|
4699 |
-
<line num="
|
4700 |
-
<line num="
|
4701 |
-
<line num="
|
4702 |
-
<line num="
|
4703 |
-
<line num="
|
4704 |
-
<line num="
|
4705 |
-
<line num="
|
4706 |
-
<line num="
|
4707 |
-
<line num="
|
4708 |
-
<line num="179" type="stmt" count="5"/>
|
4709 |
<line num="186" type="stmt" count="1"/>
|
4710 |
<line num="187" type="stmt" count="1"/>
|
4711 |
<line num="188" type="stmt" count="1"/>
|
4712 |
<line num="190" type="stmt" count="1"/>
|
4713 |
-
<line num="
|
4714 |
-
<line num="193" type="stmt" count="
|
4715 |
-
<line num="194" type="stmt" count="
|
4716 |
-
<line num="195" type="stmt" count="
|
4717 |
-
<line num="196" type="stmt" count="
|
4718 |
-
<line num="
|
4719 |
-
<line num="199" type="stmt" count="
|
4720 |
-
<line num="
|
4721 |
-
<line num="
|
4722 |
-
<line num="
|
4723 |
-
<line num="
|
4724 |
-
<line num="
|
4725 |
-
<line num="
|
4726 |
-
<line num="
|
4727 |
-
<line num="220" type="stmt" count="0"/>
|
4728 |
-
<line num="221" type="stmt" count="0"/>
|
4729 |
-
<line num="223" type="stmt" count="0"/>
|
4730 |
-
<line num="225" type="stmt" count="0"/>
|
4731 |
-
<line num="228" type="stmt" count="0"/>
|
4732 |
-
<line num="229" type="stmt" count="0"/>
|
4733 |
-
<line num="230" type="stmt" count="0"/>
|
4734 |
-
<line num="232" type="stmt" count="0"/>
|
4735 |
-
<line num="235" type="stmt" count="0"/>
|
4736 |
-
<line num="242" type="stmt" count="0"/>
|
4737 |
<line num="243" type="stmt" count="0"/>
|
4738 |
-
<line num="
|
4739 |
<line num="246" type="stmt" count="0"/>
|
4740 |
-
<line num="
|
4741 |
-
<line num="
|
4742 |
<line num="252" type="stmt" count="0"/>
|
4743 |
-
<line num="
|
|
|
|
|
|
|
|
|
4744 |
<line num="268" type="stmt" count="0"/>
|
4745 |
<line num="269" type="stmt" count="0"/>
|
4746 |
-
<line num="
|
4747 |
-
<line num="272" type="stmt" count="0"/>
|
4748 |
<line num="273" type="stmt" count="0"/>
|
4749 |
-
<line num="274" type="stmt" count="0"/>
|
4750 |
<line num="275" type="stmt" count="0"/>
|
4751 |
-
<line num="
|
4752 |
-
<line num="
|
4753 |
-
<line num="
|
4754 |
-
<line num="
|
4755 |
-
<line num="
|
4756 |
-
<line num="295" type="method" name="get_insert_tables" visibility="public" complexity="2" crap="6" count="0"/>
|
4757 |
<line num="296" type="stmt" count="0"/>
|
4758 |
<line num="297" type="stmt" count="0"/>
|
4759 |
-
<line num="
|
4760 |
-
<line num="
|
4761 |
-
<line num="
|
4762 |
-
<line num="
|
4763 |
-
<line num="
|
4764 |
-
<line num="
|
|
|
|
|
4765 |
<line num="320" type="stmt" count="0"/>
|
4766 |
-
<line num="
|
4767 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4768 |
</file>
|
4769 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-get.php">
|
4770 |
<class name="Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
|
@@ -4773,52 +4745,52 @@
|
|
4773 |
<line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
4774 |
<line num="40" type="stmt" count="29"/>
|
4775 |
<line num="41" type="stmt" count="29"/>
|
4776 |
-
<line num="55" type="method" name="get_by_type" visibility="public" complexity="3" crap="3.00" count="
|
4777 |
-
<line num="56" type="stmt" count="
|
4778 |
-
<line num="58" type="stmt" count="
|
4779 |
-
<line num="61" type="stmt" count="
|
4780 |
-
<line num="62" type="stmt" count="
|
4781 |
<line num="63" type="stmt" count="0"/>
|
4782 |
-
<line num="72" type="stmt" count="
|
4783 |
-
<line num="73" type="stmt" count="
|
4784 |
-
<line num="74" type="stmt" count="
|
4785 |
-
<line num="76" type="stmt" count="
|
4786 |
-
<line num="78" type="stmt" count="
|
4787 |
-
<line num="81" type="stmt" count="
|
4788 |
-
<line num="82" type="stmt" count="
|
4789 |
-
<line num="83" type="stmt" count="
|
4790 |
-
<line num="85" type="stmt" count="
|
4791 |
-
<line num="100" type="method" name="filter_by_type" visibility="public" complexity="3" crap="3" count="
|
4792 |
-
<line num="102" type="stmt" count="
|
4793 |
-
<line num="104" type="stmt" count="
|
4794 |
-
<line num="106" type="stmt" count="
|
4795 |
-
<line num="107" type="stmt" count="
|
4796 |
-
<line num="108" type="stmt" count="
|
4797 |
-
<line num="109" type="stmt" count="
|
4798 |
-
<line num="110" type="stmt" count="
|
4799 |
-
<line num="112" type="stmt" count="
|
4800 |
-
<line num="124" type="method" name="prefixed" visibility="public" complexity="2" crap="2" count="
|
4801 |
-
<line num="125" type="stmt" count="
|
4802 |
-
<line num="127" type="stmt" count="
|
4803 |
-
<line num="129" type="stmt" count="
|
4804 |
-
<line num="130" type="stmt" count="
|
4805 |
-
<line num="131" type="stmt" count="
|
4806 |
-
<line num="132" type="stmt" count="
|
4807 |
-
<line num="133" type="stmt" count="
|
4808 |
-
<line num="135" type="stmt" count="
|
4809 |
-
<line num="137" type="stmt" count="
|
4810 |
-
<line num="138" type="stmt" count="
|
4811 |
-
<line num="139" type="stmt" count="
|
4812 |
-
<line num="141" type="stmt" count="
|
4813 |
-
<line num="156" type="method" name="prefixed_count" visibility="public" complexity="2" crap="2" count="
|
4814 |
-
<line num="157" type="stmt" count="
|
4815 |
-
<line num="159" type="stmt" count="
|
4816 |
-
<line num="161" type="stmt" count="
|
4817 |
-
<line num="163" type="stmt" count="
|
4818 |
-
<line num="164" type="stmt" count="
|
4819 |
-
<line num="166" type="stmt" count="
|
4820 |
-
<line num="167" type="stmt" count="
|
4821 |
-
<line num="169" type="stmt" count="
|
4822 |
<metrics loc="171" ncloc="79" classes="1" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="43" elements="49" coveredelements="47"/>
|
4823 |
</file>
|
4824 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php">
|
@@ -4960,18 +4932,18 @@
|
|
4960 |
<line num="61" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
4961 |
<line num="62" type="stmt" count="29"/>
|
4962 |
<line num="63" type="stmt" count="29"/>
|
4963 |
-
<line num="74" type="method" name="email_part" visibility="public" complexity="3" crap="3" count="
|
4964 |
-
<line num="75" type="stmt" count="
|
4965 |
-
<line num="78" type="stmt" count="
|
4966 |
-
<line num="79" type="stmt" count="
|
4967 |
-
<line num="81" type="stmt" count="
|
4968 |
-
<line num="83" type="stmt" count="
|
4969 |
-
<line num="85" type="stmt" count="
|
4970 |
-
<line num="86" type="stmt" count="
|
4971 |
-
<line num="87" type="stmt" count="
|
4972 |
-
<line num="89" type="stmt" count="
|
4973 |
-
<line num="90" type="stmt" count="
|
4974 |
-
<line num="92" type="stmt" count="
|
4975 |
<line num="100" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
|
4976 |
<line num="101" type="stmt" count="0"/>
|
4977 |
<line num="102" type="stmt" count="0"/>
|
@@ -4984,29 +4956,29 @@
|
|
4984 |
<line num="110" type="stmt" count="0"/>
|
4985 |
<line num="111" type="stmt" count="0"/>
|
4986 |
<line num="112" type="stmt" count="0"/>
|
4987 |
-
<line num="127" type="method" name="get_excluded_tables" visibility="public" complexity="8" crap="9.30" count="
|
4988 |
-
<line num="132" type="stmt" count="
|
4989 |
-
<line num="134" type="stmt" count="
|
4990 |
<line num="135" type="stmt" count="0"/>
|
4991 |
-
<line num="136" type="stmt" count="
|
4992 |
<line num="137" type="stmt" count="0"/>
|
4993 |
<line num="138" type="stmt" count="0"/>
|
4994 |
-
<line num="139" type="stmt" count="
|
4995 |
-
<line num="141" type="stmt" count="
|
4996 |
-
<line num="143" type="stmt" count="
|
4997 |
-
<line num="146" type="stmt" count="
|
4998 |
-
<line num="148" type="stmt" count="
|
4999 |
-
<line num="161" type="method" name="get_filtered_tables" visibility="public" complexity="5" crap="5.68" count="
|
5000 |
-
<line num="162" type="stmt" count="
|
5001 |
-
<line num="165" type="stmt" count="
|
5002 |
<line num="166" type="stmt" count="0"/>
|
5003 |
-
<line num="169" type="stmt" count="
|
5004 |
-
<line num="171" type="stmt" count="
|
5005 |
-
<line num="172" type="stmt" count="
|
5006 |
<line num="173" type="stmt" count="0"/>
|
5007 |
<line num="174" type="stmt" count="0"/>
|
5008 |
-
<line num="175" type="stmt" count="
|
5009 |
-
<line num="177" type="stmt" count="
|
5010 |
<line num="190" type="method" name="get_from_post" visibility="public" complexity="4" crap="20" count="0"/>
|
5011 |
<line num="191" type="stmt" count="0"/>
|
5012 |
<line num="193" type="stmt" count="0"/>
|
@@ -5022,19 +4994,19 @@
|
|
5022 |
<line num="220" type="stmt" count="0"/>
|
5023 |
<line num="222" type="stmt" count="0"/>
|
5024 |
<line num="223" type="stmt" count="0"/>
|
5025 |
-
<line num="236" type="method" name="get_settings_excluded" visibility="public" complexity="4" crap="4.59" count="
|
5026 |
-
<line num="237" type="stmt" count="
|
5027 |
<line num="238" type="stmt" count="0"/>
|
5028 |
<line num="239" type="stmt" count="0"/>
|
5029 |
-
<line num="242" type="stmt" count="
|
5030 |
-
<line num="244" type="stmt" count="
|
5031 |
-
<line num="245" type="stmt" count="
|
5032 |
-
<line num="261" type="method" name="get_settings_type" visibility="public" complexity="4" crap="5.02" count="
|
5033 |
-
<line num="262" type="stmt" count="
|
5034 |
<line num="263" type="stmt" count="0"/>
|
5035 |
<line num="264" type="stmt" count="0"/>
|
5036 |
-
<line num="266" type="stmt" count="
|
5037 |
-
<line num="268" type="stmt" count="
|
5038 |
<line num="280" type="method" name="format_prefixed_tables" visibility="public" complexity="3" crap="12" count="0"/>
|
5039 |
<line num="281" type="stmt" count="0"/>
|
5040 |
<line num="283" type="stmt" count="0"/>
|
@@ -5047,16 +5019,16 @@
|
|
5047 |
<line num="292" type="stmt" count="0"/>
|
5048 |
<line num="293" type="stmt" count="0"/>
|
5049 |
<line num="295" type="stmt" count="0"/>
|
5050 |
-
<line num="305" type="method" name="is_omit_all" visibility="public" complexity="1" crap="1" count="
|
5051 |
-
<line num="306" type="stmt" count="
|
5052 |
-
<line num="307" type="stmt" count="
|
5053 |
-
<line num="309" type="stmt" count="
|
5054 |
-
<line num="311" type="stmt" count="
|
5055 |
<metrics loc="313" ncloc="148" classes="1" methods="11" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="39" elements="95" coveredelements="42"/>
|
5056 |
</file>
|
5057 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-email.php">
|
5058 |
<class name="Boldgrid_Backup_Admin_Email" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
5059 |
-
<metrics complexity="
|
5060 |
</class>
|
5061 |
<line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
5062 |
<line num="49" type="stmt" count="29"/>
|
@@ -5073,82 +5045,79 @@
|
|
5073 |
<line num="77" type="stmt" count="0"/>
|
5074 |
<line num="79" type="stmt" count="0"/>
|
5075 |
<line num="81" type="stmt" count="0"/>
|
5076 |
-
<line num="89" type="method" name="init_ads" visibility="public" complexity="2" crap="2.69" count="
|
5077 |
-
<line num="90" type="stmt" count="
|
5078 |
-
<line num="91" type="stmt" count="
|
5079 |
<line num="93" type="stmt" count="0"/>
|
5080 |
<line num="94" type="stmt" count="0"/>
|
5081 |
<line num="96" type="stmt" count="0"/>
|
5082 |
<line num="97" type="stmt" count="0"/>
|
5083 |
<line num="98" type="stmt" count="0"/>
|
5084 |
-
<line num="99" type="stmt" count="
|
5085 |
-
<line num="101" type="stmt" count="
|
5086 |
-
<line num="111" type="method" name="post_archive_parts" visibility="public" complexity="
|
5087 |
-
<line num="112" type="stmt" count="
|
5088 |
-
<line num="114" type="stmt" count="
|
5089 |
-
<line num="116" type="stmt" count="
|
5090 |
-
<line num="119" type="stmt" count="
|
5091 |
-
<line num="121" type="stmt" count="
|
5092 |
-
<line num="123" type="stmt" count="
|
5093 |
-
<line num="
|
5094 |
-
<line num="
|
5095 |
-
<line num="
|
5096 |
-
<line num="129" type="stmt" count="
|
5097 |
-
<line num="
|
5098 |
-
<line num="
|
5099 |
-
<line num="
|
5100 |
-
<line num="
|
5101 |
-
<line num="
|
5102 |
-
<line num="
|
5103 |
-
<line num="
|
5104 |
-
<line num="
|
5105 |
-
<line num="
|
5106 |
-
<line num="
|
5107 |
-
<line num="
|
5108 |
-
<line num="
|
5109 |
-
<line num="
|
5110 |
-
<line num="
|
5111 |
-
<line num="
|
5112 |
-
<line num="
|
5113 |
-
<line num="
|
5114 |
-
<line num="
|
5115 |
-
<line num="
|
5116 |
-
<line num="170" type="stmt" count="
|
5117 |
-
<line num="
|
5118 |
-
<line num="173" type="stmt" count="
|
5119 |
-
<line num="
|
5120 |
-
<line num="
|
5121 |
-
<line num="
|
5122 |
-
<line num="
|
5123 |
-
<line num="
|
5124 |
-
<line num="
|
5125 |
-
<line num="
|
5126 |
-
<line num="
|
5127 |
-
<line num="
|
5128 |
-
<line num="
|
5129 |
-
<line num="
|
5130 |
-
<line num="
|
5131 |
-
<line num="
|
5132 |
-
<line num="
|
5133 |
-
<line num="
|
5134 |
-
<line num="
|
5135 |
-
<line num="
|
5136 |
-
<line num="
|
5137 |
-
<line num="
|
5138 |
-
<line num="
|
5139 |
-
<line num="
|
5140 |
-
<line num="
|
5141 |
-
<line num="
|
5142 |
-
<line num="
|
5143 |
-
<line num="
|
5144 |
<line num="260" type="stmt" count="0"/>
|
5145 |
<line num="262" type="stmt" count="0"/>
|
5146 |
<line num="263" type="stmt" count="0"/>
|
5147 |
<line num="264" type="stmt" count="0"/>
|
5148 |
-
<
|
5149 |
-
<line num="267" type="stmt" count="0"/>
|
5150 |
-
<line num="268" type="stmt" count="0"/>
|
5151 |
-
<metrics loc="269" ncloc="130" classes="1" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="55" elements="90" coveredelements="57"/>
|
5152 |
</file>
|
5153 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-environment.php">
|
5154 |
<class name="Boldgrid_Backup_Admin_Environment" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
@@ -5202,10 +5171,10 @@
|
|
5202 |
<line num="63" type="stmt" count="0"/>
|
5203 |
<line num="64" type="stmt" count="0"/>
|
5204 |
<line num="65" type="stmt" count="0"/>
|
5205 |
-
<line num="74" type="method" name="is_enabled" visibility="public" complexity="1" crap="1" count="
|
5206 |
-
<line num="75" type="stmt" count="
|
5207 |
-
<line num="76" type="stmt" count="
|
5208 |
-
<line num="78" type="stmt" count="
|
5209 |
<line num="88" type="method" name="run" visibility="public" complexity="15" crap="240" count="0"/>
|
5210 |
<line num="89" type="stmt" count="0"/>
|
5211 |
<line num="90" type="stmt" count="0"/>
|
@@ -5282,12 +5251,12 @@
|
|
5282 |
<line num="107" type="stmt" count="0"/>
|
5283 |
<line num="108" type="stmt" count="0"/>
|
5284 |
<line num="110" type="stmt" count="0"/>
|
5285 |
-
<line num="127" type="method" name="get_total_size" visibility="public" complexity="2" crap="2" count="
|
5286 |
-
<line num="128" type="stmt" count="
|
5287 |
-
<line num="130" type="stmt" count="
|
5288 |
-
<line num="131" type="stmt" count="
|
5289 |
-
<line num="132" type="stmt" count="
|
5290 |
-
<line num="134" type="stmt" count="
|
5291 |
<metrics loc="136" ncloc="65" classes="1" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="7" elements="23" coveredelements="9"/>
|
5292 |
</file>
|
5293 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-folder-exclusion.php">
|
@@ -5300,63 +5269,63 @@
|
|
5300 |
<line num="140" type="stmt" count="29"/>
|
5301 |
<line num="143" type="stmt" count="29"/>
|
5302 |
<line num="144" type="stmt" count="29"/>
|
5303 |
-
<line num="154" type="method" name="allow_file" visibility="public" complexity="12" crap="13.58" count="
|
5304 |
-
<line num="156" type="stmt" count="
|
5305 |
<line num="157" type="stmt" count="0"/>
|
5306 |
-
<line num="161" type="stmt" count="
|
5307 |
<line num="162" type="stmt" count="0"/>
|
5308 |
-
<line num="165" type="stmt" count="
|
5309 |
<line num="166" type="stmt" count="0"/>
|
5310 |
-
<line num="170" type="stmt" count="
|
5311 |
-
<line num="171" type="stmt" count="
|
5312 |
-
<line num="174" type="stmt" count="
|
5313 |
-
<line num="175" type="stmt" count="
|
5314 |
-
<line num="178" type="stmt" count="
|
5315 |
-
<line num="179" type="stmt" count="
|
5316 |
-
<line num="181" type="stmt" count="
|
5317 |
-
<line num="182" type="stmt" count="
|
5318 |
-
<line num="183" type="stmt" count="
|
5319 |
-
<line num="184" type="stmt" count="
|
5320 |
-
<line num="185" type="stmt" count="
|
5321 |
-
<line num="188" type="stmt" count="
|
5322 |
-
<line num="189" type="stmt" count="
|
5323 |
-
<line num="193" type="stmt" count="
|
5324 |
<line num="194" type="stmt" count="0"/>
|
5325 |
-
<line num="197" type="stmt" count="
|
5326 |
-
<line num="198" type="stmt" count="
|
5327 |
<line num="199" type="stmt" count="0"/>
|
5328 |
<line num="200" type="stmt" count="0"/>
|
5329 |
-
<line num="201" type="stmt" count="
|
5330 |
-
<line num="203" type="stmt" count="
|
5331 |
-
<line num="215" type="method" name="email_part" visibility="public" complexity="5" crap="5" count="
|
5332 |
-
<line num="216" type="stmt" count="
|
5333 |
-
<line num="218" type="stmt" count="
|
5334 |
-
<line num="219" type="stmt" count="
|
5335 |
-
<line num="221" type="stmt" count="
|
5336 |
-
<line num="222" type="stmt" count="
|
5337 |
-
<line num="223" type="stmt" count="
|
5338 |
-
<line num="225" type="stmt" count="
|
5339 |
-
<line num="226" type="stmt" count="
|
5340 |
-
<line num="228" type="stmt" count="
|
5341 |
-
<line num="229" type="stmt" count="
|
5342 |
-
<line num="230" type="stmt" count="
|
5343 |
-
<line num="231" type="stmt" count="
|
5344 |
-
<line num="233" type="stmt" count="
|
5345 |
-
<line num="234" type="stmt" count="
|
5346 |
-
<line num="236" type="stmt" count="
|
5347 |
-
<line num="237" type="stmt" count="
|
5348 |
-
<line num="238" type="stmt" count="
|
5349 |
-
<line num="239" type="stmt" count="
|
5350 |
-
<line num="241" type="stmt" count="
|
5351 |
-
<line num="264" type="method" name="create_pattern" visibility="public" complexity="2" crap="2" count="
|
5352 |
-
<line num="265" type="stmt" count="
|
5353 |
-
<line num="268" type="stmt" count="
|
5354 |
-
<line num="271" type="stmt" count="
|
5355 |
-
<line num="272" type="stmt" count="
|
5356 |
-
<line num="282" type="stmt" count="
|
5357 |
-
<line num="289" type="stmt" count="
|
5358 |
-
<line num="295" type="stmt" count="
|
5359 |
-
<line num="297" type="stmt" count="
|
5360 |
<line num="305" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
|
5361 |
<line num="306" type="stmt" count="0"/>
|
5362 |
<line num="307" type="stmt" count="0"/>
|
@@ -5380,18 +5349,18 @@
|
|
5380 |
<line num="331" type="stmt" count="0"/>
|
5381 |
<line num="332" type="stmt" count="0"/>
|
5382 |
<line num="333" type="stmt" count="0"/>
|
5383 |
-
<line num="344" type="method" name="from_settings" visibility="public" complexity="16" crap="33.31" count="
|
5384 |
-
<line num="345" type="stmt" count="
|
5385 |
<line num="346" type="stmt" count="0"/>
|
5386 |
-
<line num="349" type="stmt" count="
|
5387 |
-
<line num="350" type="stmt" count="
|
5388 |
-
<line num="360" type="stmt" count="
|
5389 |
<line num="361" type="stmt" count="0"/>
|
5390 |
-
<line num="368" type="stmt" count="
|
5391 |
<line num="369" type="stmt" count="0"/>
|
5392 |
<line num="370" type="stmt" count="0"/>
|
5393 |
-
<line num="373" type="stmt" count="
|
5394 |
-
<line num="374" type="stmt" count="
|
5395 |
<line num="377" type="stmt" count="3"/>
|
5396 |
<line num="378" type="stmt" count="0"/>
|
5397 |
<line num="379" type="stmt" count="3"/>
|
@@ -5408,18 +5377,18 @@
|
|
5408 |
<line num="402" type="stmt" count="2"/>
|
5409 |
<line num="403" type="stmt" count="2"/>
|
5410 |
<line num="405" type="stmt" count="3"/>
|
5411 |
-
<line num="420" type="method" name="is_banned" visibility="public" complexity="1" crap="1" count="
|
5412 |
-
<line num="421" type="stmt" count="
|
5413 |
-
<line num="424" type="stmt" count="
|
5414 |
-
<line num="439" type="method" name="is_match" visibility="public" complexity="3" crap="3.02" count="
|
5415 |
-
<line num="440" type="stmt" count="
|
5416 |
<line num="441" type="stmt" count="0"/>
|
5417 |
-
<line num="445" type="stmt" count="
|
5418 |
-
<line num="446" type="stmt" count="
|
5419 |
-
<line num="453" type="stmt" count="
|
5420 |
-
<line num="455" type="stmt" count="
|
5421 |
-
<line num="457" type="stmt" count="
|
5422 |
-
<line num="459" type="stmt" count="
|
5423 |
<line num="469" type="method" name="is_using_defaults" visibility="public" complexity="1" crap="2" count="0"/>
|
5424 |
<line num="470" type="stmt" count="0"/>
|
5425 |
<line num="472" type="stmt" count="0"/>
|
@@ -5565,97 +5534,110 @@
|
|
5565 |
</file>
|
5566 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress-data.php">
|
5567 |
<class name="Boldgrid_Backup_Admin_In_Progress_Data" namespace="global" fullPackage="Boldgrid.Backup.Admin.In.Progress">
|
5568 |
-
<metrics complexity="
|
5569 |
</class>
|
5570 |
-
<line num="37" type="method" name="delete_arg" visibility="public" complexity="2" crap="2" count="
|
5571 |
-
<line num="38" type="stmt" count="
|
5572 |
-
<line num="40" type="stmt" count="
|
5573 |
-
<line num="41" type="stmt" count="
|
5574 |
-
<line num="42" type="stmt" count="
|
5575 |
-
<line num="44" type="stmt" count="
|
5576 |
-
<line num="45" type="stmt" count="
|
5577 |
<line num="55" type="method" name="get_arg" visibility="public" complexity="2" crap="6" count="0"/>
|
5578 |
<line num="56" type="stmt" count="0"/>
|
5579 |
<line num="58" type="stmt" count="0"/>
|
5580 |
-
<line num="68" type="method" name="get_args" visibility="public" complexity="1" crap="1" count="
|
5581 |
-
<line num="69" type="stmt" count="
|
5582 |
-
<line num="
|
5583 |
-
<line num="
|
|
|
|
|
|
|
5584 |
<line num="85" type="stmt" count="0"/>
|
5585 |
-
<line num="
|
5586 |
-
<line num="
|
5587 |
-
<line num="
|
5588 |
-
<line num="
|
5589 |
-
<line num="
|
5590 |
-
<line num="
|
5591 |
-
<line num="
|
5592 |
-
<line num="
|
5593 |
-
<line num="
|
5594 |
-
<line num="
|
5595 |
-
<line num="
|
5596 |
-
<line num="
|
5597 |
-
<line num="
|
5598 |
-
<line num="
|
5599 |
-
<
|
|
|
|
|
|
|
5600 |
</file>
|
5601 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress-tmp.php">
|
5602 |
<class name="Boldgrid_Backup_Admin_In_Progress_Tmp" namespace="global" fullPackage="Boldgrid.Backup.Admin.In.Progress">
|
5603 |
-
<metrics complexity="
|
5604 |
</class>
|
5605 |
<line num="48" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="29"/>
|
5606 |
<line num="49" type="stmt" count="29"/>
|
5607 |
<line num="50" type="stmt" count="29"/>
|
5608 |
-
<line num="59" type="method" name="get" visibility="public" complexity="
|
5609 |
<line num="60" type="stmt" count="0"/>
|
5610 |
<line num="62" type="stmt" count="0"/>
|
5611 |
<line num="65" type="stmt" count="0"/>
|
5612 |
<line num="66" type="stmt" count="0"/>
|
5613 |
-
<line num="67" type="stmt" count="0"/>
|
5614 |
-
<line num="68" type="stmt" count="0"/>
|
5615 |
<line num="69" type="stmt" count="0"/>
|
5616 |
-
<line num="70" type="stmt" count="0"/>
|
5617 |
<line num="71" type="stmt" count="0"/>
|
5618 |
<line num="72" type="stmt" count="0"/>
|
5619 |
-
<line num="
|
5620 |
-
<line num="
|
5621 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
5622 |
<line num="87" type="stmt" count="0"/>
|
5623 |
-
<line num="
|
5624 |
-
<line num="
|
5625 |
-
<line num="
|
5626 |
-
<line num="94" type="stmt" count="0"/>
|
5627 |
-
<line num="96" type="stmt" count="0"/>
|
5628 |
-
<line num="97" type="stmt" count="0"/>
|
5629 |
-
<line num="98" type="stmt" count="0"/>
|
5630 |
-
<line num="99" type="stmt" count="0"/>
|
5631 |
-
<line num="100" type="stmt" count="0"/>
|
5632 |
<line num="102" type="stmt" count="0"/>
|
5633 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
5634 |
<line num="113" type="stmt" count="0"/>
|
|
|
5635 |
<line num="115" type="stmt" count="0"/>
|
5636 |
-
<line num="
|
5637 |
-
<line num="
|
5638 |
-
<line num="120" type="stmt" count="0"/>
|
5639 |
-
<line num="122" type="stmt" count="0"/>
|
5640 |
-
<line num="123" type="stmt" count="0"/>
|
5641 |
-
<line num="124" type="stmt" count="0"/>
|
5642 |
-
<line num="125" type="stmt" count="0"/>
|
5643 |
-
<line num="126" type="stmt" count="0"/>
|
5644 |
<line num="128" type="stmt" count="0"/>
|
5645 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5646 |
<line num="143" type="stmt" count="0"/>
|
5647 |
-
<line num="
|
5648 |
-
<line num="146" type="stmt" count="0"/>
|
5649 |
-
<line num="148" type="stmt" count="0"/>
|
5650 |
-
<line num="151" type="stmt" count="0"/>
|
5651 |
-
<line num="153" type="stmt" count="0"/>
|
5652 |
-
<line num="154" type="stmt" count="0"/>
|
5653 |
-
<line num="155" type="stmt" count="0"/>
|
5654 |
-
<line num="156" type="stmt" count="0"/>
|
5655 |
<line num="158" type="stmt" count="0"/>
|
5656 |
-
<line num="
|
5657 |
<line num="161" type="stmt" count="0"/>
|
5658 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5659 |
</file>
|
5660 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress.php">
|
5661 |
<class name="Boldgrid_Backup_Admin_In_Progress" namespace="global" fullPackage="Boldgrid.Backup.Admin.In">
|
@@ -5755,11 +5737,11 @@
|
|
5755 |
<line num="306" type="stmt" count="0"/>
|
5756 |
<line num="307" type="stmt" count="0"/>
|
5757 |
<line num="308" type="stmt" count="0"/>
|
5758 |
-
<line num="317" type="method" name="set" visibility="public" complexity="2" crap="2" count="
|
5759 |
-
<line num="318" type="stmt" count="
|
5760 |
-
<line num="320" type="stmt" count="
|
5761 |
-
<line num="322" type="stmt" count="
|
5762 |
-
<line num="323" type="stmt" count="
|
5763 |
<line num="330" type="method" name="wp_ajax_get_progress_notice" visibility="public" complexity="3" crap="12" count="0"/>
|
5764 |
<line num="331" type="stmt" count="0"/>
|
5765 |
<line num="332" type="stmt" count="0"/>
|
@@ -5932,102 +5914,160 @@
|
|
5932 |
</file>
|
5933 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-log.php">
|
5934 |
<class name="Boldgrid_Backup_Admin_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
5935 |
-
<metrics complexity="
|
5936 |
</class>
|
5937 |
-
<line num="78" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="
|
5938 |
-
<line num="79" type="stmt" count="
|
5939 |
-
<line num="80" type="stmt" count="
|
5940 |
-
<line num="91" type="method" name="add" visibility="public" complexity="2" crap="2" count="
|
5941 |
-
<line num="97" type="stmt" count="
|
5942 |
-
<line num="98" type="stmt" count="
|
5943 |
-
<line num="99" type="stmt" count="
|
5944 |
-
<line num="102" type="stmt" count="
|
5945 |
-
<line num="110" type="stmt" count="
|
5946 |
-
<line num="111" type="stmt" count="
|
5947 |
-
<line num="112" type="stmt" count="
|
5948 |
-
<line num="113" type="stmt" count="
|
5949 |
-
<line num="120" type="method" name="add_generic" visibility="public" complexity="
|
5950 |
-
<line num="121" type="stmt" count="
|
5951 |
-
<line num="123" type="stmt" count="
|
5952 |
-
<line num="125" type="stmt" count="
|
5953 |
-
<line num="126" type="stmt" count="
|
5954 |
-
<line num="
|
5955 |
-
<line num="136" type="
|
5956 |
-
<line num="
|
5957 |
-
<line num="140" type="stmt" count="
|
5958 |
-
<line num="141" type="stmt" count="
|
5959 |
-
<line num="
|
5960 |
-
<line num="145" type="stmt" count="
|
5961 |
-
<line num="
|
5962 |
-
<line num="154" type="
|
5963 |
-
<line num="155" type="stmt" count="
|
5964 |
-
<line num="156" type="stmt" count="
|
5965 |
-
<line num="
|
5966 |
-
<line num="159" type="stmt" count="
|
5967 |
-
<line num="160" type="stmt" count="
|
5968 |
-
<line num="161" type="stmt" count="
|
5969 |
-
<line num="162" type="stmt" count="
|
5970 |
-
<line num="163" type="stmt" count="
|
5971 |
-
<line num="164" type="stmt" count="
|
5972 |
-
<line num="165" type="stmt" count="
|
5973 |
-
<line num="
|
5974 |
-
<line num="168" type="stmt" count="
|
5975 |
-
<line num="
|
5976 |
-
<line num="176" type="
|
5977 |
-
<line num="177" type="stmt" count="
|
5978 |
-
<line num="
|
5979 |
-
<line num="
|
5980 |
-
<line num="187" type="stmt" count="
|
5981 |
-
<line num="
|
5982 |
-
<line num="
|
5983 |
-
<line num="192" type="stmt" count="
|
5984 |
-
<line num="
|
5985 |
-
<line num="197" type="stmt" count="
|
5986 |
-
<line num="198" type="stmt" count="
|
5987 |
-
<line num="
|
5988 |
-
<line num="
|
5989 |
-
<line num="204" type="stmt" count="
|
5990 |
-
<line num="205" type="stmt" count="
|
5991 |
-
<line num="
|
5992 |
-
<line num="
|
5993 |
-
<line num="
|
5994 |
-
<line num="
|
5995 |
-
<line num="
|
5996 |
-
<line num="
|
5997 |
-
<line num="
|
5998 |
-
<line num="228" type="stmt" count="
|
5999 |
-
<line num="
|
6000 |
-
<line num="231" type="stmt" count="
|
6001 |
-
<line num="232" type="stmt" count="
|
6002 |
-
<line num="233" type="stmt" count="
|
6003 |
-
<line num="234" type="stmt" count="
|
6004 |
-
<line num="
|
6005 |
-
<line num="
|
6006 |
-
<line num="
|
6007 |
-
<line num="256" type="stmt" count="
|
6008 |
-
<line num="
|
6009 |
<line num="260" type="stmt" count="0"/>
|
6010 |
<line num="261" type="stmt" count="0"/>
|
6011 |
-
<line num="
|
6012 |
-
<line num="
|
6013 |
-
<line num="
|
6014 |
-
<line num="
|
6015 |
-
<line num="
|
6016 |
-
<line num="
|
6017 |
<line num="282" type="stmt" count="0"/>
|
6018 |
-
<line num="
|
6019 |
<line num="285" type="stmt" count="0"/>
|
6020 |
<line num="286" type="stmt" count="0"/>
|
6021 |
<line num="287" type="stmt" count="0"/>
|
6022 |
-
<line num="
|
6023 |
-
<line num="
|
6024 |
<line num="300" type="stmt" count="0"/>
|
6025 |
<line num="301" type="stmt" count="0"/>
|
6026 |
<line num="302" type="stmt" count="0"/>
|
6027 |
-
<line num="
|
6028 |
-
<line num="313" type="
|
6029 |
-
<line num="
|
6030 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6031 |
</file>
|
6032 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-notice.php">
|
6033 |
<class name="Boldgrid_Backup_Admin_Notice" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
@@ -6459,7 +6499,7 @@
|
|
6459 |
</file>
|
6460 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-scheduler.php">
|
6461 |
<class name="Boldgrid_Backup_Admin_Scheduler" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
6462 |
-
<metrics complexity="12" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="
|
6463 |
</class>
|
6464 |
<line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
6465 |
<line num="47" type="stmt" count="29"/>
|
@@ -6468,39 +6508,39 @@
|
|
6468 |
<line num="56" type="stmt" count="0"/>
|
6469 |
<line num="57" type="stmt" count="0"/>
|
6470 |
<line num="58" type="stmt" count="0"/>
|
6471 |
-
<line num="66" type="method" name="get" visibility="public" complexity="4" crap="
|
6472 |
-
<line num="67" type="stmt" count="
|
6473 |
-
<line num="69" type="stmt" count="
|
6474 |
-
<line num="71" type="stmt" count="
|
6475 |
<line num="72" type="stmt" count="0"/>
|
6476 |
-
<line num="73" type="stmt" count="
|
6477 |
-
<line num="74" type="stmt" count="
|
6478 |
<line num="75" type="stmt" count="0"/>
|
6479 |
<line num="76" type="stmt" count="0"/>
|
6480 |
<line num="78" type="stmt" count="0"/>
|
6481 |
-
<line num="97" type="method" name="get_available" visibility="public" complexity="5" crap="
|
6482 |
-
<line num="98" type="stmt" count="
|
6483 |
-
<line num="99" type="stmt" count="
|
6484 |
-
<line num="102" type="stmt" count="
|
6485 |
-
<line num="103" type="stmt" count="
|
6486 |
-
<line num="106" type="stmt" count="
|
6487 |
-
<line num="107" type="stmt" count="
|
6488 |
-
<line num="108" type="stmt" count="
|
6489 |
-
<line num="110" type="stmt" count="
|
6490 |
-
<line num="112" type="stmt" count="
|
6491 |
-
<line num="114" type="stmt" count="
|
6492 |
<line num="115" type="stmt" count="0"/>
|
6493 |
<line num="116" type="stmt" count="0"/>
|
6494 |
<line num="118" type="stmt" count="0"/>
|
6495 |
-
<line num="120" type="stmt" count="
|
6496 |
<line num="131" type="method" name="is_available" visibility="public" complexity="1" crap="2" count="0"/>
|
6497 |
<line num="132" type="stmt" count="0"/>
|
6498 |
<line num="134" type="stmt" count="0"/>
|
6499 |
-
<metrics loc="136" ncloc="62" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="
|
6500 |
</file>
|
6501 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-settings.php">
|
6502 |
<class name="Boldgrid_Backup_Admin_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
6503 |
-
<metrics complexity="
|
6504 |
</class>
|
6505 |
<line num="50" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
6506 |
<line num="52" type="stmt" count="29"/>
|
@@ -6516,432 +6556,431 @@
|
|
6516 |
<line num="78" type="stmt" count="0"/>
|
6517 |
<line num="79" type="stmt" count="0"/>
|
6518 |
<line num="81" type="stmt" count="0"/>
|
6519 |
-
<line num="
|
6520 |
-
<line num="
|
6521 |
-
<line num="
|
6522 |
-
<line num="
|
6523 |
-
<line num="
|
6524 |
-
<line num="
|
6525 |
-
<line num="
|
6526 |
-
<line num="
|
6527 |
-
<line num="
|
6528 |
-
<line num="
|
6529 |
-
<line num="
|
6530 |
-
<line num="
|
6531 |
-
<line num="
|
6532 |
-
<line num="
|
6533 |
-
<line num="
|
6534 |
-
<line num="
|
6535 |
-
<line num="
|
6536 |
-
<line num="
|
6537 |
-
<line num="
|
6538 |
-
<line num="
|
6539 |
-
<line num="
|
6540 |
-
<line num="
|
6541 |
-
<line num="
|
6542 |
-
<line num="
|
6543 |
-
<line num="
|
6544 |
-
<line num="
|
6545 |
-
<line num="
|
6546 |
-
<line num="
|
6547 |
-
<line num="
|
6548 |
-
<line num="
|
6549 |
-
<line num="
|
6550 |
-
<line num="
|
6551 |
-
<line num="
|
6552 |
-
<line num="
|
6553 |
-
<line num="
|
6554 |
-
<line num="
|
6555 |
-
<line num="
|
6556 |
-
<line num="
|
6557 |
-
<line num="
|
6558 |
-
<line num="
|
6559 |
-
<line num="
|
6560 |
-
<line num="
|
6561 |
-
<line num="
|
6562 |
-
<line num="
|
6563 |
-
<line num="
|
6564 |
-
<line num="
|
6565 |
-
<line num="
|
6566 |
-
<line num="
|
6567 |
-
<line num="
|
6568 |
-
<line num="
|
6569 |
-
<line num="
|
6570 |
-
<line num="
|
6571 |
-
<line num="
|
6572 |
-
<line num="
|
6573 |
-
<line num="
|
6574 |
-
<line num="
|
6575 |
-
<line num="
|
6576 |
-
<line num="
|
6577 |
-
<line num="
|
6578 |
-
<line num="
|
6579 |
-
<line num="
|
6580 |
-
<line num="
|
6581 |
-
<line num="
|
6582 |
-
<line num="
|
6583 |
-
<line num="
|
6584 |
-
<line num="
|
6585 |
-
<line num="
|
6586 |
-
<line num="
|
6587 |
-
<line num="
|
6588 |
-
<line num="
|
6589 |
-
<line num="
|
6590 |
-
<line num="
|
6591 |
-
<line num="
|
6592 |
-
<line num="
|
6593 |
-
<line num="
|
6594 |
-
<line num="
|
6595 |
-
<line num="
|
6596 |
-
<line num="
|
6597 |
-
<line num="
|
6598 |
-
<line num="
|
6599 |
-
<line num="
|
6600 |
-
<line num="
|
6601 |
-
<line num="
|
6602 |
-
<line num="
|
6603 |
-
<line num="
|
6604 |
-
<line num="
|
6605 |
-
<line num="
|
6606 |
-
<line num="
|
6607 |
-
<line num="
|
6608 |
-
<line num="
|
6609 |
-
<line num="
|
6610 |
-
<line num="
|
6611 |
-
<line num="
|
6612 |
-
<line num="
|
6613 |
-
<line num="
|
6614 |
-
<line num="
|
6615 |
-
<line num="
|
6616 |
-
<line num="
|
6617 |
-
<line num="
|
6618 |
-
<line num="
|
6619 |
-
<line num="
|
6620 |
-
<line num="
|
6621 |
-
<line num="
|
6622 |
-
<line num="
|
6623 |
-
<line num="
|
6624 |
-
<line num="
|
6625 |
-
<line num="
|
6626 |
-
<line num="
|
6627 |
-
<line num="
|
6628 |
-
<line num="
|
6629 |
-
<line num="
|
6630 |
-
<line num="
|
6631 |
-
<line num="
|
6632 |
-
<line num="
|
6633 |
-
<line num="288" type="stmt" count="
|
6634 |
-
<line num="
|
6635 |
-
<line num="
|
6636 |
-
<line num="
|
6637 |
-
<line num="
|
6638 |
-
<line num="
|
6639 |
-
<line num="
|
6640 |
-
<line num="
|
6641 |
-
<line num="
|
6642 |
-
<line num="
|
6643 |
-
<line num="
|
6644 |
-
<line num="
|
6645 |
-
<line num="323" type="stmt" count="0"/>
|
6646 |
-
<line num="324" type="stmt" count="0"/>
|
6647 |
<line num="325" type="stmt" count="0"/>
|
6648 |
-
<line num="
|
|
|
6649 |
<line num="331" type="stmt" count="0"/>
|
6650 |
-
<line num="
|
6651 |
-
<line num="
|
6652 |
<line num="338" type="stmt" count="0"/>
|
6653 |
-
<line num="
|
6654 |
-
<line num="
|
6655 |
-
<line num="
|
6656 |
-
<line num="
|
6657 |
-
<line num="
|
6658 |
-
<line num="
|
6659 |
-
<line num="
|
6660 |
-
<line num="
|
6661 |
-
<line num="
|
6662 |
-
<line num="
|
6663 |
-
<line num="
|
6664 |
-
<line num="374" type="stmt" count="0"/>
|
6665 |
<line num="375" type="stmt" count="0"/>
|
6666 |
-
<line num="376" type="stmt" count="0"/>
|
6667 |
<line num="377" type="stmt" count="0"/>
|
|
|
6668 |
<line num="379" type="stmt" count="0"/>
|
6669 |
-
<line num="
|
6670 |
-
<line num="
|
6671 |
-
<line num="
|
6672 |
-
<line num="
|
6673 |
-
<line num="
|
6674 |
-
<line num="400" type="
|
6675 |
<line num="401" type="stmt" count="0"/>
|
6676 |
-
<line num="
|
6677 |
<line num="405" type="stmt" count="0"/>
|
6678 |
<line num="407" type="stmt" count="0"/>
|
6679 |
-
<line num="
|
6680 |
-
<line num="
|
6681 |
-
<line num="
|
6682 |
-
<line num="
|
6683 |
-
<line num="
|
6684 |
-
<line num="
|
6685 |
-
<line num="
|
6686 |
-
<line num="
|
6687 |
-
<line num="
|
6688 |
-
<line num="
|
6689 |
-
<line num="
|
6690 |
-
<line num="
|
6691 |
-
<line num="
|
6692 |
-
<line num="446" type="stmt" count="0"/>
|
6693 |
<line num="447" type="stmt" count="0"/>
|
6694 |
<line num="448" type="stmt" count="0"/>
|
6695 |
-
<line num="
|
6696 |
-
<line num="
|
6697 |
-
<line num="
|
6698 |
-
<line num="
|
6699 |
-
<line num="
|
6700 |
-
<line num="
|
6701 |
-
<line num="
|
6702 |
-
<line num="
|
6703 |
-
<line num="
|
6704 |
-
<line num="
|
6705 |
-
<line num="
|
|
|
|
|
6706 |
<line num="498" type="stmt" count="0"/>
|
6707 |
<line num="499" type="stmt" count="0"/>
|
6708 |
-
<line num="
|
6709 |
-
<line num="
|
6710 |
-
<line num="504" type="stmt" count="0"/>
|
6711 |
-
<line num="505" type="stmt" count="0"/>
|
6712 |
<line num="506" type="stmt" count="0"/>
|
6713 |
<line num="507" type="stmt" count="0"/>
|
6714 |
-
<line num="
|
6715 |
-
<line num="
|
6716 |
-
<line num="
|
6717 |
-
<line num="
|
6718 |
-
<line num="
|
6719 |
-
<line num="
|
|
|
|
|
6720 |
<line num="532" type="stmt" count="0"/>
|
6721 |
-
<line num="
|
6722 |
<line num="536" type="stmt" count="0"/>
|
6723 |
<line num="538" type="stmt" count="0"/>
|
|
|
6724 |
<line num="541" type="stmt" count="0"/>
|
6725 |
<line num="544" type="stmt" count="0"/>
|
6726 |
-
<line num="
|
6727 |
<line num="549" type="stmt" count="0"/>
|
6728 |
-
<line num="550" type="stmt" count="0"/>
|
6729 |
-
<line num="551" type="stmt" count="0"/>
|
6730 |
<line num="552" type="stmt" count="0"/>
|
6731 |
-
<line num="553" type="stmt" count="0"/>
|
6732 |
-
<line num="554" type="stmt" count="0"/>
|
6733 |
-
<line num="555" type="stmt" count="0"/>
|
6734 |
<line num="556" type="stmt" count="0"/>
|
6735 |
<line num="557" type="stmt" count="0"/>
|
6736 |
<line num="558" type="stmt" count="0"/>
|
|
|
6737 |
<line num="560" type="stmt" count="0"/>
|
|
|
6738 |
<line num="562" type="stmt" count="0"/>
|
6739 |
<line num="563" type="stmt" count="0"/>
|
6740 |
<line num="564" type="stmt" count="0"/>
|
6741 |
<line num="565" type="stmt" count="0"/>
|
6742 |
<line num="566" type="stmt" count="0"/>
|
6743 |
-
<line num="567" type="stmt" count="0"/>
|
6744 |
<line num="568" type="stmt" count="0"/>
|
6745 |
-
<line num="569" type="stmt" count="0"/>
|
6746 |
<line num="570" type="stmt" count="0"/>
|
|
|
6747 |
<line num="572" type="stmt" count="0"/>
|
|
|
|
|
6748 |
<line num="575" type="stmt" count="0"/>
|
|
|
|
|
6749 |
<line num="578" type="stmt" count="0"/>
|
6750 |
<line num="580" type="stmt" count="0"/>
|
6751 |
<line num="583" type="stmt" count="0"/>
|
6752 |
-
<line num="
|
6753 |
-
<line num="585" type="stmt" count="0"/>
|
6754 |
-
<line num="587" type="stmt" count="0"/>
|
6755 |
<line num="588" type="stmt" count="0"/>
|
6756 |
-
<line num="589" type="stmt" count="0"/>
|
6757 |
<line num="591" type="stmt" count="0"/>
|
6758 |
<line num="592" type="stmt" count="0"/>
|
|
|
|
|
6759 |
<line num="596" type="stmt" count="0"/>
|
6760 |
-
<line num="
|
6761 |
<line num="599" type="stmt" count="0"/>
|
6762 |
<line num="600" type="stmt" count="0"/>
|
6763 |
-
<line num="
|
6764 |
-
<line num="
|
6765 |
<line num="607" type="stmt" count="0"/>
|
|
|
6766 |
<line num="610" type="stmt" count="0"/>
|
6767 |
-
<line num="
|
6768 |
-
<line num="
|
6769 |
-
<line num="
|
6770 |
-
<line num="616" type="stmt" count="0"/>
|
6771 |
-
<line num="617" type="stmt" count="0"/>
|
6772 |
<line num="620" type="stmt" count="0"/>
|
6773 |
<line num="621" type="stmt" count="0"/>
|
6774 |
-
<line num="
|
6775 |
<line num="624" type="stmt" count="0"/>
|
6776 |
<line num="625" type="stmt" count="0"/>
|
6777 |
<line num="628" type="stmt" count="0"/>
|
6778 |
<line num="629" type="stmt" count="0"/>
|
6779 |
<line num="631" type="stmt" count="0"/>
|
6780 |
<line num="632" type="stmt" count="0"/>
|
6781 |
-
<line num="
|
6782 |
<line num="636" type="stmt" count="0"/>
|
6783 |
-
<line num="
|
6784 |
-
<line num="
|
|
|
6785 |
<line num="642" type="stmt" count="0"/>
|
6786 |
<line num="644" type="stmt" count="0"/>
|
6787 |
-
<line num="
|
6788 |
-
<line num="
|
6789 |
-
<line num="648" type="stmt" count="0"/>
|
6790 |
<line num="650" type="stmt" count="0"/>
|
6791 |
-
<line num="
|
6792 |
<line num="653" type="stmt" count="0"/>
|
6793 |
-
<line num="
|
6794 |
<line num="656" type="stmt" count="0"/>
|
6795 |
-
<line num="
|
6796 |
<line num="659" type="stmt" count="0"/>
|
6797 |
-
<line num="660" type="stmt" count="0"/>
|
6798 |
<line num="661" type="stmt" count="0"/>
|
6799 |
-
<line num="
|
6800 |
<line num="664" type="stmt" count="0"/>
|
6801 |
-
<line num="
|
6802 |
<line num="667" type="stmt" count="0"/>
|
6803 |
-
<line num="
|
|
|
6804 |
<line num="671" type="stmt" count="0"/>
|
6805 |
<line num="672" type="stmt" count="0"/>
|
6806 |
-
<line num="
|
6807 |
-
<line num="
|
6808 |
-
<line num="
|
|
|
|
|
|
|
6809 |
<line num="684" type="stmt" count="0"/>
|
6810 |
-
<line num="
|
6811 |
-
<line num="686" type="stmt" count="0"/>
|
6812 |
-
<line num="687" type="stmt" count="0"/>
|
6813 |
-
<line num="688" type="stmt" count="0"/>
|
6814 |
-
<line num="689" type="stmt" count="0"/>
|
6815 |
-
<line num="690" type="stmt" count="0"/>
|
6816 |
<line num="692" type="stmt" count="0"/>
|
6817 |
-
<line num="
|
6818 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
6819 |
<line num="707" type="stmt" count="0"/>
|
6820 |
-
<line num="
|
6821 |
-
<line num="
|
6822 |
-
<line num="
|
6823 |
-
<line num="719" type="stmt" count="0"/>
|
6824 |
-
<line num="720" type="stmt" count="0"/>
|
6825 |
-
<line num="721" type="stmt" count="0"/>
|
6826 |
-
<line num="722" type="stmt" count="0"/>
|
6827 |
-
<line num="723" type="stmt" count="0"/>
|
6828 |
<line num="725" type="stmt" count="0"/>
|
6829 |
-
<line num="
|
6830 |
-
<line num="
|
6831 |
-
<line num="
|
6832 |
-
<line num="
|
6833 |
-
<line num="
|
6834 |
-
<line num="
|
|
|
|
|
|
|
|
|
|
|
6835 |
<line num="747" type="stmt" count="0"/>
|
6836 |
-
<line num="
|
6837 |
-
<line num="
|
6838 |
-
<line num="
|
6839 |
-
<line num="
|
6840 |
<line num="760" type="stmt" count="0"/>
|
6841 |
-
<line num="
|
6842 |
-
<line num="764" type="stmt" count="0"/>
|
6843 |
-
<line num="765" type="stmt" count="0"/>
|
6844 |
<line num="768" type="stmt" count="0"/>
|
6845 |
-
<line num="
|
6846 |
<line num="772" type="stmt" count="0"/>
|
6847 |
<line num="773" type="stmt" count="0"/>
|
6848 |
-
<line num="
|
|
|
6849 |
<line num="780" type="stmt" count="0"/>
|
6850 |
<line num="781" type="stmt" count="0"/>
|
6851 |
-
<line num="
|
|
|
6852 |
<line num="789" type="stmt" count="0"/>
|
6853 |
<line num="790" type="stmt" count="0"/>
|
6854 |
<line num="797" type="stmt" count="0"/>
|
6855 |
<line num="798" type="stmt" count="0"/>
|
6856 |
-
<line num="
|
6857 |
-
<line num="
|
6858 |
-
<line num="
|
6859 |
-
<line num="813" type="stmt" count="0"/>
|
6860 |
-
<line num="814" type="stmt" count="0"/>
|
6861 |
-
<line num="815" type="stmt" count="0"/>
|
6862 |
<line num="818" type="stmt" count="0"/>
|
6863 |
<line num="819" type="stmt" count="0"/>
|
6864 |
-
<line num="820" type="stmt" count="0"/>
|
6865 |
<line num="821" type="stmt" count="0"/>
|
6866 |
<line num="822" type="stmt" count="0"/>
|
6867 |
-
<line num="
|
6868 |
<line num="826" type="stmt" count="0"/>
|
6869 |
<line num="827" type="stmt" count="0"/>
|
|
|
6870 |
<line num="829" type="stmt" count="0"/>
|
6871 |
<line num="830" type="stmt" count="0"/>
|
6872 |
-
<line num="831" type="stmt" count="0"/>
|
6873 |
-
<line num="832" type="stmt" count="0"/>
|
6874 |
-
<line num="833" type="stmt" count="0"/>
|
6875 |
-
<line num="834" type="stmt" count="0"/>
|
6876 |
-
<line num="836" type="stmt" count="0"/>
|
6877 |
<line num="837" type="stmt" count="0"/>
|
6878 |
-
<line num="
|
6879 |
-
<line num="
|
|
|
6880 |
<line num="843" type="stmt" count="0"/>
|
6881 |
<line num="844" type="stmt" count="0"/>
|
|
|
6882 |
<line num="847" type="stmt" count="0"/>
|
|
|
|
|
6883 |
<line num="850" type="stmt" count="0"/>
|
6884 |
<line num="851" type="stmt" count="0"/>
|
6885 |
<line num="852" type="stmt" count="0"/>
|
6886 |
-
<line num="853" type="stmt" count="0"/>
|
6887 |
<line num="854" type="stmt" count="0"/>
|
6888 |
-
<line num="
|
6889 |
<line num="859" type="stmt" count="0"/>
|
6890 |
<line num="860" type="stmt" count="0"/>
|
6891 |
<line num="861" type="stmt" count="0"/>
|
6892 |
-
<line num="
|
6893 |
-
<line num="864" type="stmt" count="0"/>
|
6894 |
<line num="865" type="stmt" count="0"/>
|
6895 |
-
<line num="
|
6896 |
-
<line num="
|
6897 |
<line num="870" type="stmt" count="0"/>
|
6898 |
<line num="871" type="stmt" count="0"/>
|
6899 |
<line num="872" type="stmt" count="0"/>
|
6900 |
-
<line num="
|
6901 |
-
<line num="
|
|
|
|
|
6902 |
<line num="881" type="stmt" count="0"/>
|
|
|
|
|
6903 |
<line num="884" type="stmt" count="0"/>
|
6904 |
-
<line num="
|
6905 |
-
<line num="
|
|
|
|
|
|
|
|
|
6906 |
<line num="899" type="stmt" count="0"/>
|
6907 |
-
<line num="
|
6908 |
-
<line num="
|
6909 |
-
<line num="
|
6910 |
-
<line num="
|
6911 |
-
<line num="
|
6912 |
-
<line num="
|
6913 |
-
<line num="
|
6914 |
-
<line num="
|
6915 |
-
<line num="
|
6916 |
-
<line num="
|
6917 |
-
<line num="
|
6918 |
-
<line num="931" type="stmt" count="0"/>
|
6919 |
-
<line num="932" type="stmt" count="0"/>
|
6920 |
-
<line num="933" type="stmt" count="0"/>
|
6921 |
-
<line num="935" type="stmt" count="0"/>
|
6922 |
-
<line num="936" type="stmt" count="0"/>
|
6923 |
-
<line num="937" type="stmt" count="0"/>
|
6924 |
-
<line num="939" type="stmt" count="0"/>
|
6925 |
-
<line num="940" type="stmt" count="0"/>
|
6926 |
-
<line num="941" type="stmt" count="0"/>
|
6927 |
<line num="944" type="stmt" count="0"/>
|
6928 |
<line num="945" type="stmt" count="0"/>
|
6929 |
-
<line num="946" type="stmt" count="0"/>
|
6930 |
<line num="947" type="stmt" count="0"/>
|
|
|
6931 |
<line num="949" type="stmt" count="0"/>
|
6932 |
<line num="950" type="stmt" count="0"/>
|
6933 |
-
<line num="
|
6934 |
<line num="953" type="stmt" count="0"/>
|
|
|
6935 |
<line num="955" type="stmt" count="0"/>
|
6936 |
<line num="957" type="stmt" count="0"/>
|
6937 |
<line num="958" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
6938 |
<line num="965" type="stmt" count="0"/>
|
6939 |
-
<line num="966" type="stmt" count="0"/>
|
6940 |
<line num="967" type="stmt" count="0"/>
|
6941 |
<line num="968" type="stmt" count="0"/>
|
6942 |
<line num="970" type="stmt" count="0"/>
|
6943 |
-
<line num="
|
6944 |
<line num="973" type="stmt" count="0"/>
|
|
|
6945 |
<line num="976" type="stmt" count="0"/>
|
6946 |
<line num="983" type="stmt" count="0"/>
|
6947 |
<line num="984" type="stmt" count="0"/>
|
@@ -6951,31 +6990,27 @@
|
|
6951 |
<line num="990" type="stmt" count="0"/>
|
6952 |
<line num="991" type="stmt" count="0"/>
|
6953 |
<line num="994" type="stmt" count="0"/>
|
6954 |
-
<line num="996" type="stmt" count="0"/>
|
6955 |
-
<line num="997" type="stmt" count="0"/>
|
6956 |
-
<line num="1000" type="stmt" count="0"/>
|
6957 |
<line num="1001" type="stmt" count="0"/>
|
6958 |
<line num="1002" type="stmt" count="0"/>
|
6959 |
<line num="1003" type="stmt" count="0"/>
|
6960 |
<line num="1004" type="stmt" count="0"/>
|
6961 |
-
<line num="
|
6962 |
<line num="1008" type="stmt" count="0"/>
|
6963 |
<line num="1009" type="stmt" count="0"/>
|
6964 |
-
<line num="
|
6965 |
-
<line num="
|
6966 |
-
<line num="1013" type="stmt" count="0"/>
|
6967 |
<line num="1015" type="stmt" count="0"/>
|
6968 |
-
<line num="1016" type="stmt" count="0"/>
|
6969 |
-
<line num="1017" type="stmt" count="0"/>
|
6970 |
<line num="1018" type="stmt" count="0"/>
|
6971 |
<line num="1019" type="stmt" count="0"/>
|
|
|
6972 |
<line num="1021" type="stmt" count="0"/>
|
6973 |
-
<line num="
|
6974 |
<line num="1025" type="stmt" count="0"/>
|
6975 |
<line num="1026" type="stmt" count="0"/>
|
6976 |
<line num="1027" type="stmt" count="0"/>
|
6977 |
<line num="1028" type="stmt" count="0"/>
|
6978 |
-
<line num="
|
|
|
6979 |
<line num="1033" type="stmt" count="0"/>
|
6980 |
<line num="1034" type="stmt" count="0"/>
|
6981 |
<line num="1035" type="stmt" count="0"/>
|
@@ -6986,43 +7021,55 @@
|
|
6986 |
<line num="1043" type="stmt" count="0"/>
|
6987 |
<line num="1044" type="stmt" count="0"/>
|
6988 |
<line num="1045" type="stmt" count="0"/>
|
6989 |
-
<line num="
|
6990 |
-
<line num="
|
6991 |
-
<line num="
|
6992 |
<line num="1052" type="stmt" count="0"/>
|
|
|
|
|
6993 |
<line num="1055" type="stmt" count="0"/>
|
6994 |
-
<line num="1056" type="stmt" count="0"/>
|
6995 |
<line num="1057" type="stmt" count="0"/>
|
6996 |
-
<line num="
|
6997 |
<line num="1061" type="stmt" count="0"/>
|
6998 |
<line num="1062" type="stmt" count="0"/>
|
6999 |
<line num="1063" type="stmt" count="0"/>
|
7000 |
<line num="1065" type="stmt" count="0"/>
|
7001 |
-
<line num="1066" type="stmt" count="0"/>
|
7002 |
<line num="1067" type="stmt" count="0"/>
|
|
|
|
|
|
|
7003 |
<line num="1074" type="stmt" count="0"/>
|
7004 |
-
<line num="
|
7005 |
<line num="1077" type="stmt" count="0"/>
|
7006 |
<line num="1079" type="stmt" count="0"/>
|
|
|
|
|
|
|
7007 |
<line num="1084" type="stmt" count="0"/>
|
7008 |
<line num="1085" type="stmt" count="0"/>
|
7009 |
-
<line num="
|
7010 |
-
<line num="
|
7011 |
-
<line num="
|
7012 |
-
<line num="
|
7013 |
-
<line num="1102" type="stmt" count="
|
7014 |
-
<line num="
|
7015 |
-
<line num="
|
7016 |
-
<line num="
|
7017 |
-
<line num="
|
7018 |
-
<line num="1119" type="
|
7019 |
-
<line num="1120" type="stmt" count="
|
7020 |
-
<line num="
|
7021 |
-
<line num="
|
7022 |
-
<line num="
|
7023 |
-
<line num="
|
7024 |
-
<line num="
|
7025 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
7026 |
</file>
|
7027 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-support.php">
|
7028 |
<class name="Boldgrid_Backup_Admin_Support" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
@@ -7143,31 +7190,142 @@
|
|
7143 |
<line num="308" type="stmt" count="0"/>
|
7144 |
<metrics loc="309" ncloc="177" classes="1" methods="10" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="103" coveredstatements="2" elements="113" coveredelements="3"/>
|
7145 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7146 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-test.php">
|
7147 |
<class name="Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7148 |
-
<metrics complexity="99" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="261" coveredstatements="
|
7149 |
</class>
|
7150 |
<line num="122" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
7151 |
<line num="124" type="stmt" count="29"/>
|
7152 |
<line num="125" type="stmt" count="29"/>
|
7153 |
-
<line num="135" type="method" name="can_exec_write" visibility="public" complexity="4" crap="4.32" count="
|
7154 |
-
<line num="136" type="stmt" count="
|
7155 |
<line num="137" type="stmt" count="0"/>
|
7156 |
-
<line num="140" type="stmt" count="
|
7157 |
-
<line num="141" type="stmt" count="
|
7158 |
-
<line num="144" type="stmt" count="
|
7159 |
-
<line num="145" type="stmt" count="
|
7160 |
-
<line num="146" type="stmt" count="
|
7161 |
<line num="147" type="stmt" count="0"/>
|
7162 |
-
<line num="151" type="stmt" count="
|
7163 |
<line num="152" type="stmt" count="0"/>
|
7164 |
-
<line num="156" type="stmt" count="
|
7165 |
-
<line num="167" type="method" name="exists" visibility="public" complexity="3" crap="3.58" count="
|
7166 |
-
<line num="168" type="stmt" count="
|
7167 |
-
<line num="174" type="stmt" count="
|
7168 |
<line num="175" type="stmt" count="0"/>
|
7169 |
<line num="176" type="stmt" count="0"/>
|
7170 |
-
<line num="178" type="stmt" count="
|
7171 |
<line num="191" type="method" name="extensive_dir_test" visibility="public" complexity="3" crap="3" count="2"/>
|
7172 |
<line num="192" type="stmt" count="2"/>
|
7173 |
<line num="193" type="stmt" count="2"/>
|
@@ -7203,18 +7361,18 @@
|
|
7203 |
<line num="258" type="stmt" count="0"/>
|
7204 |
<line num="260" type="stmt" count="0"/>
|
7205 |
<line num="262" type="stmt" count="0"/>
|
7206 |
-
<line num="276" type="method" name="delete_test_files" visibility="public" complexity="4" crap="4.01" count="
|
7207 |
-
<line num="277" type="stmt" count="
|
7208 |
-
<line num="279" type="stmt" count="
|
7209 |
-
<line num="281" type="stmt" count="
|
7210 |
<line num="282" type="stmt" count="0"/>
|
7211 |
-
<line num="285" type="stmt" count="
|
7212 |
-
<line num="286" type="stmt" count="
|
7213 |
-
<line num="288" type="stmt" count="
|
7214 |
<line num="289" type="stmt" count="1"/>
|
7215 |
<line num="290" type="stmt" count="1"/>
|
7216 |
-
<line num="291" type="stmt" count="
|
7217 |
-
<line num="293" type="stmt" count="
|
7218 |
<line num="303" type="method" name="is_windows" visibility="public" complexity="2" crap="2" count="8"/>
|
7219 |
<line num="305" type="stmt" count="8"/>
|
7220 |
<line num="306" type="stmt" count="7"/>
|
@@ -7250,9 +7408,9 @@
|
|
7250 |
<line num="392" type="stmt" count="0"/>
|
7251 |
<line num="394" type="stmt" count="0"/>
|
7252 |
<line num="396" type="stmt" count="0"/>
|
7253 |
-
<line num="408" type="method" name="is_crontab_available" visibility="public" complexity="4" crap="4.
|
7254 |
-
<line num="410" type="stmt" count="
|
7255 |
-
<line num="411" type="stmt" count="
|
7256 |
<line num="414" type="stmt" count="1"/>
|
7257 |
<line num="415" type="stmt" count="0"/>
|
7258 |
<line num="416" type="stmt" count="0"/>
|
@@ -7261,27 +7419,27 @@
|
|
7261 |
<line num="426" type="stmt" count="1"/>
|
7262 |
<line num="427" type="stmt" count="1"/>
|
7263 |
<line num="429" type="stmt" count="1"/>
|
7264 |
-
<line num="439" type="method" name="wp_cron_enabled" visibility="public" complexity="5" crap="
|
7265 |
-
<line num="441" type="stmt" count="
|
7266 |
<line num="442" type="stmt" count="0"/>
|
7267 |
-
<line num="446" type="stmt" count="
|
7268 |
-
<line num="448" type="stmt" count="
|
7269 |
-
<line num="449" type="stmt" count="
|
7270 |
-
<line num="450" type="stmt" count="
|
7271 |
-
<line num="453" type="stmt" count="
|
7272 |
-
<line num="455" type="stmt" count="
|
7273 |
-
<line num="456" type="stmt" count="
|
7274 |
-
<line num="457" type="stmt" count="
|
7275 |
-
<line num="459" type="stmt" count="
|
7276 |
-
<line num="461" type="stmt" count="
|
7277 |
<line num="471" type="method" name="is_php_safemode" visibility="public" complexity="2" crap="2.06" count="1"/>
|
7278 |
<line num="473" type="stmt" count="1"/>
|
7279 |
<line num="474" type="stmt" count="0"/>
|
7280 |
<line num="478" type="stmt" count="1"/>
|
7281 |
<line num="481" type="stmt" count="1"/>
|
7282 |
-
<line num="491" type="method" name="is_php_zip_supported" visibility="public" complexity="1" crap="
|
7283 |
-
<line num="492" type="stmt" count="
|
7284 |
-
<line num="494" type="stmt" count="
|
7285 |
<line num="504" type="method" name="is_plesk" visibility="public" complexity="3" crap="12" count="0"/>
|
7286 |
<line num="505" type="stmt" count="0"/>
|
7287 |
<line num="506" type="stmt" count="0"/>
|
@@ -7291,9 +7449,9 @@
|
|
7291 |
<line num="521" type="method" name="is_system_zip_supported" visibility="public" complexity="1" crap="2" count="0"/>
|
7292 |
<line num="522" type="stmt" count="0"/>
|
7293 |
<line num="524" type="stmt" count="0"/>
|
7294 |
-
<line num="534" type="method" name="run_functionality_tests" visibility="public" complexity="15" crap="25.25" count="
|
7295 |
-
<line num="536" type="stmt" count="
|
7296 |
-
<line num="537" type="stmt" count="
|
7297 |
<line num="540" type="stmt" count="1"/>
|
7298 |
<line num="550" type="stmt" count="1"/>
|
7299 |
<line num="551" type="stmt" count="1"/>
|
@@ -7357,31 +7515,31 @@
|
|
7357 |
<line num="668" type="stmt" count="0"/>
|
7358 |
<line num="671" type="stmt" count="0"/>
|
7359 |
<line num="674" type="stmt" count="0"/>
|
7360 |
-
<line num="687" type="method" name="get_cli_support" visibility="public" complexity="10" crap="10.20" count="
|
7361 |
-
<line num="689" type="stmt" count="
|
7362 |
-
<line num="690" type="stmt" count="
|
7363 |
-
<line num="691" type="stmt" count="
|
7364 |
-
<line num="694" type="stmt" count="
|
7365 |
-
<line num="698" type="stmt" count="
|
7366 |
-
<line num="699" type="stmt" count="
|
7367 |
-
<line num="701" type="stmt" count="
|
7368 |
-
<line num="703" type="stmt" count="
|
7369 |
-
<line num="705" type="stmt" count="
|
7370 |
<line num="707" type="stmt" count="0"/>
|
7371 |
<line num="708" type="stmt" count="0"/>
|
7372 |
-
<line num="709" type="stmt" count="
|
7373 |
-
<line num="712" type="stmt" count="
|
7374 |
-
<line num="713" type="stmt" count="
|
7375 |
-
<line num="716" type="stmt" count="
|
7376 |
-
<line num="718" type="stmt" count="
|
7377 |
-
<line num="720" type="stmt" count="
|
7378 |
-
<line num="722" type="stmt" count="
|
7379 |
<line num="723" type="stmt" count="0"/>
|
7380 |
-
<line num="726" type="stmt" count="
|
7381 |
-
<line num="727" type="stmt" count="
|
7382 |
-
<line num="729" type="stmt" count="
|
7383 |
-
<line num="731" type="stmt" count="
|
7384 |
-
<line num="733" type="stmt" count="
|
7385 |
<line num="745" type="method" name="get_database_size" visibility="public" complexity="4" crap="20" count="0"/>
|
7386 |
<line num="747" type="stmt" count="0"/>
|
7387 |
<line num="749" type="stmt" count="0"/>
|
@@ -7415,14 +7573,14 @@
|
|
7415 |
<line num="838" type="stmt" count="0"/>
|
7416 |
<line num="839" type="stmt" count="0"/>
|
7417 |
<line num="840" type="stmt" count="0"/>
|
7418 |
-
<line num="850" type="method" name="is_pcl_zip_supported" visibility="public" complexity="1" crap="
|
7419 |
-
<line num="851" type="stmt" count="
|
7420 |
-
<line num="853" type="stmt" count="
|
7421 |
-
<line num="865" type="method" name="is_ea4_cli" visibility="public" complexity="3" crap="3" count="
|
7422 |
-
<line num="866" type="stmt" count="
|
7423 |
-
<line num="867" type="stmt" count="
|
7424 |
-
<line num="869" type="stmt" count="
|
7425 |
-
<line num="871" type="stmt" count="
|
7426 |
<line num="883" type="method" name="is_filesystem_supported" visibility="public" complexity="3" crap="4.12" count="1"/>
|
7427 |
<line num="884" type="stmt" count="1"/>
|
7428 |
<line num="886" type="stmt" count="1"/>
|
@@ -7434,7 +7592,7 @@
|
|
7434 |
<line num="895" type="stmt" count="0"/>
|
7435 |
<line num="896" type="stmt" count="0"/>
|
7436 |
<line num="898" type="stmt" count="1"/>
|
7437 |
-
<metrics loc="900" ncloc="445" classes="1" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="261" coveredstatements="
|
7438 |
</file>
|
7439 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-time.php">
|
7440 |
<class name="Boldgrid_Backup_Admin_Time" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
@@ -7629,7 +7787,7 @@
|
|
7629 |
</file>
|
7630 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-upload.php">
|
7631 |
<class name="Boldgrid_Backup_Admin_Upload" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7632 |
-
<metrics complexity="
|
7633 |
</class>
|
7634 |
<line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
7635 |
<line num="41" type="stmt" count="29"/>
|
@@ -7772,7 +7930,7 @@
|
|
7772 |
<line num="380" type="stmt" count="0"/>
|
7773 |
<line num="382" type="stmt" count="0"/>
|
7774 |
<line num="384" type="stmt" count="0"/>
|
7775 |
-
<line num="403" type="method" name="ajax_url_import" visibility="public" complexity="
|
7776 |
<line num="404" type="stmt" count="0"/>
|
7777 |
<line num="405" type="stmt" count="0"/>
|
7778 |
<line num="406" type="stmt" count="0"/>
|
@@ -7788,91 +7946,20 @@
|
|
7788 |
<line num="424" type="stmt" count="0"/>
|
7789 |
<line num="425" type="stmt" count="0"/>
|
7790 |
<line num="427" type="stmt" count="0"/>
|
7791 |
-
<line num="
|
7792 |
<line num="430" type="stmt" count="0"/>
|
7793 |
-
<line num="
|
7794 |
<line num="433" type="stmt" count="0"/>
|
|
|
7795 |
<line num="435" type="stmt" count="0"/>
|
7796 |
-
<line num="
|
7797 |
-
<line num="
|
7798 |
-
<line num="
|
7799 |
-
<line num="441" type="stmt" count="0"/>
|
7800 |
-
<line num="442" type="stmt" count="0"/>
|
7801 |
-
<line num="444" type="stmt" count="0"/>
|
7802 |
<line num="446" type="stmt" count="0"/>
|
7803 |
<line num="447" type="stmt" count="0"/>
|
|
|
7804 |
<line num="449" type="stmt" count="0"/>
|
7805 |
-
<
|
7806 |
-
<line num="453" type="stmt" count="0"/>
|
7807 |
-
<line num="454" type="stmt" count="0"/>
|
7808 |
-
<line num="455" type="stmt" count="0"/>
|
7809 |
-
<line num="457" type="stmt" count="0"/>
|
7810 |
-
<line num="458" type="stmt" count="0"/>
|
7811 |
-
<line num="459" type="stmt" count="0"/>
|
7812 |
-
<line num="460" type="stmt" count="0"/>
|
7813 |
-
<line num="461" type="stmt" count="0"/>
|
7814 |
-
<line num="462" type="stmt" count="0"/>
|
7815 |
-
<line num="463" type="stmt" count="0"/>
|
7816 |
-
<line num="465" type="stmt" count="0"/>
|
7817 |
-
<line num="467" type="stmt" count="0"/>
|
7818 |
-
<line num="468" type="stmt" count="0"/>
|
7819 |
-
<line num="469" type="stmt" count="0"/>
|
7820 |
-
<line num="470" type="stmt" count="0"/>
|
7821 |
-
<line num="473" type="stmt" count="0"/>
|
7822 |
-
<line num="475" type="stmt" count="0"/>
|
7823 |
-
<line num="476" type="stmt" count="0"/>
|
7824 |
-
<line num="477" type="stmt" count="0"/>
|
7825 |
-
<line num="478" type="stmt" count="0"/>
|
7826 |
-
<line num="479" type="stmt" count="0"/>
|
7827 |
-
<line num="480" type="stmt" count="0"/>
|
7828 |
-
<line num="482" type="stmt" count="0"/>
|
7829 |
-
<line num="483" type="stmt" count="0"/>
|
7830 |
-
<line num="485" type="stmt" count="0"/>
|
7831 |
-
<line num="486" type="stmt" count="0"/>
|
7832 |
-
<line num="489" type="stmt" count="0"/>
|
7833 |
-
<line num="490" type="stmt" count="0"/>
|
7834 |
-
<line num="493" type="stmt" count="0"/>
|
7835 |
-
<line num="496" type="stmt" count="0"/>
|
7836 |
-
<line num="498" type="stmt" count="0"/>
|
7837 |
-
<line num="500" type="stmt" count="0"/>
|
7838 |
-
<line num="501" type="stmt" count="0"/>
|
7839 |
-
<line num="503" type="stmt" count="0"/>
|
7840 |
-
<line num="504" type="stmt" count="0"/>
|
7841 |
-
<line num="505" type="stmt" count="0"/>
|
7842 |
-
<line num="506" type="stmt" count="0"/>
|
7843 |
-
<line num="508" type="stmt" count="0"/>
|
7844 |
-
<line num="509" type="stmt" count="0"/>
|
7845 |
-
<line num="512" type="stmt" count="0"/>
|
7846 |
-
<line num="513" type="stmt" count="0"/>
|
7847 |
-
<line num="514" type="stmt" count="0"/>
|
7848 |
-
<line num="515" type="stmt" count="0"/>
|
7849 |
-
<line num="517" type="stmt" count="0"/>
|
7850 |
-
<line num="518" type="stmt" count="0"/>
|
7851 |
-
<line num="519" type="stmt" count="0"/>
|
7852 |
-
<line num="520" type="stmt" count="0"/>
|
7853 |
-
<line num="521" type="stmt" count="0"/>
|
7854 |
-
<line num="522" type="stmt" count="0"/>
|
7855 |
-
<line num="523" type="stmt" count="0"/>
|
7856 |
-
<line num="525" type="stmt" count="0"/>
|
7857 |
-
<line num="526" type="stmt" count="0"/>
|
7858 |
-
<line num="530" type="stmt" count="0"/>
|
7859 |
-
<line num="531" type="stmt" count="0"/>
|
7860 |
-
<line num="533" type="stmt" count="0"/>
|
7861 |
-
<line num="534" type="stmt" count="0"/>
|
7862 |
-
<line num="536" type="stmt" count="0"/>
|
7863 |
-
<line num="537" type="stmt" count="0"/>
|
7864 |
-
<line num="539" type="stmt" count="0"/>
|
7865 |
-
<line num="542" type="stmt" count="0"/>
|
7866 |
-
<line num="544" type="stmt" count="0"/>
|
7867 |
-
<line num="546" type="stmt" count="0"/>
|
7868 |
-
<line num="547" type="stmt" count="0"/>
|
7869 |
-
<line num="554" type="method" name="archive_upload_action" visibility="public" complexity="3" crap="12" count="0"/>
|
7870 |
-
<line num="555" type="stmt" count="0"/>
|
7871 |
-
<line num="556" type="stmt" count="0"/>
|
7872 |
-
<line num="557" type="stmt" count="0"/>
|
7873 |
-
<line num="558" type="stmt" count="0"/>
|
7874 |
-
<line num="559" type="stmt" count="0"/>
|
7875 |
-
<metrics loc="560" ncloc="314" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="232" coveredstatements="2" elements="241" coveredelements="3"/>
|
7876 |
</file>
|
7877 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-usage.php">
|
7878 |
<class name="Boldgrid_Backup_Admin_Usage" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
@@ -7909,40 +7996,40 @@
|
|
7909 |
</file>
|
7910 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-utility.php">
|
7911 |
<class name="Boldgrid_Backup_Admin_Utility" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7912 |
-
<metrics complexity="
|
7913 |
</class>
|
7914 |
-
<line num="34" type="method" name="bytes_to_human" visibility="public" complexity="3" crap="3" count="
|
7915 |
-
<line num="36" type="stmt" count="
|
7916 |
<line num="37" type="stmt" count="0"/>
|
7917 |
-
<line num="41" type="stmt" count="
|
7918 |
-
<line num="44" type="stmt" count="
|
7919 |
-
<line num="45" type="stmt" count="
|
7920 |
-
<line num="46" type="stmt" count="
|
7921 |
-
<line num="47" type="stmt" count="
|
7922 |
-
<line num="48" type="stmt" count="
|
7923 |
-
<line num="49" type="stmt" count="
|
7924 |
-
<line num="50" type="stmt" count="
|
7925 |
-
<line num="51" type="stmt" count="
|
7926 |
-
<line num="52" type="stmt" count="
|
7927 |
-
<line num="53" type="stmt" count="
|
7928 |
-
<line num="55" type="stmt" count="
|
7929 |
-
<line num="57" type="stmt" count="
|
7930 |
-
<line num="58" type="stmt" count="
|
7931 |
-
<line num="59" type="stmt" count="
|
7932 |
-
<line num="60" type="stmt" count="
|
7933 |
-
<line num="62" type="stmt" count="
|
7934 |
-
<line num="64" type="stmt" count="
|
7935 |
-
<line num="66" type="stmt" count="
|
7936 |
-
<line num="78" type="method" name="create_site_id" visibility="public" complexity="2" crap="2.04" count="
|
7937 |
-
<line num="80" type="stmt" count="
|
7938 |
<line num="82" type="stmt" count="0"/>
|
7939 |
<line num="83" type="stmt" count="0"/>
|
7940 |
-
<line num="85" type="stmt" count="
|
7941 |
-
<line num="89" type="stmt" count="
|
7942 |
-
<line num="90" type="stmt" count="
|
7943 |
-
<line num="91" type="stmt" count="
|
7944 |
-
<line num="92" type="stmt" count="
|
7945 |
-
<line num="94" type="stmt" count="
|
7946 |
<line num="121" type="method" name="handle_error" visibility="public" complexity="2" crap="6" count="0"/>
|
7947 |
<line num="148" type="stmt" count="0"/>
|
7948 |
<line num="149" type="stmt" count="0"/>
|
@@ -8045,172 +8132,164 @@
|
|
8045 |
<line num="320" type="stmt" count="0"/>
|
8046 |
<line num="321" type="stmt" count="0"/>
|
8047 |
<line num="323" type="stmt" count="0"/>
|
8048 |
-
<line num="
|
8049 |
-
<line num="
|
8050 |
-
<line num="
|
8051 |
-
<line num="
|
8052 |
-
<line num="346" type="stmt" count="0"/>
|
8053 |
-
<line num="350" type="stmt" count="0"/>
|
8054 |
<line num="354" type="stmt" count="0"/>
|
8055 |
-
<line num="355" type="stmt" count="0"/>
|
8056 |
-
<line num="357" type="stmt" count="0"/>
|
8057 |
<line num="358" type="stmt" count="0"/>
|
8058 |
-
<line num="
|
8059 |
-
<line num="
|
8060 |
-
<line num="
|
8061 |
-
<line num="
|
8062 |
-
<line num="
|
8063 |
-
<line num="
|
8064 |
-
<line num="
|
8065 |
-
<line num="
|
8066 |
-
<line num="
|
8067 |
-
<line num="
|
8068 |
-
<line num="
|
8069 |
-
<line num="
|
8070 |
-
<line num="
|
8071 |
-
<line num="
|
8072 |
-
<line num="
|
8073 |
-
<line num="
|
8074 |
-
<line num="
|
8075 |
-
<line num="
|
8076 |
-
<line num="
|
8077 |
-
<line num="
|
8078 |
-
<line num="
|
8079 |
-
<line num="449" type="stmt" count="
|
8080 |
-
<line num="
|
8081 |
-
<line num="
|
8082 |
-
<line num="
|
8083 |
-
<line num="
|
8084 |
-
<line num="
|
8085 |
-
<line num="
|
|
|
8086 |
<line num="487" type="stmt" count="0"/>
|
8087 |
-
<line num="
|
|
|
8088 |
<line num="494" type="stmt" count="0"/>
|
8089 |
-
<line num="
|
8090 |
-
<line num="
|
8091 |
-
<line num="
|
8092 |
-
<line num="
|
8093 |
-
<line num="
|
8094 |
-
<line num="
|
8095 |
-
<line num="
|
8096 |
-
<line num="
|
8097 |
-
<line num="
|
8098 |
-
<line num="
|
8099 |
-
<line num="
|
8100 |
-
<line num="
|
8101 |
-
<line num="
|
8102 |
<line num="563" type="stmt" count="0"/>
|
8103 |
-
<line num="
|
8104 |
-
<line num="
|
8105 |
-
<line num="
|
8106 |
-
<line num="
|
8107 |
-
<line num="
|
8108 |
-
<line num="
|
8109 |
-
<line num="
|
8110 |
-
<line num="
|
8111 |
-
<line num="601" type="stmt" count="0"/>
|
8112 |
-
<line num="602" type="stmt" count="0"/>
|
8113 |
<line num="603" type="stmt" count="0"/>
|
8114 |
-
<line num="
|
8115 |
<line num="608" type="stmt" count="0"/>
|
8116 |
-
<line num="
|
8117 |
-
<line num="
|
8118 |
-
<line num="
|
8119 |
-
<line num="
|
8120 |
-
<line num="
|
8121 |
-
<line num="
|
8122 |
-
<line num="
|
8123 |
-
<line num="
|
8124 |
-
<line num="
|
8125 |
-
<line num="
|
8126 |
-
<line num="
|
8127 |
-
<line num="
|
|
|
8128 |
<line num="671" type="stmt" count="0"/>
|
8129 |
-
<line num="672" type="stmt" count="0"/>
|
8130 |
-
<line num="673" type="stmt" count="0"/>
|
8131 |
<line num="674" type="stmt" count="0"/>
|
8132 |
<line num="675" type="stmt" count="0"/>
|
8133 |
-
<line num="676" type="stmt" count="0"/>
|
8134 |
-
<line num="677" type="stmt" count="0"/>
|
8135 |
-
<line num="678" type="stmt" count="0"/>
|
8136 |
<line num="679" type="stmt" count="0"/>
|
8137 |
-
<line num="
|
8138 |
-
<line num="
|
8139 |
-
<line num="682" type="stmt" count="0"/>
|
8140 |
<line num="685" type="stmt" count="0"/>
|
|
|
8141 |
<line num="687" type="stmt" count="0"/>
|
8142 |
<line num="688" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
8143 |
<line num="693" type="stmt" count="0"/>
|
8144 |
-
<line num="
|
8145 |
-
<line num="
|
8146 |
<line num="698" type="stmt" count="0"/>
|
8147 |
-
<line num="
|
8148 |
<line num="701" type="stmt" count="0"/>
|
8149 |
-
<line num="
|
8150 |
-
<line num="
|
8151 |
-
<line num="707" type="stmt" count="0"/>
|
8152 |
<line num="710" type="stmt" count="0"/>
|
|
|
8153 |
<line num="712" type="stmt" count="0"/>
|
8154 |
-
<line num="
|
8155 |
-
<line num="
|
8156 |
-
<line num="
|
8157 |
-
<line num="
|
8158 |
-
<line num="
|
8159 |
-
<line num="
|
|
|
8160 |
<line num="744" type="stmt" count="0"/>
|
8161 |
-
<line num="
|
8162 |
<line num="748" type="stmt" count="0"/>
|
8163 |
-
<line num="
|
8164 |
-
<line num="
|
8165 |
<line num="757" type="stmt" count="0"/>
|
8166 |
-
<line num="
|
8167 |
-
<line num="
|
8168 |
<line num="764" type="stmt" count="0"/>
|
8169 |
-
<line num="766" type="stmt" count="0"/>
|
8170 |
<line num="767" type="stmt" count="0"/>
|
8171 |
-
<line num="768" type="stmt" count="0"/>
|
8172 |
<line num="770" type="stmt" count="0"/>
|
8173 |
-
<line num="
|
8174 |
-
<line num="774" type="stmt" count="0"/>
|
8175 |
<line num="776" type="stmt" count="0"/>
|
8176 |
<line num="777" type="stmt" count="0"/>
|
8177 |
<line num="779" type="stmt" count="0"/>
|
8178 |
<line num="780" type="stmt" count="0"/>
|
|
|
|
|
8179 |
<line num="784" type="stmt" count="0"/>
|
8180 |
-
<line num="
|
8181 |
-
<line num="786" type="stmt" count="0"/>
|
8182 |
-
<line num="788" type="stmt" count="0"/>
|
8183 |
<line num="789" type="stmt" count="0"/>
|
8184 |
<line num="790" type="stmt" count="0"/>
|
8185 |
<line num="792" type="stmt" count="0"/>
|
8186 |
-
<line num="
|
|
|
|
|
8187 |
<line num="799" type="stmt" count="0"/>
|
8188 |
-
<line num="
|
8189 |
-
<line num="
|
|
|
8190 |
<line num="805" type="stmt" count="0"/>
|
8191 |
-
<line num="
|
8192 |
-
<line num="809" type="stmt" count="0"/>
|
8193 |
-
<line num="810" type="stmt" count="0"/>
|
8194 |
<line num="812" type="stmt" count="0"/>
|
8195 |
-
<line num="
|
8196 |
-
<line num="816" type="stmt" count="0"/>
|
8197 |
<line num="817" type="stmt" count="0"/>
|
8198 |
-
<line num="
|
8199 |
<line num="821" type="stmt" count="0"/>
|
8200 |
<line num="822" type="stmt" count="0"/>
|
8201 |
-
<line num="
|
8202 |
-
<line num="
|
8203 |
-
<line num="
|
8204 |
-
<line num="
|
8205 |
-
<line num="
|
8206 |
-
<line num="
|
8207 |
-
<line num="
|
8208 |
-
<line num="
|
8209 |
-
<line num="
|
8210 |
-
<line num="
|
8211 |
-
<line num="
|
8212 |
-
<line num="851" type="stmt" count="0"/>
|
8213 |
-
<line num="852" type="stmt" count="0"/>
|
8214 |
<line num="854" type="stmt" count="0"/>
|
8215 |
<line num="855" type="stmt" count="0"/>
|
8216 |
<line num="856" type="stmt" count="0"/>
|
@@ -8218,24 +8297,34 @@
|
|
8218 |
<line num="859" type="stmt" count="0"/>
|
8219 |
<line num="860" type="stmt" count="0"/>
|
8220 |
<line num="862" type="stmt" count="0"/>
|
8221 |
-
<line num="
|
8222 |
-
<line num="
|
8223 |
-
<line num="
|
8224 |
-
<line num="
|
8225 |
-
<line num="
|
8226 |
-
<line num="
|
8227 |
-
<line num="
|
8228 |
-
<line num="
|
8229 |
-
<line num="
|
8230 |
-
<line num="
|
8231 |
-
<line num="
|
8232 |
-
<line num="
|
8233 |
-
<line num="
|
8234 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8235 |
</file>
|
8236 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-wp-cron.php">
|
8237 |
<class name="Boldgrid_Backup_Admin_WP_Cron" namespace="global" fullPackage="Boldgrid.Backup.Admin.WP">
|
8238 |
-
<metrics complexity="32" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="
|
8239 |
</class>
|
8240 |
<line num="73" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
8241 |
<line num="74" type="stmt" count="29"/>
|
@@ -8342,7 +8431,8 @@
|
|
8342 |
<line num="351" type="method" name="backup" visibility="public" complexity="1" crap="2" count="0"/>
|
8343 |
<line num="352" type="stmt" count="0"/>
|
8344 |
<line num="353" type="stmt" count="0"/>
|
8345 |
-
<
|
|
|
8346 |
</file>
|
8347 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-wpcli.php">
|
8348 |
<class name="Boldgrid_Backup_Admin_Wpcli" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
@@ -8587,9 +8677,9 @@
|
|
8587 |
<line num="178" type="stmt" count="0"/>
|
8588 |
<line num="179" type="stmt" count="0"/>
|
8589 |
<line num="180" type="stmt" count="0"/>
|
8590 |
-
<line num="191" type="method" name="get_configs" visibility="public" complexity="6" crap="6.56" count="
|
8591 |
-
<line num="193" type="stmt" count="
|
8592 |
-
<line num="194" type="stmt" count="
|
8593 |
<line num="198" type="stmt" count="1"/>
|
8594 |
<line num="201" type="stmt" count="1"/>
|
8595 |
<line num="202" type="stmt" count="1"/>
|
@@ -8628,60 +8718,52 @@
|
|
8628 |
<package name="Boldgrid\Backup\Admin">
|
8629 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-cron.php">
|
8630 |
<class name="Cron" namespace="Boldgrid\Backup\Admin">
|
8631 |
-
<metrics complexity="9" methods="4" coveredmethods="
|
8632 |
-
</class>
|
8633 |
-
<line num="31" type="method" name="get_configs" visibility="public" complexity="1" crap="
|
8634 |
-
<line num="32" type="stmt" count="
|
8635 |
-
<line num="
|
8636 |
-
<line num="
|
8637 |
-
<line num="
|
8638 |
-
<line num="
|
8639 |
-
<line num="
|
8640 |
-
<line num="
|
8641 |
-
<line num="
|
8642 |
-
<line num="59" type="stmt" count="0"/>
|
8643 |
-
<line num="60" type="stmt" count="0"/>
|
8644 |
<line num="61" type="stmt" count="0"/>
|
8645 |
-
<line num="
|
8646 |
-
<line num="
|
8647 |
-
<line num="66" type="stmt" count="0"/>
|
8648 |
<line num="67" type="stmt" count="0"/>
|
8649 |
-
<line num="
|
8650 |
-
<line num="71" type="stmt" count="0"/>
|
8651 |
-
<line num="72" type="stmt" count="0"/>
|
8652 |
<line num="73" type="stmt" count="0"/>
|
8653 |
<line num="74" type="stmt" count="0"/>
|
8654 |
-
<line num="75" type="stmt" count="
|
8655 |
-
<line num="76" type="stmt" count="
|
8656 |
-
<line num="77" type="stmt" count="
|
8657 |
-
<line num="79" type="stmt" count="
|
8658 |
-
<line num="
|
8659 |
-
<line num="
|
8660 |
-
<line num="
|
8661 |
-
<line num="
|
8662 |
-
<line num="
|
8663 |
-
<line num="
|
8664 |
-
<line num="99" type="stmt" count="0"/>
|
8665 |
-
<line num="100" type="stmt" count="0"/>
|
8666 |
<line num="101" type="stmt" count="0"/>
|
8667 |
<line num="102" type="stmt" count="0"/>
|
8668 |
<line num="103" type="stmt" count="0"/>
|
8669 |
<line num="104" type="stmt" count="0"/>
|
8670 |
<line num="105" type="stmt" count="0"/>
|
8671 |
<line num="106" type="stmt" count="0"/>
|
8672 |
-
<line num="108" type="stmt" count="
|
8673 |
-
<
|
8674 |
-
<metrics loc="110" ncloc="55" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="0" elements="41" coveredelements="0"/>
|
8675 |
</file>
|
8676 |
</package>
|
8677 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-pcl-zip.php">
|
8678 |
<class name="Boldgrid_Backup_Admin_Compressor_Pcl_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Pcl">
|
8679 |
-
<metrics complexity="57" methods="9" coveredmethods="
|
8680 |
</class>
|
8681 |
-
<line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="8"/>
|
8682 |
<line num="67" type="stmt" count="8"/>
|
8683 |
-
<line num="68" type="stmt" count="
|
8684 |
-
<line num="69" type="stmt" count="
|
8685 |
<line num="71" type="stmt" count="8"/>
|
8686 |
<line num="72" type="stmt" count="8"/>
|
8687 |
<line num="96" type="method" name="browse_add_dirs" visibility="public" complexity="9" crap="9" count="1"/>
|
@@ -8710,73 +8792,74 @@
|
|
8710 |
<line num="145" type="stmt" count="1"/>
|
8711 |
<line num="146" type="stmt" count="1"/>
|
8712 |
<line num="148" type="stmt" count="1"/>
|
8713 |
-
<line num="170" type="method" name="archive_files" visibility="public" complexity="
|
8714 |
<line num="171" type="stmt" count="4"/>
|
8715 |
-
<line num="
|
8716 |
-
<line num="
|
8717 |
-
<line num="
|
8718 |
-
<line num="
|
8719 |
-
<line num="
|
8720 |
-
<line num="
|
8721 |
-
<line num="
|
8722 |
-
<line num="
|
|
|
8723 |
<line num="195" type="stmt" count="4"/>
|
8724 |
<line num="196" type="stmt" count="4"/>
|
8725 |
-
<line num="197" type="stmt" count="4"/>
|
8726 |
<line num="199" type="stmt" count="4"/>
|
8727 |
-
<line num="
|
8728 |
-
<line num="
|
|
|
8729 |
<line num="205" type="stmt" count="4"/>
|
8730 |
<line num="206" type="stmt" count="4"/>
|
8731 |
<line num="208" type="stmt" count="4"/>
|
8732 |
<line num="209" type="stmt" count="4"/>
|
8733 |
<line num="210" type="stmt" count="4"/>
|
8734 |
-
<line num="
|
8735 |
<line num="213" type="stmt" count="4"/>
|
8736 |
-
<line num="214" type="stmt" count="
|
8737 |
-
<line num="
|
8738 |
-
<line num="217" type="stmt" count="4"/>
|
8739 |
<line num="218" type="stmt" count="0"/>
|
8740 |
<line num="220" type="stmt" count="0"/>
|
8741 |
-
<line num="
|
8742 |
<line num="224" type="stmt" count="0"/>
|
8743 |
<line num="225" type="stmt" count="0"/>
|
8744 |
-
<line num="
|
8745 |
-
<line num="
|
8746 |
-
<line num="
|
8747 |
-
<line num="
|
8748 |
-
<line num="
|
8749 |
-
<line num="
|
8750 |
-
<line num="244" type="stmt" count="
|
8751 |
<line num="246" type="stmt" count="4"/>
|
8752 |
<line num="248" type="stmt" count="4"/>
|
8753 |
-
<line num="
|
8754 |
-
<line num="
|
8755 |
-
<line num="
|
8756 |
-
<line num="
|
8757 |
-
<line num="
|
8758 |
<line num="281" type="stmt" count="1"/>
|
8759 |
-
<line num="
|
8760 |
-
<line num="
|
8761 |
-
<line num="
|
8762 |
-
<line num="
|
8763 |
-
<line num="
|
8764 |
-
<line num="
|
8765 |
<line num="305" type="stmt" count="1"/>
|
8766 |
<line num="306" type="stmt" count="1"/>
|
|
|
8767 |
<line num="309" type="stmt" count="1"/>
|
8768 |
-
<line num="310" type="stmt" count="1"/>
|
8769 |
<line num="311" type="stmt" count="1"/>
|
8770 |
-
<line num="
|
8771 |
-
<line num="
|
8772 |
-
<line num="
|
8773 |
-
<line num="
|
8774 |
<line num="329" type="stmt" count="1"/>
|
8775 |
-
<line num="330" type="stmt" count="
|
8776 |
-
<line num="
|
8777 |
-
<line num="334" type="stmt" count="
|
8778 |
-
<line num="335" type="stmt" count="
|
8779 |
-
<line num="
|
|
|
8780 |
<line num="341" type="stmt" count="0"/>
|
8781 |
<line num="342" type="stmt" count="0"/>
|
8782 |
<line num="343" type="stmt" count="0"/>
|
@@ -8784,15 +8867,15 @@
|
|
8784 |
<line num="345" type="stmt" count="0"/>
|
8785 |
<line num="346" type="stmt" count="0"/>
|
8786 |
<line num="349" type="stmt" count="0"/>
|
8787 |
-
<line num="375" type="method" name="get_file" visibility="public" complexity="7" crap="
|
8788 |
-
<line num="376" type="stmt" count="
|
8789 |
<line num="377" type="stmt" count="0"/>
|
8790 |
-
<line num="380" type="stmt" count="
|
8791 |
<line num="381" type="stmt" count="0"/>
|
8792 |
-
<line num="384" type="stmt" count="
|
8793 |
-
<line num="386" type="stmt" count="
|
8794 |
-
<line num="387" type="stmt" count="
|
8795 |
-
<line num="388" type="stmt" count="
|
8796 |
<line num="391" type="stmt" count="0"/>
|
8797 |
<line num="393" type="stmt" count="0"/>
|
8798 |
<line num="394" type="stmt" count="0"/>
|
@@ -8839,207 +8922,205 @@
|
|
8839 |
<line num="498" type="stmt" count="0"/>
|
8840 |
<line num="499" type="stmt" count="0"/>
|
8841 |
<line num="501" type="stmt" count="0"/>
|
8842 |
-
<line num="512" type="method" name="test" visibility="public" complexity="6" crap="
|
8843 |
-
<line num="513" type="stmt" count="
|
8844 |
<line num="514" type="stmt" count="0"/>
|
8845 |
-
<line num="517" type="stmt" count="
|
8846 |
-
<line num="520" type="stmt" count="
|
8847 |
-
<line num="522" type="stmt" count="
|
8848 |
-
<line num="524" type="stmt" count="
|
8849 |
-
<line num="526" type="stmt" count="
|
8850 |
-
<line num="527" type="stmt" count="
|
8851 |
-
<line num="528" type="stmt" count="
|
8852 |
-
<line num="529" type="stmt" count="
|
8853 |
-
<line num="530" type="stmt" count="
|
8854 |
-
<line num="531" type="stmt" count="
|
8855 |
-
<line num="532" type="stmt" count="
|
8856 |
-
<line num="533" type="stmt" count="
|
8857 |
-
<line num="535" type="stmt" count="
|
8858 |
-
<line num="536" type="stmt" count="
|
8859 |
-
<line num="537" type="stmt" count="
|
8860 |
-
<line num="540" type="stmt" count="
|
8861 |
-
<line num="543" type="stmt" count="
|
8862 |
-
<line num="545" type="stmt" count="
|
8863 |
-
<line num="548" type="stmt" count="
|
8864 |
-
<line num="551" type="stmt" count="
|
8865 |
-
<line num="553" type="stmt" count="
|
8866 |
-
<line num="555" type="stmt" count="
|
8867 |
-
<line num="556" type="stmt" count="
|
8868 |
<line num="557" type="stmt" count="0"/>
|
8869 |
<line num="558" type="stmt" count="0"/>
|
8870 |
<line num="559" type="stmt" count="0"/>
|
8871 |
-
<line num="562" type="stmt" count="
|
8872 |
-
<line num="563" type="stmt" count="
|
8873 |
<line num="564" type="stmt" count="0"/>
|
8874 |
<line num="565" type="stmt" count="0"/>
|
8875 |
<line num="566" type="stmt" count="0"/>
|
8876 |
-
<line num="569" type="stmt" count="
|
8877 |
-
<line num="570" type="stmt" count="
|
8878 |
<line num="571" type="stmt" count="0"/>
|
8879 |
<line num="572" type="stmt" count="0"/>
|
8880 |
-
<line num="574" type="stmt" count="
|
8881 |
-
<line num="575" type="stmt" count="
|
8882 |
<line num="576" type="stmt" count="0"/>
|
8883 |
<line num="577" type="stmt" count="0"/>
|
8884 |
-
<line num="579" type="stmt" count="
|
8885 |
-
<line num="581" type="stmt" count="
|
8886 |
-
<line num="583" type="stmt" count="
|
8887 |
-
<metrics loc="585" ncloc="330" classes="1" methods="9" coveredmethods="
|
8888 |
</file>
|
8889 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php">
|
8890 |
<class name="Boldgrid_Backup_Admin_Compressor_Php_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Php">
|
8891 |
-
<metrics complexity="
|
8892 |
</class>
|
8893 |
-
<line num="78" type="method" name="add_dir" visibility="public" complexity="4" crap="4" count="
|
8894 |
-
<line num="79" type="stmt" count="
|
8895 |
-
<line num="80" type="stmt" count="
|
8896 |
-
<line num="82" type="stmt" count="
|
8897 |
-
<line num="83" type="stmt" count="
|
8898 |
-
<line num="84" type="stmt" count="
|
8899 |
-
<line num="85" type="stmt" count="
|
8900 |
-
<line num="86" type="stmt" count="
|
8901 |
-
<line num="89" type="stmt" count="
|
8902 |
-
<line num="90" type="stmt" count="
|
8903 |
-
<line num="91" type="stmt" count="
|
8904 |
-
<line num="92" type="stmt" count="
|
8905 |
-
<line num="93" type="stmt" count="
|
8906 |
-
<line num="94" type="stmt" count="
|
8907 |
-
<line num="122" type="method" name="archive_files" visibility="public" complexity="
|
8908 |
-
<line num="124" type="stmt" count="
|
8909 |
-
<line num="125" type="stmt" count="
|
8910 |
-
<line num="126" type="stmt" count="
|
8911 |
-
<line num="127" type="stmt" count="
|
8912 |
-
<line num="
|
8913 |
-
<line num="
|
8914 |
-
<line num="
|
8915 |
-
<line num="135" type="stmt" count="
|
8916 |
-
<line num="137" type="stmt" count="
|
8917 |
-
<line num="139" type="stmt" count="
|
8918 |
-
<line num="
|
8919 |
-
<line num="
|
8920 |
-
<line num="
|
8921 |
-
<line num="145" type="stmt" count="
|
8922 |
-
<line num="
|
8923 |
-
<line num="
|
8924 |
-
<line num="151" type="stmt" count="
|
8925 |
-
<line num="152" type="stmt" count="
|
8926 |
-
<line num="
|
8927 |
-
<line num="
|
8928 |
-
<line num="
|
8929 |
-
<line num="
|
8930 |
-
<line num="
|
|
|
8931 |
<line num="160" type="stmt" count="0"/>
|
8932 |
-
<line num="
|
8933 |
-
<line num="163" type="stmt" count="
|
8934 |
-
<line num="164" type="stmt" count="
|
8935 |
-
<line num="
|
8936 |
-
<line num="
|
8937 |
-
<line num="
|
8938 |
-
<line num="
|
8939 |
-
<line num="
|
8940 |
-
<line num="
|
8941 |
-
<line num="
|
8942 |
-
<line num="
|
8943 |
-
<line num="184" type="stmt" count="
|
8944 |
-
<line num="185" type="stmt" count="
|
8945 |
-
<line num="
|
8946 |
-
<line num="
|
8947 |
-
<line num="
|
8948 |
-
<line num="
|
8949 |
-
<line num="
|
8950 |
-
<line num="
|
8951 |
-
<line num="
|
8952 |
-
<line num="
|
8953 |
-
<line num="
|
8954 |
-
<line num="
|
8955 |
-
<line num="
|
8956 |
-
<line num="
|
8957 |
-
<line num="
|
8958 |
-
<line num="
|
8959 |
-
<line num="
|
8960 |
-
<line num="219" type="stmt" count="
|
8961 |
-
<line num="220" type="stmt" count="
|
8962 |
-
<line num="221" type="stmt" count="
|
8963 |
-
<line num="
|
8964 |
-
<line num="
|
8965 |
-
<line num="
|
8966 |
-
<line num="
|
8967 |
-
<line num="
|
8968 |
-
<line num="
|
8969 |
-
<line num="
|
8970 |
-
<line num="
|
8971 |
-
<line num="
|
8972 |
-
<line num="
|
8973 |
-
<line num="
|
8974 |
-
<line num="254" type="stmt" count="
|
8975 |
-
<line num="255" type="stmt" count="
|
8976 |
-
<line num="256" type="stmt" count="
|
8977 |
-
<line num="
|
8978 |
-
<line num="259" type="stmt" count="
|
8979 |
-
<line num="260" type="stmt" count="
|
8980 |
-
<line num="
|
8981 |
-
<line num="
|
8982 |
-
<line num="
|
8983 |
-
<line num="
|
8984 |
-
<line num="
|
8985 |
-
<line num="
|
8986 |
-
<line num="
|
8987 |
-
<line num="
|
8988 |
-
<line num="
|
8989 |
-
<line num="
|
8990 |
-
<line num="
|
8991 |
-
<line num="
|
8992 |
-
<line num="
|
8993 |
-
<line num="
|
8994 |
-
<line num="
|
8995 |
-
<line num="
|
8996 |
-
<line num="
|
8997 |
-
<line num="
|
8998 |
-
<line num="
|
8999 |
-
<line num="
|
9000 |
-
<line num="
|
9001 |
-
<line num="
|
9002 |
-
<line num="
|
9003 |
-
<line num="
|
9004 |
-
<line num="318" type="stmt" count="
|
9005 |
-
<line num="319" type="stmt" count="
|
9006 |
-
<line num="
|
9007 |
<line num="322" type="stmt" count="0"/>
|
9008 |
<line num="323" type="stmt" count="0"/>
|
9009 |
<line num="325" type="stmt" count="0"/>
|
9010 |
-
<line num="
|
9011 |
-
<line num="
|
9012 |
-
<line num="
|
9013 |
-
<line num="
|
9014 |
-
<line num="
|
9015 |
-
<line num="
|
9016 |
-
<line num="
|
9017 |
<line num="339" type="stmt" count="0"/>
|
9018 |
<line num="341" type="stmt" count="0"/>
|
9019 |
-
<line num="
|
9020 |
-
<line num="
|
9021 |
-
<
|
9022 |
-
<line num="348" type="stmt" count="0"/>
|
9023 |
-
<line num="350" type="stmt" count="0"/>
|
9024 |
-
<metrics loc="352" ncloc="196" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="127" coveredstatements="83" elements="131" coveredelements="85"/>
|
9025 |
</file>
|
9026 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-system-zip-temp-folder.php">
|
9027 |
<class name="Boldgrid_Backup_Admin_Compressor_System_Zip_Temp_Folder" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.System.Zip.Temp">
|
9028 |
<metrics complexity="9" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="11" elements="25" coveredelements="16"/>
|
9029 |
</class>
|
9030 |
-
<line num="44" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="
|
9031 |
-
<line num="45" type="stmt" count="
|
9032 |
-
<line num="46" type="stmt" count="
|
9033 |
<line num="55" type="method" name="create" visibility="public" complexity="1" crap="1" count="1"/>
|
9034 |
<line num="56" type="stmt" count="1"/>
|
9035 |
<line num="66" type="method" name="delete" visibility="public" complexity="1" crap="1" count="1"/>
|
9036 |
<line num="67" type="stmt" count="1"/>
|
9037 |
-
<line num="77" type="method" name="exists" visibility="public" complexity="1" crap="1" count="
|
9038 |
-
<line num="78" type="stmt" count="
|
9039 |
-
<line num="80" type="stmt" count="
|
9040 |
-
<line num="90" type="method" name="dirlist" visibility="public" complexity="4" crap="10.15" count="
|
9041 |
-
<line num="91" type="stmt" count="
|
9042 |
-
<line num="93" type="stmt" count="
|
9043 |
<line num="94" type="stmt" count="0"/>
|
9044 |
<line num="96" type="stmt" count="0"/>
|
9045 |
<line num="97" type="stmt" count="0"/>
|
@@ -9048,10 +9129,10 @@
|
|
9048 |
<line num="105" type="stmt" count="0"/>
|
9049 |
<line num="106" type="stmt" count="0"/>
|
9050 |
<line num="107" type="stmt" count="0"/>
|
9051 |
-
<line num="109" type="stmt" count="
|
9052 |
-
<line num="119" type="method" name="get_path" visibility="public" complexity="1" crap="1" count="
|
9053 |
-
<line num="120" type="stmt" count="
|
9054 |
-
<line num="122" type="stmt" count="
|
9055 |
<metrics loc="124" ncloc="49" classes="1" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="11" elements="25" coveredelements="16"/>
|
9056 |
</file>
|
9057 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-system-zip-test.php">
|
@@ -9163,194 +9244,188 @@
|
|
9163 |
</file>
|
9164 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-system-zip.php">
|
9165 |
<class name="Boldgrid_Backup_Admin_Compressor_System_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.System">
|
9166 |
-
<metrics complexity="
|
9167 |
</class>
|
9168 |
<line num="96" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="4"/>
|
9169 |
<line num="97" type="stmt" count="4"/>
|
9170 |
<line num="98" type="stmt" count="4"/>
|
9171 |
<line num="100" type="stmt" count="4"/>
|
9172 |
<line num="101" type="stmt" count="4"/>
|
9173 |
-
<line num="129" type="method" name="archive_files" visibility="public" complexity="
|
9174 |
-
<line num="
|
9175 |
-
<line num="
|
9176 |
-
<line num="
|
9177 |
<line num="136" type="stmt" count="1"/>
|
9178 |
<line num="138" type="stmt" count="1"/>
|
9179 |
<line num="140" type="stmt" count="1"/>
|
9180 |
<line num="142" type="stmt" count="1"/>
|
9181 |
<line num="144" type="stmt" count="1"/>
|
9182 |
<line num="146" type="stmt" count="1"/>
|
9183 |
-
<line num="
|
9184 |
-
<line num="
|
9185 |
-
<line num="
|
9186 |
-
<line num="
|
9187 |
-
<line num="
|
9188 |
-
<line num="
|
9189 |
<line num="165" type="stmt" count="1"/>
|
9190 |
<line num="167" type="stmt" count="1"/>
|
9191 |
-
<line num="
|
9192 |
<line num="171" type="stmt" count="1"/>
|
|
|
9193 |
<line num="174" type="stmt" count="1"/>
|
9194 |
<line num="175" type="stmt" count="1"/>
|
9195 |
-
<line num="176" type="stmt" count="1"/>
|
9196 |
<line num="178" type="stmt" count="1"/>
|
9197 |
<line num="179" type="stmt" count="1"/>
|
9198 |
-
<line num="
|
9199 |
-
<line num="
|
9200 |
-
<line num="
|
|
|
9201 |
<line num="193" type="stmt" count="1"/>
|
9202 |
<line num="194" type="stmt" count="1"/>
|
9203 |
<line num="195" type="stmt" count="1"/>
|
9204 |
-
<line num="
|
9205 |
<line num="198" type="stmt" count="1"/>
|
9206 |
<line num="199" type="stmt" count="1"/>
|
9207 |
<line num="200" type="stmt" count="1"/>
|
9208 |
-
<line num="
|
9209 |
-
<line num="
|
9210 |
-
<line num="
|
9211 |
-
<line num="211" type="
|
9212 |
-
<line num="212" type="stmt" count="1"/>
|
9213 |
<line num="213" type="stmt" count="1"/>
|
9214 |
<line num="215" type="stmt" count="1"/>
|
9215 |
<line num="217" type="stmt" count="1"/>
|
|
|
9216 |
<line num="219" type="stmt" count="1"/>
|
9217 |
-
<line num="
|
9218 |
-
<line num="
|
9219 |
-
<line num="
|
9220 |
-
<line num="232" type="
|
|
|
9221 |
<line num="234" type="stmt" count="1"/>
|
9222 |
-
<line num="235" type="stmt" count="1"/>
|
9223 |
<line num="236" type="stmt" count="1"/>
|
9224 |
-
<line num="
|
9225 |
-
<line num="
|
9226 |
-
<line num="240" type="stmt" count="1"/>
|
9227 |
<line num="243" type="stmt" count="1"/>
|
|
|
|
|
9228 |
<line num="246" type="stmt" count="1"/>
|
9229 |
-
<line num="247" type="stmt" count="1"/>
|
9230 |
<line num="248" type="stmt" count="1"/>
|
9231 |
-
<line num="
|
9232 |
-
<line num="
|
9233 |
-
<line num="
|
9234 |
-
<line num="
|
9235 |
<line num="261" type="stmt" count="1"/>
|
9236 |
<line num="262" type="stmt" count="1"/>
|
9237 |
<line num="263" type="stmt" count="1"/>
|
|
|
9238 |
<line num="265" type="stmt" count="1"/>
|
9239 |
<line num="266" type="stmt" count="1"/>
|
9240 |
<line num="267" type="stmt" count="1"/>
|
9241 |
<line num="268" type="stmt" count="1"/>
|
9242 |
<line num="269" type="stmt" count="1"/>
|
9243 |
<line num="270" type="stmt" count="1"/>
|
9244 |
-
<line num="271" type="stmt" count="1"/>
|
9245 |
<line num="272" type="stmt" count="1"/>
|
9246 |
<line num="273" type="stmt" count="1"/>
|
9247 |
-
<line num="
|
9248 |
<line num="276" type="stmt" count="1"/>
|
9249 |
<line num="277" type="stmt" count="1"/>
|
9250 |
-
<line num="
|
9251 |
-
<line num="
|
9252 |
-
<line num="
|
9253 |
-
<line num="
|
9254 |
-
<line num="
|
9255 |
-
<line num="
|
9256 |
-
<line num="
|
9257 |
-
<line num="303" type="
|
9258 |
-
<line num="
|
9259 |
<line num="306" type="stmt" count="1"/>
|
9260 |
-
<line num="307" type="stmt" count="1"/>
|
9261 |
<line num="308" type="stmt" count="1"/>
|
9262 |
<line num="310" type="stmt" count="1"/>
|
|
|
9263 |
<line num="312" type="stmt" count="1"/>
|
9264 |
-
<line num="
|
9265 |
<line num="315" type="stmt" count="1"/>
|
9266 |
-
<line num="
|
9267 |
-
<line num="
|
9268 |
-
<line num="
|
9269 |
-
<line num="
|
9270 |
<line num="327" type="stmt" count="1"/>
|
9271 |
-
<line num="328" type="stmt" count="1"/>
|
9272 |
<line num="329" type="stmt" count="1"/>
|
9273 |
-
<line num="331" type="stmt" count="1"/>
|
9274 |
<line num="333" type="stmt" count="1"/>
|
9275 |
-
<line num="
|
9276 |
-
<line num="
|
9277 |
-
<line num="
|
9278 |
-
<line num="
|
9279 |
-
<line num="
|
|
|
9280 |
<line num="350" type="stmt" count="1"/>
|
9281 |
<line num="352" type="stmt" count="1"/>
|
9282 |
<line num="354" type="stmt" count="1"/>
|
|
|
9283 |
<line num="356" type="stmt" count="1"/>
|
9284 |
-
<
|
9285 |
-
<line num="359" type="stmt" count="1"/>
|
9286 |
-
<line num="360" type="stmt" count="1"/>
|
9287 |
-
<metrics loc="361" ncloc="166" classes="1" methods="9" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="110" coveredstatements="108" elements="119" coveredelements="115"/>
|
9288 |
</file>
|
9289 |
<package name="Boldgrid\Backup\Admin\Cron">
|
9290 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/class-crontab.php">
|
9291 |
<class name="Crontab" namespace="Boldgrid\Backup\Admin\Cron">
|
9292 |
-
<metrics complexity="
|
9293 |
</class>
|
9294 |
-
<line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="
|
9295 |
-
<line num="40" type="stmt" count="
|
9296 |
-
<line num="41" type="stmt" count="
|
9297 |
-
<line num="55" type="method" name="find_crons" visibility="public" complexity="
|
9298 |
<line num="56" type="stmt" count="0"/>
|
9299 |
<line num="58" type="stmt" count="0"/>
|
9300 |
<line num="60" type="stmt" count="0"/>
|
9301 |
-
<line num="
|
9302 |
<line num="63" type="stmt" count="0"/>
|
|
|
9303 |
<line num="65" type="stmt" count="0"/>
|
9304 |
<line num="66" type="stmt" count="0"/>
|
9305 |
<line num="67" type="stmt" count="0"/>
|
9306 |
-
<line num="68" type="stmt" count="0"/>
|
9307 |
<line num="69" type="stmt" count="0"/>
|
|
|
9308 |
<line num="71" type="stmt" count="0"/>
|
9309 |
<line num="72" type="stmt" count="0"/>
|
9310 |
-
<line num="73" type="stmt" count="0"/>
|
9311 |
<line num="74" type="stmt" count="0"/>
|
9312 |
-
<line num="
|
9313 |
-
<line num="
|
9314 |
<line num="90" type="stmt" count="1"/>
|
9315 |
-
<line num="
|
9316 |
-
<line num="
|
9317 |
-
<line num="
|
9318 |
-
<line num="
|
9319 |
-
<line num="
|
9320 |
-
<line num="
|
9321 |
-
<line num="
|
9322 |
-
<line num="
|
9323 |
-
<line num="
|
9324 |
<line num="117" type="stmt" count="1"/>
|
9325 |
-
<line num="
|
9326 |
<line num="122" type="stmt" count="1"/>
|
9327 |
-
<
|
9328 |
-
<metrics loc="126" ncloc="55" classes="1" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="31" coveredstatements="14" elements="34" coveredelements="15"/>
|
9329 |
</file>
|
9330 |
</package>
|
9331 |
<package name="Boldgrid\Backup\Admin\Cron\Entry">
|
9332 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/entry/class-base.php">
|
9333 |
<class name="Base" namespace="Boldgrid\Backup\Admin\Cron\Entry">
|
9334 |
-
<metrics complexity="3" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="
|
9335 |
</class>
|
9336 |
<line num="33" type="method" name="get_next_runtime" visibility="public" complexity="1" crap="2" count="0"/>
|
9337 |
<line num="34" type="stmt" count="0"/>
|
9338 |
-
<line num="35" type="stmt" count="0"/>
|
9339 |
<line num="44" type="method" name="init_via_search" visibility="public" complexity="1" crap="2" count="0"/>
|
9340 |
<line num="45" type="stmt" count="0"/>
|
9341 |
-
<line num="46" type="stmt" count="0"/>
|
9342 |
<line num="55" type="method" name="is_set" visibility="public" complexity="1" crap="2" count="0"/>
|
9343 |
<line num="56" type="stmt" count="0"/>
|
9344 |
-
<
|
9345 |
-
<metrics loc="58" ncloc="19" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="6" coveredstatements="0" elements="9" coveredelements="0"/>
|
9346 |
</file>
|
9347 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/entry/class-crontab.php">
|
9348 |
<class name="Crontab" namespace="Boldgrid\Backup\Admin\Cron\Entry">
|
9349 |
-
<metrics complexity="5" methods="4" coveredmethods="
|
9350 |
</class>
|
9351 |
-
<line num="90" type="method" name="__construct" visibility="public" complexity="1" crap="
|
9352 |
-
<line num="91" type="stmt" count="
|
9353 |
-
<line num="92" type="stmt" count="
|
9354 |
<line num="101" type="method" name="get_next_runtime" visibility="public" complexity="1" crap="2" count="0"/>
|
9355 |
<line num="102" type="stmt" count="0"/>
|
9356 |
<line num="104" type="stmt" count="0"/>
|
@@ -9358,7 +9433,6 @@
|
|
9358 |
<line num="113" type="stmt" count="0"/>
|
9359 |
<line num="119" type="stmt" count="0"/>
|
9360 |
<line num="121" type="stmt" count="0"/>
|
9361 |
-
<line num="122" type="stmt" count="0"/>
|
9362 |
<line num="131" type="method" name="init_via_search" visibility="public" complexity="2" crap="6" count="0"/>
|
9363 |
<line num="132" type="stmt" count="0"/>
|
9364 |
<line num="134" type="stmt" count="0"/>
|
@@ -9372,18 +9446,16 @@
|
|
9372 |
<line num="147" type="stmt" count="0"/>
|
9373 |
<line num="148" type="stmt" count="0"/>
|
9374 |
<line num="149" type="stmt" count="0"/>
|
9375 |
-
<line num="158" type="method" name="is_set" visibility="public" complexity="1" crap="
|
9376 |
-
<line num="159" type="stmt" count="
|
9377 |
-
<
|
9378 |
-
<metrics loc="161" ncloc="59" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="23" coveredstatements="0" elements="27" coveredelements="0"/>
|
9379 |
</file>
|
9380 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/entry/class-wpcron.php">
|
9381 |
<class name="Wpcron" namespace="Boldgrid\Backup\Admin\Cron\Entry">
|
9382 |
-
<metrics complexity="4" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="
|
9383 |
</class>
|
9384 |
<line num="53" type="method" name="get_next_runtime" visibility="public" complexity="1" crap="2" count="0"/>
|
9385 |
<line num="54" type="stmt" count="0"/>
|
9386 |
-
<line num="55" type="stmt" count="0"/>
|
9387 |
<line num="64" type="method" name="init_via_search" visibility="public" complexity="2" crap="6" count="0"/>
|
9388 |
<line num="65" type="stmt" count="0"/>
|
9389 |
<line num="67" type="stmt" count="0"/>
|
@@ -9394,8 +9466,7 @@
|
|
9394 |
<line num="74" type="stmt" count="0"/>
|
9395 |
<line num="83" type="method" name="is_set" visibility="public" complexity="1" crap="2" count="0"/>
|
9396 |
<line num="84" type="stmt" count="0"/>
|
9397 |
-
<
|
9398 |
-
<metrics loc="86" ncloc="32" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="0" elements="14" coveredelements="0"/>
|
9399 |
</file>
|
9400 |
</package>
|
9401 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/entry/class-entry.php">
|
@@ -9409,18 +9480,18 @@
|
|
9409 |
<class name="Cleanup" namespace="Boldgrid\Backup\Admin\Orphan">
|
9410 |
<metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="11" elements="23" coveredelements="12"/>
|
9411 |
</class>
|
9412 |
-
<line num="45" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="
|
9413 |
-
<line num="46" type="stmt" count="
|
9414 |
-
<line num="48" type="stmt" count="
|
9415 |
-
<line num="49" type="stmt" count="
|
9416 |
-
<line num="50" type="stmt" count="
|
9417 |
-
<line num="51" type="stmt" count="
|
9418 |
-
<line num="52" type="stmt" count="
|
9419 |
-
<line num="53" type="stmt" count="
|
9420 |
-
<line num="60" type="method" name="run" visibility="public" complexity="4" crap="9.83" count="
|
9421 |
-
<line num="61" type="stmt" count="
|
9422 |
-
<line num="62" type="stmt" count="
|
9423 |
-
<line num="64" type="stmt" count="
|
9424 |
<line num="65" type="stmt" count="0"/>
|
9425 |
<line num="66" type="stmt" count="0"/>
|
9426 |
<line num="68" type="stmt" count="0"/>
|
@@ -9431,39 +9502,39 @@
|
|
9431 |
<line num="74" type="stmt" count="0"/>
|
9432 |
<line num="75" type="stmt" count="0"/>
|
9433 |
<line num="76" type="stmt" count="0"/>
|
9434 |
-
<line num="77" type="stmt" count="
|
9435 |
<metrics loc="78" ncloc="38" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="11" elements="23" coveredelements="12"/>
|
9436 |
</file>
|
9437 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/orphan/class-finder.php">
|
9438 |
<class name="Finder" namespace="Boldgrid\Backup\Admin\Orphan">
|
9439 |
<metrics complexity="9" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="22" coveredstatements="13" elements="26" coveredelements="15"/>
|
9440 |
</class>
|
9441 |
-
<line num="47" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="
|
9442 |
-
<line num="48" type="stmt" count="
|
9443 |
-
<line num="49" type="stmt" count="
|
9444 |
<line num="63" type="method" name="is_file_old" visibility="public" complexity="2" crap="6" count="0"/>
|
9445 |
<line num="65" type="stmt" count="0"/>
|
9446 |
<line num="67" type="stmt" count="0"/>
|
9447 |
-
<line num="79" type="method" name="run" visibility="public" complexity="1" crap="1" count="
|
9448 |
-
<line num="80" type="stmt" count="
|
9449 |
-
<line num="82" type="stmt" count="
|
9450 |
-
<line num="90" type="method" name="set_filelist" visibility="public" complexity="5" crap="7.09" count="
|
9451 |
-
<line num="92" type="stmt" count="
|
9452 |
-
<line num="93" type="stmt" count="
|
9453 |
-
<line num="94" type="stmt" count="
|
9454 |
-
<line num="95" type="stmt" count="
|
9455 |
<line num="96" type="stmt" count="0"/>
|
9456 |
<line num="97" type="stmt" count="0"/>
|
9457 |
<line num="98" type="stmt" count="0"/>
|
9458 |
<line num="99" type="stmt" count="0"/>
|
9459 |
-
<line num="100" type="stmt" count="
|
9460 |
-
<line num="103" type="stmt" count="
|
9461 |
-
<line num="104" type="stmt" count="
|
9462 |
<line num="105" type="stmt" count="0"/>
|
9463 |
<line num="106" type="stmt" count="0"/>
|
9464 |
<line num="107" type="stmt" count="0"/>
|
9465 |
-
<line num="108" type="stmt" count="
|
9466 |
-
<line num="109" type="stmt" count="
|
9467 |
<metrics loc="110" ncloc="41" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="22" coveredstatements="13" elements="26" coveredelements="15"/>
|
9468 |
</file>
|
9469 |
</package>
|
@@ -9633,6 +9704,42 @@
|
|
9633 |
<line num="109" type="stmt" count="0"/>
|
9634 |
<metrics loc="109" ncloc="88" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="75" coveredstatements="0" elements="75" coveredelements="0"/>
|
9635 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9636 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/archive-details/not-found.php">
|
9637 |
<line num="17" type="stmt" count="0"/>
|
9638 |
<line num="19" type="stmt" count="0"/>
|
@@ -9928,17 +10035,17 @@
|
|
9928 |
<line num="54" type="stmt" count="0"/>
|
9929 |
<line num="55" type="stmt" count="0"/>
|
9930 |
<line num="56" type="stmt" count="0"/>
|
9931 |
-
<line num="
|
9932 |
<line num="60" type="stmt" count="0"/>
|
9933 |
-
<line num="
|
9934 |
<line num="63" type="stmt" count="0"/>
|
9935 |
<line num="64" type="stmt" count="0"/>
|
9936 |
<line num="65" type="stmt" count="0"/>
|
9937 |
-
<line num="
|
9938 |
<line num="69" type="stmt" count="0"/>
|
9939 |
<line num="70" type="stmt" count="0"/>
|
9940 |
<line num="71" type="stmt" count="0"/>
|
9941 |
-
<line num="
|
9942 |
<line num="74" type="stmt" count="0"/>
|
9943 |
<line num="75" type="stmt" count="0"/>
|
9944 |
<line num="76" type="stmt" count="0"/>
|
@@ -9951,13 +10058,13 @@
|
|
9951 |
<line num="83" type="stmt" count="0"/>
|
9952 |
<line num="84" type="stmt" count="0"/>
|
9953 |
<line num="85" type="stmt" count="0"/>
|
9954 |
-
<line num="
|
9955 |
<line num="89" type="stmt" count="0"/>
|
9956 |
<line num="90" type="stmt" count="0"/>
|
9957 |
<line num="91" type="stmt" count="0"/>
|
9958 |
<line num="92" type="stmt" count="0"/>
|
9959 |
<line num="93" type="stmt" count="0"/>
|
9960 |
-
<line num="
|
9961 |
<line num="96" type="stmt" count="0"/>
|
9962 |
<line num="97" type="stmt" count="0"/>
|
9963 |
<line num="98" type="stmt" count="0"/>
|
@@ -9968,7 +10075,7 @@
|
|
9968 |
<line num="103" type="stmt" count="0"/>
|
9969 |
<line num="104" type="stmt" count="0"/>
|
9970 |
<line num="105" type="stmt" count="0"/>
|
9971 |
-
<line num="
|
9972 |
<line num="108" type="stmt" count="0"/>
|
9973 |
<line num="109" type="stmt" count="0"/>
|
9974 |
<line num="110" type="stmt" count="0"/>
|
@@ -9983,7 +10090,7 @@
|
|
9983 |
<line num="119" type="stmt" count="0"/>
|
9984 |
<line num="120" type="stmt" count="0"/>
|
9985 |
<line num="121" type="stmt" count="0"/>
|
9986 |
-
<line num="
|
9987 |
<line num="124" type="stmt" count="0"/>
|
9988 |
<line num="125" type="stmt" count="0"/>
|
9989 |
<line num="126" type="stmt" count="0"/>
|
@@ -9996,7 +10103,7 @@
|
|
9996 |
<line num="133" type="stmt" count="0"/>
|
9997 |
<line num="134" type="stmt" count="0"/>
|
9998 |
<line num="135" type="stmt" count="0"/>
|
9999 |
-
<line num="
|
10000 |
<line num="138" type="stmt" count="0"/>
|
10001 |
<line num="139" type="stmt" count="0"/>
|
10002 |
<line num="140" type="stmt" count="0"/>
|
@@ -10016,7 +10123,7 @@
|
|
10016 |
<line num="154" type="stmt" count="0"/>
|
10017 |
<line num="155" type="stmt" count="0"/>
|
10018 |
<line num="156" type="stmt" count="0"/>
|
10019 |
-
<line num="
|
10020 |
<line num="160" type="stmt" count="0"/>
|
10021 |
<line num="161" type="stmt" count="0"/>
|
10022 |
<line num="162" type="stmt" count="0"/>
|
@@ -10050,7 +10157,7 @@
|
|
10050 |
<line num="190" type="stmt" count="0"/>
|
10051 |
<line num="191" type="stmt" count="0"/>
|
10052 |
<line num="192" type="stmt" count="0"/>
|
10053 |
-
<line num="
|
10054 |
<line num="195" type="stmt" count="0"/>
|
10055 |
<line num="196" type="stmt" count="0"/>
|
10056 |
<line num="197" type="stmt" count="0"/>
|
@@ -10065,7 +10172,7 @@
|
|
10065 |
<line num="206" type="stmt" count="0"/>
|
10066 |
<line num="207" type="stmt" count="0"/>
|
10067 |
<line num="208" type="stmt" count="0"/>
|
10068 |
-
<line num="
|
10069 |
<line num="211" type="stmt" count="0"/>
|
10070 |
<line num="212" type="stmt" count="0"/>
|
10071 |
<line num="213" type="stmt" count="0"/>
|
@@ -10078,7 +10185,7 @@
|
|
10078 |
<line num="220" type="stmt" count="0"/>
|
10079 |
<line num="221" type="stmt" count="0"/>
|
10080 |
<line num="222" type="stmt" count="0"/>
|
10081 |
-
<line num="
|
10082 |
<line num="225" type="stmt" count="0"/>
|
10083 |
<line num="226" type="stmt" count="0"/>
|
10084 |
<line num="227" type="stmt" count="0"/>
|
@@ -10102,7 +10209,7 @@
|
|
10102 |
<line num="245" type="stmt" count="0"/>
|
10103 |
<line num="246" type="stmt" count="0"/>
|
10104 |
<line num="247" type="stmt" count="0"/>
|
10105 |
-
<line num="
|
10106 |
<line num="250" type="stmt" count="0"/>
|
10107 |
<line num="251" type="stmt" count="0"/>
|
10108 |
<line num="252" type="stmt" count="0"/>
|
@@ -10126,7 +10233,7 @@
|
|
10126 |
<line num="270" type="stmt" count="0"/>
|
10127 |
<line num="271" type="stmt" count="0"/>
|
10128 |
<line num="272" type="stmt" count="0"/>
|
10129 |
-
<line num="
|
10130 |
<line num="275" type="stmt" count="0"/>
|
10131 |
<line num="276" type="stmt" count="0"/>
|
10132 |
<line num="277" type="stmt" count="0"/>
|
@@ -10150,7 +10257,7 @@
|
|
10150 |
<line num="295" type="stmt" count="0"/>
|
10151 |
<line num="296" type="stmt" count="0"/>
|
10152 |
<line num="297" type="stmt" count="0"/>
|
10153 |
-
<line num="
|
10154 |
<line num="300" type="stmt" count="0"/>
|
10155 |
<line num="301" type="stmt" count="0"/>
|
10156 |
<line num="302" type="stmt" count="0"/>
|
@@ -10158,7 +10265,7 @@
|
|
10158 |
<line num="304" type="stmt" count="0"/>
|
10159 |
<line num="305" type="stmt" count="0"/>
|
10160 |
<line num="306" type="stmt" count="0"/>
|
10161 |
-
<line num="
|
10162 |
<line num="309" type="stmt" count="0"/>
|
10163 |
<line num="310" type="stmt" count="0"/>
|
10164 |
<line num="311" type="stmt" count="0"/>
|
@@ -10169,7 +10276,7 @@
|
|
10169 |
<line num="316" type="stmt" count="0"/>
|
10170 |
<line num="317" type="stmt" count="0"/>
|
10171 |
<line num="318" type="stmt" count="0"/>
|
10172 |
-
<line num="
|
10173 |
<line num="321" type="stmt" count="0"/>
|
10174 |
<line num="322" type="stmt" count="0"/>
|
10175 |
<line num="323" type="stmt" count="0"/>
|
@@ -10185,8 +10292,8 @@
|
|
10185 |
<line num="333" type="stmt" count="0"/>
|
10186 |
<line num="334" type="stmt" count="0"/>
|
10187 |
<line num="335" type="stmt" count="0"/>
|
|
|
10188 |
<line num="337" type="stmt" count="0"/>
|
10189 |
-
<line num="338" type="stmt" count="0"/>
|
10190 |
<line num="339" type="stmt" count="0"/>
|
10191 |
<line num="340" type="stmt" count="0"/>
|
10192 |
<line num="341" type="stmt" count="0"/>
|
@@ -10198,15 +10305,15 @@
|
|
10198 |
<line num="347" type="stmt" count="0"/>
|
10199 |
<line num="348" type="stmt" count="0"/>
|
10200 |
<line num="349" type="stmt" count="0"/>
|
|
|
10201 |
<line num="351" type="stmt" count="0"/>
|
10202 |
-
<line num="352" type="stmt" count="0"/>
|
10203 |
<line num="353" type="stmt" count="0"/>
|
10204 |
<line num="354" type="stmt" count="0"/>
|
10205 |
<line num="355" type="stmt" count="0"/>
|
10206 |
<line num="356" type="stmt" count="0"/>
|
10207 |
<line num="357" type="stmt" count="0"/>
|
|
|
10208 |
<line num="359" type="stmt" count="0"/>
|
10209 |
-
<line num="360" type="stmt" count="0"/>
|
10210 |
<line num="361" type="stmt" count="0"/>
|
10211 |
<line num="362" type="stmt" count="0"/>
|
10212 |
<line num="363" type="stmt" count="0"/>
|
@@ -10216,8 +10323,8 @@
|
|
10216 |
<line num="367" type="stmt" count="0"/>
|
10217 |
<line num="368" type="stmt" count="0"/>
|
10218 |
<line num="369" type="stmt" count="0"/>
|
|
|
10219 |
<line num="371" type="stmt" count="0"/>
|
10220 |
-
<line num="372" type="stmt" count="0"/>
|
10221 |
<line num="373" type="stmt" count="0"/>
|
10222 |
<line num="374" type="stmt" count="0"/>
|
10223 |
<line num="375" type="stmt" count="0"/>
|
@@ -10227,8 +10334,8 @@
|
|
10227 |
<line num="379" type="stmt" count="0"/>
|
10228 |
<line num="380" type="stmt" count="0"/>
|
10229 |
<line num="381" type="stmt" count="0"/>
|
|
|
10230 |
<line num="383" type="stmt" count="0"/>
|
10231 |
-
<line num="384" type="stmt" count="0"/>
|
10232 |
<line num="385" type="stmt" count="0"/>
|
10233 |
<line num="386" type="stmt" count="0"/>
|
10234 |
<line num="387" type="stmt" count="0"/>
|
@@ -10249,8 +10356,8 @@
|
|
10249 |
<line num="402" type="stmt" count="0"/>
|
10250 |
<line num="403" type="stmt" count="0"/>
|
10251 |
<line num="404" type="stmt" count="0"/>
|
10252 |
-
<line num="
|
10253 |
-
<line num="
|
10254 |
<line num="414" type="stmt" count="0"/>
|
10255 |
<line num="415" type="stmt" count="0"/>
|
10256 |
<line num="416" type="stmt" count="0"/>
|
@@ -10263,9 +10370,9 @@
|
|
10263 |
<line num="423" type="stmt" count="0"/>
|
10264 |
<line num="424" type="stmt" count="0"/>
|
10265 |
<line num="425" type="stmt" count="0"/>
|
|
|
10266 |
<line num="427" type="stmt" count="0"/>
|
10267 |
<line num="429" type="stmt" count="0"/>
|
10268 |
-
<line num="430" type="stmt" count="0"/>
|
10269 |
<line num="431" type="stmt" count="0"/>
|
10270 |
<line num="432" type="stmt" count="0"/>
|
10271 |
<line num="433" type="stmt" count="0"/>
|
@@ -10279,8 +10386,8 @@
|
|
10279 |
<line num="441" type="stmt" count="0"/>
|
10280 |
<line num="442" type="stmt" count="0"/>
|
10281 |
<line num="443" type="stmt" count="0"/>
|
|
|
10282 |
<line num="445" type="stmt" count="0"/>
|
10283 |
-
<line num="446" type="stmt" count="0"/>
|
10284 |
<line num="447" type="stmt" count="0"/>
|
10285 |
<line num="448" type="stmt" count="0"/>
|
10286 |
<line num="449" type="stmt" count="0"/>
|
@@ -10288,9 +10395,9 @@
|
|
10288 |
<line num="451" type="stmt" count="0"/>
|
10289 |
<line num="452" type="stmt" count="0"/>
|
10290 |
<line num="453" type="stmt" count="0"/>
|
|
|
10291 |
<line num="455" type="stmt" count="0"/>
|
10292 |
<line num="457" type="stmt" count="0"/>
|
10293 |
-
<line num="458" type="stmt" count="0"/>
|
10294 |
<line num="459" type="stmt" count="0"/>
|
10295 |
<line num="460" type="stmt" count="0"/>
|
10296 |
<line num="461" type="stmt" count="0"/>
|
@@ -10302,9 +10409,11 @@
|
|
10302 |
<line num="467" type="stmt" count="0"/>
|
10303 |
<line num="468" type="stmt" count="0"/>
|
10304 |
<line num="469" type="stmt" count="0"/>
|
|
|
10305 |
<line num="471" type="stmt" count="0"/>
|
10306 |
<line num="473" type="stmt" count="0"/>
|
10307 |
-
<
|
|
|
10308 |
</file>
|
10309 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-backup-button.php">
|
10310 |
<line num="19" type="stmt" count="0"/>
|
@@ -10666,12 +10775,12 @@
|
|
10666 |
<line num="31" type="stmt" count="0"/>
|
10667 |
<line num="32" type="stmt" count="0"/>
|
10668 |
<line num="33" type="stmt" count="0"/>
|
10669 |
-
<line num="
|
10670 |
<line num="36" type="stmt" count="0"/>
|
10671 |
<line num="37" type="stmt" count="0"/>
|
10672 |
<line num="38" type="stmt" count="0"/>
|
10673 |
<line num="39" type="stmt" count="0"/>
|
10674 |
-
<line num="
|
10675 |
<line num="42" type="stmt" count="0"/>
|
10676 |
<line num="43" type="stmt" count="0"/>
|
10677 |
<line num="44" type="stmt" count="0"/>
|
@@ -10724,12 +10833,12 @@
|
|
10724 |
<line num="91" type="stmt" count="0"/>
|
10725 |
<line num="92" type="stmt" count="0"/>
|
10726 |
<line num="93" type="stmt" count="0"/>
|
10727 |
-
<line num="
|
10728 |
-
<line num="
|
10729 |
<line num="114" type="stmt" count="0"/>
|
10730 |
<line num="115" type="stmt" count="0"/>
|
10731 |
<line num="116" type="stmt" count="0"/>
|
10732 |
-
<line num="
|
10733 |
<line num="120" type="stmt" count="0"/>
|
10734 |
<line num="121" type="stmt" count="0"/>
|
10735 |
<line num="122" type="stmt" count="0"/>
|
@@ -10738,13 +10847,13 @@
|
|
10738 |
<line num="125" type="stmt" count="0"/>
|
10739 |
<line num="126" type="stmt" count="0"/>
|
10740 |
<line num="127" type="stmt" count="0"/>
|
10741 |
-
<line num="
|
10742 |
-
<line num="
|
10743 |
-
<line num="
|
10744 |
-
<line num="
|
10745 |
-
<line num="
|
10746 |
<line num="151" type="stmt" count="0"/>
|
10747 |
-
<line num="
|
10748 |
<line num="154" type="stmt" count="0"/>
|
10749 |
<line num="155" type="stmt" count="0"/>
|
10750 |
<line num="156" type="stmt" count="0"/>
|
@@ -10753,14 +10862,15 @@
|
|
10753 |
<line num="159" type="stmt" count="0"/>
|
10754 |
<line num="160" type="stmt" count="0"/>
|
10755 |
<line num="161" type="stmt" count="0"/>
|
10756 |
-
<line num="
|
10757 |
-
<line num="
|
10758 |
-
<line num="
|
10759 |
-
<line num="
|
10760 |
-
<line num="
|
10761 |
<line num="172" type="stmt" count="0"/>
|
10762 |
-
<line num="
|
10763 |
-
<
|
|
|
10764 |
</file>
|
10765 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-support.php">
|
10766 |
<line num="17" type="stmt" count="0"/>
|
@@ -12435,6 +12545,40 @@
|
|
12435 |
<line num="275" type="stmt" count="0"/>
|
12436 |
<metrics loc="275" ncloc="194" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="225" coveredstatements="0" elements="225" coveredelements="0"/>
|
12437 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12438 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/notifications.php">
|
12439 |
<line num="17" type="stmt" count="0"/>
|
12440 |
<line num="19" type="stmt" count="0"/>
|
@@ -14242,36 +14386,37 @@
|
|
14242 |
<line num="60" type="stmt" count="0"/>
|
14243 |
<line num="61" type="stmt" count="0"/>
|
14244 |
<line num="62" type="stmt" count="0"/>
|
14245 |
-
<line num="
|
14246 |
<line num="65" type="stmt" count="0"/>
|
14247 |
<line num="66" type="stmt" count="0"/>
|
14248 |
<line num="67" type="stmt" count="0"/>
|
14249 |
<line num="68" type="stmt" count="0"/>
|
14250 |
-
<line num="
|
14251 |
<line num="72" type="stmt" count="0"/>
|
14252 |
<line num="73" type="stmt" count="0"/>
|
14253 |
<line num="74" type="stmt" count="0"/>
|
14254 |
<line num="75" type="stmt" count="0"/>
|
14255 |
<line num="76" type="stmt" count="0"/>
|
14256 |
-
<line num="
|
14257 |
<line num="79" type="stmt" count="0"/>
|
14258 |
<line num="80" type="stmt" count="0"/>
|
14259 |
-
<line num="
|
14260 |
<line num="83" type="stmt" count="0"/>
|
14261 |
<line num="84" type="stmt" count="0"/>
|
14262 |
-
<line num="
|
14263 |
-
<line num="
|
14264 |
<line num="90" type="stmt" count="0"/>
|
14265 |
<line num="91" type="stmt" count="0"/>
|
14266 |
-
<line num="
|
14267 |
<line num="94" type="stmt" count="0"/>
|
14268 |
<line num="95" type="stmt" count="0"/>
|
14269 |
<line num="96" type="stmt" count="0"/>
|
14270 |
<line num="97" type="stmt" count="0"/>
|
14271 |
<line num="98" type="stmt" count="0"/>
|
14272 |
<line num="99" type="stmt" count="0"/>
|
14273 |
-
<line num="
|
14274 |
-
<
|
|
|
14275 |
</file>
|
14276 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/boldgrid-backup.php">
|
14277 |
<line num="29" type="stmt" count="0"/>
|
@@ -14289,24 +14434,23 @@
|
|
14289 |
<line num="49" type="stmt" count="0"/>
|
14290 |
<line num="50" type="stmt" count="0"/>
|
14291 |
<line num="51" type="stmt" count="0"/>
|
14292 |
-
<line num="
|
14293 |
-
<line num="59" type="stmt" count="0"/>
|
14294 |
<line num="60" type="stmt" count="0"/>
|
14295 |
-
<line num="
|
14296 |
-
<line num="
|
14297 |
<line num="69" type="stmt" count="0"/>
|
14298 |
-
<line num="
|
14299 |
-
<line num="
|
14300 |
<line num="83" type="stmt" count="0"/>
|
14301 |
-
<line num="
|
14302 |
-
<line num="
|
14303 |
<line num="101" type="stmt" count="0"/>
|
|
|
14304 |
<line num="103" type="stmt" count="0"/>
|
14305 |
-
<line num="104" type="stmt" count="0"/>
|
14306 |
<line num="105" type="stmt" count="0"/>
|
14307 |
-
<line num="
|
14308 |
-
<line num="
|
14309 |
-
<line num="
|
14310 |
<line num="113" type="stmt" count="0"/>
|
14311 |
<line num="114" type="stmt" count="0"/>
|
14312 |
<line num="115" type="stmt" count="0"/>
|
@@ -14314,26 +14458,28 @@
|
|
14314 |
<line num="117" type="stmt" count="0"/>
|
14315 |
<line num="118" type="stmt" count="0"/>
|
14316 |
<line num="119" type="stmt" count="0"/>
|
14317 |
-
<line num="
|
14318 |
-
<line num="
|
14319 |
<line num="124" type="stmt" count="0"/>
|
|
|
14320 |
<line num="126" type="stmt" count="0"/>
|
14321 |
-
<line num="
|
14322 |
<line num="129" type="stmt" count="0"/>
|
14323 |
-
<line num="
|
14324 |
-
<line num="
|
14325 |
<line num="145" type="stmt" count="0"/>
|
14326 |
-
<line num="146" type="stmt" count="0"/>
|
14327 |
<line num="147" type="stmt" count="0"/>
|
14328 |
<line num="148" type="stmt" count="0"/>
|
14329 |
<line num="149" type="stmt" count="0"/>
|
14330 |
-
<line num="
|
14331 |
-
<line num="
|
14332 |
<line num="158" type="stmt" count="0"/>
|
14333 |
<line num="159" type="stmt" count="0"/>
|
14334 |
<line num="160" type="stmt" count="0"/>
|
14335 |
<line num="161" type="stmt" count="0"/>
|
14336 |
-
<
|
|
|
|
|
14337 |
</file>
|
14338 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/cli/bgbkup-cli.php">
|
14339 |
<line num="27" type="stmt" count="0"/>
|
@@ -15332,6 +15478,120 @@
|
|
15332 |
<line num="63" type="stmt" count="0"/>
|
15333 |
<metrics loc="63" ncloc="28" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="0" elements="30" coveredelements="0"/>
|
15334 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15335 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-activator.php">
|
15336 |
<class name="Boldgrid_Backup_Activator" namespace="global" fullPackage="Boldgrid.Backup">
|
15337 |
<metrics complexity="18" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="75" coveredstatements="0" elements="80" coveredelements="0"/>
|
@@ -15418,6 +15678,248 @@
|
|
15418 |
<line num="225" type="stmt" count="0"/>
|
15419 |
<metrics loc="226" ncloc="98" classes="1" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="75" coveredstatements="0" elements="80" coveredelements="0"/>
|
15420 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15421 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-authentication.php">
|
15422 |
<class name="Boldgrid_Backup_Authentication" namespace="global" fullPackage="Boldgrid.Backup">
|
15423 |
<metrics complexity="7" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="24" coveredstatements="0" elements="26" coveredelements="0"/>
|
@@ -15570,9 +16072,86 @@
|
|
15570 |
<line num="142" type="stmt" count="0"/>
|
15571 |
<metrics loc="143" ncloc="58" classes="1" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="39" coveredstatements="0" elements="44" coveredelements="0"/>
|
15572 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15573 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup.php">
|
15574 |
<class name="Boldgrid_Backup" namespace="global" fullPackage="Boldgrid">
|
15575 |
-
<metrics complexity="
|
15576 |
</class>
|
15577 |
<line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
|
15578 |
<line num="67" type="stmt" count="0"/>
|
@@ -15693,208 +16272,247 @@
|
|
15693 |
<line num="291" type="stmt" count="0"/>
|
15694 |
<line num="292" type="stmt" count="0"/>
|
15695 |
<line num="294" type="stmt" count="0"/>
|
15696 |
-
<line num="
|
|
|
15697 |
<line num="299" type="stmt" count="0"/>
|
15698 |
<line num="300" type="stmt" count="0"/>
|
15699 |
-
<line num="
|
15700 |
-
<line num="
|
15701 |
<line num="306" type="stmt" count="0"/>
|
15702 |
-
<line num="
|
15703 |
-
<line num="
|
15704 |
<line num="312" type="stmt" count="0"/>
|
15705 |
<line num="313" type="stmt" count="0"/>
|
15706 |
-
<line num="
|
|
|
|
|
|
|
|
|
15707 |
<line num="325" type="stmt" count="0"/>
|
15708 |
-
<line num="327" type="stmt" count="0"/>
|
15709 |
<line num="328" type="stmt" count="0"/>
|
15710 |
-
<line num="
|
15711 |
-
<line num="
|
15712 |
-
<line num="
|
|
|
|
|
15713 |
<line num="343" type="stmt" count="0"/>
|
|
|
|
|
15714 |
<line num="346" type="stmt" count="0"/>
|
15715 |
<line num="347" type="stmt" count="0"/>
|
15716 |
<line num="348" type="stmt" count="0"/>
|
|
|
15717 |
<line num="350" type="stmt" count="0"/>
|
15718 |
<line num="351" type="stmt" count="0"/>
|
15719 |
<line num="352" type="stmt" count="0"/>
|
|
|
15720 |
<line num="355" type="stmt" count="0"/>
|
15721 |
<line num="356" type="stmt" count="0"/>
|
15722 |
-
<line num="
|
15723 |
-
<line num="358" type="stmt" count="0"/>
|
15724 |
-
<line num="361" type="stmt" count="0"/>
|
15725 |
-
<line num="362" type="stmt" count="0"/>
|
15726 |
-
<line num="363" type="stmt" count="0"/>
|
15727 |
-
<line num="364" type="stmt" count="0"/>
|
15728 |
-
<line num="366" type="stmt" count="0"/>
|
15729 |
-
<line num="367" type="stmt" count="0"/>
|
15730 |
<line num="368" type="stmt" count="0"/>
|
15731 |
-
<line num="369" type="stmt" count="0"/>
|
15732 |
<line num="370" type="stmt" count="0"/>
|
15733 |
-
<line num="
|
15734 |
-
<line num="
|
15735 |
-
<line num="375" type="stmt" count="0"/>
|
15736 |
-
<line num="376" type="stmt" count="0"/>
|
15737 |
-
<line num="379" type="stmt" count="0"/>
|
15738 |
-
<line num="380" type="stmt" count="0"/>
|
15739 |
<line num="381" type="stmt" count="0"/>
|
15740 |
-
<line num="
|
15741 |
-
<line num="385" type="stmt" count="0"/>
|
15742 |
<line num="386" type="stmt" count="0"/>
|
15743 |
<line num="387" type="stmt" count="0"/>
|
15744 |
-
<line num="
|
15745 |
<line num="391" type="stmt" count="0"/>
|
15746 |
<line num="392" type="stmt" count="0"/>
|
15747 |
-
<line num="393" type="stmt" count="0"/>
|
15748 |
<line num="394" type="stmt" count="0"/>
|
15749 |
-
<line num="
|
15750 |
-
<line num="
|
15751 |
<line num="399" type="stmt" count="0"/>
|
15752 |
<line num="400" type="stmt" count="0"/>
|
15753 |
-
<line num="
|
15754 |
-
<line num="
|
15755 |
<line num="405" type="stmt" count="0"/>
|
15756 |
<line num="406" type="stmt" count="0"/>
|
|
|
15757 |
<line num="408" type="stmt" count="0"/>
|
15758 |
-
<line num="409" type="stmt" count="0"/>
|
15759 |
<line num="410" type="stmt" count="0"/>
|
|
|
|
|
15760 |
<line num="413" type="stmt" count="0"/>
|
15761 |
<line num="414" type="stmt" count="0"/>
|
15762 |
-
<line num="
|
15763 |
-
<line num="
|
15764 |
<line num="419" type="stmt" count="0"/>
|
15765 |
<line num="420" type="stmt" count="0"/>
|
15766 |
-
<line num="
|
15767 |
-
<line num="422" type="stmt" count="0"/>
|
15768 |
<line num="424" type="stmt" count="0"/>
|
15769 |
<line num="425" type="stmt" count="0"/>
|
15770 |
<line num="426" type="stmt" count="0"/>
|
15771 |
-
<line num="427" type="stmt" count="0"/>
|
15772 |
-
<line num="428" type="stmt" count="0"/>
|
15773 |
<line num="429" type="stmt" count="0"/>
|
|
|
15774 |
<line num="431" type="stmt" count="0"/>
|
15775 |
-
<line num="
|
15776 |
<line num="435" type="stmt" count="0"/>
|
|
|
15777 |
<line num="437" type="stmt" count="0"/>
|
15778 |
<line num="438" type="stmt" count="0"/>
|
15779 |
-
<line num="439" type="stmt" count="0"/>
|
15780 |
<line num="441" type="stmt" count="0"/>
|
15781 |
<line num="442" type="stmt" count="0"/>
|
|
|
15782 |
<line num="444" type="stmt" count="0"/>
|
15783 |
-
<line num="
|
15784 |
<line num="448" type="stmt" count="0"/>
|
|
|
15785 |
<line num="450" type="stmt" count="0"/>
|
15786 |
<line num="452" type="stmt" count="0"/>
|
15787 |
<line num="453" type="stmt" count="0"/>
|
15788 |
<line num="454" type="stmt" count="0"/>
|
15789 |
-
<line num="
|
15790 |
<line num="458" type="stmt" count="0"/>
|
15791 |
<line num="459" type="stmt" count="0"/>
|
15792 |
<line num="460" type="stmt" count="0"/>
|
15793 |
-
<line num="461" type="stmt" count="0"/>
|
15794 |
<line num="463" type="stmt" count="0"/>
|
|
|
15795 |
<line num="465" type="stmt" count="0"/>
|
15796 |
-
<line num="
|
|
|
15797 |
<line num="469" type="stmt" count="0"/>
|
|
|
15798 |
<line num="471" type="stmt" count="0"/>
|
|
|
15799 |
<line num="473" type="stmt" count="0"/>
|
15800 |
-
<line num="
|
15801 |
-
<line num="
|
|
|
|
|
15802 |
<line num="482" type="stmt" count="0"/>
|
15803 |
-
<line num="
|
|
|
15804 |
<line num="486" type="stmt" count="0"/>
|
15805 |
<line num="488" type="stmt" count="0"/>
|
15806 |
<line num="490" type="stmt" count="0"/>
|
15807 |
<line num="492" type="stmt" count="0"/>
|
15808 |
-
<line num="
|
15809 |
-
<line num="495" type="stmt" count="0"/>
|
15810 |
<line num="496" type="stmt" count="0"/>
|
|
|
15811 |
<line num="498" type="stmt" count="0"/>
|
15812 |
<line num="500" type="stmt" count="0"/>
|
15813 |
-
<line num="501" type="stmt" count="0"/>
|
15814 |
<line num="502" type="stmt" count="0"/>
|
|
|
15815 |
<line num="504" type="stmt" count="0"/>
|
15816 |
-
<line num="
|
15817 |
<line num="507" type="stmt" count="0"/>
|
15818 |
-
<line num="
|
15819 |
<line num="511" type="stmt" count="0"/>
|
15820 |
-
<line num="
|
15821 |
<line num="515" type="stmt" count="0"/>
|
15822 |
-
<line num="
|
15823 |
-
<line num="519" type="stmt" count="0"/>
|
15824 |
<line num="522" type="stmt" count="0"/>
|
15825 |
-
<line num="
|
|
|
15826 |
<line num="528" type="stmt" count="0"/>
|
15827 |
<line num="530" type="stmt" count="0"/>
|
15828 |
<line num="532" type="stmt" count="0"/>
|
15829 |
<line num="534" type="stmt" count="0"/>
|
15830 |
<line num="536" type="stmt" count="0"/>
|
|
|
15831 |
<line num="539" type="stmt" count="0"/>
|
15832 |
<line num="540" type="stmt" count="0"/>
|
15833 |
-
<line num="541" type="stmt" count="0"/>
|
15834 |
<line num="542" type="stmt" count="0"/>
|
15835 |
-
<line num="543" type="stmt" count="0"/>
|
15836 |
<line num="544" type="stmt" count="0"/>
|
15837 |
-
<line num="
|
|
|
|
|
15838 |
<line num="550" type="stmt" count="0"/>
|
15839 |
<line num="551" type="stmt" count="0"/>
|
15840 |
-
<line num="
|
15841 |
<line num="555" type="stmt" count="0"/>
|
15842 |
<line num="556" type="stmt" count="0"/>
|
15843 |
<line num="557" type="stmt" count="0"/>
|
15844 |
-
<line num="558" type="stmt" count="0"/>
|
15845 |
-
<line num="559" type="stmt" count="0"/>
|
15846 |
<line num="560" type="stmt" count="0"/>
|
15847 |
-
<line num="
|
15848 |
<line num="564" type="stmt" count="0"/>
|
15849 |
-
<line num="
|
15850 |
-
<line num="
|
|
|
15851 |
<line num="575" type="stmt" count="0"/>
|
15852 |
-
<line num="576" type="stmt" count="0"/>
|
15853 |
<line num="577" type="stmt" count="0"/>
|
15854 |
<line num="579" type="stmt" count="0"/>
|
15855 |
-
<line num="
|
15856 |
-
<line num="
|
15857 |
-
<line num="
|
15858 |
-
<line num="
|
15859 |
-
<line num="
|
|
|
|
|
15860 |
<line num="592" type="stmt" count="0"/>
|
15861 |
-
<line num="
|
15862 |
-
<line num="
|
|
|
|
|
|
|
15863 |
<line num="603" type="stmt" count="0"/>
|
15864 |
-
<line num="
|
15865 |
-
<line num="
|
|
|
|
|
|
|
|
|
15866 |
<line num="613" type="stmt" count="0"/>
|
15867 |
-
<line num="
|
15868 |
-
<line num="
|
|
|
|
|
|
|
|
|
15869 |
<line num="623" type="stmt" count="0"/>
|
15870 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15871 |
</file>
|
15872 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.cron.php">
|
15873 |
-
<line num="17" type="stmt" count="
|
15874 |
<line num="18" type="stmt" count="0"/>
|
15875 |
<line num="19" type="stmt" count="0"/>
|
15876 |
<line num="20" type="stmt" count="0"/>
|
15877 |
-
<line num="
|
15878 |
-
<line num="
|
15879 |
-
<line num="
|
15880 |
-
<line num="
|
15881 |
-
<line num="
|
15882 |
-
<line num="
|
15883 |
-
<line num="
|
15884 |
-
<line num="
|
15885 |
-
<line num="
|
15886 |
-
<line num="
|
15887 |
-
<line num="
|
15888 |
-
<line num="
|
15889 |
-
<line num="
|
15890 |
-
<line num="
|
15891 |
-
<line num="
|
15892 |
-
<line num="
|
15893 |
-
<line num="
|
15894 |
-
<line num="
|
15895 |
-
<
|
15896 |
-
<line num="53" type="stmt" count="0"/>
|
15897 |
-
<metrics loc="53" ncloc="29" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="24" coveredstatements="0" elements="24" coveredelements="0"/>
|
15898 |
</file>
|
15899 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.plugin.php">
|
15900 |
<line num="17" type="stmt" count="1"/>
|
@@ -16076,6 +16694,578 @@
|
|
16076 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/index.php">
|
16077 |
<metrics loc="8" ncloc="1" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
|
16078 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16079 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/index.php">
|
16080 |
<metrics loc="8" ncloc="1" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
|
16081 |
</file>
|
@@ -69978,6 +71168,435 @@
|
|
69978 |
<metrics loc="510" ncloc="285" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="215" coveredstatements="0" elements="218" coveredelements="0"/>
|
69979 |
</file>
|
69980 |
</package>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69981 |
<package name="Boldgrid\Library\Library">
|
69982 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/class-license.php">
|
69983 |
<class name="License" namespace="Boldgrid\Library\Library">
|
@@ -71327,14 +72946,56 @@
|
|
71327 |
</file>
|
71328 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-archive.php">
|
71329 |
<class name="Test_Boldgrid_Backup_Admin_Archive" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
71330 |
-
<metrics complexity="
|
71331 |
</class>
|
71332 |
-
<line num="26" type="method" name="
|
71333 |
-
<line num="27" type="stmt" count="
|
|
|
|
|
|
|
|
|
|
|
|
|
71334 |
<line num="41" type="stmt" count="1"/>
|
71335 |
-
<line num="42" type="stmt" count="1"/>
|
71336 |
<line num="43" type="stmt" count="1"/>
|
71337 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71338 |
</file>
|
71339 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-auto-rollback.php">
|
71340 |
<class name="Test_Boldgrid_Backup_Auto_Rollback" namespace="global" fullPackage="Test.Boldgrid.Backup.Auto">
|
@@ -71553,7 +73214,7 @@
|
|
71553 |
</file>
|
71554 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-compressor.php">
|
71555 |
<class name="Test_Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
71556 |
-
<metrics complexity="
|
71557 |
</class>
|
71558 |
<line num="32" type="method" name="setUp" visibility="public" complexity="2" crap="2" count="4"/>
|
71559 |
<line num="33" type="stmt" count="4"/>
|
@@ -71564,65 +73225,92 @@
|
|
71564 |
<line num="41" type="stmt" count="4"/>
|
71565 |
<line num="43" type="stmt" count="4"/>
|
71566 |
<line num="44" type="stmt" count="4"/>
|
71567 |
-
<line num="51" type="method" name="test_archive_files" visibility="public" complexity="
|
71568 |
<line num="53" type="stmt" count="1"/>
|
71569 |
<line num="54" type="stmt" count="1"/>
|
71570 |
<line num="55" type="stmt" count="1"/>
|
71571 |
<line num="56" type="stmt" count="1"/>
|
71572 |
-
<line num="
|
71573 |
-
<line num="60" type="stmt" count="1"/>
|
71574 |
<line num="62" type="stmt" count="1"/>
|
71575 |
-
<line num="
|
71576 |
-
<line num="
|
|
|
|
|
71577 |
<line num="69" type="stmt" count="1"/>
|
71578 |
<line num="70" type="stmt" count="1"/>
|
|
|
|
|
|
|
|
|
|
|
71579 |
<line num="80" type="stmt" count="1"/>
|
71580 |
<line num="81" type="stmt" count="1"/>
|
71581 |
<line num="82" type="stmt" count="1"/>
|
71582 |
-
<line num="
|
71583 |
-
<line num="
|
71584 |
-
<line num="
|
|
|
|
|
|
|
71585 |
<line num="94" type="stmt" count="1"/>
|
71586 |
-
<line num="
|
71587 |
-
<line num="
|
71588 |
<line num="108" type="stmt" count="1"/>
|
71589 |
<line num="109" type="stmt" count="1"/>
|
71590 |
-
<line num="
|
71591 |
<line num="113" type="stmt" count="1"/>
|
71592 |
-
<line num="
|
71593 |
-
<line num="
|
71594 |
-
<line num="
|
71595 |
<line num="123" type="stmt" count="1"/>
|
71596 |
-
<line num="
|
71597 |
-
<line num="
|
71598 |
-
<line num="128" type="stmt" count="1"/>
|
71599 |
<line num="129" type="stmt" count="1"/>
|
71600 |
-
<line num="
|
71601 |
-
<line num="
|
71602 |
-
<line num="
|
71603 |
-
<line num="
|
71604 |
-
<line num="
|
71605 |
-
<line num="
|
71606 |
-
<line num="
|
71607 |
-
<line num="152" type="stmt" count="1"/>
|
71608 |
<line num="155" type="stmt" count="1"/>
|
71609 |
<line num="156" type="stmt" count="1"/>
|
71610 |
-
<line num="
|
71611 |
-
<line num="
|
71612 |
-
<line num="
|
71613 |
-
<line num="167" type="stmt" count="1"/>
|
71614 |
<line num="168" type="stmt" count="1"/>
|
71615 |
-
<line num="
|
|
|
71616 |
<line num="172" type="stmt" count="1"/>
|
71617 |
-
<line num="173" type="stmt" count="1"/>
|
71618 |
<line num="174" type="stmt" count="1"/>
|
71619 |
<line num="175" type="stmt" count="1"/>
|
71620 |
<line num="176" type="stmt" count="1"/>
|
71621 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71622 |
</file>
|
71623 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-core.php">
|
71624 |
<class name="Test_Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
71625 |
-
<metrics complexity="23" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="
|
71626 |
</class>
|
71627 |
<line num="41" type="method" name="assertDirNotEmpty" visibility="public" complexity="5" crap="5" count="1"/>
|
71628 |
<line num="42" type="stmt" count="1"/>
|
@@ -71719,39 +73407,45 @@
|
|
71719 |
<line num="275" type="stmt" count="1"/>
|
71720 |
<line num="276" type="stmt" count="1"/>
|
71721 |
<line num="278" type="stmt" count="1"/>
|
|
|
71722 |
<line num="281" type="stmt" count="1"/>
|
71723 |
<line num="284" type="stmt" count="1"/>
|
71724 |
<line num="287" type="stmt" count="1"/>
|
71725 |
-
<line num="288" type="stmt" count="1"/>
|
71726 |
-
<line num="289" type="stmt" count="1"/>
|
71727 |
<line num="290" type="stmt" count="1"/>
|
|
|
|
|
71728 |
<line num="293" type="stmt" count="1"/>
|
71729 |
-
<line num="
|
71730 |
-
<line num="
|
71731 |
-
<line num="
|
71732 |
-
<line num="
|
71733 |
-
<line num="
|
71734 |
-
<line num="312" type="stmt" count="1"/>
|
71735 |
<line num="314" type="stmt" count="1"/>
|
|
|
71736 |
<line num="317" type="stmt" count="1"/>
|
71737 |
<line num="318" type="stmt" count="1"/>
|
71738 |
-
<line num="
|
71739 |
-
<line num="321" type="stmt" count="1"/>
|
71740 |
<line num="323" type="stmt" count="1"/>
|
71741 |
<line num="324" type="stmt" count="1"/>
|
71742 |
-
<line num="
|
71743 |
-
<line num="
|
71744 |
-
<line num="
|
71745 |
-
<line num="
|
71746 |
-
<line num="
|
71747 |
<line num="341" type="stmt" count="1"/>
|
|
|
71748 |
<line num="344" type="stmt" count="1"/>
|
71749 |
<line num="345" type="stmt" count="1"/>
|
71750 |
-
<line num="
|
71751 |
-
<line num="
|
71752 |
-
<line num="
|
71753 |
-
<line num="
|
71754 |
-
<
|
|
|
|
|
|
|
|
|
|
|
71755 |
</file>
|
71756 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-cron.php">
|
71757 |
<class name="Test_Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
@@ -72289,6 +73983,41 @@
|
|
72289 |
<line num="119" type="stmt" count="0"/>
|
72290 |
<metrics loc="120" ncloc="103" classes="1" methods="6" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="39" elements="69" coveredelements="42"/>
|
72291 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72292 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-test.php">
|
72293 |
<class name="Test_Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
72294 |
<metrics complexity="2" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="10" coveredelements="10"/>
|
@@ -72367,12 +74096,12 @@
|
|
72367 |
<metrics loc="135" ncloc="76" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
|
72368 |
</file>
|
72369 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/bootstrap.php">
|
72370 |
-
<line num="
|
72371 |
-
<line num="
|
72372 |
-
<line num="
|
72373 |
-
<line num="
|
72374 |
-
<line num="
|
72375 |
-
<metrics loc="
|
72376 |
</file>
|
72377 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/cli/test-class-info.php">
|
72378 |
<class name="Test_Boldgrid_Backup_Cli_Info" namespace="global" fullPackage="Test.Boldgrid.Backup.Cli">
|
@@ -72458,6 +74187,56 @@
|
|
72458 |
<line num="226" type="stmt" count="1"/>
|
72459 |
<metrics loc="227" ncloc="109" classes="1" methods="15" coveredmethods="14" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="61" elements="78" coveredelements="75"/>
|
72460 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72461 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/uninstall.php">
|
72462 |
<line num="12" type="stmt" count="0"/>
|
72463 |
<line num="13" type="stmt" count="0"/>
|
@@ -77056,7 +78835,7 @@
|
|
77056 |
<metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
|
77057 |
</file>
|
77058 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
|
77059 |
-
<class name="
|
77060 |
<metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
|
77061 |
</class>
|
77062 |
<line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
|
@@ -77148,7 +78927,7 @@
|
|
77148 |
<metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
|
77149 |
</file>
|
77150 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
|
77151 |
-
<class name="
|
77152 |
<metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
|
77153 |
</class>
|
77154 |
<line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
|
@@ -77243,71 +79022,71 @@
|
|
77243 |
<class name="TypeAdapterMysql" namespace="Ifsnop\Mysqldump">
|
77244 |
<metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="0" elements="12" coveredelements="0"/>
|
77245 |
</class>
|
77246 |
-
<line num="125" type="method" name="__construct" visibility="public" complexity="7" crap="7.02" count="
|
77247 |
-
<line num="133" type="stmt" count="
|
77248 |
-
<line num="134" type="stmt" count="
|
77249 |
-
<line num="135" type="stmt" count="
|
77250 |
-
<line num="136" type="stmt" count="
|
77251 |
-
<line num="137" type="stmt" count="
|
77252 |
-
<line num="138" type="stmt" count="
|
77253 |
-
<line num="139" type="stmt" count="
|
77254 |
-
<line num="140" type="stmt" count="
|
77255 |
-
<line num="141" type="stmt" count="
|
77256 |
-
<line num="142" type="stmt" count="
|
77257 |
-
<line num="143" type="stmt" count="
|
77258 |
-
<line num="144" type="stmt" count="
|
77259 |
-
<line num="145" type="stmt" count="
|
77260 |
-
<line num="146" type="stmt" count="
|
77261 |
-
<line num="147" type="stmt" count="
|
77262 |
-
<line num="148" type="stmt" count="
|
77263 |
-
<line num="149" type="stmt" count="
|
77264 |
-
<line num="150" type="stmt" count="
|
77265 |
-
<line num="151" type="stmt" count="
|
77266 |
-
<line num="152" type="stmt" count="
|
77267 |
-
<line num="153" type="stmt" count="
|
77268 |
-
<line num="154" type="stmt" count="
|
77269 |
-
<line num="155" type="stmt" count="
|
77270 |
-
<line num="156" type="stmt" count="
|
77271 |
-
<line num="157" type="stmt" count="
|
77272 |
-
<line num="158" type="stmt" count="
|
77273 |
-
<line num="159" type="stmt" count="
|
77274 |
-
<line num="160" type="stmt" count="
|
77275 |
-
<line num="161" type="stmt" count="
|
77276 |
-
<line num="162" type="stmt" count="
|
77277 |
-
<line num="163" type="stmt" count="
|
77278 |
-
<line num="166" type="stmt" count="
|
77279 |
-
<line num="169" type="stmt" count="
|
77280 |
-
<line num="170" type="stmt" count="
|
77281 |
-
<line num="171" type="stmt" count="
|
77282 |
-
<line num="173" type="stmt" count="
|
77283 |
-
<line num="174" type="stmt" count="
|
77284 |
-
<line num="175" type="stmt" count="
|
77285 |
-
<line num="178" type="stmt" count="
|
77286 |
-
<line num="179" type="stmt" count="
|
77287 |
-
<line num="180" type="stmt" count="
|
77288 |
-
<line num="182" type="stmt" count="
|
77289 |
-
<line num="183" type="stmt" count="
|
77290 |
-
<line num="184" type="stmt" count="
|
77291 |
-
<line num="186" type="stmt" count="
|
77292 |
-
<line num="187" type="stmt" count="
|
77293 |
-
<line num="188" type="stmt" count="
|
77294 |
-
<line num="190" type="stmt" count="
|
77295 |
-
<line num="191" type="stmt" count="
|
77296 |
<line num="192" type="stmt" count="0"/>
|
77297 |
-
<line num="195" type="stmt" count="
|
77298 |
-
<line num="196" type="stmt" count="
|
77299 |
<line num="197" type="stmt" count="0"/>
|
77300 |
-
<line num="201" type="stmt" count="
|
77301 |
<line num="202" type="stmt" count="0"/>
|
77302 |
<line num="203" type="stmt" count="0"/>
|
77303 |
-
<line num="206" type="stmt" count="
|
77304 |
-
<line num="207" type="stmt" count="
|
77305 |
-
<line num="212" type="method" name="__destruct" visibility="public" complexity="1" crap="1" count="
|
77306 |
-
<line num="214" type="stmt" count="
|
77307 |
-
<line num="215" type="stmt" count="
|
77308 |
-
<line num="226" type="method" name="array_replace_recursive" visibility="public" complexity="4" crap="11.53" count="
|
77309 |
-
<line num="228" type="stmt" count="
|
77310 |
-
<line num="229" type="stmt" count="
|
77311 |
<line num="232" type="stmt" count="0"/>
|
77312 |
<line num="233" type="stmt" count="0"/>
|
77313 |
<line num="234" type="stmt" count="0"/>
|
@@ -77318,86 +79097,86 @@
|
|
77318 |
<line num="248" type="method" name="setTableWheres" visibility="public" complexity="1" crap="2" count="0"/>
|
77319 |
<line num="250" type="stmt" count="0"/>
|
77320 |
<line num="251" type="stmt" count="0"/>
|
77321 |
-
<line num="258" type="method" name="getTableWhere" visibility="public" complexity="3" crap="3.58" count="
|
77322 |
-
<line num="260" type="stmt" count="
|
77323 |
<line num="261" type="stmt" count="0"/>
|
77324 |
-
<line num="262" type="stmt" count="
|
77325 |
<line num="263" type="stmt" count="0"/>
|
77326 |
-
<line num="266" type="stmt" count="
|
77327 |
<line num="275" type="method" name="setTableLimits" visibility="public" complexity="1" crap="2" count="0"/>
|
77328 |
<line num="277" type="stmt" count="0"/>
|
77329 |
<line num="278" type="stmt" count="0"/>
|
77330 |
-
<line num="285" type="method" name="getTableLimit" visibility="public" complexity="3" crap="5.67" count="
|
77331 |
-
<line num="287" type="stmt" count="
|
77332 |
-
<line num="288" type="stmt" count="
|
77333 |
<line num="291" type="stmt" count="0"/>
|
77334 |
<line num="292" type="stmt" count="0"/>
|
77335 |
<line num="293" type="stmt" count="0"/>
|
77336 |
<line num="296" type="stmt" count="0"/>
|
77337 |
-
<line num="309" type="method" name="parseDsn" visibility="private" complexity="9" crap="9.65" count="
|
77338 |
-
<line num="311" type="stmt" count="
|
77339 |
<line num="312" type="stmt" count="0"/>
|
77340 |
-
<line num="315" type="stmt" count="
|
77341 |
-
<line num="316" type="stmt" count="
|
77342 |
-
<line num="318" type="stmt" count="
|
77343 |
<line num="319" type="stmt" count="0"/>
|
77344 |
-
<line num="322" type="stmt" count="
|
77345 |
-
<line num="324" type="stmt" count="
|
77346 |
-
<line num="325" type="stmt" count="
|
77347 |
-
<line num="326" type="stmt" count="
|
77348 |
-
<line num="327" type="stmt" count="
|
77349 |
-
<line num="329" type="stmt" count="
|
77350 |
-
<line num="330" type="stmt" count="
|
77351 |
<line num="331" type="stmt" count="0"/>
|
77352 |
-
<line num="333" type="stmt" count="
|
77353 |
-
<line num="334" type="stmt" count="
|
77354 |
-
<line num="336" type="stmt" count="
|
77355 |
<line num="337" type="stmt" count="0"/>
|
77356 |
-
<line num="340" type="stmt" count="
|
77357 |
-
<line num="342" type="stmt" count="
|
77358 |
-
<line num="350" type="method" name="connect" visibility="private" complexity="8" crap="9.57" count="
|
77359 |
-
<line num="354" type="stmt" count="
|
77360 |
-
<line num="355" type="stmt" count="
|
77361 |
<line num="356" type="stmt" count="0"/>
|
77362 |
<line num="357" type="stmt" count="0"/>
|
77363 |
-
<line num="358" type="stmt" count="
|
77364 |
-
<line num="359" type="stmt" count="
|
77365 |
-
<line num="360" type="stmt" count="
|
77366 |
-
<line num="361" type="stmt" count="
|
77367 |
-
<line num="362" type="stmt" count="
|
77368 |
-
<line num="363" type="stmt" count="
|
77369 |
-
<line num="364" type="stmt" count="
|
77370 |
-
<line num="365" type="stmt" count="
|
77371 |
-
<line num="366" type="stmt" count="
|
77372 |
-
<line num="368" type="stmt" count="
|
77373 |
-
<line num="369" type="stmt" count="
|
77374 |
-
<line num="370" type="stmt" count="
|
77375 |
-
<line num="372" type="stmt" count="
|
77376 |
-
<line num="373" type="stmt" count="
|
77377 |
<line num="374" type="stmt" count="0"/>
|
77378 |
<line num="375" type="stmt" count="0"/>
|
77379 |
-
<line num="376" type="stmt" count="
|
77380 |
-
<line num="377" type="stmt" count="
|
77381 |
<line num="378" type="stmt" count="0"/>
|
77382 |
<line num="379" type="stmt" count="0"/>
|
77383 |
<line num="380" type="stmt" count="0"/>
|
77384 |
<line num="381" type="stmt" count="0"/>
|
77385 |
-
<line num="384" type="stmt" count="
|
77386 |
<line num="385" type="stmt" count="0"/>
|
77387 |
-
<line num="388" type="stmt" count="
|
77388 |
-
<line num="389" type="stmt" count="
|
77389 |
-
<line num="390" type="stmt" count="
|
77390 |
-
<line num="399" type="method" name="start" visibility="public" complexity="6" crap="7.33" count="
|
77391 |
-
<line num="402" type="stmt" count="
|
77392 |
-
<line num="403" type="stmt" count="
|
77393 |
-
<line num="404" type="stmt" count="
|
77394 |
-
<line num="407" type="stmt" count="
|
77395 |
-
<line num="410" type="stmt" count="
|
77396 |
-
<line num="413" type="stmt" count="
|
77397 |
-
<line num="416" type="stmt" count="
|
77398 |
-
<line num="417" type="stmt" count="
|
77399 |
-
<line num="418" type="stmt" count="
|
77400 |
-
<line num="420" type="stmt" count="
|
77401 |
<line num="421" type="stmt" count="0"/>
|
77402 |
<line num="422" type="stmt" count="0"/>
|
77403 |
<line num="423" type="stmt" count="0"/>
|
@@ -77407,80 +79186,80 @@
|
|
77407 |
<line num="427" type="stmt" count="0"/>
|
77408 |
<line num="428" type="stmt" count="0"/>
|
77409 |
<line num="429" type="stmt" count="0"/>
|
77410 |
-
<line num="433" type="stmt" count="
|
77411 |
-
<line num="434" type="stmt" count="
|
77412 |
-
<line num="435" type="stmt" count="
|
77413 |
-
<line num="436" type="stmt" count="
|
77414 |
-
<line num="437" type="stmt" count="
|
77415 |
-
<line num="438" type="stmt" count="
|
77416 |
-
<line num="440" type="stmt" count="
|
77417 |
<line num="441" type="stmt" count="0"/>
|
77418 |
<line num="442" type="stmt" count="0"/>
|
77419 |
<line num="443" type="stmt" count="0"/>
|
77420 |
<line num="444" type="stmt" count="0"/>
|
77421 |
-
<line num="450" type="stmt" count="
|
77422 |
<line num="451" type="stmt" count="0"/>
|
77423 |
<line num="452" type="stmt" count="0"/>
|
77424 |
-
<line num="455" type="stmt" count="
|
77425 |
-
<line num="456" type="stmt" count="
|
77426 |
-
<line num="457" type="stmt" count="
|
77427 |
-
<line num="458" type="stmt" count="
|
77428 |
-
<line num="459" type="stmt" count="
|
77429 |
-
<line num="460" type="stmt" count="
|
77430 |
-
<line num="463" type="stmt" count="
|
77431 |
-
<line num="464" type="stmt" count="
|
77432 |
-
<line num="465" type="stmt" count="
|
77433 |
-
<line num="467" type="stmt" count="
|
77434 |
-
<line num="469" type="stmt" count="
|
77435 |
-
<line num="471" type="stmt" count="
|
77436 |
-
<line num="479" type="method" name="getDumpFileHeader" visibility="private" complexity="4" crap="4" count="
|
77437 |
-
<line num="481" type="stmt" count="
|
77438 |
-
<line num="482" type="stmt" count="
|
77439 |
-
<line num="484" type="stmt" count="
|
77440 |
-
<line num="485" type="stmt" count="
|
77441 |
-
<line num="486" type="stmt" count="
|
77442 |
-
<line num="487" type="stmt" count="
|
77443 |
-
<line num="489" type="stmt" count="
|
77444 |
-
<line num="490" type="stmt" count="
|
77445 |
-
<line num="491" type="stmt" count="
|
77446 |
-
<line num="493" type="stmt" count="
|
77447 |
-
<line num="494" type="stmt" count="
|
77448 |
-
<line num="495" type="stmt" count="
|
77449 |
-
<line num="496" type="stmt" count="
|
77450 |
-
<line num="497" type="stmt" count="
|
77451 |
-
<line num="505" type="method" name="getDumpFileFooter" visibility="private" complexity="3" crap="3" count="
|
77452 |
-
<line num="507" type="stmt" count="
|
77453 |
-
<line num="508" type="stmt" count="
|
77454 |
-
<line num="509" type="stmt" count="
|
77455 |
-
<line num="510" type="stmt" count="
|
77456 |
-
<line num="511" type="stmt" count="
|
77457 |
-
<line num="512" type="stmt" count="
|
77458 |
-
<line num="513" type="stmt" count="
|
77459 |
-
<line num="514" type="stmt" count="
|
77460 |
-
<line num="516" type="stmt" count="
|
77461 |
-
<line num="525" type="method" name="getDatabaseStructureTables" visibility="private" complexity="5" crap="5.39" count="
|
77462 |
-
<line num="528" type="stmt" count="
|
77463 |
<line num="530" type="stmt" count="0"/>
|
77464 |
<line num="531" type="stmt" count="0"/>
|
77465 |
<line num="532" type="stmt" count="0"/>
|
77466 |
<line num="533" type="stmt" count="0"/>
|
77467 |
-
<line num="535" type="stmt" count="
|
77468 |
-
<line num="536" type="stmt" count="
|
77469 |
-
<line num="537" type="stmt" count="
|
77470 |
-
<line num="538" type="stmt" count="
|
77471 |
-
<line num="539" type="stmt" count="
|
77472 |
-
<line num="540" type="stmt" count="
|
77473 |
-
<line num="541" type="stmt" count="
|
77474 |
-
<line num="542" type="stmt" count="
|
77475 |
-
<line num="543" type="stmt" count="
|
77476 |
-
<line num="544" type="stmt" count="
|
77477 |
-
<line num="546" type="stmt" count="
|
77478 |
-
<line num="555" type="method" name="getDatabaseStructureViews" visibility="private" complexity="5" crap="5.01" count="
|
77479 |
-
<line num="558" type="stmt" count="
|
77480 |
-
<line num="560" type="stmt" count="
|
77481 |
<line num="561" type="stmt" count="0"/>
|
77482 |
-
<line num="562" type="stmt" count="
|
77483 |
-
<line num="563" type="stmt" count="
|
77484 |
<line num="565" type="stmt" count="3"/>
|
77485 |
<line num="566" type="stmt" count="3"/>
|
77486 |
<line num="567" type="stmt" count="3"/>
|
@@ -77491,134 +79270,134 @@
|
|
77491 |
<line num="572" type="stmt" count="3"/>
|
77492 |
<line num="573" type="stmt" count="3"/>
|
77493 |
<line num="574" type="stmt" count="3"/>
|
77494 |
-
<line num="576" type="stmt" count="
|
77495 |
-
<line num="585" type="method" name="getDatabaseStructureTriggers" visibility="private" complexity="3" crap="3.04" count="
|
77496 |
-
<line num="588" type="stmt" count="
|
77497 |
-
<line num="589" type="stmt" count="
|
77498 |
<line num="590" type="stmt" count="0"/>
|
77499 |
-
<line num="591" type="stmt" count="
|
77500 |
-
<line num="592" type="stmt" count="
|
77501 |
-
<line num="593" type="stmt" count="
|
77502 |
-
<line num="602" type="method" name="getDatabaseStructureProcedures" visibility="private" complexity="3" crap="5.67" count="
|
77503 |
-
<line num="605" type="stmt" count="
|
77504 |
<line num="606" type="stmt" count="0"/>
|
77505 |
<line num="607" type="stmt" count="0"/>
|
77506 |
<line num="608" type="stmt" count="0"/>
|
77507 |
<line num="609" type="stmt" count="0"/>
|
77508 |
-
<line num="610" type="stmt" count="
|
77509 |
-
<line num="619" type="method" name="getDatabaseStructureFunctions" visibility="private" complexity="3" crap="5.67" count="
|
77510 |
-
<line num="622" type="stmt" count="
|
77511 |
<line num="623" type="stmt" count="0"/>
|
77512 |
<line num="624" type="stmt" count="0"/>
|
77513 |
<line num="625" type="stmt" count="0"/>
|
77514 |
<line num="626" type="stmt" count="0"/>
|
77515 |
-
<line num="627" type="stmt" count="
|
77516 |
-
<line num="636" type="method" name="getDatabaseStructureEvents" visibility="private" complexity="3" crap="5.67" count="
|
77517 |
-
<line num="639" type="stmt" count="
|
77518 |
<line num="640" type="stmt" count="0"/>
|
77519 |
<line num="641" type="stmt" count="0"/>
|
77520 |
<line num="642" type="stmt" count="0"/>
|
77521 |
<line num="643" type="stmt" count="0"/>
|
77522 |
-
<line num="644" type="stmt" count="
|
77523 |
-
<line num="653" type="method" name="matches" visibility="private" complexity="5" crap="9.29" count="
|
77524 |
-
<line num="655" type="stmt" count="
|
77525 |
-
<line num="657" type="stmt" count="
|
77526 |
<line num="658" type="stmt" count="0"/>
|
77527 |
<line num="659" type="stmt" count="0"/>
|
77528 |
<line num="661" type="stmt" count="0"/>
|
77529 |
<line num="662" type="stmt" count="0"/>
|
77530 |
<line num="663" type="stmt" count="0"/>
|
77531 |
-
<line num="664" type="stmt" count="
|
77532 |
-
<line num="666" type="stmt" count="
|
77533 |
-
<line num="674" type="method" name="exportTables" visibility="private" complexity="6" crap="6.56" count="
|
77534 |
-
<line num="677" type="stmt" count="
|
77535 |
-
<line num="678" type="stmt" count="
|
77536 |
<line num="679" type="stmt" count="0"/>
|
77537 |
-
<line num="681" type="stmt" count="
|
77538 |
-
<line num="682" type="stmt" count="
|
77539 |
<line num="683" type="stmt" count="0"/>
|
77540 |
-
<line num="684" type="stmt" count="
|
77541 |
-
<line num="685" type="stmt" count="
|
77542 |
<line num="686" type="stmt" count="0"/>
|
77543 |
-
<line num="688" type="stmt" count="
|
77544 |
-
<line num="690" type="stmt" count="
|
77545 |
-
<line num="691" type="stmt" count="
|
77546 |
-
<line num="698" type="method" name="exportViews" visibility="private" complexity="6" crap="6.10" count="
|
77547 |
-
<line num="700" type="stmt" count="
|
77548 |
-
<line num="702" type="stmt" count="
|
77549 |
<line num="703" type="stmt" count="3"/>
|
77550 |
<line num="704" type="stmt" count="0"/>
|
77551 |
<line num="706" type="stmt" count="3"/>
|
77552 |
<line num="707" type="stmt" count="3"/>
|
77553 |
-
<line num="708" type="stmt" count="
|
77554 |
-
<line num="709" type="stmt" count="
|
77555 |
<line num="710" type="stmt" count="3"/>
|
77556 |
<line num="711" type="stmt" count="0"/>
|
77557 |
<line num="713" type="stmt" count="3"/>
|
77558 |
-
<line num="714" type="stmt" count="
|
77559 |
-
<line num="715" type="stmt" count="
|
77560 |
-
<line num="716" type="stmt" count="
|
77561 |
-
<line num="723" type="method" name="exportTriggers" visibility="private" complexity="2" crap="2.06" count="
|
77562 |
-
<line num="726" type="stmt" count="
|
77563 |
<line num="727" type="stmt" count="0"/>
|
77564 |
-
<line num="728" type="stmt" count="
|
77565 |
-
<line num="729" type="stmt" count="
|
77566 |
-
<line num="736" type="method" name="exportProcedures" visibility="private" complexity="2" crap="2.06" count="
|
77567 |
-
<line num="739" type="stmt" count="
|
77568 |
<line num="740" type="stmt" count="0"/>
|
77569 |
-
<line num="741" type="stmt" count="
|
77570 |
-
<line num="742" type="stmt" count="
|
77571 |
-
<line num="749" type="method" name="exportFunctions" visibility="private" complexity="2" crap="2.06" count="
|
77572 |
-
<line num="752" type="stmt" count="
|
77573 |
<line num="753" type="stmt" count="0"/>
|
77574 |
-
<line num="754" type="stmt" count="
|
77575 |
-
<line num="755" type="stmt" count="
|
77576 |
-
<line num="762" type="method" name="exportEvents" visibility="private" complexity="2" crap="2.06" count="
|
77577 |
-
<line num="765" type="stmt" count="
|
77578 |
<line num="766" type="stmt" count="0"/>
|
77579 |
-
<line num="767" type="stmt" count="
|
77580 |
-
<line num="768" type="stmt" count="
|
77581 |
-
<line num="777" type="method" name="getTableStructure" visibility="private" complexity="5" crap="5" count="
|
77582 |
-
<line num="779" type="stmt" count="
|
77583 |
-
<line num="780" type="stmt" count="
|
77584 |
-
<line num="781" type="stmt" count="
|
77585 |
-
<line num="782" type="stmt" count="
|
77586 |
-
<line num="783" type="stmt" count="
|
77587 |
-
<line num="784" type="stmt" count="
|
77588 |
-
<line num="785" type="stmt" count="
|
77589 |
-
<line num="786" type="stmt" count="
|
77590 |
-
<line num="787" type="stmt" count="
|
77591 |
-
<line num="788" type="stmt" count="
|
77592 |
-
<line num="789" type="stmt" count="
|
77593 |
-
<line num="790" type="stmt" count="
|
77594 |
-
<line num="791" type="stmt" count="
|
77595 |
-
<line num="792" type="stmt" count="
|
77596 |
-
<line num="793" type="stmt" count="
|
77597 |
-
<line num="794" type="stmt" count="
|
77598 |
-
<line num="795" type="stmt" count="
|
77599 |
-
<line num="796" type="stmt" count="
|
77600 |
-
<line num="797" type="stmt" count="
|
77601 |
-
<line num="798" type="stmt" count="
|
77602 |
-
<line num="799" type="stmt" count="
|
77603 |
-
<line num="800" type="stmt" count="
|
77604 |
-
<line num="801" type="stmt" count="
|
77605 |
-
<line num="811" type="method" name="getTableColumnTypes" visibility="private" complexity="2" crap="2" count="
|
77606 |
-
<line num="813" type="stmt" count="
|
77607 |
-
<line num="814" type="stmt" count="
|
77608 |
-
<line num="815" type="stmt" count="
|
77609 |
-
<line num="816" type="stmt" count="
|
77610 |
-
<line num="817" type="stmt" count="
|
77611 |
-
<line num="819" type="stmt" count="
|
77612 |
-
<line num="820" type="stmt" count="
|
77613 |
-
<line num="821" type="stmt" count="
|
77614 |
-
<line num="822" type="stmt" count="
|
77615 |
-
<line num="823" type="stmt" count="
|
77616 |
-
<line num="824" type="stmt" count="
|
77617 |
-
<line num="825" type="stmt" count="
|
77618 |
-
<line num="826" type="stmt" count="
|
77619 |
-
<line num="827" type="stmt" count="
|
77620 |
-
<line num="828" type="stmt" count="
|
77621 |
-
<line num="830" type="stmt" count="
|
77622 |
<line num="840" type="method" name="getViewStructureTable" visibility="private" complexity="2" crap="2" count="3"/>
|
77623 |
<line num="842" type="stmt" count="3"/>
|
77624 |
<line num="843" type="stmt" count="3"/>
|
@@ -77706,151 +79485,151 @@
|
|
77706 |
<line num="1004" type="stmt" count="0"/>
|
77707 |
<line num="1005" type="stmt" count="0"/>
|
77708 |
<line num="1006" type="stmt" count="0"/>
|
77709 |
-
<line num="1019" type="stmt" count="
|
77710 |
-
<line num="1020" type="stmt" count="
|
77711 |
-
<line num="1021" type="stmt" count="
|
77712 |
-
<line num="1022" type="stmt" count="
|
77713 |
-
<line num="1023" type="stmt" count="
|
77714 |
-
<line num="1024" type="stmt" count="
|
77715 |
-
<line num="1026" type="stmt" count="
|
77716 |
-
<line num="1039" type="stmt" count="
|
77717 |
<line num="1040" type="stmt" count="0"/>
|
77718 |
-
<line num="1041" type="stmt" count="
|
77719 |
<line num="1042" type="stmt" count="0"/>
|
77720 |
<line num="1043" type="stmt" count="0"/>
|
77721 |
<line num="1045" type="stmt" count="0"/>
|
77722 |
-
<line num="1047" type="stmt" count="
|
77723 |
-
<line num="1048" type="stmt" count="
|
77724 |
-
<line num="1051" type="stmt" count="
|
77725 |
<line num="1063" type="stmt" count="0"/>
|
77726 |
<line num="1064" type="stmt" count="0"/>
|
77727 |
-
<line num="1077" type="stmt" count="
|
77728 |
-
<line num="1078" type="stmt" count="
|
77729 |
<line num="1081" type="stmt" count="0"/>
|
77730 |
<line num="1082" type="stmt" count="0"/>
|
77731 |
<line num="1083" type="stmt" count="0"/>
|
77732 |
<line num="1084" type="stmt" count="0"/>
|
77733 |
<line num="1086" type="stmt" count="0"/>
|
77734 |
-
<line num="1098" type="stmt" count="
|
77735 |
-
<line num="1100" type="stmt" count="
|
77736 |
-
<line num="1101" type="stmt" count="
|
77737 |
-
<line num="1104" type="stmt" count="
|
77738 |
-
<line num="1106" type="stmt" count="
|
77739 |
<line num="1107" type="stmt" count="0"/>
|
77740 |
<line num="1108" type="stmt" count="0"/>
|
77741 |
-
<line num="1110" type="stmt" count="
|
77742 |
-
<line num="1113" type="stmt" count="
|
77743 |
-
<line num="1115" type="stmt" count="
|
77744 |
<line num="1116" type="stmt" count="0"/>
|
77745 |
<line num="1117" type="stmt" count="0"/>
|
77746 |
-
<line num="1119" type="stmt" count="
|
77747 |
-
<line num="1121" type="stmt" count="
|
77748 |
<line num="1122" type="stmt" count="0"/>
|
77749 |
<line num="1123" type="stmt" count="0"/>
|
77750 |
-
<line num="1125" type="stmt" count="
|
77751 |
-
<line num="1126" type="stmt" count="
|
77752 |
-
<line num="1128" type="stmt" count="
|
77753 |
-
<line num="1130" type="stmt" count="
|
77754 |
-
<line num="1131" type="stmt" count="
|
77755 |
-
<line num="1132" type="stmt" count="
|
77756 |
-
<line num="1133" type="stmt" count="
|
77757 |
-
<line num="1134" type="stmt" count="
|
77758 |
-
<line num="1135" type="stmt" count="
|
77759 |
<line num="1136" type="stmt" count="0"/>
|
77760 |
<line num="1137" type="stmt" count="0"/>
|
77761 |
<line num="1138" type="stmt" count="0"/>
|
77762 |
<line num="1139" type="stmt" count="0"/>
|
77763 |
<line num="1140" type="stmt" count="0"/>
|
77764 |
<line num="1141" type="stmt" count="0"/>
|
77765 |
-
<line num="1142" type="stmt" count="
|
77766 |
-
<line num="1143" type="stmt" count="
|
77767 |
-
<line num="1144" type="stmt" count="
|
77768 |
-
<line num="1146" type="stmt" count="
|
77769 |
-
<line num="1147" type="stmt" count="
|
77770 |
-
<line num="1148" type="stmt" count="
|
77771 |
-
<line num="1150" type="stmt" count="
|
77772 |
-
<line num="1151" type="stmt" count="
|
77773 |
<line num="1152" type="stmt" count="0"/>
|
77774 |
<line num="1153" type="stmt" count="0"/>
|
77775 |
<line num="1154" type="stmt" count="0"/>
|
77776 |
-
<line num="1155" type="stmt" count="
|
77777 |
-
<line num="1156" type="stmt" count="
|
77778 |
-
<line num="1158" type="stmt" count="
|
77779 |
-
<line num="1159" type="stmt" count="
|
77780 |
-
<line num="1160" type="stmt" count="
|
77781 |
-
<line num="1162" type="stmt" count="
|
77782 |
-
<line num="1163" type="stmt" count="
|
77783 |
-
<line num="1174" type="stmt" count="
|
77784 |
-
<line num="1175" type="stmt" count="
|
77785 |
-
<line num="1176" type="stmt" count="
|
77786 |
-
<line num="1177" type="stmt" count="
|
77787 |
-
<line num="1178" type="stmt" count="
|
77788 |
-
<line num="1179" type="stmt" count="
|
77789 |
-
<line num="1180" type="stmt" count="
|
77790 |
-
<line num="1182" type="stmt" count="
|
77791 |
-
<line num="1183" type="stmt" count="
|
77792 |
-
<line num="1184" type="stmt" count="
|
77793 |
-
<line num="1185" type="stmt" count="
|
77794 |
-
<line num="1187" type="stmt" count="
|
77795 |
<line num="1188" type="stmt" count="0"/>
|
77796 |
<line num="1189" type="stmt" count="0"/>
|
77797 |
-
<line num="1191" type="stmt" count="
|
77798 |
-
<line num="1192" type="stmt" count="
|
77799 |
-
<line num="1193" type="stmt" count="
|
77800 |
-
<line num="1194" type="stmt" count="
|
77801 |
-
<line num="1195" type="stmt" count="
|
77802 |
-
<line num="1197" type="stmt" count="
|
77803 |
-
<line num="1198" type="stmt" count="
|
77804 |
-
<line num="1199" type="stmt" count="
|
77805 |
-
<line num="1200" type="stmt" count="
|
77806 |
-
<line num="1201" type="stmt" count="
|
77807 |
-
<line num="1204" type="stmt" count="
|
77808 |
<line num="1205" type="stmt" count="0"/>
|
77809 |
<line num="1206" type="stmt" count="0"/>
|
77810 |
<line num="1207" type="stmt" count="0"/>
|
77811 |
<line num="1208" type="stmt" count="0"/>
|
77812 |
-
<line num="1210" type="stmt" count="
|
77813 |
-
<line num="1223" type="stmt" count="
|
77814 |
-
<line num="1224" type="stmt" count="
|
77815 |
-
<line num="1225" type="stmt" count="
|
77816 |
-
<line num="1226" type="stmt" count="
|
77817 |
-
<line num="1227" type="stmt" count="
|
77818 |
-
<line num="1229" type="stmt" count="
|
77819 |
-
<line num="1230" type="stmt" count="
|
77820 |
-
<line num="1231" type="stmt" count="
|
77821 |
-
<line num="1232" type="stmt" count="
|
77822 |
-
<line num="1233" type="stmt" count="
|
77823 |
-
<line num="1235" type="stmt" count="
|
77824 |
-
<line num="1236" type="stmt" count="
|
77825 |
-
<line num="1237" type="stmt" count="
|
77826 |
-
<line num="1239" type="stmt" count="
|
77827 |
<line num="1240" type="stmt" count="0"/>
|
77828 |
<line num="1241" type="stmt" count="0"/>
|
77829 |
-
<line num="1244" type="stmt" count="
|
77830 |
<line num="1245" type="stmt" count="0"/>
|
77831 |
<line num="1246" type="stmt" count="0"/>
|
77832 |
<line num="1247" type="stmt" count="0"/>
|
77833 |
<line num="1248" type="stmt" count="0"/>
|
77834 |
-
<line num="1250" type="stmt" count="
|
77835 |
-
<line num="1252" type="stmt" count="
|
77836 |
-
<line num="1253" type="stmt" count="
|
77837 |
-
<line num="1254" type="stmt" count="
|
77838 |
-
<line num="1255" type="stmt" count="
|
77839 |
-
<line num="1256" type="stmt" count="
|
77840 |
-
<line num="1257" type="stmt" count="
|
77841 |
-
<line num="1259" type="stmt" count="
|
77842 |
-
<line num="1271" type="stmt" count="
|
77843 |
-
<line num="1272" type="stmt" count="
|
77844 |
-
<line num="1273" type="stmt" count="
|
77845 |
<line num="1274" type="stmt" count="0"/>
|
77846 |
-
<line num="1275" type="stmt" count="
|
77847 |
<line num="1276" type="stmt" count="0"/>
|
77848 |
-
<line num="1277" type="stmt" count="
|
77849 |
<line num="1278" type="stmt" count="0"/>
|
77850 |
<line num="1279" type="stmt" count="0"/>
|
77851 |
-
<line num="1281" type="stmt" count="
|
77852 |
-
<line num="1283" type="stmt" count="
|
77853 |
-
<line num="1285" type="stmt" count="
|
77854 |
<line num="1297" type="stmt" count="0"/>
|
77855 |
<line num="1298" type="stmt" count="0"/>
|
77856 |
<line num="1299" type="stmt" count="0"/>
|
@@ -77859,14 +79638,14 @@
|
|
77859 |
<line num="1303" type="stmt" count="0"/>
|
77860 |
<line num="1305" type="stmt" count="0"/>
|
77861 |
<line num="1306" type="stmt" count="0"/>
|
77862 |
-
<line num="1327" type="method" name="isValid" visibility="public" complexity="1" crap="1" count="
|
77863 |
-
<line num="1329" type="stmt" count="
|
77864 |
-
<line num="1339" type="method" name="create" visibility="public" complexity="2" crap="2.03" count="
|
77865 |
-
<line num="1341" type="stmt" count="
|
77866 |
-
<line num="1342" type="stmt" count="
|
77867 |
<line num="1343" type="stmt" count="0"/>
|
77868 |
-
<line num="1346" type="stmt" count="
|
77869 |
-
<line num="1348" type="stmt" count="
|
77870 |
<line num="1356" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
|
77871 |
<line num="1358" type="stmt" count="0"/>
|
77872 |
<line num="1359" type="stmt" count="0"/>
|
@@ -77899,18 +79678,18 @@
|
|
77899 |
<line num="1421" type="stmt" count="0"/>
|
77900 |
<line num="1424" type="method" name="close" visibility="public" complexity="1" crap="2" count="0"/>
|
77901 |
<line num="1426" type="stmt" count="0"/>
|
77902 |
-
<line num="1437" type="method" name="open" visibility="public" complexity="2" crap="2.06" count="
|
77903 |
-
<line num="1439" type="stmt" count="
|
77904 |
-
<line num="1440" type="stmt" count="
|
77905 |
<line num="1441" type="stmt" count="0"/>
|
77906 |
-
<line num="1444" type="stmt" count="
|
77907 |
-
<line num="1447" type="method" name="write" visibility="public" complexity="2" crap="2.06" count="
|
77908 |
-
<line num="1449" type="stmt" count="
|
77909 |
-
<line num="1450" type="stmt" count="
|
77910 |
<line num="1451" type="stmt" count="0"/>
|
77911 |
-
<line num="1453" type="stmt" count="
|
77912 |
-
<line num="1456" type="method" name="close" visibility="public" complexity="1" crap="1" count="
|
77913 |
-
<line num="1458" type="stmt" count="
|
77914 |
<line num="1471" type="method" name="open" visibility="public" complexity="2" crap="6" count="0"/>
|
77915 |
<line num="1473" type="stmt" count="0"/>
|
77916 |
<line num="1474" type="stmt" count="0"/>
|
@@ -77925,18 +79704,18 @@
|
|
77925 |
<line num="1492" type="method" name="close" visibility="public" complexity="1" crap="2" count="0"/>
|
77926 |
<line num="1494" type="stmt" count="0"/>
|
77927 |
<line num="1495" type="stmt" count="0"/>
|
77928 |
-
<line num="1514" type="method" name="isValid" visibility="public" complexity="1" crap="1" count="
|
77929 |
-
<line num="1516" type="stmt" count="
|
77930 |
-
<line num="1533" type="method" name="create" visibility="public" complexity="2" crap="2.03" count="
|
77931 |
-
<line num="1535" type="stmt" count="
|
77932 |
-
<line num="1536" type="stmt" count="
|
77933 |
<line num="1537" type="stmt" count="0"/>
|
77934 |
-
<line num="1539" type="stmt" count="
|
77935 |
-
<line num="1540" type="stmt" count="
|
77936 |
-
<line num="1543" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="
|
77937 |
-
<line num="1545" type="stmt" count="
|
77938 |
-
<line num="1546" type="stmt" count="
|
77939 |
-
<line num="1547" type="stmt" count="
|
77940 |
<line num="1553" type="method" name="databases" visibility="public" complexity="1" crap="2" count="0"/>
|
77941 |
<line num="1555" type="stmt" count="0"/>
|
77942 |
<line num="1558" type="method" name="show_create_table" visibility="public" complexity="1" crap="2" count="0"/>
|
@@ -78004,26 +79783,26 @@
|
|
78004 |
<line num="1834" type="stmt" count="0"/>
|
78005 |
<line num="1835" type="stmt" count="0"/>
|
78006 |
<line num="1837" type="stmt" count="0"/>
|
78007 |
-
<line num="1842" type="stmt" count="
|
78008 |
<line num="1847" type="stmt" count="3"/>
|
78009 |
<line num="1852" type="stmt" count="0"/>
|
78010 |
<line num="1857" type="stmt" count="0"/>
|
78011 |
<line num="1862" type="stmt" count="0"/>
|
78012 |
<line num="1867" type="stmt" count="0"/>
|
78013 |
-
<line num="1872" type="stmt" count="
|
78014 |
<line num="1873" type="stmt" count="0"/>
|
78015 |
-
<line num="1876" type="stmt" count="
|
78016 |
-
<line num="1877" type="stmt" count="
|
78017 |
<line num="1878" type="stmt" count="0"/>
|
78018 |
<line num="1879" type="stmt" count="0"/>
|
78019 |
<line num="1880" type="stmt" count="0"/>
|
78020 |
<line num="1881" type="stmt" count="0"/>
|
78021 |
-
<line num="1883" type="stmt" count="
|
78022 |
-
<line num="1884" type="stmt" count="
|
78023 |
-
<line num="1885" type="stmt" count="
|
78024 |
-
<line num="1886" type="stmt" count="
|
78025 |
-
<line num="1887" type="stmt" count="
|
78026 |
-
<line num="1888" type="stmt" count="
|
78027 |
<line num="1893" type="stmt" count="3"/>
|
78028 |
<line num="1894" type="stmt" count="3"/>
|
78029 |
<line num="1895" type="stmt" count="0"/>
|
@@ -78150,20 +79929,20 @@
|
|
78150 |
<line num="2058" type="stmt" count="0"/>
|
78151 |
<line num="2059" type="stmt" count="0"/>
|
78152 |
<line num="2063" type="stmt" count="0"/>
|
78153 |
-
<line num="2068" type="stmt" count="
|
78154 |
-
<line num="2069" type="stmt" count="
|
78155 |
-
<line num="2071" type="stmt" count="
|
78156 |
-
<line num="2072" type="stmt" count="
|
78157 |
-
<line num="2077" type="stmt" count="
|
78158 |
-
<line num="2078" type="stmt" count="
|
78159 |
-
<line num="2080" type="stmt" count="
|
78160 |
-
<line num="2081" type="stmt" count="
|
78161 |
-
<line num="2086" type="stmt" count="
|
78162 |
-
<line num="2087" type="stmt" count="
|
78163 |
-
<line num="2088" type="stmt" count="
|
78164 |
-
<line num="2093" type="stmt" count="
|
78165 |
-
<line num="2094" type="stmt" count="
|
78166 |
-
<line num="2095" type="stmt" count="
|
78167 |
<line num="2100" type="stmt" count="0"/>
|
78168 |
<line num="2101" type="stmt" count="0"/>
|
78169 |
<line num="2103" type="stmt" count="0"/>
|
@@ -78176,25 +79955,25 @@
|
|
78176 |
<line num="2125" type="stmt" count="0"/>
|
78177 |
<line num="2127" type="stmt" count="0"/>
|
78178 |
<line num="2128" type="stmt" count="0"/>
|
78179 |
-
<line num="2133" type="stmt" count="
|
78180 |
-
<line num="2139" type="stmt" count="
|
78181 |
-
<line num="2145" type="stmt" count="
|
78182 |
<line num="2150" type="stmt" count="0"/>
|
78183 |
<line num="2151" type="stmt" count="0"/>
|
78184 |
<line num="2152" type="stmt" count="0"/>
|
78185 |
<line num="2157" type="stmt" count="0"/>
|
78186 |
-
<line num="2162" type="stmt" count="
|
78187 |
-
<line num="2163" type="stmt" count="
|
78188 |
-
<line num="2164" type="stmt" count="
|
78189 |
-
<line num="2169" type="stmt" count="
|
78190 |
-
<line num="2174" type="stmt" count="
|
78191 |
-
<line num="2175" type="stmt" count="
|
78192 |
-
<line num="2176" type="stmt" count="
|
78193 |
-
<line num="2177" type="stmt" count="
|
78194 |
-
<line num="2182" type="stmt" count="
|
78195 |
-
<line num="2183" type="stmt" count="
|
78196 |
-
<line num="2184" type="stmt" count="
|
78197 |
-
<line num="2185" type="stmt" count="
|
78198 |
<line num="2190" type="stmt" count="0"/>
|
78199 |
<line num="2195" type="stmt" count="0"/>
|
78200 |
<line num="2200" type="stmt" count="0"/>
|
@@ -78204,9 +79983,9 @@
|
|
78204 |
<line num="2208" type="stmt" count="0"/>
|
78205 |
<line num="2209" type="stmt" count="0"/>
|
78206 |
<line num="2210" type="stmt" count="0"/>
|
78207 |
-
<line num="2215" type="stmt" count="
|
78208 |
-
<line num="2216" type="stmt" count="
|
78209 |
-
<line num="2217" type="stmt" count="
|
78210 |
<line num="2222" type="stmt" count="3"/>
|
78211 |
<line num="2223" type="stmt" count="3"/>
|
78212 |
<line num="2224" type="stmt" count="3"/>
|
@@ -78216,46 +79995,46 @@
|
|
78216 |
<line num="2232" type="stmt" count="0"/>
|
78217 |
<line num="2233" type="stmt" count="0"/>
|
78218 |
<line num="2234" type="stmt" count="0"/>
|
78219 |
-
<line num="2246" type="stmt" count="
|
78220 |
-
<line num="2247" type="stmt" count="
|
78221 |
-
<line num="2249" type="stmt" count="
|
78222 |
-
<line num="2250" type="stmt" count="
|
78223 |
-
<line num="2251" type="stmt" count="
|
78224 |
-
<line num="2252" type="stmt" count="
|
78225 |
-
<line num="2253" type="stmt" count="
|
78226 |
-
<line num="2254" type="stmt" count="
|
78227 |
-
<line num="2256" type="stmt" count="
|
78228 |
-
<line num="2257" type="stmt" count="
|
78229 |
-
<line num="2261" type="stmt" count="
|
78230 |
-
<line num="2263" type="stmt" count="
|
78231 |
-
<line num="2268" type="stmt" count="
|
78232 |
-
<line num="2269" type="stmt" count="
|
78233 |
-
<line num="2270" type="stmt" count="
|
78234 |
-
<line num="2271" type="stmt" count="
|
78235 |
-
<line num="2273" type="stmt" count="
|
78236 |
-
<line num="2274" type="stmt" count="
|
78237 |
-
<line num="2275" type="stmt" count="
|
78238 |
-
<line num="2276" type="stmt" count="
|
78239 |
-
<line num="2278" type="stmt" count="
|
78240 |
-
<line num="2279" type="stmt" count="
|
78241 |
-
<line num="2280" type="stmt" count="
|
78242 |
-
<line num="2281" type="stmt" count="
|
78243 |
-
<line num="2283" type="stmt" count="
|
78244 |
-
<line num="2288" type="stmt" count="
|
78245 |
-
<line num="2290" type="stmt" count="
|
78246 |
-
<line num="2291" type="stmt" count="
|
78247 |
-
<line num="2292" type="stmt" count="
|
78248 |
-
<line num="2294" type="stmt" count="
|
78249 |
-
<line num="2295" type="stmt" count="
|
78250 |
-
<line num="2296" type="stmt" count="
|
78251 |
-
<line num="2297" type="stmt" count="
|
78252 |
-
<line num="2298" type="stmt" count="
|
78253 |
-
<line num="2299" type="stmt" count="
|
78254 |
-
<line num="2300" type="stmt" count="
|
78255 |
-
<line num="2302" type="stmt" count="
|
78256 |
-
<line num="2315" type="stmt" count="
|
78257 |
<line num="2316" type="stmt" count="0"/>
|
78258 |
-
<line num="2318" type="stmt" count="
|
78259 |
<metrics loc="2320" ncloc="1775" classes="10" methods="61" coveredmethods="10" conditionals="0" coveredconditionals="0" statements="952" coveredstatements="521" elements="1013" coveredelements="531"/>
|
78260 |
</file>
|
78261 |
</package>
|
@@ -96393,6 +98172,6 @@
|
|
96393 |
<line num="16" type="stmt" count="0"/>
|
96394 |
<metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
|
96395 |
</file>
|
96396 |
-
<metrics files="
|
96397 |
</project>
|
96398 |
</coverage>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<coverage generated="1610459268">
|
3 |
+
<project timestamp="1610459268">
|
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">
|
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="21" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="60" coveredstatements="39" elements="67" coveredelements="41"/>
|
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="4"/>
|
1096 |
+
<line num="50" type="stmt" count="4"/>
|
1097 |
+
<line num="52" type="stmt" count="4"/>
|
1098 |
+
<line num="53" type="stmt" count="4"/>
|
1099 |
<line num="54" type="stmt" count="0"/>
|
1100 |
+
<line num="57" type="stmt" count="4"/>
|
1101 |
+
<line num="68" type="method" name="get_by_zip" visibility="public" complexity="3" crap="3.14" count="12"/>
|
1102 |
+
<line num="69" type="stmt" count="12"/>
|
1103 |
+
<line num="71" type="stmt" count="12"/>
|
1104 |
+
<line num="72" type="stmt" count="12"/>
|
1105 |
<line num="73" type="stmt" count="0"/>
|
1106 |
+
<line num="76" type="stmt" count="12"/>
|
1107 |
+
<line num="77" type="stmt" count="12"/>
|
1108 |
<line num="78" type="stmt" count="0"/>
|
1109 |
+
<line num="81" type="stmt" count="12"/>
|
1110 |
+
<line num="94" type="method" name="path_from_zip" visibility="public" complexity="1" crap="1" count="13"/>
|
1111 |
+
<line num="95" type="stmt" count="13"/>
|
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="2"/>
|
1121 |
+
<line num="136" type="stmt" count="2"/>
|
1122 |
+
<line num="138" type="stmt" count="2"/>
|
1123 |
<line num="139" type="stmt" count="0"/>
|
1124 |
+
<line num="142" type="stmt" count="2"/>
|
1125 |
+
<line num="143" type="stmt" count="2"/>
|
1126 |
+
<line num="146" type="stmt" count="2"/>
|
1127 |
+
<line num="147" type="stmt" count="2"/>
|
1128 |
+
<line num="148" type="stmt" count="2"/>
|
1129 |
+
<line num="149" type="stmt" count="2"/>
|
1130 |
<line num="153" type="stmt" count="0"/>
|
1131 |
<line num="154" type="stmt" count="0"/>
|
1132 |
<line num="156" type="stmt" count="0"/>
|
1133 |
+
<line num="169" type="method" name="write" visibility="public" complexity="8" crap="9.40" count="9"/>
|
1134 |
+
<line num="170" type="stmt" count="9"/>
|
1135 |
<line num="171" type="stmt" count="0"/>
|
1136 |
+
<line num="174" type="stmt" count="9"/>
|
1137 |
+
<line num="176" type="stmt" count="9"/>
|
1138 |
+
<line num="177" type="stmt" count="9"/>
|
1139 |
<line num="178" type="stmt" count="0"/>
|
1140 |
+
<line num="181" type="stmt" count="9"/>
|
1141 |
+
<line num="182" type="stmt" count="9"/>
|
1142 |
<line num="183" type="stmt" count="0"/>
|
1143 |
+
<line num="187" type="stmt" count="9"/>
|
1144 |
<line num="188" type="stmt" count="0"/>
|
1145 |
<line num="189" type="stmt" count="0"/>
|
1146 |
+
<line num="197" type="stmt" count="9"/>
|
1147 |
+
<line num="198" type="stmt" count="9"/>
|
1148 |
+
<line num="199" type="stmt" count="9"/>
|
1149 |
+
<line num="200" type="stmt" count="1"/>
|
1150 |
+
<line num="204" type="stmt" count="9"/>
|
1151 |
+
<line num="205" type="stmt" count="9"/>
|
1152 |
+
<line num="206" type="stmt" count="0"/>
|
1153 |
+
<line num="210" type="stmt" count="9"/>
|
1154 |
+
<line num="218" type="stmt" count="9"/>
|
1155 |
+
<line num="219" type="stmt" count="9"/>
|
1156 |
+
<line num="220" type="stmt" count="0"/>
|
1157 |
+
<line num="224" type="stmt" count="9"/>
|
1158 |
+
<line num="226" type="stmt" count="9"/>
|
1159 |
+
<metrics loc="228" ncloc="110" classes="1" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="60" coveredstatements="39" elements="67" coveredelements="41"/>
|
1160 |
</file>
|
1161 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive.php">
|
1162 |
<class name="Boldgrid_Backup_Admin_Archive" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
1163 |
+
<metrics complexity="78" methods="26" coveredmethods="17" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="104" elements="242" coveredelements="121"/>
|
1164 |
</class>
|
1165 |
+
<line num="169" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="41"/>
|
1166 |
+
<line num="170" type="stmt" count="41"/>
|
1167 |
+
<line num="171" type="stmt" count="12"/>
|
1168 |
+
<line num="172" type="stmt" count="12"/>
|
1169 |
+
<line num="174" type="stmt" count="41"/>
|
1170 |
+
<line num="175" type="stmt" count="41"/>
|
1171 |
+
<line num="185" type="method" name="delete" visibility="public" complexity="1" crap="1" count="4"/>
|
1172 |
+
<line num="186" type="stmt" count="4"/>
|
1173 |
+
<line num="188" type="stmt" count="4"/>
|
1174 |
+
<line num="190" type="stmt" count="4"/>
|
1175 |
+
<line num="201" type="method" name="get_attribute" visibility="public" complexity="2" crap="2" count="9"/>
|
1176 |
+
<line num="202" type="stmt" count="9"/>
|
1177 |
+
<line num="224" type="method" name="get_by_name" visibility="public" complexity="3" crap="12" count="0"/>
|
1178 |
+
<line num="225" type="stmt" count="0"/>
|
1179 |
+
<line num="227" type="stmt" count="0"/>
|
1180 |
+
<line num="229" type="stmt" count="0"/>
|
1181 |
+
<line num="230" type="stmt" count="0"/>
|
1182 |
+
<line num="231" type="stmt" count="0"/>
|
1183 |
+
<line num="232" type="stmt" count="0"/>
|
1184 |
+
<line num="233" type="stmt" count="0"/>
|
1185 |
+
<line num="235" type="stmt" count="0"/>
|
1186 |
+
<line num="237" type="stmt" count="0"/>
|
1187 |
+
<line num="249" type="method" name="get_file" visibility="public" complexity="5" crap="15.55" count="1"/>
|
1188 |
+
<line num="250" type="stmt" count="1"/>
|
1189 |
+
<line num="251" type="stmt" count="1"/>
|
1190 |
+
<line num="254" type="stmt" count="0"/>
|
1191 |
+
<line num="256" type="stmt" count="0"/>
|
1192 |
+
<line num="259" type="stmt" count="0"/>
|
1193 |
+
<line num="260" type="stmt" count="0"/>
|
1194 |
+
<line num="261" type="stmt" count="0"/>
|
1195 |
+
<line num="263" type="stmt" count="0"/>
|
1196 |
+
<line num="274" type="method" name="get_dump_file" visibility="public" complexity="1" crap="1" count="1"/>
|
1197 |
+
<line num="280" type="stmt" count="1"/>
|
1198 |
+
<line num="290" type="method" name="get_filesize" visibility="public" complexity="2" crap="2" count="9"/>
|
1199 |
+
<line num="291" type="stmt" count="9"/>
|
1200 |
+
<line num="292" type="stmt" count="4"/>
|
1201 |
+
<line num="294" type="stmt" count="9"/>
|
1202 |
+
<line num="305" type="method" name="get_id" visibility="public" complexity="1" crap="1" count="4"/>
|
1203 |
+
<line num="306" type="stmt" count="4"/>
|
1204 |
+
<line num="316" type="method" name="get_index" visibility="public" complexity="3" crap="3" count="13"/>
|
1205 |
+
<line num="317" type="stmt" count="13"/>
|
1206 |
+
<line num="319" type="stmt" count="13"/>
|
1207 |
+
<line num="321" type="stmt" count="13"/>
|
1208 |
+
<line num="322" type="stmt" count="13"/>
|
1209 |
+
<line num="323" type="stmt" count="12"/>
|
1210 |
+
<line num="324" type="stmt" count="12"/>
|
1211 |
+
<line num="326" type="stmt" count="13"/>
|
1212 |
+
<line num="328" type="stmt" count="13"/>
|
1213 |
+
<line num="339" type="method" name="get_key" visibility="public" complexity="1" crap="1" count="1"/>
|
1214 |
+
<line num="340" type="stmt" count="1"/>
|
1215 |
+
<line num="350" type="method" name="init" visibility="public" complexity="7" crap="7" count="13"/>
|
1216 |
+
<line num="351" type="stmt" count="13"/>
|
1217 |
+
<line num="353" type="stmt" count="13"/>
|
1218 |
+
<line num="354" type="stmt" count="1"/>
|
1219 |
+
<line num="357" type="stmt" count="13"/>
|
1220 |
+
<line num="359" type="stmt" count="13"/>
|
1221 |
+
<line num="360" type="stmt" count="13"/>
|
1222 |
+
<line num="362" type="stmt" count="13"/>
|
1223 |
+
<line num="363" type="stmt" count="13"/>
|
1224 |
+
<line num="365" type="stmt" count="13"/>
|
1225 |
+
<line num="366" type="stmt" count="13"/>
|
1226 |
+
<line num="369" type="stmt" count="13"/>
|
1227 |
+
<line num="370" type="stmt" count="13"/>
|
1228 |
+
<line num="371" type="stmt" count="2"/>
|
1229 |
+
<line num="372" type="stmt" count="2"/>
|
1230 |
+
<line num="374" type="stmt" count="13"/>
|
1231 |
+
<line num="375" type="stmt" count="12"/>
|
1232 |
+
<line num="377" type="stmt" count="12"/>
|
1233 |
+
<line num="378" type="stmt" count="12"/>
|
1234 |
+
<line num="386" type="stmt" count="13"/>
|
1235 |
+
<line num="388" type="stmt" count="13"/>
|
1236 |
+
<line num="390" type="stmt" count="13"/>
|
1237 |
+
<line num="391" type="stmt" count="13"/>
|
1238 |
+
<line num="403" type="method" name="init_by_filename" visibility="public" complexity="1" crap="1" count="12"/>
|
1239 |
+
<line num="404" type="stmt" count="12"/>
|
1240 |
+
<line num="406" type="stmt" count="12"/>
|
1241 |
+
<line num="407" type="stmt" count="12"/>
|
1242 |
+
<line num="417" type="method" name="init_by_key" visibility="public" complexity="3" crap="3" count="2"/>
|
1243 |
+
<line num="418" type="stmt" count="2"/>
|
1244 |
+
<line num="420" type="stmt" count="2"/>
|
1245 |
+
<line num="422" type="stmt" count="2"/>
|
1246 |
+
<line num="423" type="stmt" count="1"/>
|
1247 |
+
<line num="426" type="stmt" count="2"/>
|
1248 |
+
<line num="428" type="stmt" count="2"/>
|
1249 |
+
<line num="429" type="stmt" count="2"/>
|
1250 |
+
<line num="430" type="stmt" count="2"/>
|
1251 |
+
<line num="436" type="stmt" count="2"/>
|
1252 |
+
<line num="445" type="method" name="init_by_latest" visibility="public" complexity="2" crap="2" count="1"/>
|
1253 |
+
<line num="446" type="stmt" count="1"/>
|
1254 |
+
<line num="448" type="stmt" count="1"/>
|
1255 |
+
<line num="449" type="stmt" count="1"/>
|
1256 |
+
<line num="450" type="stmt" count="1"/>
|
1257 |
+
<line num="451" type="stmt" count="1"/>
|
1258 |
+
<line num="461" type="method" name="is_archive" visibility="public" complexity="3" crap="3" count="3"/>
|
1259 |
+
<line num="462" type="stmt" count="3"/>
|
1260 |
+
<line num="463" type="stmt" count="3"/>
|
1261 |
+
<line num="464" type="stmt" count="3"/>
|
1262 |
+
<line num="466" type="stmt" count="3"/>
|
1263 |
+
<line num="467" type="stmt" count="3"/>
|
1264 |
+
<line num="468" type="stmt" count="2"/>
|
1265 |
+
<line num="469" type="stmt" count="2"/>
|
1266 |
+
<line num="471" type="stmt" count="3"/>
|
1267 |
+
<line num="473" type="stmt" count="3"/>
|
1268 |
+
<line num="487" type="method" name="is_site_archive" visibility="public" complexity="4" crap="4.18" count="13"/>
|
1269 |
+
<line num="488" type="stmt" count="13"/>
|
1270 |
+
<line num="491" type="stmt" count="13"/>
|
1271 |
+
<line num="492" type="stmt" count="13"/>
|
1272 |
+
<line num="493" type="stmt" count="13"/>
|
1273 |
+
<line num="497" type="stmt" count="13"/>
|
1274 |
+
<line num="498" type="stmt" count="0"/>
|
1275 |
+
<line num="502" type="stmt" count="13"/>
|
1276 |
+
<line num="503" type="stmt" count="0"/>
|
1277 |
+
<line num="506" type="stmt" count="13"/>
|
1278 |
+
<line num="520" type="method" name="is_stored_locally" visibility="public" complexity="2" crap="2" count="1"/>
|
1279 |
+
<line num="521" type="stmt" count="1"/>
|
1280 |
+
<line num="523" type="stmt" count="1"/>
|
1281 |
+
<line num="524" type="stmt" count="1"/>
|
1282 |
+
<line num="537" type="method" name="is_stored_remotely" visibility="public" complexity="2" crap="2" count="1"/>
|
1283 |
+
<line num="538" type="stmt" count="1"/>
|
1284 |
+
<line num="540" type="stmt" count="1"/>
|
1285 |
+
<line num="541" type="stmt" count="1"/>
|
1286 |
+
<line num="549" type="method" name="reset" visibility="public" complexity="1" crap="1" count="13"/>
|
1287 |
+
<line num="550" type="stmt" count="13"/>
|
1288 |
+
<line num="551" type="stmt" count="13"/>
|
1289 |
+
<line num="552" type="stmt" count="13"/>
|
1290 |
+
<line num="553" type="stmt" count="13"/>
|
1291 |
+
<line num="554" type="stmt" count="13"/>
|
1292 |
+
<line num="555" type="stmt" count="13"/>
|
1293 |
+
<line num="556" type="stmt" count="13"/>
|
1294 |
+
<line num="567" type="method" name="set_attribute" visibility="public" complexity="3" crap="12" count="0"/>
|
1295 |
+
<line num="568" type="stmt" count="0"/>
|
1296 |
+
<line num="571" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1297 |
<line num="572" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1298 |
<line num="588" type="stmt" count="0"/>
|
1299 |
+
<line num="590" type="stmt" count="0"/>
|
1300 |
+
<line num="592" type="stmt" count="0"/>
|
1301 |
+
<line num="602" type="method" name="set_id" visibility="public" complexity="1" crap="1" count="4"/>
|
1302 |
+
<line num="603" type="stmt" count="4"/>
|
1303 |
+
<line num="604" type="stmt" count="4"/>
|
1304 |
+
<line num="615" type="method" name="update_timestamp" visibility="public" complexity="3" crap="12" count="0"/>
|
1305 |
+
<line num="617" type="stmt" count="0"/>
|
1306 |
+
<line num="618" type="stmt" count="0"/>
|
1307 |
+
<line num="621" type="stmt" count="0"/>
|
1308 |
+
<line num="634" type="method" name="validate_link_request" visibility="public" complexity="8" crap="72" count="0"/>
|
1309 |
<line num="635" type="stmt" count="0"/>
|
|
|
|
|
1310 |
<line num="638" type="stmt" count="0"/>
|
1311 |
<line num="639" type="stmt" count="0"/>
|
1312 |
<line num="640" type="stmt" count="0"/>
|
1313 |
+
<line num="643" type="stmt" count="0"/>
|
|
|
1314 |
<line num="644" type="stmt" count="0"/>
|
1315 |
<line num="645" type="stmt" count="0"/>
|
|
|
|
|
1316 |
<line num="648" type="stmt" count="0"/>
|
1317 |
<line num="649" type="stmt" count="0"/>
|
1318 |
<line num="650" type="stmt" count="0"/>
|
|
|
1319 |
<line num="652" type="stmt" count="0"/>
|
1320 |
+
<line num="653" type="stmt" count="0"/>
|
1321 |
+
<line num="656" type="stmt" count="0"/>
|
|
|
1322 |
<line num="659" type="stmt" count="0"/>
|
1323 |
<line num="660" type="stmt" count="0"/>
|
1324 |
<line num="661" type="stmt" count="0"/>
|
|
|
1325 |
<line num="663" type="stmt" count="0"/>
|
|
|
1326 |
<line num="665" type="stmt" count="0"/>
|
1327 |
<line num="666" type="stmt" count="0"/>
|
1328 |
+
<line num="667" type="stmt" count="0"/>
|
1329 |
<line num="669" type="stmt" count="0"/>
|
1330 |
<line num="670" type="stmt" count="0"/>
|
1331 |
<line num="672" type="stmt" count="0"/>
|
1332 |
<line num="673" type="stmt" count="0"/>
|
1333 |
+
<line num="674" type="stmt" count="0"/>
|
1334 |
+
<line num="676" type="stmt" count="0"/>
|
1335 |
+
<line num="692" type="method" name="generate_download_link" visibility="public" complexity="2" crap="6" count="0"/>
|
1336 |
+
<line num="693" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
1337 |
<line num="695" type="stmt" count="0"/>
|
1338 |
+
<line num="696" type="stmt" count="0"/>
|
1339 |
<line num="697" type="stmt" count="0"/>
|
|
|
1340 |
<line num="699" type="stmt" count="0"/>
|
1341 |
<line num="700" type="stmt" count="0"/>
|
1342 |
+
<line num="702" type="stmt" count="0"/>
|
1343 |
+
<line num="704" type="stmt" count="0"/>
|
1344 |
+
<line num="705" type="stmt" count="0"/>
|
1345 |
+
<line num="706" type="stmt" count="0"/>
|
1346 |
+
<line num="707" type="stmt" count="0"/>
|
1347 |
+
<line num="708" type="stmt" count="0"/>
|
1348 |
+
<line num="709" type="stmt" count="0"/>
|
1349 |
+
<line num="712" type="stmt" count="0"/>
|
1350 |
+
<line num="747" type="method" name="write_results_file" visibility="public" complexity="6" crap="42" count="0"/>
|
1351 |
+
<line num="748" type="stmt" count="0"/>
|
1352 |
+
<line num="749" type="stmt" count="0"/>
|
1353 |
+
<line num="750" type="stmt" count="0"/>
|
1354 |
+
<line num="751" type="stmt" count="0"/>
|
1355 |
+
<line num="753" type="stmt" count="0"/>
|
1356 |
+
<line num="754" type="stmt" count="0"/>
|
1357 |
+
<line num="755" type="stmt" count="0"/>
|
1358 |
+
<line num="756" type="stmt" count="0"/>
|
1359 |
+
<line num="757" type="stmt" count="0"/>
|
1360 |
+
<line num="758" type="stmt" count="0"/>
|
1361 |
+
<line num="759" type="stmt" count="0"/>
|
1362 |
+
<line num="760" type="stmt" count="0"/>
|
1363 |
+
<line num="761" type="stmt" count="0"/>
|
1364 |
+
<line num="762" type="stmt" count="0"/>
|
1365 |
+
<line num="763" type="stmt" count="0"/>
|
1366 |
+
<line num="765" type="stmt" count="0"/>
|
1367 |
+
<line num="766" type="stmt" count="0"/>
|
1368 |
+
<line num="767" type="stmt" count="0"/>
|
1369 |
+
<line num="768" type="stmt" count="0"/>
|
1370 |
+
<line num="769" type="stmt" count="0"/>
|
1371 |
+
<line num="770" type="stmt" count="0"/>
|
1372 |
+
<line num="771" type="stmt" count="0"/>
|
1373 |
+
<line num="772" type="stmt" count="0"/>
|
1374 |
+
<line num="773" type="stmt" count="0"/>
|
1375 |
+
<line num="775" type="stmt" count="0"/>
|
1376 |
+
<line num="778" type="stmt" count="0"/>
|
1377 |
+
<line num="779" type="stmt" count="0"/>
|
1378 |
+
<line num="780" type="stmt" count="0"/>
|
1379 |
+
<line num="781" type="stmt" count="0"/>
|
1380 |
+
<line num="782" type="stmt" count="0"/>
|
1381 |
+
<line num="783" type="stmt" count="0"/>
|
1382 |
+
<line num="784" type="stmt" count="0"/>
|
1383 |
+
<line num="785" type="stmt" count="0"/>
|
1384 |
+
<line num="786" type="stmt" count="0"/>
|
1385 |
+
<line num="787" type="stmt" count="0"/>
|
1386 |
+
<line num="789" type="stmt" count="0"/>
|
1387 |
+
<line num="790" type="stmt" count="0"/>
|
1388 |
+
<line num="791" type="stmt" count="0"/>
|
1389 |
+
<line num="793" type="stmt" count="0"/>
|
1390 |
+
<line num="794" type="stmt" count="0"/>
|
1391 |
+
<line num="796" type="stmt" count="0"/>
|
1392 |
+
<line num="808" type="method" name="delete_from_archive" visibility="public" complexity="9" crap="12.69" count="9"/>
|
1393 |
+
<line num="809" type="stmt" count="9"/>
|
1394 |
+
<line num="810" type="stmt" count="9"/>
|
1395 |
+
<line num="811" type="stmt" count="9"/>
|
1396 |
+
<line num="813" type="stmt" count="9"/>
|
1397 |
+
<line num="814" type="stmt" count="9"/>
|
1398 |
+
<line num="815" type="stmt" count="9"/>
|
1399 |
+
<line num="816" type="stmt" count="0"/>
|
1400 |
+
<line num="818" type="stmt" count="0"/>
|
1401 |
+
<line num="819" type="stmt" count="0"/>
|
1402 |
+
<line num="820" type="stmt" count="0"/>
|
1403 |
+
<line num="821" type="stmt" count="0"/>
|
1404 |
+
<line num="822" type="stmt" count="9"/>
|
1405 |
+
<line num="823" type="stmt" count="9"/>
|
1406 |
+
<line num="824" type="stmt" count="9"/>
|
1407 |
+
<metrics loc="825" ncloc="389" classes="1" methods="26" coveredmethods="17" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="104" elements="242" coveredelements="121"/>
|
1408 |
</file>
|
1409 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archiver-utility.php">
|
1410 |
<class name="Boldgrid_Backup_Admin_Archiver_Utility" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archiver">
|
1413 |
<line num="38" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
1414 |
<line num="39" type="stmt" count="29"/>
|
1415 |
<line num="40" type="stmt" count="29"/>
|
1416 |
+
<line num="51" type="method" name="is_full_backup" visibility="public" complexity="7" crap="11.30" count="9"/>
|
1417 |
+
<line num="52" type="stmt" count="9"/>
|
1418 |
<line num="53" type="stmt" count="0"/>
|
1419 |
+
<line num="56" type="stmt" count="9"/>
|
1420 |
<line num="57" type="stmt" count="0"/>
|
1421 |
+
<line num="60" type="stmt" count="9"/>
|
1422 |
<line num="61" type="stmt" count="0"/>
|
1423 |
+
<line num="64" type="stmt" count="9"/>
|
1424 |
<line num="65" type="stmt" count="0"/>
|
1425 |
+
<line num="68" type="stmt" count="9"/>
|
1426 |
<metrics loc="70" ncloc="29" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="7" elements="13" coveredelements="8"/>
|
1427 |
</file>
|
1428 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archives-all.php">
|
1429 |
<class name="Boldgrid_Backup_Admin_Archives_All" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archives">
|
1430 |
+
<metrics complexity="20" methods="5" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="39" elements="60" coveredelements="42"/>
|
1431 |
</class>
|
1432 |
<line num="97" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
1433 |
<line num="98" type="stmt" count="29"/>
|
1449 |
<line num="130" type="stmt" count="0"/>
|
1450 |
<line num="131" type="stmt" count="0"/>
|
1451 |
<line num="132" type="stmt" count="0"/>
|
1452 |
+
<line num="143" type="method" name="has_location_type" visibility="public" complexity="4" crap="4" count="1"/>
|
1453 |
+
<line num="144" type="stmt" count="1"/>
|
1454 |
+
<line num="145" type="stmt" count="1"/>
|
1455 |
+
<line num="146" type="stmt" count="1"/>
|
1456 |
+
<line num="148" type="stmt" count="1"/>
|
1457 |
+
<line num="150" type="stmt" count="1"/>
|
1458 |
+
<line num="158" type="method" name="init_location_count" visibility="public" complexity="6" crap="6.01" count="1"/>
|
1459 |
+
<line num="160" type="stmt" count="1"/>
|
1460 |
+
<line num="162" type="stmt" count="1"/>
|
1461 |
+
<line num="164" type="stmt" count="1"/>
|
1462 |
<line num="165" type="stmt" count="0"/>
|
1463 |
+
<line num="168" type="stmt" count="1"/>
|
1464 |
+
<line num="169" type="stmt" count="1"/>
|
1465 |
+
<line num="170" type="stmt" count="1"/>
|
1466 |
+
<line num="173" type="stmt" count="1"/>
|
1467 |
+
<line num="174" type="stmt" count="1"/>
|
1468 |
+
<line num="175" type="stmt" count="1"/>
|
1469 |
+
<line num="177" type="stmt" count="1"/>
|
1470 |
+
<line num="178" type="stmt" count="1"/>
|
1471 |
+
<line num="179" type="stmt" count="1"/>
|
1472 |
+
<line num="180" type="stmt" count="1"/>
|
1473 |
+
<line num="187" type="method" name="init" visibility="public" complexity="3" crap="3" count="1"/>
|
1474 |
+
<line num="188" type="stmt" count="1"/>
|
1475 |
+
<line num="189" type="stmt" count="1"/>
|
1476 |
+
<line num="192" type="stmt" count="1"/>
|
1477 |
+
<line num="194" type="stmt" count="1"/>
|
1478 |
+
<line num="195" type="stmt" count="1"/>
|
1479 |
+
<line num="196" type="stmt" count="1"/>
|
1480 |
+
<line num="197" type="stmt" count="1"/>
|
1481 |
+
<line num="198" type="stmt" count="1"/>
|
1482 |
+
<line num="201" type="stmt" count="1"/>
|
1483 |
+
<line num="202" type="stmt" count="1"/>
|
1484 |
+
<line num="203" type="stmt" count="1"/>
|
1485 |
+
<line num="204" type="stmt" count="1"/>
|
1486 |
+
<line num="207" type="stmt" count="1"/>
|
1487 |
+
<line num="208" type="stmt" count="1"/>
|
1488 |
+
<line num="210" type="stmt" count="1"/>
|
1489 |
+
<line num="212" type="stmt" count="1"/>
|
1490 |
+
<line num="214" type="stmt" count="1"/>
|
1491 |
+
<line num="215" type="stmt" count="1"/>
|
1492 |
+
<metrics loc="216" ncloc="108" classes="1" methods="5" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="39" elements="60" coveredelements="42"/>
|
1493 |
</file>
|
1494 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archives.php">
|
1495 |
<class name="Boldgrid_Backup_Admin_Archives" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2192 |
</file>
|
2193 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-backup-dir.php">
|
2194 |
<class name="Boldgrid_Backup_Admin_Backup_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Backup">
|
2195 |
+
<metrics complexity="73" methods="17" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="217" coveredstatements="153" elements="234" coveredelements="162"/>
|
2196 |
</class>
|
2197 |
<line num="64" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
2198 |
<line num="65" type="stmt" count="29"/>
|
2199 |
<line num="66" type="stmt" count="29"/>
|
2200 |
+
<line num="75" type="method" name="can_exec_write" visibility="public" complexity="1" crap="1" count="2"/>
|
2201 |
+
<line num="76" type="stmt" count="2"/>
|
2202 |
+
<line num="78" type="stmt" count="2"/>
|
2203 |
<line num="89" type="method" name="create" visibility="public" complexity="11" crap="11.15" count="3"/>
|
2204 |
<line num="90" type="stmt" count="3"/>
|
2205 |
<line num="93" type="stmt" count="3"/>
|
2257 |
<line num="171" type="stmt" count="3"/>
|
2258 |
<line num="172" type="stmt" count="3"/>
|
2259 |
<line num="174" type="stmt" count="3"/>
|
2260 |
+
<line num="184" type="method" name="dirlist" visibility="public" complexity="2" crap="2" count="13"/>
|
2261 |
+
<line num="185" type="stmt" count="13"/>
|
2262 |
+
<line num="187" type="stmt" count="13"/>
|
2263 |
+
<line num="189" type="stmt" count="13"/>
|
2264 |
+
<line num="190" type="stmt" count="13"/>
|
2265 |
+
<line num="191" type="stmt" count="13"/>
|
2266 |
+
<line num="193" type="stmt" count="13"/>
|
2267 |
+
<line num="208" type="method" name="dirlist_containing" visibility="public" complexity="5" crap="5.39" count="9"/>
|
2268 |
+
<line num="209" type="stmt" count="9"/>
|
2269 |
+
<line num="210" type="stmt" count="9"/>
|
2270 |
+
<line num="213" type="stmt" count="9"/>
|
2271 |
+
<line num="215" type="stmt" count="9"/>
|
2272 |
+
<line num="217" type="stmt" count="9"/>
|
2273 |
<line num="218" type="stmt" count="0"/>
|
2274 |
<line num="219" type="stmt" count="0"/>
|
2275 |
+
<line num="220" type="stmt" count="9"/>
|
2276 |
+
<line num="221" type="stmt" count="9"/>
|
2277 |
+
<line num="223" type="stmt" count="9"/>
|
2278 |
<line num="224" type="stmt" count="0"/>
|
2279 |
<line num="225" type="stmt" count="0"/>
|
2280 |
+
<line num="226" type="stmt" count="9"/>
|
2281 |
+
<line num="227" type="stmt" count="9"/>
|
2282 |
+
<line num="228" type="stmt" count="9"/>
|
2283 |
+
<line num="230" type="stmt" count="9"/>
|
2284 |
+
<line num="241" type="method" name="exists" visibility="public" complexity="1" crap="1" count="13"/>
|
2285 |
+
<line num="242" type="stmt" count="13"/>
|
2286 |
+
<line num="252" type="method" name="get" visibility="public" complexity="4" crap="4" count="14"/>
|
2287 |
+
<line num="255" type="stmt" count="14"/>
|
2288 |
+
<line num="256" type="stmt" count="13"/>
|
2289 |
+
<line num="260" type="stmt" count="3"/>
|
2290 |
+
<line num="261" type="stmt" count="3"/>
|
2291 |
+
<line num="262" type="stmt" count="3"/>
|
2292 |
+
<line num="263" type="stmt" count="1"/>
|
2293 |
+
<line num="265" type="stmt" count="1"/>
|
2294 |
+
<line num="268" type="stmt" count="2"/>
|
2295 |
+
<line num="280" type="method" name="get_indexed_backups" visibility="public" complexity="6" crap="7.33" count="13"/>
|
2296 |
+
<line num="281" type="stmt" count="13"/>
|
2297 |
+
<line num="283" type="stmt" count="13"/>
|
2298 |
+
<line num="284" type="stmt" count="13"/>
|
2299 |
+
<line num="285" type="stmt" count="0"/>
|
2300 |
+
<line num="289" type="stmt" count="13"/>
|
2301 |
+
<line num="290" type="stmt" count="0"/>
|
2302 |
+
<line num="291" type="method" name="anonymous function" complexity="3" crap="3" count="13"/>
|
2303 |
+
<line num="292" type="stmt" count="13"/>
|
2304 |
+
<line num="293" type="stmt" count="13"/>
|
2305 |
+
<line num="296" type="stmt" count="13"/>
|
2306 |
+
<line num="297" type="stmt" count="13"/>
|
2307 |
+
<line num="300" type="stmt" count="13"/>
|
2308 |
+
<line num="302" type="stmt" count="13"/>
|
2309 |
+
<line num="305" type="stmt" count="13"/>
|
2310 |
+
<line num="306" type="stmt" count="13"/>
|
2311 |
+
<line num="307" type="stmt" count="13"/>
|
2312 |
+
<line num="308" type="stmt" count="13"/>
|
2313 |
+
<line num="309" type="stmt" count="13"/>
|
2314 |
+
<line num="311" type="stmt" count="13"/>
|
2315 |
+
<line num="322" type="method" name="get_logs_dir" visibility="public" complexity="7" crap="7" count="11"/>
|
2316 |
+
<line num="323" type="stmt" count="11"/>
|
2317 |
+
<line num="325" type="stmt" count="11"/>
|
2318 |
+
<line num="328" type="stmt" count="11"/>
|
2319 |
+
<line num="338" type="stmt" count="11"/>
|
2320 |
+
<line num="339" type="stmt" count="11"/>
|
2321 |
+
<line num="342" type="stmt" count="11"/>
|
2322 |
+
<line num="343" type="stmt" count="11"/>
|
2323 |
+
<line num="344" type="stmt" count="11"/>
|
2324 |
+
<line num="347" type="stmt" count="11"/>
|
2325 |
+
<line num="349" type="stmt" count="11"/>
|
2326 |
+
<line num="350" type="stmt" count="11"/>
|
2327 |
+
<line num="351" type="stmt" count="11"/>
|
2328 |
+
<line num="353" type="stmt" count="11"/>
|
2329 |
+
<line num="363" type="stmt" count="11"/>
|
2330 |
+
<line num="364" type="stmt" count="1"/>
|
2331 |
+
<line num="365" type="stmt" count="1"/>
|
2332 |
+
<line num="367" type="stmt" count="11"/>
|
2333 |
+
<line num="376" type="method" name="get_possible_dirs" visibility="public" complexity="3" crap="4.46" count="2"/>
|
2334 |
+
<line num="377" type="stmt" count="2"/>
|
2335 |
+
<line num="380" type="stmt" count="2"/>
|
2336 |
+
<line num="382" type="stmt" count="2"/>
|
2337 |
+
<line num="384" type="stmt" count="0"/>
|
2338 |
+
<line num="386" type="stmt" count="0"/>
|
2339 |
+
<line num="397" type="stmt" count="0"/>
|
2340 |
+
<line num="398" type="stmt" count="0"/>
|
2341 |
+
<line num="399" type="stmt" count="0"/>
|
2342 |
+
<line num="400" type="stmt" count="0"/>
|
2343 |
<line num="403" type="stmt" count="2"/>
|
2344 |
+
<line num="405" type="stmt" count="2"/>
|
2345 |
+
<line num="418" type="method" name="get_path_to" visibility="public" complexity="1" crap="1" count="13"/>
|
2346 |
+
<line num="419" type="stmt" count="13"/>
|
2347 |
+
<line num="420" type="stmt" count="13"/>
|
2348 |
+
<line num="430" type="method" name="generate_suffix" visibility="public" complexity="2" crap="6" count="0"/>
|
2349 |
+
<line num="431" type="stmt" count="0"/>
|
2350 |
+
<line num="432" type="stmt" count="0"/>
|
2351 |
+
<line num="434" type="stmt" count="0"/>
|
2352 |
+
<line num="435" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
2353 |
<line num="436" type="stmt" count="0"/>
|
2354 |
+
<line num="438" type="stmt" count="0"/>
|
2355 |
+
<line num="453" type="method" name="guess_and_set" visibility="public" complexity="7" crap="7.29" count="2"/>
|
2356 |
+
<line num="454" type="stmt" count="2"/>
|
2357 |
+
<line num="456" type="stmt" count="2"/>
|
2358 |
+
<line num="458" type="stmt" count="2"/>
|
2359 |
+
<line num="461" type="stmt" count="2"/>
|
2360 |
+
<line num="462" type="stmt" count="0"/>
|
2361 |
+
<line num="472" type="stmt" count="2"/>
|
2362 |
+
<line num="473" type="stmt" count="2"/>
|
2363 |
+
<line num="474" type="stmt" count="2"/>
|
2364 |
+
<line num="476" type="stmt" count="2"/>
|
2365 |
+
<line num="477" type="stmt" count="0"/>
|
2366 |
+
<line num="481" type="stmt" count="2"/>
|
2367 |
+
<line num="482" type="stmt" count="2"/>
|
2368 |
+
<line num="483" type="stmt" count="0"/>
|
2369 |
+
<line num="487" type="stmt" count="2"/>
|
2370 |
+
<line num="488" type="stmt" count="2"/>
|
2371 |
+
<line num="490" type="stmt" count="2"/>
|
2372 |
+
<line num="491" type="stmt" count="0"/>
|
2373 |
+
<line num="494" type="stmt" count="2"/>
|
2374 |
+
<line num="496" type="stmt" count="2"/>
|
2375 |
+
<line num="498" type="stmt" count="2"/>
|
2376 |
+
<line num="500" type="stmt" count="2"/>
|
2377 |
+
<line num="502" type="stmt" count="2"/>
|
2378 |
+
<line num="526" type="method" name="file_in_dir" visibility="public" complexity="2" crap="2" count="9"/>
|
2379 |
+
<line num="527" type="stmt" count="9"/>
|
2380 |
+
<line num="528" type="stmt" count="9"/>
|
2381 |
+
<line num="530" type="stmt" count="9"/>
|
2382 |
+
<line num="544" type="method" name="is_valid" visibility="public" complexity="14" crap="98.54" count="2"/>
|
2383 |
+
<line num="546" type="stmt" count="2"/>
|
2384 |
+
<line num="547" type="stmt" count="0"/>
|
2385 |
+
<line num="550" type="stmt" count="2"/>
|
2386 |
+
<line num="552" type="stmt" count="2"/>
|
2387 |
+
<line num="553" type="stmt" count="0"/>
|
2388 |
+
<line num="555" type="stmt" count="0"/>
|
2389 |
+
<line num="557" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2390 |
<line num="558" type="stmt" count="0"/>
|
2391 |
+
<line num="560" type="stmt" count="2"/>
|
2392 |
<line num="561" type="stmt" count="0"/>
|
2393 |
+
<line num="563" type="stmt" count="0"/>
|
|
|
2394 |
<line num="565" type="stmt" count="0"/>
|
2395 |
+
<line num="566" type="stmt" count="0"/>
|
2396 |
+
<line num="568" type="stmt" count="2"/>
|
2397 |
+
<line num="569" type="stmt" count="0"/>
|
2398 |
+
<line num="571" type="stmt" count="0"/>
|
2399 |
+
<line num="572" type="stmt" count="0"/>
|
2400 |
+
<line num="574" type="stmt" count="0"/>
|
2401 |
+
<line num="576" type="stmt" count="0"/>
|
2402 |
+
<line num="577" type="stmt" count="0"/>
|
2403 |
+
<line num="579" type="stmt" count="2"/>
|
2404 |
+
<line num="580" type="stmt" count="0"/>
|
2405 |
<line num="582" type="stmt" count="0"/>
|
2406 |
+
<line num="583" type="stmt" count="0"/>
|
2407 |
+
<line num="585" type="stmt" count="0"/>
|
2408 |
<line num="587" type="stmt" count="0"/>
|
2409 |
+
<line num="588" type="stmt" count="0"/>
|
2410 |
+
<line num="590" type="stmt" count="2"/>
|
2411 |
+
<line num="591" type="stmt" count="0"/>
|
2412 |
+
<line num="593" type="stmt" count="0"/>
|
2413 |
+
<line num="594" type="stmt" count="0"/>
|
2414 |
+
<line num="596" type="stmt" count="0"/>
|
2415 |
+
<line num="598" type="stmt" count="0"/>
|
2416 |
+
<line num="599" type="stmt" count="0"/>
|
2417 |
+
<line num="608" type="stmt" count="2"/>
|
2418 |
+
<line num="609" type="stmt" count="2"/>
|
2419 |
+
<line num="610" type="stmt" count="2"/>
|
2420 |
+
<line num="611" type="stmt" count="0"/>
|
2421 |
+
<line num="613" type="stmt" count="0"/>
|
2422 |
+
<line num="614" type="stmt" count="0"/>
|
2423 |
+
<line num="616" type="stmt" count="0"/>
|
2424 |
+
<line num="617" type="stmt" count="0"/>
|
2425 |
+
<line num="619" type="stmt" count="0"/>
|
2426 |
+
<line num="620" type="stmt" count="0"/>
|
2427 |
+
<line num="622" type="stmt" count="2"/>
|
2428 |
+
<line num="634" type="method" name="set" visibility="public" complexity="3" crap="3.10" count="3"/>
|
2429 |
+
<line num="636" type="stmt" count="3"/>
|
2430 |
+
<line num="637" type="stmt" count="0"/>
|
2431 |
+
<line num="640" type="stmt" count="3"/>
|
2432 |
+
<line num="641" type="stmt" count="3"/>
|
2433 |
+
<line num="642" type="stmt" count="0"/>
|
2434 |
+
<line num="645" type="stmt" count="3"/>
|
2435 |
+
<line num="647" type="stmt" count="3"/>
|
2436 |
+
<line num="648" type="stmt" count="3"/>
|
2437 |
+
<line num="649" type="stmt" count="3"/>
|
2438 |
+
<metrics loc="650" ncloc="363" classes="1" methods="17" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="224" coveredstatements="160" elements="241" coveredelements="169"/>
|
2439 |
</file>
|
2440 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php">
|
2441 |
<class name="Boldgrid_Backup_Admin_Cli" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2442 |
+
<metrics complexity="24" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="94" coveredstatements="36" elements="96" coveredelements="36"/>
|
2443 |
</class>
|
2444 |
+
<line num="41" type="method" name="get_execution_functions" visibility="public" complexity="5" crap="5.10" count="8"/>
|
2445 |
+
<line num="43" type="stmt" count="8"/>
|
2446 |
+
<line num="44" type="stmt" count="8"/>
|
2447 |
<line num="48" type="stmt" count="1"/>
|
2448 |
<line num="49" type="stmt" count="0"/>
|
2449 |
<line num="53" type="stmt" count="1"/>
|
2461 |
<line num="70" type="stmt" count="1"/>
|
2462 |
<line num="73" type="stmt" count="1"/>
|
2463 |
<line num="75" type="stmt" count="1"/>
|
2464 |
+
<line num="90" type="method" name="call_command" visibility="public" complexity="19" crap="161.37" count="6"/>
|
2465 |
+
<line num="91" type="stmt" count="6"/>
|
2466 |
+
<line num="96" type="stmt" count="6"/>
|
2467 |
+
<line num="98" type="stmt" count="6"/>
|
2468 |
+
<line num="100" type="stmt" count="6"/>
|
2469 |
+
<line num="101" type="stmt" count="0"/>
|
2470 |
+
<line num="104" type="stmt" count="0"/>
|
2471 |
<line num="105" type="stmt" count="0"/>
|
2472 |
<line num="107" type="stmt" count="0"/>
|
2473 |
<line num="109" type="stmt" count="0"/>
|
2474 |
+
<line num="112" type="stmt" count="0"/>
|
2475 |
+
<line num="114" type="stmt" count="6"/>
|
2476 |
<line num="116" type="stmt" count="0"/>
|
2477 |
<line num="117" type="stmt" count="0"/>
|
2478 |
<line num="120" type="stmt" count="0"/>
|
2481 |
<line num="126" type="stmt" count="0"/>
|
2482 |
<line num="128" type="stmt" count="0"/>
|
2483 |
<line num="130" type="stmt" count="0"/>
|
2484 |
+
<line num="132" type="stmt" count="6"/>
|
2485 |
+
<line num="133" type="stmt" count="6"/>
|
2486 |
+
<line num="135" type="stmt" count="6"/>
|
2487 |
+
<line num="140" type="stmt" count="6"/>
|
2488 |
+
<line num="142" type="stmt" count="6"/>
|
2489 |
+
<line num="145" type="stmt" count="6"/>
|
2490 |
+
<line num="146" type="stmt" count="6"/>
|
2491 |
+
<line num="148" type="stmt" count="6"/>
|
2492 |
+
<line num="150" type="stmt" count="1"/>
|
2493 |
+
<line num="152" type="stmt" count="1"/>
|
2494 |
+
<line num="154" type="stmt" count="0"/>
|
2495 |
+
<line num="158" type="stmt" count="0"/>
|
2496 |
+
<line num="159" type="stmt" count="0"/>
|
2497 |
+
<line num="160" type="stmt" count="0"/>
|
2498 |
+
<line num="162" type="stmt" count="0"/>
|
2499 |
+
<line num="163" type="stmt" count="0"/>
|
2500 |
+
<line num="164" type="stmt" count="0"/>
|
2501 |
+
<line num="166" type="stmt" count="0"/>
|
2502 |
+
<line num="167" type="stmt" count="0"/>
|
2503 |
+
<line num="168" type="stmt" count="0"/>
|
2504 |
+
<line num="169" type="stmt" count="0"/>
|
2505 |
+
<line num="172" type="stmt" count="0"/>
|
2506 |
+
<line num="174" type="stmt" count="0"/>
|
2507 |
+
<line num="176" type="stmt" count="0"/>
|
2508 |
+
<line num="179" type="stmt" count="0"/>
|
2509 |
+
<line num="182" type="stmt" count="0"/>
|
2510 |
+
<line num="185" type="stmt" count="0"/>
|
2511 |
+
<line num="188" type="stmt" count="0"/>
|
2512 |
+
<line num="191" type="stmt" count="0"/>
|
2513 |
+
<line num="192" type="stmt" count="0"/>
|
2514 |
+
<line num="194" type="stmt" count="0"/>
|
2515 |
+
<line num="196" type="stmt" count="0"/>
|
2516 |
+
<line num="198" type="stmt" count="0"/>
|
2517 |
+
<line num="200" type="stmt" count="0"/>
|
2518 |
+
<line num="201" type="stmt" count="0"/>
|
2519 |
+
<line num="203" type="stmt" count="0"/>
|
2520 |
+
<line num="204" type="stmt" count="0"/>
|
2521 |
+
<line num="206" type="stmt" count="0"/>
|
2522 |
+
<line num="209" type="stmt" count="0"/>
|
2523 |
+
<line num="211" type="stmt" count="0"/>
|
2524 |
+
<line num="213" type="stmt" count="0"/>
|
2525 |
<line num="214" type="stmt" count="0"/>
|
|
|
2526 |
<line num="217" type="stmt" count="0"/>
|
2527 |
<line num="220" type="stmt" count="0"/>
|
2528 |
+
<line num="221" type="stmt" count="0"/>
|
2529 |
<line num="223" type="stmt" count="0"/>
|
2530 |
+
<line num="225" type="stmt" count="0"/>
|
2531 |
+
<line num="227" type="stmt" count="0"/>
|
2532 |
+
<line num="229" type="stmt" count="0"/>
|
2533 |
<line num="230" type="stmt" count="0"/>
|
2534 |
+
<line num="231" type="stmt" count="0"/>
|
2535 |
+
<line num="232" type="stmt" count="6"/>
|
2536 |
+
<line num="236" type="stmt" count="6"/>
|
2537 |
+
<line num="237" type="stmt" count="5"/>
|
2538 |
+
<line num="238" type="stmt" count="5"/>
|
2539 |
+
<line num="240" type="stmt" count="6"/>
|
2540 |
+
<metrics loc="242" ncloc="140" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="94" coveredstatements="36" elements="96" coveredelements="36"/>
|
|
|
|
|
2541 |
</file>
|
2542 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-compressor.php">
|
2543 |
<class name="Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2544 |
<metrics complexity="8" methods="6" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="7" elements="17" coveredelements="11"/>
|
2545 |
</class>
|
2546 |
+
<line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="13"/>
|
2547 |
+
<line num="47" type="stmt" count="13"/>
|
2548 |
+
<line num="48" type="stmt" count="13"/>
|
2549 |
+
<line num="50" type="stmt" count="13"/>
|
2550 |
+
<line num="51" type="stmt" count="13"/>
|
2551 |
<line num="74" type="method" name="archive_files" visibility="public" complexity="1" crap="2" count="0"/>
|
2552 |
<line num="75" type="stmt" count="0"/>
|
2553 |
<line num="86" type="method" name="is_available" visibility="public" complexity="1" crap="1" count="1"/>
|
2564 |
</file>
|
2565 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-compressors.php">
|
2566 |
<class name="Boldgrid_Backup_Admin_Compressors" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2567 |
+
<metrics complexity="17" methods="7" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="12" elements="36" coveredelements="16"/>
|
2568 |
</class>
|
2569 |
<line num="50" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="29"/>
|
2570 |
<line num="51" type="stmt" count="29"/>
|
2572 |
<line num="58" type="stmt" count="29"/>
|
2573 |
<line num="59" type="stmt" count="29"/>
|
2574 |
<line num="60" type="stmt" count="29"/>
|
2575 |
+
<line num="69" type="method" name="get" visibility="public" complexity="3" crap="3" count="9"/>
|
2576 |
+
<line num="70" type="stmt" count="9"/>
|
2577 |
+
<line num="71" type="stmt" count="9"/>
|
2578 |
+
<line num="77" type="stmt" count="9"/>
|
2579 |
<line num="78" type="stmt" count="4"/>
|
2580 |
+
<line num="82" type="stmt" count="5"/>
|
2581 |
+
<line num="92" type="method" name="get_available" visibility="public" complexity="1" crap="1" count="10"/>
|
2582 |
+
<line num="93" type="stmt" count="10"/>
|
2583 |
<line num="103" type="method" name="get_default" visibility="public" complexity="1" crap="1" count="1"/>
|
2584 |
<line num="104" type="stmt" count="1"/>
|
2585 |
<line num="115" type="method" name="get_object" visibility="public" complexity="4" crap="20" count="0"/>
|
2602 |
<line num="158" type="stmt" count="0"/>
|
2603 |
<line num="159" type="stmt" count="0"/>
|
2604 |
<line num="162" type="stmt" count="0"/>
|
2605 |
+
<metrics loc="164" ncloc="65" classes="1" methods="7" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="12" elements="36" coveredelements="16"/>
|
2606 |
</file>
|
2607 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-config.php">
|
2608 |
<class name="Boldgrid_Backup_Admin_Config" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2609 |
+
<metrics complexity="55" methods="13" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="76" elements="142" coveredelements="81"/>
|
2610 |
</class>
|
2611 |
<line num="131" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="29"/>
|
2612 |
<line num="133" type="stmt" count="29"/>
|
2658 |
<line num="226" type="stmt" count="0"/>
|
2659 |
<line num="229" type="stmt" count="0"/>
|
2660 |
<line num="231" type="stmt" count="0"/>
|
2661 |
+
<line num="243" type="method" name="get_is_premium" visibility="public" complexity="1" crap="1" count="9"/>
|
2662 |
+
<line num="244" type="stmt" count="9"/>
|
2663 |
<line num="252" type="method" name="get_license_string" visibility="public" complexity="2" crap="6" count="0"/>
|
2664 |
<line num="253" type="stmt" count="0"/>
|
2665 |
<line num="254" type="stmt" count="0"/>
|
2666 |
<line num="256" type="stmt" count="0"/>
|
2667 |
+
<line num="267" type="method" name="get_default_retention" visibility="public" complexity="1" crap="1" count="18"/>
|
2668 |
+
<line num="268" type="stmt" count="18"/>
|
2669 |
<line num="277" type="method" name="set_lang" visibility="public" complexity="1" crap="1" count="29"/>
|
2670 |
<line num="278" type="stmt" count="29"/>
|
2671 |
<line num="279" type="stmt" count="29"/>
|
2686 |
<line num="310" type="stmt" count="0"/>
|
2687 |
<line num="311" type="stmt" count="0"/>
|
2688 |
<line num="313" type="stmt" count="0"/>
|
2689 |
+
<line num="323" type="method" name="get_admin_email" visibility="public" complexity="6" crap="9.54" count="19"/>
|
2690 |
+
<line num="325" type="stmt" count="19"/>
|
2691 |
+
<line num="329" type="stmt" count="19"/>
|
2692 |
+
<line num="330" type="stmt" count="19"/>
|
2693 |
+
<line num="331" type="stmt" count="19"/>
|
2694 |
+
<line num="334" type="stmt" count="19"/>
|
2695 |
<line num="336" type="stmt" count="0"/>
|
2696 |
<line num="339" type="stmt" count="0"/>
|
2697 |
<line num="340" type="stmt" count="0"/>
|
2698 |
<line num="344" type="stmt" count="0"/>
|
2699 |
<line num="345" type="stmt" count="0"/>
|
2700 |
+
<line num="348" type="stmt" count="19"/>
|
2701 |
<line num="349" type="stmt" count="0"/>
|
2702 |
+
<line num="353" type="stmt" count="19"/>
|
2703 |
<line num="364" type="method" name="add_compressor" visibility="private" complexity="3" crap="3" count="1"/>
|
2704 |
<line num="365" type="stmt" count="1"/>
|
2705 |
<line num="366" type="stmt" count="1"/>
|
2718 |
<line num="399" type="stmt" count="0"/>
|
2719 |
<line num="403" type="stmt" count="0"/>
|
2720 |
<line num="405" type="stmt" count="0"/>
|
2721 |
+
<line num="420" type="method" name="get_available_compressors" visibility="public" complexity="13" crap="13.15" count="10"/>
|
2722 |
+
<line num="422" type="stmt" count="10"/>
|
2723 |
+
<line num="423" type="stmt" count="10"/>
|
2724 |
<line num="426" type="stmt" count="1"/>
|
2725 |
+
<line num="427" type="stmt" count="1"/>
|
2726 |
+
<line num="428" type="stmt" count="1"/>
|
2727 |
<line num="431" type="stmt" count="1"/>
|
2728 |
<line num="434" type="stmt" count="1"/>
|
2729 |
<line num="435" type="stmt" count="1"/>
|
2750 |
<line num="470" type="stmt" count="1"/>
|
2751 |
<line num="471" type="stmt" count="1"/>
|
2752 |
<line num="473" type="stmt" count="1"/>
|
2753 |
+
<metrics loc="475" ncloc="203" classes="1" methods="13" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="76" elements="142" coveredelements="81"/>
|
2754 |
</file>
|
2755 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core-files.php">
|
2756 |
<class name="Boldgrid_Backup_Admin_Core_Files" namespace="global" fullPackage="Boldgrid.Backup.Admin.Core">
|
2759 |
<line num="71" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
2760 |
<line num="72" type="stmt" count="29"/>
|
2761 |
<line num="73" type="stmt" count="29"/>
|
2762 |
+
<line num="83" type="method" name="is_core_file" visibility="public" complexity="5" crap="5.07" count="9"/>
|
2763 |
+
<line num="84" type="stmt" count="9"/>
|
2764 |
<line num="85" type="stmt" count="0"/>
|
2765 |
+
<line num="88" type="stmt" count="9"/>
|
2766 |
+
<line num="89" type="stmt" count="9"/>
|
2767 |
+
<line num="90" type="stmt" count="9"/>
|
2768 |
+
<line num="92" type="stmt" count="9"/>
|
2769 |
+
<line num="94" type="stmt" count="9"/>
|
2770 |
<metrics loc="96" ncloc="46" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="8" elements="11" coveredelements="9"/>
|
2771 |
</file>
|
2772 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php">
|
2773 |
<class name="Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
2774 |
+
<metrics complexity="211" methods="29" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="1036" coveredstatements="461" elements="1065" coveredelements="465"/>
|
2775 |
</class>
|
2776 |
+
<line num="588" type="method" name="__construct" visibility="public" complexity="8" crap="8.07" count="29"/>
|
2777 |
+
<line num="593" type="stmt" count="29"/>
|
2778 |
+
<line num="595" type="stmt" count="29"/>
|
2779 |
+
<line num="596" type="stmt" count="29"/>
|
2780 |
+
<line num="597" type="stmt" count="29"/>
|
2781 |
+
<line num="599" type="stmt" count="29"/>
|
2782 |
+
<line num="601" type="stmt" count="29"/>
|
2783 |
+
<line num="602" type="stmt" count="29"/>
|
2784 |
+
<line num="603" type="stmt" count="29"/>
|
2785 |
<line num="605" type="stmt" count="29"/>
|
2786 |
<line num="607" type="stmt" count="29"/>
|
2787 |
+
<line num="610" type="stmt" count="29"/>
|
|
|
|
|
2788 |
<line num="613" type="stmt" count="29"/>
|
2789 |
+
<line num="616" type="stmt" count="29"/>
|
|
|
|
|
2790 |
<line num="619" type="stmt" count="29"/>
|
2791 |
<line num="622" type="stmt" count="29"/>
|
2792 |
<line num="625" type="stmt" count="29"/>
|
2793 |
<line num="628" type="stmt" count="29"/>
|
2794 |
+
<line num="632" type="stmt" count="29"/>
|
2795 |
<line num="634" type="stmt" count="29"/>
|
2796 |
+
<line num="636" type="stmt" count="29"/>
|
2797 |
+
<line num="638" type="stmt" count="29"/>
|
2798 |
<line num="640" type="stmt" count="29"/>
|
2799 |
+
<line num="642" type="stmt" count="29"/>
|
2800 |
<line num="644" type="stmt" count="29"/>
|
2801 |
<line num="646" type="stmt" count="29"/>
|
2802 |
<line num="648" type="stmt" count="29"/>
|
2832 |
<line num="708" type="stmt" count="29"/>
|
2833 |
<line num="710" type="stmt" count="29"/>
|
2834 |
<line num="712" type="stmt" count="29"/>
|
|
|
|
|
2835 |
<line num="718" type="stmt" count="29"/>
|
2836 |
<line num="720" type="stmt" count="29"/>
|
|
|
2837 |
<line num="724" type="stmt" count="29"/>
|
2838 |
+
<line num="725" type="stmt" count="0"/>
|
2839 |
+
<line num="726" type="stmt" count="0"/>
|
2840 |
+
<line num="729" type="stmt" count="29"/>
|
2841 |
+
<line num="731" type="stmt" count="29"/>
|
2842 |
+
<line num="734" type="stmt" count="29"/>
|
2843 |
+
<line num="735" type="stmt" count="29"/>
|
2844 |
+
<line num="738" type="stmt" count="29"/>
|
2845 |
+
<line num="739" type="stmt" count="0"/>
|
2846 |
+
<line num="740" type="stmt" count="0"/>
|
2847 |
<line num="743" type="stmt" count="29"/>
|
2848 |
+
<line num="744" type="stmt" count="29"/>
|
2849 |
+
<line num="745" type="stmt" count="0"/>
|
2850 |
+
<line num="746" type="stmt" count="0"/>
|
2851 |
<line num="747" type="stmt" count="29"/>
|
2852 |
+
<line num="748" type="stmt" count="0"/>
|
2853 |
+
<line num="749" type="stmt" count="0"/>
|
2854 |
<line num="750" type="stmt" count="29"/>
|
2855 |
+
<line num="759" type="method" name="get_backup_identifier" visibility="public" complexity="5" crap="5.79" count="41"/>
|
2856 |
+
<line num="761" type="stmt" count="41"/>
|
2857 |
+
<line num="762" type="stmt" count="14"/>
|
2858 |
+
<line num="766" type="stmt" count="29"/>
|
2859 |
+
<line num="769" type="stmt" count="29"/>
|
2860 |
+
<line num="770" type="stmt" count="28"/>
|
2861 |
+
<line num="772" type="stmt" count="28"/>
|
2862 |
+
<line num="776" type="stmt" count="1"/>
|
2863 |
+
<line num="778" type="stmt" count="1"/>
|
2864 |
+
<line num="780" type="stmt" count="1"/>
|
2865 |
+
<line num="783" type="stmt" count="1"/>
|
2866 |
+
<line num="784" type="stmt" count="0"/>
|
2867 |
+
<line num="786" type="stmt" count="0"/>
|
2868 |
+
<line num="787" type="stmt" count="0"/>
|
2869 |
+
<line num="788" type="stmt" count="0"/>
|
2870 |
+
<line num="790" type="stmt" count="0"/>
|
2871 |
+
<line num="791" type="stmt" count="0"/>
|
2872 |
+
<line num="794" type="stmt" count="1"/>
|
2873 |
+
<line num="796" type="stmt" count="1"/>
|
2874 |
+
<line num="798" type="stmt" count="1"/>
|
2875 |
+
<line num="810" type="method" name="get_core" visibility="public" complexity="1" crap="1" count="28"/>
|
2876 |
+
<line num="811" type="stmt" count="28"/>
|
2877 |
+
<line num="821" type="method" name="init_premium" visibility="public" complexity="5" crap="30" count="0"/>
|
2878 |
+
<line num="822" type="stmt" count="0"/>
|
2879 |
+
<line num="824" type="stmt" count="0"/>
|
2880 |
+
<line num="830" type="stmt" count="0"/>
|
2881 |
+
<line num="831" type="stmt" count="0"/>
|
2882 |
+
<line num="839" type="stmt" count="0"/>
|
2883 |
+
<line num="840" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
2884 |
<line num="842" type="stmt" count="0"/>
|
2885 |
<line num="843" type="stmt" count="0"/>
|
2886 |
+
<line num="845" type="stmt" count="0"/>
|
2887 |
+
<line num="846" type="stmt" count="0"/>
|
2888 |
+
<line num="848" type="stmt" count="0"/>
|
2889 |
+
<line num="849" type="stmt" count="0"/>
|
2890 |
+
<line num="850" type="stmt" count="0"/>
|
2891 |
<line num="851" type="stmt" count="0"/>
|
2892 |
<line num="852" type="stmt" count="0"/>
|
2893 |
+
<line num="853" type="stmt" count="0"/>
|
2894 |
<line num="854" type="stmt" count="0"/>
|
2895 |
<line num="855" type="stmt" count="0"/>
|
2896 |
+
<line num="856" type="stmt" count="0"/>
|
2897 |
<line num="858" type="stmt" count="0"/>
|
2898 |
<line num="860" type="stmt" count="0"/>
|
2899 |
<line num="861" type="stmt" count="0"/>
|
|
|
2900 |
<line num="863" type="stmt" count="0"/>
|
|
|
2901 |
<line num="865" type="stmt" count="0"/>
|
2902 |
<line num="866" type="stmt" count="0"/>
|
2903 |
<line num="867" type="stmt" count="0"/>
|
2904 |
<line num="868" type="stmt" count="0"/>
|
2905 |
+
<line num="869" type="stmt" count="0"/>
|
2906 |
+
<line num="871" type="stmt" count="0"/>
|
2907 |
<line num="872" type="stmt" count="0"/>
|
2908 |
<line num="873" type="stmt" count="0"/>
|
2909 |
<line num="875" type="stmt" count="0"/>
|
|
|
2910 |
<line num="878" type="stmt" count="0"/>
|
2911 |
<line num="879" type="stmt" count="0"/>
|
2912 |
<line num="880" type="stmt" count="0"/>
|
2913 |
+
<line num="895" type="method" name="execute_command" visibility="public" complexity="6" crap="6.04" count="6"/>
|
2914 |
+
<line num="897" type="stmt" count="6"/>
|
2915 |
+
<line num="898" type="stmt" count="0"/>
|
2916 |
+
<line num="902" type="stmt" count="6"/>
|
2917 |
+
<line num="903" type="stmt" count="2"/>
|
2918 |
+
<line num="904" type="stmt" count="2"/>
|
2919 |
+
<line num="907" type="stmt" count="6"/>
|
2920 |
+
<line num="908" type="stmt" count="6"/>
|
2921 |
+
<line num="909" type="stmt" count="6"/>
|
2922 |
+
<line num="911" type="stmt" count="6"/>
|
2923 |
+
<line num="913" type="stmt" count="6"/>
|
2924 |
+
<line num="923" type="method" name="add_menu_items" visibility="public" complexity="5" crap="30" count="0"/>
|
2925 |
+
<line num="924" type="stmt" count="0"/>
|
2926 |
+
<line num="927" type="stmt" count="0"/>
|
2927 |
+
<line num="928" type="stmt" count="0"/>
|
2928 |
+
<line num="929" type="stmt" count="0"/>
|
2929 |
+
<line num="930" type="stmt" count="0"/>
|
2930 |
+
<line num="931" type="stmt" count="0"/>
|
2931 |
+
<line num="932" type="stmt" count="0"/>
|
2932 |
+
<line num="933" type="stmt" count="0"/>
|
2933 |
+
<line num="934" type="stmt" count="0"/>
|
2934 |
+
<line num="935" type="stmt" count="0"/>
|
2935 |
<line num="936" type="stmt" count="0"/>
|
2936 |
<line num="939" type="stmt" count="0"/>
|
|
|
|
|
2937 |
<line num="942" type="stmt" count="0"/>
|
|
|
|
|
2938 |
<line num="945" type="stmt" count="0"/>
|
2939 |
<line num="946" type="stmt" count="0"/>
|
|
|
2940 |
<line num="948" type="stmt" count="0"/>
|
2941 |
+
<line num="949" type="stmt" count="0"/>
|
2942 |
+
<line num="950" type="stmt" count="0"/>
|
2943 |
+
<line num="952" type="stmt" count="0"/>
|
2944 |
+
<line num="953" type="stmt" count="0"/>
|
2945 |
<line num="954" type="stmt" count="0"/>
|
2946 |
+
<line num="956" type="stmt" count="0"/>
|
2947 |
+
<line num="959" type="stmt" count="0"/>
|
2948 |
<line num="960" type="stmt" count="0"/>
|
2949 |
<line num="961" type="stmt" count="0"/>
|
2950 |
<line num="962" type="stmt" count="0"/>
|
2951 |
+
<line num="963" type="stmt" count="0"/>
|
2952 |
<line num="964" type="stmt" count="0"/>
|
|
|
2953 |
<line num="966" type="stmt" count="0"/>
|
2954 |
+
<line num="967" type="stmt" count="0"/>
|
2955 |
+
<line num="969" type="stmt" count="0"/>
|
2956 |
<line num="972" type="stmt" count="0"/>
|
2957 |
<line num="973" type="stmt" count="0"/>
|
2958 |
<line num="974" type="stmt" count="0"/>
|
2959 |
<line num="975" type="stmt" count="0"/>
|
2960 |
<line num="976" type="stmt" count="0"/>
|
2961 |
+
<line num="977" type="stmt" count="0"/>
|
2962 |
<line num="979" type="stmt" count="0"/>
|
2963 |
+
<line num="980" type="stmt" count="0"/>
|
2964 |
+
<line num="982" type="stmt" count="0"/>
|
2965 |
<line num="985" type="stmt" count="0"/>
|
2966 |
<line num="986" type="stmt" count="0"/>
|
2967 |
<line num="987" type="stmt" count="0"/>
|
2968 |
<line num="988" type="stmt" count="0"/>
|
2969 |
<line num="989" type="stmt" count="0"/>
|
2970 |
+
<line num="990" type="stmt" count="0"/>
|
2971 |
<line num="992" type="stmt" count="0"/>
|
2972 |
+
<line num="993" type="stmt" count="0"/>
|
2973 |
+
<line num="995" type="stmt" count="0"/>
|
2974 |
<line num="998" type="stmt" count="0"/>
|
2975 |
<line num="999" type="stmt" count="0"/>
|
2976 |
<line num="1000" type="stmt" count="0"/>
|
2977 |
<line num="1001" type="stmt" count="0"/>
|
2978 |
<line num="1002" type="stmt" count="0"/>
|
2979 |
+
<line num="1003" type="stmt" count="0"/>
|
2980 |
<line num="1005" type="stmt" count="0"/>
|
2981 |
+
<line num="1006" type="stmt" count="0"/>
|
2982 |
+
<line num="1008" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
2983 |
<line num="1015" type="stmt" count="0"/>
|
2984 |
+
<line num="1016" type="stmt" count="0"/>
|
2985 |
<line num="1017" type="stmt" count="0"/>
|
2986 |
<line num="1018" type="stmt" count="0"/>
|
2987 |
+
<line num="1019" type="stmt" count="0"/>
|
2988 |
<line num="1020" type="stmt" count="0"/>
|
2989 |
+
<line num="1022" type="stmt" count="0"/>
|
2990 |
+
<line num="1023" type="stmt" count="0"/>
|
2991 |
+
<line num="1025" type="stmt" count="0"/>
|
2992 |
<line num="1028" type="stmt" count="0"/>
|
2993 |
<line num="1029" type="stmt" count="0"/>
|
2994 |
<line num="1030" type="stmt" count="0"/>
|
2995 |
<line num="1031" type="stmt" count="0"/>
|
2996 |
<line num="1032" type="stmt" count="0"/>
|
2997 |
+
<line num="1033" type="stmt" count="0"/>
|
2998 |
<line num="1035" type="stmt" count="0"/>
|
2999 |
+
<line num="1036" type="stmt" count="0"/>
|
3000 |
+
<line num="1038" type="stmt" count="0"/>
|
3001 |
<line num="1041" type="stmt" count="0"/>
|
3002 |
<line num="1042" type="stmt" count="0"/>
|
3003 |
<line num="1043" type="stmt" count="0"/>
|
3004 |
<line num="1044" type="stmt" count="0"/>
|
3005 |
<line num="1045" type="stmt" count="0"/>
|
3006 |
+
<line num="1046" type="stmt" count="0"/>
|
3007 |
<line num="1048" type="stmt" count="0"/>
|
3008 |
+
<line num="1049" type="stmt" count="0"/>
|
3009 |
+
<line num="1051" type="stmt" count="0"/>
|
3010 |
<line num="1054" type="stmt" count="0"/>
|
3011 |
<line num="1055" type="stmt" count="0"/>
|
3012 |
<line num="1056" type="stmt" count="0"/>
|
3013 |
<line num="1057" type="stmt" count="0"/>
|
3014 |
<line num="1058" type="stmt" count="0"/>
|
3015 |
+
<line num="1059" type="stmt" count="0"/>
|
3016 |
<line num="1061" type="stmt" count="0"/>
|
3017 |
+
<line num="1062" type="stmt" count="0"/>
|
3018 |
+
<line num="1064" type="stmt" count="0"/>
|
3019 |
<line num="1067" type="stmt" count="0"/>
|
3020 |
<line num="1068" type="stmt" count="0"/>
|
3021 |
<line num="1069" type="stmt" count="0"/>
|
|
|
3022 |
<line num="1071" type="stmt" count="0"/>
|
3023 |
+
<line num="1072" type="stmt" count="0"/>
|
3024 |
<line num="1073" type="stmt" count="0"/>
|
3025 |
+
<line num="1075" type="stmt" count="0"/>
|
3026 |
<line num="1076" type="stmt" count="0"/>
|
3027 |
+
<line num="1078" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
3028 |
<line num="1085" type="stmt" count="0"/>
|
3029 |
+
<line num="1086" type="stmt" count="0"/>
|
3030 |
<line num="1088" type="stmt" count="0"/>
|
3031 |
+
<line num="1089" type="stmt" count="0"/>
|
3032 |
<line num="1090" type="stmt" count="0"/>
|
3033 |
+
<line num="1091" type="stmt" count="0"/>
|
3034 |
+
<line num="1092" type="stmt" count="0"/>
|
3035 |
+
<line num="1094" type="stmt" count="0"/>
|
|
|
3036 |
<line num="1102" type="stmt" count="0"/>
|
3037 |
<line num="1103" type="stmt" count="0"/>
|
3038 |
<line num="1104" type="stmt" count="0"/>
|
3039 |
+
<line num="1105" type="stmt" count="0"/>
|
3040 |
<line num="1106" type="stmt" count="0"/>
|
3041 |
+
<line num="1107" type="stmt" count="0"/>
|
3042 |
+
<line num="1108" type="stmt" count="0"/>
|
3043 |
+
<line num="1109" type="stmt" count="0"/>
|
3044 |
+
<line num="1110" type="stmt" count="0"/>
|
3045 |
+
<line num="1119" type="method" name="admin_enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
|
|
|
3046 |
<line num="1120" type="stmt" count="0"/>
|
3047 |
<line num="1121" type="stmt" count="0"/>
|
3048 |
<line num="1122" type="stmt" count="0"/>
|
3049 |
+
<line num="1123" type="stmt" count="0"/>
|
3050 |
+
<line num="1125" type="stmt" count="0"/>
|
3051 |
+
<line num="1127" type="stmt" count="0"/>
|
3052 |
+
<line num="1128" type="stmt" count="0"/>
|
3053 |
+
<line num="1129" type="stmt" count="0"/>
|
3054 |
+
<line num="1130" type="stmt" count="0"/>
|
3055 |
<line num="1132" type="stmt" count="0"/>
|
3056 |
<line num="1133" type="stmt" count="0"/>
|
3057 |
+
<line num="1145" type="method" name="backup_database" visibility="private" complexity="6" crap="10.98" count="9"/>
|
3058 |
+
<line num="1150" type="stmt" count="9"/>
|
3059 |
+
<line num="1151" type="stmt" count="0"/>
|
3060 |
+
<line num="1152" type="stmt" count="0"/>
|
3061 |
+
<line num="1162" type="stmt" count="9"/>
|
3062 |
+
<line num="1165" type="stmt" count="9"/>
|
3063 |
+
<line num="1167" type="stmt" count="0"/>
|
3064 |
+
<line num="1168" type="stmt" count="0"/>
|
3065 |
+
<line num="1172" type="stmt" count="9"/>
|
3066 |
+
<line num="1173" type="stmt" count="9"/>
|
3067 |
+
<line num="1175" type="stmt" count="9"/>
|
3068 |
+
<line num="1178" type="stmt" count="9"/>
|
3069 |
+
<line num="1179" type="stmt" count="9"/>
|
|
|
|
|
|
|
3070 |
<line num="1180" type="stmt" count="0"/>
|
3071 |
+
<line num="1184" type="stmt" count="9"/>
|
3072 |
+
<line num="1185" type="stmt" count="9"/>
|
3073 |
+
<line num="1187" type="stmt" count="0"/>
|
3074 |
+
<line num="1189" type="stmt" count="0"/>
|
3075 |
+
<line num="1190" type="stmt" count="0"/>
|
3076 |
+
<line num="1191" type="stmt" count="0"/>
|
3077 |
<line num="1192" type="stmt" count="0"/>
|
3078 |
+
<line num="1194" type="stmt" count="9"/>
|
3079 |
+
<line num="1195" type="stmt" count="9"/>
|
3080 |
<line num="1197" type="stmt" count="0"/>
|
3081 |
+
<line num="1199" type="stmt" count="0"/>
|
3082 |
+
<line num="1200" type="stmt" count="0"/>
|
3083 |
+
<line num="1201" type="stmt" count="0"/>
|
3084 |
+
<line num="1202" type="stmt" count="0"/>
|
3085 |
+
<line num="1206" type="stmt" count="9"/>
|
3086 |
+
<line num="1209" type="stmt" count="9"/>
|
3087 |
+
<line num="1229" type="method" name="restore_database" visibility="private" complexity="9" crap="27.27" count="1"/>
|
3088 |
+
<line num="1231" type="stmt" count="1"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3089 |
<line num="1233" type="stmt" count="0"/>
|
3090 |
+
<line num="1234" type="stmt" count="0"/>
|
3091 |
+
<line num="1235" type="stmt" count="0"/>
|
3092 |
+
<line num="1237" type="stmt" count="0"/>
|
3093 |
+
<line num="1239" type="stmt" count="0"/>
|
3094 |
+
<line num="1243" type="stmt" count="1"/>
|
3095 |
+
<line num="1245" type="stmt" count="0"/>
|
3096 |
+
<line num="1247" type="stmt" count="0"/>
|
3097 |
+
<line num="1251" type="stmt" count="1"/>
|
3098 |
+
<line num="1254" type="stmt" count="1"/>
|
3099 |
+
<line num="1257" type="stmt" count="1"/>
|
3100 |
+
<line num="1258" type="stmt" count="1"/>
|
3101 |
+
<line num="1260" type="stmt" count="1"/>
|
3102 |
<line num="1262" type="stmt" count="1"/>
|
|
|
|
|
|
|
3103 |
<line num="1268" type="stmt" count="0"/>
|
3104 |
+
<line num="1269" type="stmt" count="0"/>
|
3105 |
+
<line num="1272" type="stmt" count="1"/>
|
3106 |
+
<line num="1273" type="stmt" count="1"/>
|
3107 |
+
<line num="1275" type="stmt" count="1"/>
|
3108 |
<line num="1276" type="stmt" count="0"/>
|
3109 |
+
<line num="1277" type="stmt" count="0"/>
|
3110 |
<line num="1278" type="stmt" count="0"/>
|
3111 |
<line num="1282" type="stmt" count="1"/>
|
3112 |
+
<line num="1284" type="stmt" count="0"/>
|
3113 |
+
<line num="1287" type="stmt" count="0"/>
|
3114 |
+
<line num="1288" type="stmt" count="0"/>
|
3115 |
<line num="1291" type="stmt" count="1"/>
|
3116 |
+
<line num="1294" type="stmt" count="1"/>
|
3117 |
+
<line num="1295" type="stmt" count="1"/>
|
3118 |
+
<line num="1298" type="stmt" count="1"/>
|
3119 |
<line num="1300" type="stmt" count="0"/>
|
3120 |
+
<line num="1302" type="stmt" count="0"/>
|
3121 |
+
<line num="1304" type="stmt" count="0"/>
|
3122 |
+
<line num="1305" type="stmt" count="0"/>
|
3123 |
+
<line num="1306" type="stmt" count="0"/>
|
3124 |
<line num="1307" type="stmt" count="0"/>
|
|
|
3125 |
<line num="1309" type="stmt" count="0"/>
|
3126 |
+
<line num="1311" type="stmt" count="0"/>
|
3127 |
+
<line num="1312" type="stmt" count="0"/>
|
3128 |
+
<line num="1313" type="stmt" count="0"/>
|
3129 |
+
<line num="1316" type="stmt" count="1"/>
|
3130 |
<line num="1319" type="stmt" count="0"/>
|
3131 |
+
<line num="1321" type="stmt" count="0"/>
|
3132 |
+
<line num="1322" type="stmt" count="0"/>
|
3133 |
<line num="1325" type="stmt" count="1"/>
|
3134 |
+
<line num="1336" type="method" name="get_filelist" visibility="public" complexity="10" crap="10.11" count="9"/>
|
3135 |
+
<line num="1339" type="stmt" count="9"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
3136 |
<line num="1340" type="stmt" count="0"/>
|
3137 |
+
<line num="1344" type="stmt" count="9"/>
|
3138 |
+
<line num="1347" type="stmt" count="9"/>
|
3139 |
+
<line num="1348" type="stmt" count="0"/>
|
3140 |
+
<line num="1352" type="stmt" count="9"/>
|
3141 |
+
<line num="1355" type="stmt" count="9"/>
|
3142 |
+
<line num="1356" type="stmt" count="9"/>
|
3143 |
+
<line num="1357" type="stmt" count="9"/>
|
3144 |
+
<line num="1360" type="stmt" count="9"/>
|
3145 |
+
<line num="1363" type="stmt" count="9"/>
|
3146 |
+
<line num="1374" type="stmt" count="9"/>
|
3147 |
+
<line num="1375" type="stmt" count="9"/>
|
3148 |
+
<line num="1376" type="stmt" count="9"/>
|
3149 |
+
<line num="1377" type="stmt" count="9"/>
|
3150 |
+
<line num="1378" type="stmt" count="9"/>
|
3151 |
+
<line num="1380" type="stmt" count="9"/>
|
3152 |
+
<line num="1382" type="stmt" count="9"/>
|
3153 |
+
<line num="1385" type="stmt" count="9"/>
|
3154 |
+
<line num="1386" type="stmt" count="0"/>
|
3155 |
+
<line num="1388" type="stmt" count="9"/>
|
3156 |
+
<line num="1389" type="stmt" count="9"/>
|
3157 |
+
<line num="1392" type="stmt" count="9"/>
|
3158 |
+
<line num="1393" type="stmt" count="9"/>
|
3159 |
+
<line num="1396" type="stmt" count="0"/>
|
3160 |
+
<line num="1398" type="stmt" count="9"/>
|
3161 |
+
<line num="1401" type="stmt" count="9"/>
|
3162 |
+
<line num="1403" type="stmt" count="9"/>
|
3163 |
+
<line num="1404" type="stmt" count="9"/>
|
3164 |
+
<line num="1406" type="stmt" count="9"/>
|
3165 |
+
<line num="1408" type="stmt" count="9"/>
|
3166 |
+
<line num="1412" type="stmt" count="9"/>
|
3167 |
+
<line num="1415" type="stmt" count="9"/>
|
3168 |
+
<line num="1418" type="stmt" count="9"/>
|
3169 |
+
<line num="1419" type="stmt" count="9"/>
|
3170 |
+
<line num="1420" type="stmt" count="9"/>
|
3171 |
+
<line num="1421" type="stmt" count="9"/>
|
3172 |
+
<line num="1423" type="stmt" count="9"/>
|
3173 |
+
<line num="1426" type="stmt" count="9"/>
|
3174 |
+
<line num="1442" type="method" name="get_filtered_filelist" visibility="public" complexity="8" crap="8.30" count="9"/>
|
3175 |
+
<line num="1445" type="stmt" count="9"/>
|
3176 |
+
<line num="1446" type="stmt" count="0"/>
|
3177 |
+
<line num="1450" type="stmt" count="9"/>
|
3178 |
+
<line num="1453" type="stmt" count="9"/>
|
3179 |
+
<line num="1454" type="stmt" count="0"/>
|
3180 |
+
<line num="1458" type="stmt" count="9"/>
|
3181 |
+
<line num="1461" type="stmt" count="9"/>
|
3182 |
+
<line num="1464" type="stmt" count="9"/>
|
3183 |
+
<line num="1465" type="stmt" count="9"/>
|
3184 |
+
<line num="1467" type="stmt" count="9"/>
|
3185 |
+
<line num="1468" type="stmt" count="0"/>
|
3186 |
+
<line num="1471" type="stmt" count="9"/>
|
3187 |
+
<line num="1472" type="stmt" count="9"/>
|
3188 |
+
<line num="1475" type="stmt" count="9"/>
|
3189 |
+
<line num="1476" type="stmt" count="9"/>
|
3190 |
+
<line num="1479" type="stmt" count="9"/>
|
3191 |
+
<line num="1482" type="stmt" count="9"/>
|
3192 |
+
<line num="1485" type="stmt" count="9"/>
|
3193 |
+
<line num="1497" type="method" name="generate_archive_path" visibility="public" complexity="3" crap="3.00" count="9"/>
|
3194 |
+
<line num="1499" type="stmt" count="9"/>
|
3195 |
+
<line num="1502" type="stmt" count="9"/>
|
3196 |
+
<line num="1505" type="stmt" count="9"/>
|
3197 |
+
<line num="1506" type="stmt" count="0"/>
|
3198 |
+
<line num="1510" type="stmt" count="9"/>
|
3199 |
+
<line num="1513" type="stmt" count="9"/>
|
3200 |
+
<line num="1515" type="stmt" count="9"/>
|
3201 |
+
<line num="1516" type="stmt" count="9"/>
|
3202 |
+
<line num="1517" type="stmt" count="9"/>
|
3203 |
+
<line num="1518" type="stmt" count="9"/>
|
3204 |
+
<line num="1519" type="stmt" count="9"/>
|
3205 |
+
<line num="1520" type="stmt" count="9"/>
|
3206 |
+
<line num="1521" type="stmt" count="9"/>
|
3207 |
+
<line num="1524" type="stmt" count="9"/>
|
3208 |
+
<line num="1527" type="stmt" count="9"/>
|
3209 |
+
<line num="1529" type="stmt" count="9"/>
|
3210 |
+
<line num="1531" type="stmt" count="9"/>
|
3211 |
+
<line num="1532" type="stmt" count="9"/>
|
3212 |
+
<line num="1534" type="stmt" count="9"/>
|
3213 |
+
<line num="1547" type="method" name="archive_files" visibility="public" complexity="21" crap="29.71" count="9"/>
|
3214 |
+
<line num="1549" type="stmt" count="9"/>
|
3215 |
+
<line num="1550" type="stmt" count="9"/>
|
3216 |
+
<line num="1551" type="stmt" count="9"/>
|
3217 |
+
<line num="1553" type="stmt" count="9"/>
|
3218 |
+
<line num="1555" type="stmt" count="9"/>
|
3219 |
+
<line num="1556" type="stmt" count="9"/>
|
3220 |
+
<line num="1557" type="stmt" count="9"/>
|
3221 |
+
<line num="1559" type="stmt" count="9"/>
|
3222 |
+
<line num="1560" type="stmt" count="0"/>
|
3223 |
+
<line num="1561" type="stmt" count="0"/>
|
3224 |
+
<line num="1562" type="stmt" count="0"/>
|
3225 |
+
<line num="1566" type="stmt" count="9"/>
|
3226 |
+
<line num="1569" type="stmt" count="9"/>
|
3227 |
+
<line num="1572" type="stmt" count="9"/>
|
3228 |
+
<line num="1575" type="stmt" count="9"/>
|
3229 |
+
<line num="1578" type="stmt" count="9"/>
|
3230 |
+
<line num="1579" type="stmt" count="0"/>
|
3231 |
+
<line num="1580" type="stmt" count="0"/>
|
3232 |
+
<line num="1584" type="stmt" count="9"/>
|
3233 |
+
<line num="1585" type="stmt" count="9"/>
|
3234 |
+
<line num="1588" type="stmt" count="9"/>
|
3235 |
+
<line num="1589" type="stmt" count="9"/>
|
3236 |
+
<line num="1590" type="stmt" count="9"/>
|
3237 |
+
<line num="1591" type="stmt" count="9"/>
|
3238 |
+
<line num="1593" type="stmt" count="9"/>
|
3239 |
+
<line num="1595" type="stmt" count="9"/>
|
3240 |
+
<line num="1596" type="stmt" count="9"/>
|
3241 |
+
<line num="1597" type="stmt" count="9"/>
|
3242 |
+
<line num="1598" type="stmt" count="9"/>
|
3243 |
+
<line num="1599" type="stmt" count="9"/>
|
3244 |
+
<line num="1600" type="stmt" count="9"/>
|
3245 |
+
<line num="1601" type="stmt" count="9"/>
|
3246 |
+
<line num="1602" type="stmt" count="9"/>
|
3247 |
+
<line num="1603" type="stmt" count="9"/>
|
3248 |
+
<line num="1605" type="stmt" count="9"/>
|
3249 |
+
<line num="1617" type="stmt" count="9"/>
|
3250 |
+
<line num="1619" type="stmt" count="9"/>
|
3251 |
+
<line num="1620" type="stmt" count="9"/>
|
3252 |
+
<line num="1623" type="stmt" count="9"/>
|
3253 |
+
<line num="1625" type="stmt" count="9"/>
|
3254 |
+
<line num="1627" type="stmt" count="9"/>
|
3255 |
+
<line num="1628" type="stmt" count="9"/>
|
3256 |
+
<line num="1629" type="stmt" count="9"/>
|
3257 |
+
<line num="1631" type="stmt" count="9"/>
|
3258 |
+
<line num="1633" type="stmt" count="9"/>
|
3259 |
<line num="1634" type="stmt" count="0"/>
|
3260 |
<line num="1635" type="stmt" count="0"/>
|
3261 |
<line num="1636" type="stmt" count="0"/>
|
3262 |
+
<line num="1638" type="stmt" count="0"/>
|
3263 |
+
<line num="1639" type="stmt" count="0"/>
|
3264 |
+
<line num="1641" type="stmt" count="0"/>
|
3265 |
+
<line num="1642" type="stmt" count="0"/>
|
3266 |
+
<line num="1643" type="stmt" count="0"/>
|
3267 |
+
<line num="1649" type="stmt" count="9"/>
|
3268 |
+
<line num="1650" type="stmt" count="9"/>
|
3269 |
+
<line num="1651" type="stmt" count="6"/>
|
3270 |
+
<line num="1652" type="stmt" count="6"/>
|
3271 |
+
<line num="1653" type="stmt" count="6"/>
|
3272 |
<line num="1654" type="stmt" count="4"/>
|
3273 |
<line num="1655" type="stmt" count="4"/>
|
3274 |
<line num="1656" type="stmt" count="4"/>
|
3275 |
<line num="1657" type="stmt" count="4"/>
|
3276 |
+
<line num="1658" type="stmt" count="1"/>
|
3277 |
+
<line num="1660" type="stmt" count="0"/>
|
3278 |
+
<line num="1661" type="stmt" count="0"/>
|
3279 |
+
<line num="1662" type="stmt" count="1"/>
|
3280 |
+
<line num="1664" type="stmt" count="0"/>
|
3281 |
+
<line num="1665" type="stmt" count="0"/>
|
3282 |
+
<line num="1666" type="stmt" count="1"/>
|
3283 |
+
<line num="1668" type="stmt" count="0"/>
|
3284 |
+
<line num="1669" type="stmt" count="0"/>
|
3285 |
+
<line num="1670" type="stmt" count="1"/>
|
3286 |
+
<line num="1672" type="stmt" count="0"/>
|
3287 |
+
<line num="1673" type="stmt" count="0"/>
|
3288 |
+
<line num="1674" type="stmt" count="1"/>
|
3289 |
+
<line num="1675" type="stmt" count="1"/>
|
3290 |
+
<line num="1676" type="stmt" count="1"/>
|
3291 |
+
<line num="1677" type="stmt" count="1"/>
|
3292 |
+
<line num="1678" type="stmt" count="0"/>
|
3293 |
+
<line num="1679" type="stmt" count="0"/>
|
3294 |
+
<line num="1680" type="stmt" count="0"/>
|
3295 |
+
<line num="1681" type="stmt" count="9"/>
|
3296 |
+
<line num="1683" type="stmt" count="9"/>
|
3297 |
+
<line num="1684" type="stmt" count="9"/>
|
3298 |
+
<line num="1687" type="stmt" count="9"/>
|
3299 |
+
<line num="1688" type="stmt" count="9"/>
|
3300 |
+
<line num="1689" type="stmt" count="0"/>
|
|
|
|
|
|
|
3301 |
<line num="1690" type="stmt" count="0"/>
|
3302 |
+
<line num="1691" type="stmt" count="9"/>
|
3303 |
+
<line num="1692" type="stmt" count="9"/>
|
3304 |
+
<line num="1693" type="stmt" count="9"/>
|
3305 |
+
<line num="1694" type="stmt" count="9"/>
|
3306 |
+
<line num="1695" type="stmt" count="9"/>
|
3307 |
+
<line num="1696" type="stmt" count="9"/>
|
3308 |
+
<line num="1697" type="stmt" count="9"/>
|
3309 |
+
<line num="1698" type="stmt" count="9"/>
|
3310 |
+
<line num="1699" type="stmt" count="9"/>
|
3311 |
+
<line num="1701" type="stmt" count="9"/>
|
3312 |
+
<line num="1702" type="stmt" count="9"/>
|
3313 |
+
<line num="1704" type="stmt" count="9"/>
|
3314 |
+
<line num="1706" type="stmt" count="9"/>
|
3315 |
+
<line num="1707" type="stmt" count="0"/>
|
3316 |
+
<line num="1708" type="stmt" count="0"/>
|
3317 |
+
<line num="1710" type="stmt" count="9"/>
|
3318 |
+
<line num="1711" type="stmt" count="0"/>
|
3319 |
+
<line num="1712" type="stmt" count="0"/>
|
3320 |
+
<line num="1715" type="stmt" count="9"/>
|
3321 |
+
<line num="1718" type="stmt" count="9"/>
|
3322 |
+
<line num="1721" type="stmt" count="9"/>
|
3323 |
+
<line num="1724" type="stmt" count="9"/>
|
3324 |
+
<line num="1726" type="stmt" count="9"/>
|
3325 |
+
<line num="1747" type="method" name="get_archive_list" visibility="public" complexity="11" crap="11.13" count="9"/>
|
3326 |
+
<line num="1749" type="stmt" count="9"/>
|
3327 |
+
<line num="1752" type="stmt" count="9"/>
|
3328 |
+
<line num="1755" type="stmt" count="9"/>
|
3329 |
+
<line num="1756" type="stmt" count="9"/>
|
3330 |
+
<line num="1757" type="stmt" count="9"/>
|
3331 |
+
<line num="1760" type="stmt" count="9"/>
|
3332 |
+
<line num="1761" type="stmt" count="0"/>
|
3333 |
+
<line num="1765" type="stmt" count="9"/>
|
3334 |
+
<line num="1768" type="stmt" count="9"/>
|
3335 |
+
<line num="1769" type="stmt" count="0"/>
|
3336 |
+
<line num="1773" type="stmt" count="9"/>
|
3337 |
+
<line num="1774" type="stmt" count="0"/>
|
3338 |
+
<line num="1776" type="stmt" count="9"/>
|
3339 |
+
<line num="1777" type="stmt" count="9"/>
|
3340 |
+
<line num="1780" type="stmt" count="9"/>
|
3341 |
+
<line num="1781" type="stmt" count="9"/>
|
3342 |
+
<line num="1784" type="stmt" count="9"/>
|
3343 |
+
<line num="1786" type="stmt" count="9"/>
|
3344 |
+
<line num="1789" type="stmt" count="9"/>
|
3345 |
+
<line num="1792" type="stmt" count="9"/>
|
3346 |
+
<line num="1793" type="stmt" count="9"/>
|
3347 |
+
<line num="1795" type="stmt" count="9"/>
|
3348 |
+
<line num="1798" type="stmt" count="9"/>
|
3349 |
+
<line num="1799" type="stmt" count="0"/>
|
3350 |
+
<line num="1802" type="stmt" count="9"/>
|
3351 |
+
<line num="1803" type="stmt" count="9"/>
|
3352 |
+
<line num="1807" type="stmt" count="9"/>
|
3353 |
+
<line num="1808" type="stmt" count="9"/>
|
3354 |
+
<line num="1809" type="stmt" count="9"/>
|
3355 |
+
<line num="1810" type="stmt" count="9"/>
|
3356 |
+
<line num="1811" type="stmt" count="9"/>
|
3357 |
+
<line num="1812" type="stmt" count="9"/>
|
3358 |
+
<line num="1813" type="stmt" count="9"/>
|
3359 |
+
<line num="1814" type="stmt" count="9"/>
|
3360 |
+
<line num="1818" type="stmt" count="9"/>
|
3361 |
+
<line num="1819" type="stmt" count="1"/>
|
3362 |
+
<line num="1821" type="stmt" count="9"/>
|
3363 |
+
<line num="1822" type="stmt" count="9"/>
|
3364 |
+
<line num="1825" type="stmt" count="9"/>
|
3365 |
+
<line num="1836" type="method" name="delete_archive_file" visibility="public" complexity="11" crap="132" count="0"/>
|
3366 |
+
<line num="1839" type="stmt" count="0"/>
|
3367 |
+
<line num="1840" type="stmt" count="0"/>
|
3368 |
+
<line num="1844" type="stmt" count="0"/>
|
3369 |
+
<line num="1847" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3370 |
<line num="1850" type="stmt" count="0"/>
|
3371 |
+
<line num="1851" type="stmt" count="0"/>
|
3372 |
+
<line num="1852" type="stmt" count="0"/>
|
3373 |
+
<line num="1853" type="stmt" count="0"/>
|
|
|
3374 |
<line num="1855" type="stmt" count="0"/>
|
3375 |
<line num="1856" type="stmt" count="0"/>
|
3376 |
<line num="1857" type="stmt" count="0"/>
|
3377 |
+
<line num="1859" type="stmt" count="0"/>
|
3378 |
+
<line num="1861" type="stmt" count="0"/>
|
3379 |
+
<line num="1865" type="stmt" count="0"/>
|
|
|
|
|
3380 |
<line num="1866" type="stmt" count="0"/>
|
3381 |
<line num="1867" type="stmt" count="0"/>
|
3382 |
+
<line num="1869" type="stmt" count="0"/>
|
3383 |
+
<line num="1870" type="stmt" count="0"/>
|
3384 |
+
<line num="1871" type="stmt" count="0"/>
|
3385 |
+
<line num="1873" type="stmt" count="0"/>
|
3386 |
+
<line num="1875" type="stmt" count="0"/>
|
3387 |
+
<line num="1879" type="stmt" count="0"/>
|
3388 |
+
<line num="1880" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
3389 |
<line num="1884" type="stmt" count="0"/>
|
3390 |
+
<line num="1887" type="stmt" count="0"/>
|
|
|
|
|
3391 |
<line num="1889" type="stmt" count="0"/>
|
3392 |
+
<line num="1890" type="stmt" count="0"/>
|
3393 |
+
<line num="1891" type="stmt" count="0"/>
|
3394 |
+
<line num="1893" type="stmt" count="0"/>
|
3395 |
+
<line num="1895" type="stmt" count="0"/>
|
3396 |
+
<line num="1900" type="stmt" count="0"/>
|
3397 |
+
<line num="1901" type="stmt" count="0"/>
|
3398 |
+
<line num="1902" type="stmt" count="0"/>
|
3399 |
+
<line num="1905" type="stmt" count="0"/>
|
3400 |
+
<line num="1907" type="stmt" count="0"/>
|
3401 |
+
<line num="1908" type="stmt" count="0"/>
|
3402 |
+
<line num="1909" type="stmt" count="0"/>
|
3403 |
+
<line num="1911" type="stmt" count="0"/>
|
3404 |
+
<line num="1913" type="stmt" count="0"/>
|
3405 |
+
<line num="1918" type="stmt" count="0"/>
|
3406 |
+
<line num="1919" type="stmt" count="0"/>
|
3407 |
+
<line num="1920" type="stmt" count="0"/>
|
3408 |
+
<line num="1922" type="stmt" count="0"/>
|
3409 |
+
<line num="1925" type="stmt" count="0"/>
|
3410 |
+
<line num="1926" type="stmt" count="0"/>
|
3411 |
+
<line num="1927" type="stmt" count="0"/>
|
3412 |
+
<line num="1928" type="stmt" count="0"/>
|
3413 |
+
<line num="1930" type="stmt" count="0"/>
|
3414 |
+
<line num="1931" type="stmt" count="0"/>
|
3415 |
+
<line num="1941" type="stmt" count="0"/>
|
3416 |
+
<line num="1944" type="stmt" count="0"/>
|
3417 |
+
<line num="1957" type="method" name="get_dump_file" visibility="public" complexity="9" crap="25.08" count="1"/>
|
3418 |
+
<line num="1959" type="stmt" count="1"/>
|
3419 |
+
<line num="1960" type="stmt" count="0"/>
|
3420 |
+
<line num="1980" type="stmt" count="1"/>
|
3421 |
+
<line num="1981" type="stmt" count="1"/>
|
3422 |
+
<line num="1982" type="stmt" count="1"/>
|
3423 |
+
<line num="1983" type="stmt" count="1"/>
|
3424 |
<line num="1987" type="stmt" count="0"/>
|
3425 |
+
<line num="1990" type="stmt" count="0"/>
|
3426 |
+
<line num="1993" type="stmt" count="0"/>
|
3427 |
+
<line num="1994" type="stmt" count="0"/>
|
3428 |
+
<line num="1998" type="stmt" count="0"/>
|
3429 |
+
<line num="1999" type="stmt" count="0"/>
|
3430 |
+
<line num="2000" type="method" name="anonymous function" complexity="3" crap="12" count="0"/>
|
3431 |
+
<line num="2001" type="stmt" count="0"/>
|
3432 |
+
<line num="2002" type="stmt" count="0"/>
|
3433 |
+
<line num="2005" type="stmt" count="0"/>
|
3434 |
+
<line num="2006" type="stmt" count="0"/>
|
3435 |
+
<line num="2009" type="stmt" count="0"/>
|
3436 |
+
<line num="2011" type="stmt" count="0"/>
|
3437 |
+
<line num="2018" type="stmt" count="0"/>
|
3438 |
+
<line num="2019" type="stmt" count="0"/>
|
3439 |
+
<line num="2020" type="stmt" count="0"/>
|
3440 |
+
<line num="2021" type="stmt" count="0"/>
|
3441 |
+
<line num="2023" type="stmt" count="0"/>
|
3442 |
+
<line num="2026" type="stmt" count="0"/>
|
3443 |
+
<line num="2045" type="method" name="restore_archive_file" visibility="public" complexity="33" crap="91.80" count="1"/>
|
3444 |
+
<line num="2046" type="stmt" count="1"/>
|
3445 |
+
<line num="2048" type="stmt" count="1"/>
|
3446 |
+
<line num="2049" type="stmt" count="1"/>
|
3447 |
+
<line num="2050" type="stmt" count="1"/>
|
3448 |
+
<line num="2053" type="stmt" count="1"/>
|
3449 |
+
<line num="2055" type="stmt" count="1"/>
|
3450 |
+
<line num="2063" type="stmt" count="1"/>
|
3451 |
+
<line num="2066" type="stmt" count="1"/>
|
3452 |
+
<line num="2067" type="stmt" count="0"/>
|
3453 |
<line num="2068" type="stmt" count="0"/>
|
3454 |
+
<line num="2069" type="stmt" count="0"/>
|
3455 |
+
<line num="2072" type="stmt" count="1"/>
|
3456 |
+
<line num="2073" type="stmt" count="0"/>
|
3457 |
+
<line num="2074" type="stmt" count="0"/>
|
3458 |
+
<line num="2075" type="stmt" count="0"/>
|
3459 |
+
<line num="2079" type="stmt" count="1"/>
|
3460 |
+
<line num="2080" type="stmt" count="0"/>
|
3461 |
+
<line num="2081" type="stmt" count="0"/>
|
3462 |
+
<line num="2082" type="stmt" count="0"/>
|
3463 |
+
<line num="2090" type="stmt" count="1"/>
|
3464 |
+
<line num="2091" type="stmt" count="1"/>
|
3465 |
+
<line num="2092" type="stmt" count="0"/>
|
3466 |
+
<line num="2093" type="stmt" count="1"/>
|
3467 |
+
<line num="2094" type="stmt" count="1"/>
|
3468 |
+
<line num="2095" type="stmt" count="1"/>
|
3469 |
+
<line num="2096" type="stmt" count="0"/>
|
3470 |
+
<line num="2097" type="stmt" count="0"/>
|
3471 |
+
<line num="2098" type="stmt" count="0"/>
|
3472 |
+
<line num="2106" type="stmt" count="1"/>
|
3473 |
+
<line num="2107" type="stmt" count="1"/>
|
3474 |
+
<line num="2108" type="stmt" count="0"/>
|
3475 |
+
<line num="2109" type="stmt" count="1"/>
|
3476 |
+
<line num="2110" type="stmt" count="1"/>
|
3477 |
+
<line num="2111" type="stmt" count="1"/>
|
3478 |
+
<line num="2112" type="stmt" count="0"/>
|
3479 |
<line num="2113" type="stmt" count="0"/>
|
3480 |
+
<line num="2114" type="stmt" count="0"/>
|
3481 |
+
<line num="2118" type="stmt" count="1"/>
|
3482 |
+
<line num="2120" type="stmt" count="1"/>
|
3483 |
+
<line num="2121" type="stmt" count="1"/>
|
|
|
3484 |
<line num="2122" type="stmt" count="0"/>
|
3485 |
<line num="2123" type="stmt" count="0"/>
|
3486 |
+
<line num="2124" type="stmt" count="0"/>
|
3487 |
+
<line num="2127" type="stmt" count="1"/>
|
3488 |
+
<line num="2129" type="stmt" count="1"/>
|
3489 |
+
<line num="2130" type="stmt" count="0"/>
|
3490 |
<line num="2131" type="stmt" count="0"/>
|
3491 |
<line num="2132" type="stmt" count="0"/>
|
3492 |
+
<line num="2135" type="stmt" count="1"/>
|
3493 |
+
<line num="2137" type="stmt" count="1"/>
|
3494 |
+
<line num="2138" type="stmt" count="1"/>
|
3495 |
+
<line num="2139" type="stmt" count="1"/>
|
3496 |
+
<line num="2140" type="stmt" count="0"/>
|
3497 |
<line num="2141" type="stmt" count="0"/>
|
3498 |
+
<line num="2142" type="stmt" count="0"/>
|
3499 |
+
<line num="2147" type="stmt" count="1"/>
|
3500 |
+
<line num="2148" type="stmt" count="1"/>
|
3501 |
+
<line num="2149" type="stmt" count="1"/>
|
3502 |
+
<line num="2150" type="stmt" count="1"/>
|
3503 |
+
<line num="2151" type="stmt" count="1"/>
|
3504 |
+
<line num="2152" type="stmt" count="1"/>
|
3505 |
+
<line num="2153" type="stmt" count="1"/>
|
3506 |
+
<line num="2154" type="stmt" count="1"/>
|
3507 |
+
<line num="2155" type="stmt" count="1"/>
|
3508 |
+
<line num="2158" type="stmt" count="1"/>
|
3509 |
+
<line num="2160" type="stmt" count="1"/>
|
3510 |
+
<line num="2169" type="stmt" count="1"/>
|
3511 |
+
<line num="2175" type="stmt" count="1"/>
|
3512 |
+
<line num="2176" type="stmt" count="1"/>
|
|
|
3513 |
<line num="2177" type="stmt" count="0"/>
|
3514 |
+
<line num="2178" type="stmt" count="0"/>
|
3515 |
<line num="2179" type="stmt" count="0"/>
|
3516 |
+
<line num="2181" type="stmt" count="1"/>
|
3517 |
+
<line num="2182" type="stmt" count="0"/>
|
3518 |
+
<line num="2185" type="stmt" count="1"/>
|
3519 |
+
<line num="2186" type="stmt" count="1"/>
|
3520 |
+
<line num="2187" type="stmt" count="1"/>
|
3521 |
+
<line num="2188" type="stmt" count="1"/>
|
3522 |
+
<line num="2189" type="stmt" count="1"/>
|
3523 |
+
<line num="2191" type="stmt" count="1"/>
|
3524 |
<line num="2192" type="stmt" count="0"/>
|
3525 |
+
<line num="2202" type="stmt" count="0"/>
|
3526 |
+
<line num="2204" type="stmt" count="0"/>
|
3527 |
+
<line num="2205" type="stmt" count="0"/>
|
3528 |
+
<line num="2206" type="stmt" count="0"/>
|
3529 |
<line num="2207" type="stmt" count="0"/>
|
3530 |
+
<line num="2208" type="stmt" count="0"/>
|
3531 |
<line num="2210" type="stmt" count="0"/>
|
3532 |
+
<line num="2220" type="stmt" count="1"/>
|
3533 |
+
<line num="2229" type="stmt" count="1"/>
|
3534 |
+
<line num="2230" type="stmt" count="1"/>
|
3535 |
+
<line num="2231" type="stmt" count="1"/>
|
3536 |
+
<line num="2232" type="stmt" count="1"/>
|
3537 |
+
<line num="2233" type="stmt" count="1"/>
|
3538 |
+
<line num="2236" type="stmt" count="1"/>
|
3539 |
+
<line num="2237" type="stmt" count="0"/>
|
3540 |
+
<line num="2238" type="stmt" count="0"/>
|
3541 |
+
<line num="2240" type="stmt" count="1"/>
|
3542 |
+
<line num="2241" type="stmt" count="0"/>
|
3543 |
+
<line num="2243" type="stmt" count="0"/>
|
3544 |
+
<line num="2244" type="stmt" count="0"/>
|
3545 |
+
<line num="2245" type="stmt" count="0"/>
|
3546 |
+
<line num="2246" type="stmt" count="0"/>
|
3547 |
<line num="2249" type="stmt" count="1"/>
|
3548 |
+
<line num="2250" type="stmt" count="1"/>
|
3549 |
+
<line num="2253" type="stmt" count="1"/>
|
3550 |
+
<line num="2254" type="stmt" count="1"/>
|
3551 |
+
<line num="2257" type="stmt" count="1"/>
|
3552 |
+
<line num="2258" type="stmt" count="0"/>
|
3553 |
<line num="2259" type="stmt" count="0"/>
|
3554 |
<line num="2260" type="stmt" count="0"/>
|
3555 |
+
<line num="2262" type="stmt" count="1"/>
|
3556 |
+
<line num="2263" type="stmt" count="1"/>
|
3557 |
+
<line num="2264" type="stmt" count="1"/>
|
3558 |
+
<line num="2267" type="stmt" count="1"/>
|
3559 |
+
<line num="2270" type="stmt" count="1"/>
|
3560 |
+
<line num="2273" type="stmt" count="1"/>
|
3561 |
+
<line num="2274" type="stmt" count="1"/>
|
3562 |
+
<line num="2277" type="stmt" count="1"/>
|
3563 |
+
<line num="2281" type="stmt" count="1"/>
|
3564 |
+
<line num="2283" type="stmt" count="1"/>
|
3565 |
+
<line num="2284" type="stmt" count="1"/>
|
3566 |
+
<line num="2287" type="stmt" count="1"/>
|
3567 |
+
<line num="2290" type="stmt" count="1"/>
|
3568 |
+
<line num="2292" type="stmt" count="1"/>
|
3569 |
+
<line num="2294" type="stmt" count="1"/>
|
3570 |
+
<line num="2297" type="stmt" count="1"/>
|
3571 |
+
<line num="2310" type="method" name="page_archives" visibility="public" complexity="4" crap="20" count="0"/>
|
3572 |
+
<line num="2311" type="stmt" count="0"/>
|
3573 |
+
<line num="2314" type="stmt" count="0"/>
|
3574 |
+
<line num="2316" type="stmt" count="0"/>
|
|
|
|
|
|
|
3575 |
<line num="2319" type="stmt" count="0"/>
|
3576 |
+
<line num="2322" type="stmt" count="0"/>
|
3577 |
+
<line num="2323" type="stmt" count="0"/>
|
3578 |
+
<line num="2325" type="stmt" count="0"/>
|
|
|
|
|
3579 |
<line num="2328" type="stmt" count="0"/>
|
3580 |
+
<line num="2329" type="stmt" count="0"/>
|
3581 |
+
<line num="2330" type="stmt" count="0"/>
|
3582 |
+
<line num="2332" type="stmt" count="0"/>
|
3583 |
+
<line num="2333" type="stmt" count="0"/>
|
3584 |
+
<line num="2336" type="stmt" count="0"/>
|
3585 |
<line num="2339" type="stmt" count="0"/>
|
3586 |
+
<line num="2342" type="stmt" count="0"/>
|
3587 |
+
<line num="2344" type="stmt" count="0"/>
|
3588 |
+
<line num="2345" type="stmt" count="0"/>
|
3589 |
+
<line num="2346" type="stmt" count="0"/>
|
|
|
|
|
3590 |
<line num="2349" type="stmt" count="0"/>
|
3591 |
+
<line num="2351" type="stmt" count="0"/>
|
3592 |
+
<line num="2354" type="stmt" count="0"/>
|
3593 |
+
<line num="2355" type="stmt" count="0"/>
|
3594 |
+
<line num="2356" type="stmt" count="0"/>
|
3595 |
<line num="2358" type="stmt" count="0"/>
|
3596 |
+
<line num="2361" type="stmt" count="0"/>
|
3597 |
+
<line num="2362" type="stmt" count="0"/>
|
3598 |
+
<line num="2371" type="method" name="boldgrid_backup_now_callback" visibility="public" complexity="10" crap="110" count="0"/>
|
3599 |
+
<line num="2374" type="stmt" count="0"/>
|
3600 |
+
<line num="2375" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
3601 |
<line num="2376" type="stmt" count="0"/>
|
|
|
3602 |
<line num="2378" type="stmt" count="0"/>
|
3603 |
+
<line num="2379" type="stmt" count="0"/>
|
3604 |
+
<line num="2380" type="stmt" count="0"/>
|
3605 |
+
<line num="2383" type="stmt" count="0"/>
|
3606 |
+
<line num="2384" type="stmt" count="0"/>
|
3607 |
+
<line num="2385" type="stmt" count="0"/>
|
3608 |
+
<line num="2387" type="stmt" count="0"/>
|
3609 |
+
<line num="2388" type="stmt" count="0"/>
|
3610 |
+
<line num="2389" type="stmt" count="0"/>
|
3611 |
+
<line num="2391" type="stmt" count="0"/>
|
3612 |
+
<line num="2393" type="stmt" count="0"/>
|
3613 |
+
<line num="2394" type="stmt" count="0"/>
|
3614 |
+
<line num="2395" type="stmt" count="0"/>
|
3615 |
+
<line num="2397" type="stmt" count="0"/>
|
3616 |
+
<line num="2398" type="stmt" count="0"/>
|
3617 |
+
<line num="2400" type="stmt" count="0"/>
|
3618 |
+
<line num="2401" type="stmt" count="0"/>
|
3619 |
+
<line num="2403" type="stmt" count="0"/>
|
3620 |
+
<line num="2406" type="stmt" count="0"/>
|
3621 |
+
<line num="2407" type="stmt" count="0"/>
|
3622 |
+
<line num="2408" type="stmt" count="0"/>
|
3623 |
+
<line num="2409" type="stmt" count="0"/>
|
3624 |
+
<line num="2410" type="stmt" count="0"/>
|
3625 |
+
<line num="2412" type="stmt" count="0"/>
|
3626 |
<line num="2413" type="stmt" count="0"/>
|
|
|
3627 |
<line num="2415" type="stmt" count="0"/>
|
3628 |
+
<line num="2416" type="stmt" count="0"/>
|
3629 |
+
<line num="2417" type="stmt" count="0"/>
|
3630 |
+
<line num="2426" type="stmt" count="0"/>
|
3631 |
+
<line num="2427" type="stmt" count="0"/>
|
3632 |
+
<line num="2439" type="method" name="download_archive_file_callback" visibility="public" complexity="10" crap="110" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
3633 |
<line num="2441" type="stmt" count="0"/>
|
|
|
|
|
3634 |
<line num="2444" type="stmt" count="0"/>
|
3635 |
+
<line num="2445" type="stmt" count="0"/>
|
3636 |
<line num="2446" type="stmt" count="0"/>
|
3637 |
+
<line num="2447" type="stmt" count="0"/>
|
3638 |
+
<line num="2450" type="stmt" count="0"/>
|
3639 |
+
<line num="2451" type="stmt" count="0"/>
|
3640 |
+
<line num="2452" type="stmt" count="0"/>
|
3641 |
+
<line num="2453" type="stmt" count="0"/>
|
3642 |
+
<line num="2454" type="stmt" count="0"/>
|
3643 |
+
<line num="2458" type="stmt" count="0"/>
|
3644 |
+
<line num="2459" type="stmt" count="0"/>
|
3645 |
+
<line num="2460" type="stmt" count="0"/>
|
3646 |
+
<line num="2461" type="stmt" count="0"/>
|
3647 |
+
<line num="2462" type="stmt" count="0"/>
|
3648 |
+
<line num="2466" type="stmt" count="0"/>
|
3649 |
+
<line num="2469" type="stmt" count="0"/>
|
3650 |
+
<line num="2470" type="stmt" count="0"/>
|
3651 |
+
<line num="2471" type="stmt" count="0"/>
|
3652 |
+
<line num="2472" type="stmt" count="0"/>
|
3653 |
+
<line num="2475" type="stmt" count="0"/>
|
3654 |
+
<line num="2478" type="stmt" count="0"/>
|
3655 |
<line num="2479" type="stmt" count="0"/>
|
3656 |
<line num="2480" type="stmt" count="0"/>
|
3657 |
<line num="2481" type="stmt" count="0"/>
|
3658 |
+
<line num="2485" type="stmt" count="0"/>
|
3659 |
+
<line num="2486" type="stmt" count="0"/>
|
3660 |
+
<line num="2487" type="stmt" count="0"/>
|
3661 |
+
<line num="2490" type="stmt" count="0"/>
|
3662 |
+
<line num="2491" type="stmt" count="0"/>
|
3663 |
+
<line num="2492" type="stmt" count="0"/>
|
3664 |
+
<line num="2493" type="stmt" count="0"/>
|
3665 |
<line num="2495" type="stmt" count="0"/>
|
3666 |
+
<line num="2497" type="stmt" count="0"/>
|
3667 |
+
<line num="2499" type="stmt" count="0"/>
|
3668 |
+
<line num="2500" type="stmt" count="0"/>
|
3669 |
+
<line num="2501" type="stmt" count="0"/>
|
3670 |
+
<line num="2504" type="stmt" count="0"/>
|
3671 |
+
<line num="2505" type="stmt" count="0"/>
|
3672 |
+
<line num="2515" type="method" name="page_backup_test" visibility="public" complexity="6" crap="42" count="0"/>
|
3673 |
+
<line num="2517" type="stmt" count="0"/>
|
3674 |
+
<line num="2520" type="stmt" count="0"/>
|
3675 |
+
<line num="2523" type="stmt" count="0"/>
|
3676 |
+
<line num="2526" type="stmt" count="0"/>
|
3677 |
+
<line num="2529" type="stmt" count="0"/>
|
3678 |
+
<line num="2531" type="stmt" count="0"/>
|
3679 |
+
<line num="2534" type="stmt" count="0"/>
|
3680 |
+
<line num="2537" type="stmt" count="0"/>
|
3681 |
+
<line num="2540" type="stmt" count="0"/>
|
3682 |
+
<line num="2543" type="stmt" count="0"/>
|
3683 |
+
<line num="2546" type="stmt" count="0"/>
|
3684 |
+
<line num="2548" type="stmt" count="0"/>
|
3685 |
+
<line num="2556" type="stmt" count="0"/>
|
3686 |
+
<line num="2557" type="stmt" count="0"/>
|
|
|
3687 |
<line num="2558" type="stmt" count="0"/>
|
3688 |
<line num="2559" type="stmt" count="0"/>
|
3689 |
+
<line num="2560" type="stmt" count="0"/>
|
3690 |
+
<line num="2563" type="stmt" count="0"/>
|
3691 |
<line num="2564" type="stmt" count="0"/>
|
3692 |
<line num="2565" type="stmt" count="0"/>
|
3693 |
<line num="2566" type="stmt" count="0"/>
|
3694 |
+
<line num="2567" type="stmt" count="0"/>
|
3695 |
<line num="2568" type="stmt" count="0"/>
|
3696 |
<line num="2569" type="stmt" count="0"/>
|
3697 |
+
<line num="2570" type="stmt" count="0"/>
|
3698 |
<line num="2572" type="stmt" count="0"/>
|
3699 |
<line num="2575" type="stmt" count="0"/>
|
3700 |
+
<line num="2576" type="stmt" count="0"/>
|
3701 |
+
<line num="2577" type="stmt" count="0"/>
|
3702 |
<line num="2578" type="stmt" count="0"/>
|
3703 |
+
<line num="2579" type="stmt" count="0"/>
|
3704 |
<line num="2580" type="stmt" count="0"/>
|
|
|
3705 |
<line num="2582" type="stmt" count="0"/>
|
3706 |
+
<line num="2583" type="stmt" count="0"/>
|
3707 |
+
<line num="2584" type="stmt" count="0"/>
|
3708 |
+
<line num="2586" type="stmt" count="0"/>
|
3709 |
<line num="2587" type="stmt" count="0"/>
|
3710 |
+
<line num="2588" type="stmt" count="0"/>
|
3711 |
<line num="2590" type="stmt" count="0"/>
|
3712 |
<line num="2591" type="stmt" count="0"/>
|
3713 |
+
<line num="2593" type="stmt" count="0"/>
|
3714 |
<line num="2594" type="stmt" count="0"/>
|
3715 |
+
<line num="2595" type="stmt" count="0"/>
|
3716 |
+
<line num="2602" type="stmt" count="0"/>
|
3717 |
+
<line num="2604" type="stmt" count="0"/>
|
3718 |
+
<line num="2605" type="stmt" count="0"/>
|
3719 |
+
<line num="2607" type="stmt" count="0"/>
|
3720 |
<line num="2612" type="stmt" count="0"/>
|
3721 |
+
<line num="2613" type="stmt" count="0"/>
|
3722 |
<line num="2614" type="stmt" count="0"/>
|
3723 |
+
<line num="2618" type="stmt" count="0"/>
|
|
|
3724 |
<line num="2619" type="stmt" count="0"/>
|
3725 |
+
<line num="2634" type="method" name="set_doing_cron" visibility="public" complexity="3" crap="3" count="29"/>
|
3726 |
+
<line num="2635" type="stmt" count="29"/>
|
3727 |
+
<line num="2636" type="stmt" count="29"/>
|
3728 |
+
<line num="2643" type="method" name="set_lang" visibility="public" complexity="1" crap="1" count="29"/>
|
3729 |
+
<line num="2648" type="stmt" count="29"/>
|
3730 |
+
<line num="2650" type="stmt" count="29"/>
|
3731 |
+
<line num="2651" type="stmt" count="29"/>
|
3732 |
+
<line num="2652" type="stmt" count="29"/>
|
3733 |
+
<line num="2653" type="stmt" count="29"/>
|
3734 |
+
<line num="2654" type="stmt" count="29"/>
|
3735 |
+
<line num="2655" type="stmt" count="29"/>
|
3736 |
+
<line num="2657" type="stmt" count="29"/>
|
3737 |
+
<line num="2658" type="stmt" count="29"/>
|
3738 |
+
<line num="2660" type="stmt" count="29"/>
|
3739 |
+
<line num="2661" type="stmt" count="29"/>
|
3740 |
+
<line num="2662" type="stmt" count="29"/>
|
3741 |
+
<line num="2663" type="stmt" count="29"/>
|
3742 |
+
<line num="2664" type="stmt" count="29"/>
|
3743 |
+
<line num="2665" type="stmt" count="29"/>
|
3744 |
+
<line num="2667" type="stmt" count="29"/>
|
3745 |
+
<line num="2668" type="stmt" count="29"/>
|
3746 |
+
<line num="2669" type="stmt" count="29"/>
|
3747 |
+
<line num="2675" type="stmt" count="29"/>
|
3748 |
+
<line num="2677" type="stmt" count="29"/>
|
3749 |
+
<line num="2678" type="stmt" count="29"/>
|
3750 |
+
<line num="2679" type="stmt" count="29"/>
|
3751 |
+
<line num="2680" type="stmt" count="29"/>
|
3752 |
+
<line num="2681" type="stmt" count="29"/>
|
3753 |
+
<line num="2683" type="stmt" count="29"/>
|
3754 |
+
<line num="2686" type="stmt" count="29"/>
|
3755 |
+
<line num="2687" type="stmt" count="29"/>
|
3756 |
+
<line num="2689" type="stmt" count="29"/>
|
3757 |
+
<line num="2691" type="stmt" count="29"/>
|
3758 |
+
<line num="2703" type="method" name="set_time_limit" visibility="public" complexity="2" crap="2" count="9"/>
|
3759 |
+
<line num="2704" type="stmt" count="9"/>
|
3760 |
+
<line num="2706" type="stmt" count="9"/>
|
3761 |
+
<line num="2707" type="stmt" count="9"/>
|
3762 |
+
<line num="2714" type="method" name="wp_ajax_restore" visibility="public" complexity="6" crap="42" count="0"/>
|
3763 |
+
<line num="2715" type="stmt" count="0"/>
|
3764 |
+
<line num="2716" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3765 |
<line num="2719" type="stmt" count="0"/>
|
3766 |
<line num="2720" type="stmt" count="0"/>
|
3767 |
+
<line num="2721" type="stmt" count="0"/>
|
3768 |
<line num="2723" type="stmt" count="0"/>
|
3769 |
<line num="2724" type="stmt" count="0"/>
|
3770 |
<line num="2725" type="stmt" count="0"/>
|
|
|
3771 |
<line num="2728" type="stmt" count="0"/>
|
3772 |
+
<line num="2729" type="stmt" count="0"/>
|
3773 |
<line num="2730" type="stmt" count="0"/>
|
3774 |
<line num="2732" type="stmt" count="0"/>
|
3775 |
<line num="2733" type="stmt" count="0"/>
|
3776 |
<line num="2734" type="stmt" count="0"/>
|
3777 |
<line num="2737" type="stmt" count="0"/>
|
3778 |
<line num="2738" type="stmt" count="0"/>
|
3779 |
+
<line num="2740" type="stmt" count="0"/>
|
|
|
3780 |
<line num="2753" type="stmt" count="0"/>
|
3781 |
+
<line num="2754" type="stmt" count="0"/>
|
3782 |
<line num="2756" type="stmt" count="0"/>
|
3783 |
+
<line num="2757" type="stmt" count="0"/>
|
3784 |
+
<line num="2758" type="stmt" count="0"/>
|
3785 |
<line num="2759" type="stmt" count="0"/>
|
3786 |
+
<line num="2760" type="stmt" count="0"/>
|
3787 |
<line num="2762" type="stmt" count="0"/>
|
3788 |
+
<line num="2763" type="stmt" count="0"/>
|
3789 |
<line num="2764" type="stmt" count="0"/>
|
3790 |
+
<line num="2765" type="stmt" count="0"/>
|
3791 |
<line num="2767" type="stmt" count="0"/>
|
3792 |
+
<line num="2769" type="stmt" count="0"/>
|
3793 |
<line num="2770" type="stmt" count="0"/>
|
3794 |
+
<line num="2786" type="method" name="boldgrid_backup_now_auto" visibility="public" complexity="4" crap="20" count="0"/>
|
3795 |
+
<line num="2788" type="stmt" count="0"/>
|
|
|
|
|
|
|
3796 |
<line num="2790" type="stmt" count="0"/>
|
3797 |
<line num="2791" type="stmt" count="0"/>
|
3798 |
+
<line num="2795" type="stmt" count="0"/>
|
|
|
|
|
|
|
3799 |
<line num="2798" type="stmt" count="0"/>
|
3800 |
<line num="2799" type="stmt" count="0"/>
|
|
|
|
|
|
|
3801 |
<line num="2803" type="stmt" count="0"/>
|
3802 |
+
<line num="2804" type="stmt" count="0"/>
|
3803 |
<line num="2805" type="stmt" count="0"/>
|
3804 |
+
<line num="2816" type="method" name="enforce_retention" visibility="public" complexity="8" crap="8.07" count="9"/>
|
3805 |
+
<line num="2817" type="stmt" count="9"/>
|
3806 |
+
<line num="2818" type="stmt" count="9"/>
|
3807 |
+
<line num="2819" type="stmt" count="9"/>
|
3808 |
+
<line num="2821" type="stmt" count="9"/>
|
3809 |
+
<line num="2822" type="stmt" count="9"/>
|
3810 |
+
<line num="2824" type="stmt" count="9"/>
|
3811 |
+
<line num="2825" type="stmt" count="9"/>
|
3812 |
+
<line num="2828" type="stmt" count="9"/>
|
3813 |
+
<line num="2829" type="stmt" count="9"/>
|
3814 |
+
<line num="2830" type="stmt" count="9"/>
|
3815 |
+
<line num="2831" type="stmt" count="9"/>
|
3816 |
+
<line num="2832" type="stmt" count="0"/>
|
3817 |
+
<line num="2833" type="stmt" count="0"/>
|
3818 |
+
<line num="2834" type="stmt" count="0"/>
|
3819 |
+
<line num="2835" type="stmt" count="9"/>
|
3820 |
+
<line num="2836" type="stmt" count="9"/>
|
3821 |
+
<line num="2837" type="stmt" count="9"/>
|
3822 |
+
<line num="2840" type="stmt" count="9"/>
|
3823 |
+
<line num="2843" type="stmt" count="9"/>
|
3824 |
+
<line num="2844" type="stmt" count="9"/>
|
3825 |
+
<line num="2845" type="stmt" count="9"/>
|
3826 |
+
<line num="2849" type="stmt" count="4"/>
|
3827 |
+
<line num="2852" type="stmt" count="4"/>
|
3828 |
+
<line num="2855" type="stmt" count="4"/>
|
3829 |
+
<line num="2856" type="stmt" count="4"/>
|
3830 |
+
<line num="2857" type="stmt" count="4"/>
|
3831 |
+
<line num="2860" type="stmt" count="4"/>
|
3832 |
+
<line num="2863" type="stmt" count="4"/>
|
3833 |
+
<line num="2866" type="stmt" count="4"/>
|
3834 |
+
<line num="2868" type="stmt" count="4"/>
|
3835 |
+
<line num="2869" type="stmt" count="4"/>
|
3836 |
+
<line num="2878" type="stmt" count="4"/>
|
3837 |
+
<line num="2879" type="stmt" count="4"/>
|
3838 |
+
<line num="2880" type="stmt" count="0"/>
|
3839 |
+
<line num="2882" type="stmt" count="4"/>
|
3840 |
+
<line num="2884" type="stmt" count="4"/>
|
3841 |
+
<line num="2885" type="stmt" count="4"/>
|
3842 |
+
<line num="2886" type="stmt" count="4"/>
|
3843 |
+
<line num="2893" type="method" name="add_thickbox" visibility="public" complexity="2" crap="6" count="0"/>
|
3844 |
+
<line num="2894" type="stmt" count="0"/>
|
3845 |
+
<line num="2895" type="stmt" count="0"/>
|
3846 |
+
<line num="2896" type="stmt" count="0"/>
|
3847 |
+
<line num="2897" type="stmt" count="0"/>
|
3848 |
+
<metrics loc="2898" ncloc="1517" classes="1" methods="29" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="1043" coveredstatements="461" elements="1072" coveredelements="465"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3849 |
</file>
|
3850 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cron-log.php">
|
3851 |
<class name="Boldgrid_Backup_Admin_Cron_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin.Cron">
|
4023 |
</file>
|
4024 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cron.php">
|
4025 |
<class name="Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
4026 |
+
<metrics complexity="136" methods="26" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="453" coveredstatements="98" elements="479" coveredelements="102"/>
|
4027 |
</class>
|
4028 |
<line num="87" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
4029 |
<line num="89" type="stmt" count="29"/>
|
4030 |
<line num="90" type="stmt" count="29"/>
|
4031 |
+
<line num="97" type="method" name="get_cron_command" visibility="public" complexity="1" crap="1" count="1"/>
|
4032 |
+
<line num="98" type="stmt" count="1"/>
|
4033 |
<line num="114" type="method" name="add_cron_entry" visibility="public" complexity="9" crap="90" count="0"/>
|
4034 |
<line num="115" type="stmt" count="0"/>
|
4035 |
<line num="116" type="stmt" count="0"/>
|
4247 |
<line num="624" type="stmt" count="0"/>
|
4248 |
<line num="625" type="stmt" count="0"/>
|
4249 |
<line num="627" type="stmt" count="0"/>
|
4250 |
+
<line num="648" type="method" name="get_all" visibility="public" complexity="5" crap="5.47" count="2"/>
|
4251 |
+
<line num="655" type="stmt" count="2"/>
|
4252 |
<line num="656" type="stmt" count="0"/>
|
4253 |
+
<line num="668" type="stmt" count="2"/>
|
4254 |
+
<line num="669" type="stmt" count="2"/>
|
4255 |
+
<line num="672" type="stmt" count="2"/>
|
4256 |
+
<line num="673" type="stmt" count="2"/>
|
4257 |
+
<line num="676" type="stmt" count="2"/>
|
4258 |
+
<line num="677" type="stmt" count="2"/>
|
4259 |
+
<line num="679" type="stmt" count="2"/>
|
4260 |
+
<line num="680" type="stmt" count="2"/>
|
4261 |
<line num="681" type="stmt" count="0"/>
|
4262 |
<line num="682" type="stmt" count="0"/>
|
4263 |
+
<line num="685" type="stmt" count="2"/>
|
4264 |
<line num="686" type="stmt" count="0"/>
|
4265 |
+
<line num="689" type="stmt" count="2"/>
|
4266 |
<line num="702" type="method" name="get_our_crons" visibility="public" complexity="4" crap="20" count="0"/>
|
4267 |
<line num="703" type="stmt" count="0"/>
|
4268 |
<line num="704" type="stmt" count="0"/>
|
4439 |
<line num="985" type="stmt" count="0"/>
|
4440 |
<line num="987" type="stmt" count="0"/>
|
4441 |
<line num="989" type="stmt" count="0"/>
|
4442 |
+
<line num="1000" type="method" name="get_cron_secret" visibility="public" complexity="3" crap="3" count="1"/>
|
4443 |
+
<line num="1001" type="stmt" count="1"/>
|
4444 |
+
<line num="1002" type="stmt" count="1"/>
|
4445 |
+
<line num="1004" type="stmt" count="1"/>
|
4446 |
+
<line num="1005" type="stmt" count="1"/>
|
4447 |
+
<line num="1007" type="stmt" count="1"/>
|
4448 |
+
<line num="1008" type="stmt" count="1"/>
|
4449 |
+
<line num="1010" type="stmt" count="1"/>
|
4450 |
+
<line num="1011" type="stmt" count="1"/>
|
4451 |
+
<line num="1013" type="stmt" count="1"/>
|
4452 |
<line num="1030" type="method" name="is_valid_call" visibility="public" complexity="5" crap="30" count="0"/>
|
4453 |
<line num="1032" type="stmt" count="0"/>
|
4454 |
<line num="1033" type="stmt" count="0"/>
|
4469 |
<line num="1074" type="stmt" count="0"/>
|
4470 |
<line num="1075" type="stmt" count="0"/>
|
4471 |
<line num="1077" type="stmt" count="0"/>
|
4472 |
+
<line num="1092" type="method" name="backup" visibility="public" complexity="2" crap="6" count="0"/>
|
4473 |
+
<line num="1093" type="stmt" count="0"/>
|
|
|
|
|
4474 |
<line num="1094" type="stmt" count="0"/>
|
4475 |
+
<line num="1095" type="stmt" count="0"/>
|
4476 |
+
<line num="1097" type="stmt" count="0"/>
|
4477 |
+
<line num="1098" type="stmt" count="0"/>
|
4478 |
+
<line num="1100" type="stmt" count="0"/>
|
4479 |
+
<line num="1112" type="method" name="restore" visibility="public" complexity="8" crap="72" count="0"/>
|
4480 |
<line num="1114" type="stmt" count="0"/>
|
|
|
4481 |
<line num="1117" type="stmt" count="0"/>
|
4482 |
<line num="1118" type="stmt" count="0"/>
|
4483 |
<line num="1119" type="stmt" count="0"/>
|
4484 |
+
<line num="1123" type="stmt" count="0"/>
|
4485 |
+
<line num="1124" type="stmt" count="0"/>
|
4486 |
+
<line num="1132" type="stmt" count="0"/>
|
4487 |
+
<line num="1133" type="stmt" count="0"/>
|
4488 |
+
<line num="1134" type="stmt" count="0"/>
|
4489 |
+
<line num="1135" type="stmt" count="0"/>
|
4490 |
+
<line num="1137" type="stmt" count="0"/>
|
4491 |
+
<line num="1139" type="stmt" count="0"/>
|
4492 |
+
<line num="1140" type="stmt" count="0"/>
|
4493 |
+
<line num="1141" type="stmt" count="0"/>
|
4494 |
+
<line num="1142" type="stmt" count="0"/>
|
4495 |
+
<line num="1143" type="stmt" count="0"/>
|
4496 |
+
<line num="1144" type="stmt" count="0"/>
|
4497 |
+
<line num="1145" type="stmt" count="0"/>
|
4498 |
+
<line num="1146" type="stmt" count="0"/>
|
4499 |
+
<line num="1147" type="stmt" count="0"/>
|
4500 |
+
<line num="1149" type="stmt" count="0"/>
|
4501 |
+
<line num="1150" type="stmt" count="0"/>
|
4502 |
+
<line num="1152" type="stmt" count="0"/>
|
4503 |
+
<line num="1153" type="stmt" count="0"/>
|
4504 |
+
<line num="1154" type="stmt" count="0"/>
|
4505 |
+
<line num="1155" type="stmt" count="0"/>
|
4506 |
+
<line num="1158" type="stmt" count="0"/>
|
4507 |
+
<metrics loc="1160" ncloc="631" classes="1" methods="26" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="453" coveredstatements="98" elements="479" coveredelements="102"/>
|
4508 |
</file>
|
4509 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-crypt.php">
|
4510 |
<class name="Boldgrid_Backup_Admin_Crypt" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
4616 |
</file>
|
4617 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-dump.php">
|
4618 |
<class name="Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
|
4619 |
+
<metrics complexity="27" methods="6" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="112" coveredstatements="67" elements="118" coveredelements="70"/>
|
4620 |
</class>
|
4621 |
<line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
4622 |
<line num="40" type="stmt" count="29"/>
|
4623 |
<line num="41" type="stmt" count="29"/>
|
4624 |
+
<line num="53" type="method" name="dump" visibility="public" complexity="7" crap="7.21" count="9"/>
|
4625 |
+
<line num="54" type="stmt" count="9"/>
|
4626 |
+
<line num="56" type="stmt" count="9"/>
|
4627 |
+
<line num="58" type="stmt" count="9"/>
|
4628 |
+
<line num="59" type="stmt" count="0"/>
|
4629 |
+
<line num="62" type="stmt" count="9"/>
|
4630 |
+
<line num="64" type="stmt" count="9"/>
|
4631 |
+
<line num="65" type="stmt" count="9"/>
|
4632 |
+
<line num="66" type="stmt" count="9"/>
|
4633 |
+
<line num="68" type="stmt" count="9"/>
|
4634 |
+
<line num="77" type="stmt" count="9"/>
|
4635 |
+
<line num="80" type="stmt" count="9"/>
|
4636 |
+
<line num="81" type="stmt" count="9"/>
|
4637 |
+
<line num="82" type="stmt" count="9"/>
|
4638 |
+
<line num="83" type="stmt" count="9"/>
|
4639 |
+
<line num="84" type="stmt" count="9"/>
|
4640 |
+
<line num="96" type="stmt" count="9"/>
|
4641 |
+
<line num="97" type="stmt" count="9"/>
|
4642 |
+
<line num="98" type="stmt" count="9"/>
|
4643 |
+
<line num="100" type="stmt" count="9"/>
|
4644 |
+
<line num="101" type="stmt" count="3"/>
|
4645 |
+
<line num="102" type="stmt" count="3"/>
|
4646 |
+
<line num="103" type="stmt" count="3"/>
|
4647 |
+
<line num="105" type="stmt" count="0"/>
|
4648 |
+
<line num="106" type="stmt" count="0"/>
|
4649 |
+
<line num="108" type="stmt" count="0"/>
|
4650 |
+
<line num="109" type="stmt" count="0"/>
|
4651 |
<line num="111" type="stmt" count="3"/>
|
4652 |
+
<line num="114" type="stmt" count="9"/>
|
4653 |
+
<line num="115" type="stmt" count="9"/>
|
4654 |
+
<line num="116" type="stmt" count="9"/>
|
4655 |
+
<line num="117" type="stmt" count="9"/>
|
4656 |
+
<line num="119" type="stmt" count="9"/>
|
4657 |
+
<line num="120" type="stmt" count="9"/>
|
4658 |
+
<line num="121" type="stmt" count="9"/>
|
4659 |
+
<line num="122" type="stmt" count="0"/>
|
4660 |
+
<line num="130" type="stmt" count="9"/>
|
4661 |
+
<line num="134" type="stmt" count="9"/>
|
4662 |
+
<line num="146" type="method" name="get_connection_string" visibility="public" complexity="9" crap="9" count="10"/>
|
4663 |
+
<line num="147" type="stmt" count="10"/>
|
4664 |
+
<line num="150" type="stmt" count="10"/>
|
4665 |
+
<line num="151" type="stmt" count="10"/>
|
4666 |
+
<line num="152" type="stmt" count="10"/>
|
4667 |
+
<line num="155" type="stmt" count="10"/>
|
4668 |
+
<line num="162" type="stmt" count="10"/>
|
4669 |
+
<line num="163" type="stmt" count="10"/>
|
4670 |
+
<line num="165" type="stmt" count="10"/>
|
4671 |
+
<line num="166" type="stmt" count="1"/>
|
4672 |
+
<line num="167" type="stmt" count="1"/>
|
4673 |
+
<line num="168" type="stmt" count="10"/>
|
4674 |
+
<line num="171" type="stmt" count="10"/>
|
4675 |
+
<line num="178" type="stmt" count="1"/>
|
4676 |
+
<line num="179" type="stmt" count="1"/>
|
4677 |
+
<line num="180" type="stmt" count="1"/>
|
4678 |
+
<line num="182" type="stmt" count="1"/>
|
4679 |
+
<line num="184" type="stmt" count="1"/>
|
4680 |
+
<line num="185" type="stmt" count="1"/>
|
|
|
4681 |
<line num="186" type="stmt" count="1"/>
|
4682 |
<line num="187" type="stmt" count="1"/>
|
4683 |
<line num="188" type="stmt" count="1"/>
|
4684 |
<line num="190" type="stmt" count="1"/>
|
4685 |
+
<line num="191" type="stmt" count="10"/>
|
4686 |
+
<line num="193" type="stmt" count="10"/>
|
4687 |
+
<line num="194" type="stmt" count="10"/>
|
4688 |
+
<line num="195" type="stmt" count="10"/>
|
4689 |
+
<line num="196" type="stmt" count="10"/>
|
4690 |
+
<line num="197" type="stmt" count="10"/>
|
4691 |
+
<line num="199" type="stmt" count="10"/>
|
4692 |
+
<line num="213" type="method" name="get_table_list" visibility="public" complexity="1" crap="1" count="9"/>
|
4693 |
+
<line num="214" type="stmt" count="9"/>
|
4694 |
+
<line num="216" type="stmt" count="9"/>
|
4695 |
+
<line num="227" type="stmt" count="9"/>
|
4696 |
+
<line num="228" type="stmt" count="9"/>
|
4697 |
+
<line num="230" type="stmt" count="9"/>
|
4698 |
+
<line num="242" type="method" name="get_insert_count" visibility="public" complexity="7" crap="56" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4699 |
<line num="243" type="stmt" count="0"/>
|
4700 |
+
<line num="244" type="stmt" count="0"/>
|
4701 |
<line num="246" type="stmt" count="0"/>
|
4702 |
+
<line num="248" type="stmt" count="0"/>
|
4703 |
+
<line num="251" type="stmt" count="0"/>
|
4704 |
<line num="252" type="stmt" count="0"/>
|
4705 |
+
<line num="253" type="stmt" count="0"/>
|
4706 |
+
<line num="255" type="stmt" count="0"/>
|
4707 |
+
<line num="258" type="stmt" count="0"/>
|
4708 |
+
<line num="265" type="stmt" count="0"/>
|
4709 |
+
<line num="266" type="stmt" count="0"/>
|
4710 |
<line num="268" type="stmt" count="0"/>
|
4711 |
<line num="269" type="stmt" count="0"/>
|
4712 |
+
<line num="270" type="stmt" count="0"/>
|
|
|
4713 |
<line num="273" type="stmt" count="0"/>
|
|
|
4714 |
<line num="275" type="stmt" count="0"/>
|
4715 |
+
<line num="290" type="stmt" count="0"/>
|
4716 |
+
<line num="291" type="stmt" count="0"/>
|
4717 |
+
<line num="292" type="stmt" count="0"/>
|
4718 |
+
<line num="294" type="stmt" count="0"/>
|
4719 |
+
<line num="295" type="stmt" count="0"/>
|
|
|
4720 |
<line num="296" type="stmt" count="0"/>
|
4721 |
<line num="297" type="stmt" count="0"/>
|
4722 |
+
<line num="298" type="stmt" count="0"/>
|
4723 |
+
<line num="300" type="stmt" count="0"/>
|
4724 |
+
<line num="301" type="stmt" count="0"/>
|
4725 |
+
<line num="303" type="stmt" count="0"/>
|
4726 |
+
<line num="304" type="stmt" count="0"/>
|
4727 |
+
<line num="306" type="stmt" count="0"/>
|
4728 |
+
<line num="318" type="method" name="get_insert_tables" visibility="public" complexity="2" crap="6" count="0"/>
|
4729 |
+
<line num="319" type="stmt" count="0"/>
|
4730 |
<line num="320" type="stmt" count="0"/>
|
4731 |
+
<line num="335" type="stmt" count="0"/>
|
4732 |
+
<line num="336" type="stmt" count="0"/>
|
4733 |
+
<line num="337" type="stmt" count="0"/>
|
4734 |
+
<line num="338" type="stmt" count="0"/>
|
4735 |
+
<line num="339" type="stmt" count="0"/>
|
4736 |
+
<line num="340" type="stmt" count="0"/>
|
4737 |
+
<line num="343" type="stmt" count="0"/>
|
4738 |
+
<line num="345" type="stmt" count="0"/>
|
4739 |
+
<metrics loc="347" ncloc="178" classes="1" methods="6" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="112" coveredstatements="67" elements="118" coveredelements="70"/>
|
4740 |
</file>
|
4741 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-get.php">
|
4742 |
<class name="Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
|
4745 |
<line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
4746 |
<line num="40" type="stmt" count="29"/>
|
4747 |
<line num="41" type="stmt" count="29"/>
|
4748 |
+
<line num="55" type="method" name="get_by_type" visibility="public" complexity="3" crap="3.00" count="11"/>
|
4749 |
+
<line num="56" type="stmt" count="11"/>
|
4750 |
+
<line num="58" type="stmt" count="11"/>
|
4751 |
+
<line num="61" type="stmt" count="11"/>
|
4752 |
+
<line num="62" type="stmt" count="11"/>
|
4753 |
<line num="63" type="stmt" count="0"/>
|
4754 |
+
<line num="72" type="stmt" count="11"/>
|
4755 |
+
<line num="73" type="stmt" count="11"/>
|
4756 |
+
<line num="74" type="stmt" count="11"/>
|
4757 |
+
<line num="76" type="stmt" count="11"/>
|
4758 |
+
<line num="78" type="stmt" count="11"/>
|
4759 |
+
<line num="81" type="stmt" count="11"/>
|
4760 |
+
<line num="82" type="stmt" count="11"/>
|
4761 |
+
<line num="83" type="stmt" count="11"/>
|
4762 |
+
<line num="85" type="stmt" count="11"/>
|
4763 |
+
<line num="100" type="method" name="filter_by_type" visibility="public" complexity="3" crap="3" count="10"/>
|
4764 |
+
<line num="102" type="stmt" count="10"/>
|
4765 |
+
<line num="104" type="stmt" count="10"/>
|
4766 |
+
<line num="106" type="stmt" count="10"/>
|
4767 |
+
<line num="107" type="stmt" count="10"/>
|
4768 |
+
<line num="108" type="stmt" count="10"/>
|
4769 |
+
<line num="109" type="stmt" count="10"/>
|
4770 |
+
<line num="110" type="stmt" count="10"/>
|
4771 |
+
<line num="112" type="stmt" count="10"/>
|
4772 |
+
<line num="124" type="method" name="prefixed" visibility="public" complexity="2" crap="2" count="10"/>
|
4773 |
+
<line num="125" type="stmt" count="10"/>
|
4774 |
+
<line num="127" type="stmt" count="10"/>
|
4775 |
+
<line num="129" type="stmt" count="10"/>
|
4776 |
+
<line num="130" type="stmt" count="10"/>
|
4777 |
+
<line num="131" type="stmt" count="10"/>
|
4778 |
+
<line num="132" type="stmt" count="10"/>
|
4779 |
+
<line num="133" type="stmt" count="10"/>
|
4780 |
+
<line num="135" type="stmt" count="10"/>
|
4781 |
+
<line num="137" type="stmt" count="10"/>
|
4782 |
+
<line num="138" type="stmt" count="10"/>
|
4783 |
+
<line num="139" type="stmt" count="10"/>
|
4784 |
+
<line num="141" type="stmt" count="10"/>
|
4785 |
+
<line num="156" type="method" name="prefixed_count" visibility="public" complexity="2" crap="2" count="9"/>
|
4786 |
+
<line num="157" type="stmt" count="9"/>
|
4787 |
+
<line num="159" type="stmt" count="9"/>
|
4788 |
+
<line num="161" type="stmt" count="9"/>
|
4789 |
+
<line num="163" type="stmt" count="9"/>
|
4790 |
+
<line num="164" type="stmt" count="9"/>
|
4791 |
+
<line num="166" type="stmt" count="9"/>
|
4792 |
+
<line num="167" type="stmt" count="9"/>
|
4793 |
+
<line num="169" type="stmt" count="9"/>
|
4794 |
<metrics loc="171" ncloc="79" classes="1" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="44" coveredstatements="43" elements="49" coveredelements="47"/>
|
4795 |
</file>
|
4796 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php">
|
4932 |
<line num="61" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
4933 |
<line num="62" type="stmt" count="29"/>
|
4934 |
<line num="63" type="stmt" count="29"/>
|
4935 |
+
<line num="74" type="method" name="email_part" visibility="public" complexity="3" crap="3" count="9"/>
|
4936 |
+
<line num="75" type="stmt" count="9"/>
|
4937 |
+
<line num="78" type="stmt" count="9"/>
|
4938 |
+
<line num="79" type="stmt" count="9"/>
|
4939 |
+
<line num="81" type="stmt" count="9"/>
|
4940 |
+
<line num="83" type="stmt" count="9"/>
|
4941 |
+
<line num="85" type="stmt" count="9"/>
|
4942 |
+
<line num="86" type="stmt" count="9"/>
|
4943 |
+
<line num="87" type="stmt" count="9"/>
|
4944 |
+
<line num="89" type="stmt" count="9"/>
|
4945 |
+
<line num="90" type="stmt" count="9"/>
|
4946 |
+
<line num="92" type="stmt" count="9"/>
|
4947 |
<line num="100" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
|
4948 |
<line num="101" type="stmt" count="0"/>
|
4949 |
<line num="102" type="stmt" count="0"/>
|
4956 |
<line num="110" type="stmt" count="0"/>
|
4957 |
<line num="111" type="stmt" count="0"/>
|
4958 |
<line num="112" type="stmt" count="0"/>
|
4959 |
+
<line num="127" type="method" name="get_excluded_tables" visibility="public" complexity="8" crap="9.30" count="9"/>
|
4960 |
+
<line num="132" type="stmt" count="9"/>
|
4961 |
+
<line num="134" type="stmt" count="9"/>
|
4962 |
<line num="135" type="stmt" count="0"/>
|
4963 |
+
<line num="136" type="stmt" count="9"/>
|
4964 |
<line num="137" type="stmt" count="0"/>
|
4965 |
<line num="138" type="stmt" count="0"/>
|
4966 |
+
<line num="139" type="stmt" count="9"/>
|
4967 |
+
<line num="141" type="stmt" count="9"/>
|
4968 |
+
<line num="143" type="stmt" count="9"/>
|
4969 |
+
<line num="146" type="stmt" count="9"/>
|
4970 |
+
<line num="148" type="stmt" count="9"/>
|
4971 |
+
<line num="161" type="method" name="get_filtered_tables" visibility="public" complexity="5" crap="5.68" count="9"/>
|
4972 |
+
<line num="162" type="stmt" count="9"/>
|
4973 |
+
<line num="165" type="stmt" count="9"/>
|
4974 |
<line num="166" type="stmt" count="0"/>
|
4975 |
+
<line num="169" type="stmt" count="9"/>
|
4976 |
+
<line num="171" type="stmt" count="9"/>
|
4977 |
+
<line num="172" type="stmt" count="9"/>
|
4978 |
<line num="173" type="stmt" count="0"/>
|
4979 |
<line num="174" type="stmt" count="0"/>
|
4980 |
+
<line num="175" type="stmt" count="9"/>
|
4981 |
+
<line num="177" type="stmt" count="9"/>
|
4982 |
<line num="190" type="method" name="get_from_post" visibility="public" complexity="4" crap="20" count="0"/>
|
4983 |
<line num="191" type="stmt" count="0"/>
|
4984 |
<line num="193" type="stmt" count="0"/>
|
4994 |
<line num="220" type="stmt" count="0"/>
|
4995 |
<line num="222" type="stmt" count="0"/>
|
4996 |
<line num="223" type="stmt" count="0"/>
|
4997 |
+
<line num="236" type="method" name="get_settings_excluded" visibility="public" complexity="4" crap="4.59" count="9"/>
|
4998 |
+
<line num="237" type="stmt" count="9"/>
|
4999 |
<line num="238" type="stmt" count="0"/>
|
5000 |
<line num="239" type="stmt" count="0"/>
|
5001 |
+
<line num="242" type="stmt" count="9"/>
|
5002 |
+
<line num="244" type="stmt" count="9"/>
|
5003 |
+
<line num="245" type="stmt" count="9"/>
|
5004 |
+
<line num="261" type="method" name="get_settings_type" visibility="public" complexity="4" crap="5.02" count="9"/>
|
5005 |
+
<line num="262" type="stmt" count="9"/>
|
5006 |
<line num="263" type="stmt" count="0"/>
|
5007 |
<line num="264" type="stmt" count="0"/>
|
5008 |
+
<line num="266" type="stmt" count="9"/>
|
5009 |
+
<line num="268" type="stmt" count="9"/>
|
5010 |
<line num="280" type="method" name="format_prefixed_tables" visibility="public" complexity="3" crap="12" count="0"/>
|
5011 |
<line num="281" type="stmt" count="0"/>
|
5012 |
<line num="283" type="stmt" count="0"/>
|
5019 |
<line num="292" type="stmt" count="0"/>
|
5020 |
<line num="293" type="stmt" count="0"/>
|
5021 |
<line num="295" type="stmt" count="0"/>
|
5022 |
+
<line num="305" type="method" name="is_omit_all" visibility="public" complexity="1" crap="1" count="9"/>
|
5023 |
+
<line num="306" type="stmt" count="9"/>
|
5024 |
+
<line num="307" type="stmt" count="9"/>
|
5025 |
+
<line num="309" type="stmt" count="9"/>
|
5026 |
+
<line num="311" type="stmt" count="9"/>
|
5027 |
<metrics loc="313" ncloc="148" classes="1" methods="11" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="84" coveredstatements="39" elements="95" coveredelements="42"/>
|
5028 |
</file>
|
5029 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-email.php">
|
5030 |
<class name="Boldgrid_Backup_Admin_Email" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
5031 |
+
<metrics complexity="15" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="80" coveredstatements="54" elements="87" coveredelements="57"/>
|
5032 |
</class>
|
5033 |
<line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
5034 |
<line num="49" type="stmt" count="29"/>
|
5045 |
<line num="77" type="stmt" count="0"/>
|
5046 |
<line num="79" type="stmt" count="0"/>
|
5047 |
<line num="81" type="stmt" count="0"/>
|
5048 |
+
<line num="89" type="method" name="init_ads" visibility="public" complexity="2" crap="2.69" count="9"/>
|
5049 |
+
<line num="90" type="stmt" count="9"/>
|
5050 |
+
<line num="91" type="stmt" count="9"/>
|
5051 |
<line num="93" type="stmt" count="0"/>
|
5052 |
<line num="94" type="stmt" count="0"/>
|
5053 |
<line num="96" type="stmt" count="0"/>
|
5054 |
<line num="97" type="stmt" count="0"/>
|
5055 |
<line num="98" type="stmt" count="0"/>
|
5056 |
+
<line num="99" type="stmt" count="9"/>
|
5057 |
+
<line num="101" type="stmt" count="9"/>
|
5058 |
+
<line num="111" type="method" name="post_archive_parts" visibility="public" complexity="2" crap="2" count="9"/>
|
5059 |
+
<line num="112" type="stmt" count="9"/>
|
5060 |
+
<line num="114" type="stmt" count="9"/>
|
5061 |
+
<line num="116" type="stmt" count="9"/>
|
5062 |
+
<line num="119" type="stmt" count="9"/>
|
5063 |
+
<line num="121" type="stmt" count="9"/>
|
5064 |
+
<line num="123" type="stmt" count="9"/>
|
5065 |
+
<line num="125" type="stmt" count="9"/>
|
5066 |
+
<line num="127" type="stmt" count="9"/>
|
5067 |
+
<line num="128" type="stmt" count="9"/>
|
5068 |
+
<line num="129" type="stmt" count="9"/>
|
5069 |
+
<line num="132" type="stmt" count="9"/>
|
5070 |
+
<line num="135" type="stmt" count="9"/>
|
5071 |
+
<line num="138" type="stmt" count="9"/>
|
5072 |
+
<line num="141" type="stmt" count="9"/>
|
5073 |
+
<line num="144" type="stmt" count="9"/>
|
5074 |
+
<line num="146" type="stmt" count="9"/>
|
5075 |
+
<line num="148" type="stmt" count="9"/>
|
5076 |
+
<line num="149" type="stmt" count="9"/>
|
5077 |
+
<line num="151" type="stmt" count="9"/>
|
5078 |
+
<line num="153" type="stmt" count="9"/>
|
5079 |
+
<line num="155" type="stmt" count="9"/>
|
5080 |
+
<line num="157" type="stmt" count="9"/>
|
5081 |
+
<line num="159" type="stmt" count="9"/>
|
5082 |
+
<line num="160" type="stmt" count="9"/>
|
5083 |
+
<line num="162" type="stmt" count="9"/>
|
5084 |
+
<line num="164" type="stmt" count="9"/>
|
5085 |
+
<line num="166" type="stmt" count="9"/>
|
5086 |
+
<line num="168" type="stmt" count="9"/>
|
5087 |
+
<line num="169" type="stmt" count="9"/>
|
5088 |
+
<line num="170" type="stmt" count="9"/>
|
5089 |
+
<line num="171" type="stmt" count="9"/>
|
5090 |
+
<line num="173" type="stmt" count="9"/>
|
5091 |
+
<line num="175" type="stmt" count="9"/>
|
5092 |
+
<line num="176" type="stmt" count="9"/>
|
5093 |
+
<line num="178" type="stmt" count="9"/>
|
5094 |
+
<line num="180" type="stmt" count="9"/>
|
5095 |
+
<line num="182" type="stmt" count="9"/>
|
5096 |
+
<line num="195" type="method" name="send" visibility="public" complexity="4" crap="4.25" count="9"/>
|
5097 |
+
<line num="197" type="stmt" count="9"/>
|
5098 |
+
<line num="198" type="stmt" count="0"/>
|
5099 |
+
<line num="202" type="stmt" count="9"/>
|
5100 |
+
<line num="204" type="stmt" count="9"/>
|
5101 |
+
<line num="207" type="stmt" count="9"/>
|
5102 |
+
<line num="210" type="stmt" count="9"/>
|
5103 |
+
<line num="211" type="stmt" count="9"/>
|
5104 |
+
<line num="224" type="stmt" count="9"/>
|
5105 |
+
<line num="225" type="stmt" count="0"/>
|
5106 |
+
<line num="226" type="stmt" count="0"/>
|
5107 |
+
<line num="227" type="stmt" count="9"/>
|
5108 |
+
<line num="231" type="stmt" count="9"/>
|
5109 |
+
<line num="241" type="method" name="user_wants_notification" visibility="public" complexity="1" crap="1" count="9"/>
|
5110 |
+
<line num="242" type="stmt" count="9"/>
|
5111 |
+
<line num="244" type="stmt" count="9"/>
|
5112 |
+
<line num="254" type="method" name="wp_mail_failed" visibility="public" complexity="3" crap="12" count="0"/>
|
5113 |
+
<line num="256" type="stmt" count="0"/>
|
5114 |
+
<line num="258" type="stmt" count="0"/>
|
5115 |
+
<line num="259" type="stmt" count="0"/>
|
5116 |
<line num="260" type="stmt" count="0"/>
|
5117 |
<line num="262" type="stmt" count="0"/>
|
5118 |
<line num="263" type="stmt" count="0"/>
|
5119 |
<line num="264" type="stmt" count="0"/>
|
5120 |
+
<metrics loc="265" ncloc="126" classes="1" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="80" coveredstatements="54" elements="87" coveredelements="57"/>
|
|
|
|
|
|
|
5121 |
</file>
|
5122 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-environment.php">
|
5123 |
<class name="Boldgrid_Backup_Admin_Environment" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
5171 |
<line num="63" type="stmt" count="0"/>
|
5172 |
<line num="64" type="stmt" count="0"/>
|
5173 |
<line num="65" type="stmt" count="0"/>
|
5174 |
+
<line num="74" type="method" name="is_enabled" visibility="public" complexity="1" crap="1" count="9"/>
|
5175 |
+
<line num="75" type="stmt" count="9"/>
|
5176 |
+
<line num="76" type="stmt" count="9"/>
|
5177 |
+
<line num="78" type="stmt" count="9"/>
|
5178 |
<line num="88" type="method" name="run" visibility="public" complexity="15" crap="240" count="0"/>
|
5179 |
<line num="89" type="stmt" count="0"/>
|
5180 |
<line num="90" type="stmt" count="0"/>
|
5251 |
<line num="107" type="stmt" count="0"/>
|
5252 |
<line num="108" type="stmt" count="0"/>
|
5253 |
<line num="110" type="stmt" count="0"/>
|
5254 |
+
<line num="127" type="method" name="get_total_size" visibility="public" complexity="2" crap="2" count="9"/>
|
5255 |
+
<line num="128" type="stmt" count="9"/>
|
5256 |
+
<line num="130" type="stmt" count="9"/>
|
5257 |
+
<line num="131" type="stmt" count="9"/>
|
5258 |
+
<line num="132" type="stmt" count="9"/>
|
5259 |
+
<line num="134" type="stmt" count="9"/>
|
5260 |
<metrics loc="136" ncloc="65" classes="1" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="7" elements="23" coveredelements="9"/>
|
5261 |
</file>
|
5262 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-folder-exclusion.php">
|
5269 |
<line num="140" type="stmt" count="29"/>
|
5270 |
<line num="143" type="stmt" count="29"/>
|
5271 |
<line num="144" type="stmt" count="29"/>
|
5272 |
+
<line num="154" type="method" name="allow_file" visibility="public" complexity="12" crap="13.58" count="9"/>
|
5273 |
+
<line num="156" type="stmt" count="9"/>
|
5274 |
<line num="157" type="stmt" count="0"/>
|
5275 |
+
<line num="161" type="stmt" count="9"/>
|
5276 |
<line num="162" type="stmt" count="0"/>
|
5277 |
+
<line num="165" type="stmt" count="9"/>
|
5278 |
<line num="166" type="stmt" count="0"/>
|
5279 |
+
<line num="170" type="stmt" count="9"/>
|
5280 |
+
<line num="171" type="stmt" count="9"/>
|
5281 |
+
<line num="174" type="stmt" count="9"/>
|
5282 |
+
<line num="175" type="stmt" count="9"/>
|
5283 |
+
<line num="178" type="stmt" count="9"/>
|
5284 |
+
<line num="179" type="stmt" count="9"/>
|
5285 |
+
<line num="181" type="stmt" count="9"/>
|
5286 |
+
<line num="182" type="stmt" count="9"/>
|
5287 |
+
<line num="183" type="stmt" count="9"/>
|
5288 |
+
<line num="184" type="stmt" count="9"/>
|
5289 |
+
<line num="185" type="stmt" count="9"/>
|
5290 |
+
<line num="188" type="stmt" count="9"/>
|
5291 |
+
<line num="189" type="stmt" count="9"/>
|
5292 |
+
<line num="193" type="stmt" count="9"/>
|
5293 |
<line num="194" type="stmt" count="0"/>
|
5294 |
+
<line num="197" type="stmt" count="9"/>
|
5295 |
+
<line num="198" type="stmt" count="9"/>
|
5296 |
<line num="199" type="stmt" count="0"/>
|
5297 |
<line num="200" type="stmt" count="0"/>
|
5298 |
+
<line num="201" type="stmt" count="9"/>
|
5299 |
+
<line num="203" type="stmt" count="9"/>
|
5300 |
+
<line num="215" type="method" name="email_part" visibility="public" complexity="5" crap="5" count="9"/>
|
5301 |
+
<line num="216" type="stmt" count="9"/>
|
5302 |
+
<line num="218" type="stmt" count="9"/>
|
5303 |
+
<line num="219" type="stmt" count="9"/>
|
5304 |
+
<line num="221" type="stmt" count="9"/>
|
5305 |
+
<line num="222" type="stmt" count="9"/>
|
5306 |
+
<line num="223" type="stmt" count="9"/>
|
5307 |
+
<line num="225" type="stmt" count="9"/>
|
5308 |
+
<line num="226" type="stmt" count="9"/>
|
5309 |
+
<line num="228" type="stmt" count="9"/>
|
5310 |
+
<line num="229" type="stmt" count="9"/>
|
5311 |
+
<line num="230" type="stmt" count="9"/>
|
5312 |
+
<line num="231" type="stmt" count="9"/>
|
5313 |
+
<line num="233" type="stmt" count="9"/>
|
5314 |
+
<line num="234" type="stmt" count="9"/>
|
5315 |
+
<line num="236" type="stmt" count="9"/>
|
5316 |
+
<line num="237" type="stmt" count="9"/>
|
5317 |
+
<line num="238" type="stmt" count="9"/>
|
5318 |
+
<line num="239" type="stmt" count="9"/>
|
5319 |
+
<line num="241" type="stmt" count="9"/>
|
5320 |
+
<line num="264" type="method" name="create_pattern" visibility="public" complexity="2" crap="2" count="9"/>
|
5321 |
+
<line num="265" type="stmt" count="9"/>
|
5322 |
+
<line num="268" type="stmt" count="9"/>
|
5323 |
+
<line num="271" type="stmt" count="9"/>
|
5324 |
+
<line num="272" type="stmt" count="9"/>
|
5325 |
+
<line num="282" type="stmt" count="9"/>
|
5326 |
+
<line num="289" type="stmt" count="9"/>
|
5327 |
+
<line num="295" type="stmt" count="9"/>
|
5328 |
+
<line num="297" type="stmt" count="9"/>
|
5329 |
<line num="305" type="method" name="enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
|
5330 |
<line num="306" type="stmt" count="0"/>
|
5331 |
<line num="307" type="stmt" count="0"/>
|
5349 |
<line num="331" type="stmt" count="0"/>
|
5350 |
<line num="332" type="stmt" count="0"/>
|
5351 |
<line num="333" type="stmt" count="0"/>
|
5352 |
+
<line num="344" type="method" name="from_settings" visibility="public" complexity="16" crap="33.31" count="19"/>
|
5353 |
+
<line num="345" type="stmt" count="19"/>
|
5354 |
<line num="346" type="stmt" count="0"/>
|
5355 |
+
<line num="349" type="stmt" count="19"/>
|
5356 |
+
<line num="350" type="stmt" count="19"/>
|
5357 |
+
<line num="360" type="stmt" count="19"/>
|
5358 |
<line num="361" type="stmt" count="0"/>
|
5359 |
+
<line num="368" type="stmt" count="19"/>
|
5360 |
<line num="369" type="stmt" count="0"/>
|
5361 |
<line num="370" type="stmt" count="0"/>
|
5362 |
+
<line num="373" type="stmt" count="19"/>
|
5363 |
+
<line num="374" type="stmt" count="18"/>
|
5364 |
<line num="377" type="stmt" count="3"/>
|
5365 |
<line num="378" type="stmt" count="0"/>
|
5366 |
<line num="379" type="stmt" count="3"/>
|
5377 |
<line num="402" type="stmt" count="2"/>
|
5378 |
<line num="403" type="stmt" count="2"/>
|
5379 |
<line num="405" type="stmt" count="3"/>
|
5380 |
+
<line num="420" type="method" name="is_banned" visibility="public" complexity="1" crap="1" count="9"/>
|
5381 |
+
<line num="421" type="stmt" count="9"/>
|
5382 |
+
<line num="424" type="stmt" count="9"/>
|
5383 |
+
<line num="439" type="method" name="is_match" visibility="public" complexity="3" crap="3.02" count="9"/>
|
5384 |
+
<line num="440" type="stmt" count="9"/>
|
5385 |
<line num="441" type="stmt" count="0"/>
|
5386 |
+
<line num="445" type="stmt" count="9"/>
|
5387 |
+
<line num="446" type="stmt" count="9"/>
|
5388 |
+
<line num="453" type="stmt" count="9"/>
|
5389 |
+
<line num="455" type="stmt" count="9"/>
|
5390 |
+
<line num="457" type="stmt" count="9"/>
|
5391 |
+
<line num="459" type="stmt" count="9"/>
|
5392 |
<line num="469" type="method" name="is_using_defaults" visibility="public" complexity="1" crap="2" count="0"/>
|
5393 |
<line num="470" type="stmt" count="0"/>
|
5394 |
<line num="472" type="stmt" count="0"/>
|
5534 |
</file>
|
5535 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress-data.php">
|
5536 |
<class name="Boldgrid_Backup_Admin_In_Progress_Data" namespace="global" fullPackage="Boldgrid.Backup.Admin.In.Progress">
|
5537 |
+
<metrics complexity="12" methods="7" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="28" coveredstatements="13" elements="35" coveredelements="17"/>
|
5538 |
</class>
|
5539 |
+
<line num="37" type="method" name="delete_arg" visibility="public" complexity="2" crap="2" count="9"/>
|
5540 |
+
<line num="38" type="stmt" count="9"/>
|
5541 |
+
<line num="40" type="stmt" count="9"/>
|
5542 |
+
<line num="41" type="stmt" count="9"/>
|
5543 |
+
<line num="42" type="stmt" count="9"/>
|
5544 |
+
<line num="44" type="stmt" count="9"/>
|
5545 |
+
<line num="45" type="stmt" count="9"/>
|
5546 |
<line num="55" type="method" name="get_arg" visibility="public" complexity="2" crap="6" count="0"/>
|
5547 |
<line num="56" type="stmt" count="0"/>
|
5548 |
<line num="58" type="stmt" count="0"/>
|
5549 |
+
<line num="68" type="method" name="get_args" visibility="public" complexity="1" crap="1" count="9"/>
|
5550 |
+
<line num="69" type="stmt" count="9"/>
|
5551 |
+
<line num="75" type="method" name="get_backup_id" visibility="public" complexity="3" crap="12" count="0"/>
|
5552 |
+
<line num="79" type="stmt" count="0"/>
|
5553 |
+
<line num="80" type="stmt" count="0"/>
|
5554 |
+
<line num="81" type="stmt" count="0"/>
|
5555 |
+
<line num="84" type="stmt" count="0"/>
|
5556 |
<line num="85" type="stmt" count="0"/>
|
5557 |
+
<line num="97" type="method" name="get_markup" visibility="public" complexity="2" crap="6" count="0"/>
|
5558 |
+
<line num="98" type="stmt" count="0"/>
|
5559 |
+
<line num="101" type="stmt" count="0"/>
|
5560 |
+
<line num="102" type="stmt" count="0"/>
|
5561 |
+
<line num="103" type="stmt" count="0"/>
|
5562 |
+
<line num="104" type="stmt" count="0"/>
|
5563 |
+
<line num="107" type="stmt" count="0"/>
|
5564 |
+
<line num="109" type="stmt" count="0"/>
|
5565 |
+
<line num="111" type="stmt" count="0"/>
|
5566 |
+
<line num="122" type="method" name="set_arg" visibility="public" complexity="1" crap="1" count="9"/>
|
5567 |
+
<line num="123" type="stmt" count="9"/>
|
5568 |
+
<line num="125" type="stmt" count="9"/>
|
5569 |
+
<line num="127" type="stmt" count="9"/>
|
5570 |
+
<line num="128" type="stmt" count="9"/>
|
5571 |
+
<line num="137" type="method" name="set_args" visibility="public" complexity="1" crap="1" count="9"/>
|
5572 |
+
<line num="138" type="stmt" count="9"/>
|
5573 |
+
<line num="139" type="stmt" count="9"/>
|
5574 |
+
<metrics loc="140" ncloc="64" classes="1" methods="7" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="28" coveredstatements="13" elements="35" coveredelements="17"/>
|
5575 |
</file>
|
5576 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress-tmp.php">
|
5577 |
<class name="Boldgrid_Backup_Admin_In_Progress_Tmp" namespace="global" fullPackage="Boldgrid.Backup.Admin.In.Progress">
|
5578 |
+
<metrics complexity="13" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="2" elements="60" coveredelements="3"/>
|
5579 |
</class>
|
5580 |
<line num="48" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="29"/>
|
5581 |
<line num="49" type="stmt" count="29"/>
|
5582 |
<line num="50" type="stmt" count="29"/>
|
5583 |
+
<line num="59" type="method" name="get" visibility="public" complexity="5" crap="30" count="0"/>
|
5584 |
<line num="60" type="stmt" count="0"/>
|
5585 |
<line num="62" type="stmt" count="0"/>
|
5586 |
<line num="65" type="stmt" count="0"/>
|
5587 |
<line num="66" type="stmt" count="0"/>
|
|
|
|
|
5588 |
<line num="69" type="stmt" count="0"/>
|
|
|
5589 |
<line num="71" type="stmt" count="0"/>
|
5590 |
<line num="72" type="stmt" count="0"/>
|
5591 |
+
<line num="75" type="stmt" count="0"/>
|
5592 |
+
<line num="77" type="stmt" count="0"/>
|
5593 |
+
<line num="80" type="stmt" count="0"/>
|
5594 |
+
<line num="81" type="stmt" count="0"/>
|
5595 |
+
<line num="82" type="stmt" count="0"/>
|
5596 |
+
<line num="83" type="stmt" count="0"/>
|
5597 |
+
<line num="84" type="stmt" count="0"/>
|
5598 |
+
<line num="85" type="stmt" count="0"/>
|
5599 |
+
<line num="86" type="stmt" count="0"/>
|
5600 |
<line num="87" type="stmt" count="0"/>
|
5601 |
+
<line num="88" type="stmt" count="0"/>
|
5602 |
+
<line num="91" type="stmt" count="0"/>
|
5603 |
+
<line num="101" type="method" name="get_system_zip" visibility="private" complexity="2" crap="6" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
5604 |
<line num="102" type="stmt" count="0"/>
|
5605 |
+
<line num="104" type="stmt" count="0"/>
|
5606 |
+
<line num="105" type="stmt" count="0"/>
|
5607 |
+
<line num="107" type="stmt" count="0"/>
|
5608 |
+
<line num="109" type="stmt" count="0"/>
|
5609 |
+
<line num="111" type="stmt" count="0"/>
|
5610 |
+
<line num="112" type="stmt" count="0"/>
|
5611 |
<line num="113" type="stmt" count="0"/>
|
5612 |
+
<line num="114" type="stmt" count="0"/>
|
5613 |
<line num="115" type="stmt" count="0"/>
|
5614 |
+
<line num="117" type="stmt" count="0"/>
|
5615 |
+
<line num="127" type="method" name="get_pcl_zip" visibility="private" complexity="2" crap="6" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
5616 |
<line num="128" type="stmt" count="0"/>
|
5617 |
+
<line num="130" type="stmt" count="0"/>
|
5618 |
+
<line num="131" type="stmt" count="0"/>
|
5619 |
+
<line num="133" type="stmt" count="0"/>
|
5620 |
+
<line num="135" type="stmt" count="0"/>
|
5621 |
+
<line num="137" type="stmt" count="0"/>
|
5622 |
+
<line num="138" type="stmt" count="0"/>
|
5623 |
+
<line num="139" type="stmt" count="0"/>
|
5624 |
+
<line num="140" type="stmt" count="0"/>
|
5625 |
+
<line num="141" type="stmt" count="0"/>
|
5626 |
<line num="143" type="stmt" count="0"/>
|
5627 |
+
<line num="157" type="method" name="get_php_zip" visibility="private" complexity="2" crap="6" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5628 |
<line num="158" type="stmt" count="0"/>
|
5629 |
+
<line num="160" type="stmt" count="0"/>
|
5630 |
<line num="161" type="stmt" count="0"/>
|
5631 |
+
<line num="163" type="stmt" count="0"/>
|
5632 |
+
<line num="166" type="stmt" count="0"/>
|
5633 |
+
<line num="168" type="stmt" count="0"/>
|
5634 |
+
<line num="169" type="stmt" count="0"/>
|
5635 |
+
<line num="170" type="stmt" count="0"/>
|
5636 |
+
<line num="171" type="stmt" count="0"/>
|
5637 |
+
<line num="173" type="stmt" count="0"/>
|
5638 |
+
<line num="174" type="stmt" count="0"/>
|
5639 |
+
<line num="176" type="stmt" count="0"/>
|
5640 |
+
<metrics loc="178" ncloc="92" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="2" elements="60" coveredelements="3"/>
|
5641 |
</file>
|
5642 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-in-progress.php">
|
5643 |
<class name="Boldgrid_Backup_Admin_In_Progress" namespace="global" fullPackage="Boldgrid.Backup.Admin.In">
|
5737 |
<line num="306" type="stmt" count="0"/>
|
5738 |
<line num="307" type="stmt" count="0"/>
|
5739 |
<line num="308" type="stmt" count="0"/>
|
5740 |
+
<line num="317" type="method" name="set" visibility="public" complexity="2" crap="2" count="9"/>
|
5741 |
+
<line num="318" type="stmt" count="9"/>
|
5742 |
+
<line num="320" type="stmt" count="9"/>
|
5743 |
+
<line num="322" type="stmt" count="9"/>
|
5744 |
+
<line num="323" type="stmt" count="9"/>
|
5745 |
<line num="330" type="method" name="wp_ajax_get_progress_notice" visibility="public" complexity="3" crap="12" count="0"/>
|
5746 |
<line num="331" type="stmt" count="0"/>
|
5747 |
<line num="332" type="stmt" count="0"/>
|
5914 |
</file>
|
5915 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-log.php">
|
5916 |
<class name="Boldgrid_Backup_Admin_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
5917 |
+
<metrics complexity="24" methods="11" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="60" elements="94" coveredelements="67"/>
|
5918 |
</class>
|
5919 |
+
<line num="78" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="38"/>
|
5920 |
+
<line num="79" type="stmt" count="38"/>
|
5921 |
+
<line num="80" type="stmt" count="38"/>
|
5922 |
+
<line num="91" type="method" name="add" visibility="public" complexity="2" crap="2" count="9"/>
|
5923 |
+
<line num="97" type="stmt" count="9"/>
|
5924 |
+
<line num="98" type="stmt" count="9"/>
|
5925 |
+
<line num="99" type="stmt" count="9"/>
|
5926 |
+
<line num="102" type="stmt" count="9"/>
|
5927 |
+
<line num="110" type="stmt" count="9"/>
|
5928 |
+
<line num="111" type="stmt" count="9"/>
|
5929 |
+
<line num="112" type="stmt" count="9"/>
|
5930 |
+
<line num="113" type="stmt" count="9"/>
|
5931 |
+
<line num="120" type="method" name="add_generic" visibility="public" complexity="2" crap="2" count="9"/>
|
5932 |
+
<line num="121" type="stmt" count="9"/>
|
5933 |
+
<line num="123" type="stmt" count="9"/>
|
5934 |
+
<line num="125" type="stmt" count="9"/>
|
5935 |
+
<line num="126" type="stmt" count="9"/>
|
5936 |
+
<line num="127" type="stmt" count="9"/>
|
5937 |
+
<line num="136" type="method" name="add_last_error" visibility="public" complexity="2" crap="2" count="9"/>
|
5938 |
+
<line num="137" type="stmt" count="9"/>
|
5939 |
+
<line num="140" type="stmt" count="9"/>
|
5940 |
+
<line num="141" type="stmt" count="4"/>
|
5941 |
+
<line num="142" type="stmt" count="4"/>
|
5942 |
+
<line num="145" type="stmt" count="9"/>
|
5943 |
+
<line num="146" type="stmt" count="9"/>
|
5944 |
+
<line num="154" type="method" name="add_memory" visibility="public" complexity="1" crap="1" count="9"/>
|
5945 |
+
<line num="155" type="stmt" count="9"/>
|
5946 |
+
<line num="156" type="stmt" count="9"/>
|
5947 |
+
<line num="157" type="stmt" count="9"/>
|
5948 |
+
<line num="159" type="stmt" count="9"/>
|
5949 |
+
<line num="160" type="stmt" count="9"/>
|
5950 |
+
<line num="161" type="stmt" count="9"/>
|
5951 |
+
<line num="162" type="stmt" count="9"/>
|
5952 |
+
<line num="163" type="stmt" count="9"/>
|
5953 |
+
<line num="164" type="stmt" count="9"/>
|
5954 |
+
<line num="165" type="stmt" count="9"/>
|
5955 |
+
<line num="166" type="stmt" count="9"/>
|
5956 |
+
<line num="168" type="stmt" count="9"/>
|
5957 |
+
<line num="169" type="stmt" count="9"/>
|
5958 |
+
<line num="176" type="method" name="add_separator" visibility="public" complexity="1" crap="1" count="9"/>
|
5959 |
+
<line num="177" type="stmt" count="9"/>
|
5960 |
+
<line num="178" type="stmt" count="9"/>
|
5961 |
+
<line num="185" type="method" name="clean_up" visibility="public" complexity="4" crap="4.25" count="9"/>
|
5962 |
+
<line num="187" type="stmt" count="9"/>
|
5963 |
+
<line num="188" type="stmt" count="9"/>
|
5964 |
+
<line num="190" type="stmt" count="9"/>
|
5965 |
+
<line num="192" type="stmt" count="9"/>
|
5966 |
+
<line num="193" type="stmt" count="0"/>
|
5967 |
+
<line num="197" type="stmt" count="9"/>
|
5968 |
+
<line num="198" type="stmt" count="9"/>
|
5969 |
+
<line num="199" type="stmt" count="9"/>
|
5970 |
+
<line num="202" type="stmt" count="0"/>
|
5971 |
+
<line num="204" type="stmt" count="0"/>
|
5972 |
+
<line num="205" type="stmt" count="9"/>
|
5973 |
+
<line num="206" type="stmt" count="9"/>
|
5974 |
+
<line num="216" type="method" name="init" visibility="public" complexity="4" crap="4" count="9"/>
|
5975 |
+
<line num="218" type="stmt" count="9"/>
|
5976 |
+
<line num="220" type="stmt" count="9"/>
|
5977 |
+
<line num="222" type="stmt" count="9"/>
|
5978 |
+
<line num="224" type="stmt" count="9"/>
|
5979 |
+
<line num="226" type="stmt" count="9"/>
|
5980 |
+
<line num="228" type="stmt" count="9"/>
|
5981 |
+
<line num="229" type="stmt" count="9"/>
|
5982 |
+
<line num="231" type="stmt" count="9"/>
|
5983 |
+
<line num="232" type="stmt" count="9"/>
|
5984 |
+
<line num="233" type="stmt" count="9"/>
|
5985 |
+
<line num="234" type="stmt" count="9"/>
|
5986 |
+
<line num="235" type="stmt" count="9"/>
|
5987 |
+
<line num="237" type="stmt" count="9"/>
|
5988 |
+
<line num="247" type="method" name="init_signal_handler" visibility="private" complexity="4" crap="14.72" count="9"/>
|
5989 |
+
<line num="256" type="stmt" count="9"/>
|
5990 |
+
<line num="257" type="stmt" count="9"/>
|
5991 |
<line num="260" type="stmt" count="0"/>
|
5992 |
<line num="261" type="stmt" count="0"/>
|
5993 |
+
<line num="262" type="stmt" count="0"/>
|
5994 |
+
<line num="266" type="stmt" count="0"/>
|
5995 |
+
<line num="270" type="stmt" count="0"/>
|
5996 |
+
<line num="272" type="stmt" count="0"/>
|
5997 |
+
<line num="274" type="stmt" count="0"/>
|
5998 |
+
<line num="276" type="stmt" count="0"/>
|
5999 |
<line num="282" type="stmt" count="0"/>
|
6000 |
+
<line num="283" type="stmt" count="0"/>
|
6001 |
<line num="285" type="stmt" count="0"/>
|
6002 |
<line num="286" type="stmt" count="0"/>
|
6003 |
<line num="287" type="stmt" count="0"/>
|
6004 |
+
<line num="288" type="stmt" count="0"/>
|
6005 |
+
<line num="295" type="method" name="shutdown" visibility="public" complexity="2" crap="6" count="0"/>
|
6006 |
<line num="300" type="stmt" count="0"/>
|
6007 |
<line num="301" type="stmt" count="0"/>
|
6008 |
<line num="302" type="stmt" count="0"/>
|
6009 |
+
<line num="303" type="stmt" count="0"/>
|
6010 |
+
<line num="313" type="method" name="signal_handler" visibility="public" complexity="1" crap="2" count="0"/>
|
6011 |
+
<line num="314" type="stmt" count="0"/>
|
6012 |
+
<line num="316" type="stmt" count="0"/>
|
6013 |
+
<metrics loc="318" ncloc="136" classes="1" methods="11" coveredmethods="7" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="60" elements="94" coveredelements="67"/>
|
6014 |
+
</file>
|
6015 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-nopriv.php">
|
6016 |
+
<class name="Boldgrid_Backup_Admin_Nopriv" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
6017 |
+
<metrics complexity="6" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="47" coveredstatements="0" elements="51" coveredelements="0"/>
|
6018 |
+
</class>
|
6019 |
+
<line num="42" type="method" name="do_backup" visibility="public" complexity="2" crap="6" count="0"/>
|
6020 |
+
<line num="43" type="stmt" count="0"/>
|
6021 |
+
<line num="45" type="stmt" count="0"/>
|
6022 |
+
<line num="52" type="stmt" count="0"/>
|
6023 |
+
<line num="53" type="stmt" count="0"/>
|
6024 |
+
<line num="55" type="stmt" count="0"/>
|
6025 |
+
<line num="56" type="stmt" count="0"/>
|
6026 |
+
<line num="57" type="stmt" count="0"/>
|
6027 |
+
<line num="58" type="stmt" count="0"/>
|
6028 |
+
<line num="59" type="stmt" count="0"/>
|
6029 |
+
<line num="60" type="stmt" count="0"/>
|
6030 |
+
<line num="62" type="stmt" count="0"/>
|
6031 |
+
<line num="63" type="stmt" count="0"/>
|
6032 |
+
<line num="73" type="method" name="do_restore" visibility="public" complexity="2" crap="6" count="0"/>
|
6033 |
+
<line num="74" type="stmt" count="0"/>
|
6034 |
+
<line num="76" type="stmt" count="0"/>
|
6035 |
+
<line num="83" type="stmt" count="0"/>
|
6036 |
+
<line num="84" type="stmt" count="0"/>
|
6037 |
+
<line num="85" type="stmt" count="0"/>
|
6038 |
+
<line num="87" type="stmt" count="0"/>
|
6039 |
+
<line num="88" type="stmt" count="0"/>
|
6040 |
+
<line num="89" type="stmt" count="0"/>
|
6041 |
+
<line num="90" type="stmt" count="0"/>
|
6042 |
+
<line num="91" type="stmt" count="0"/>
|
6043 |
+
<line num="92" type="stmt" count="0"/>
|
6044 |
+
<line num="94" type="stmt" count="0"/>
|
6045 |
+
<line num="95" type="stmt" count="0"/>
|
6046 |
+
<line num="104" type="method" name="get_backup_url" visibility="public" complexity="1" crap="2" count="0"/>
|
6047 |
+
<line num="105" type="stmt" count="0"/>
|
6048 |
+
<line num="107" type="stmt" count="0"/>
|
6049 |
+
<line num="108" type="stmt" count="0"/>
|
6050 |
+
<line num="109" type="stmt" count="0"/>
|
6051 |
+
<line num="110" type="stmt" count="0"/>
|
6052 |
+
<line num="111" type="stmt" count="0"/>
|
6053 |
+
<line num="112" type="stmt" count="0"/>
|
6054 |
+
<line num="113" type="stmt" count="0"/>
|
6055 |
+
<line num="114" type="stmt" count="0"/>
|
6056 |
+
<line num="115" type="stmt" count="0"/>
|
6057 |
+
<line num="116" type="stmt" count="0"/>
|
6058 |
+
<line num="125" type="method" name="get_restore_url" visibility="public" complexity="1" crap="2" count="0"/>
|
6059 |
+
<line num="126" type="stmt" count="0"/>
|
6060 |
+
<line num="128" type="stmt" count="0"/>
|
6061 |
+
<line num="129" type="stmt" count="0"/>
|
6062 |
+
<line num="130" type="stmt" count="0"/>
|
6063 |
+
<line num="131" type="stmt" count="0"/>
|
6064 |
+
<line num="132" type="stmt" count="0"/>
|
6065 |
+
<line num="133" type="stmt" count="0"/>
|
6066 |
+
<line num="134" type="stmt" count="0"/>
|
6067 |
+
<line num="135" type="stmt" count="0"/>
|
6068 |
+
<line num="136" type="stmt" count="0"/>
|
6069 |
+
<line num="137" type="stmt" count="0"/>
|
6070 |
+
<metrics loc="138" ncloc="66" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="47" coveredstatements="0" elements="51" coveredelements="0"/>
|
6071 |
</file>
|
6072 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-notice.php">
|
6073 |
<class name="Boldgrid_Backup_Admin_Notice" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
6499 |
</file>
|
6500 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-scheduler.php">
|
6501 |
<class name="Boldgrid_Backup_Admin_Scheduler" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
6502 |
+
<metrics complexity="12" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="18" elements="35" coveredelements="19"/>
|
6503 |
</class>
|
6504 |
<line num="46" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
6505 |
<line num="47" type="stmt" count="29"/>
|
6508 |
<line num="56" type="stmt" count="0"/>
|
6509 |
<line num="57" type="stmt" count="0"/>
|
6510 |
<line num="58" type="stmt" count="0"/>
|
6511 |
+
<line num="66" type="method" name="get" visibility="public" complexity="4" crap="5.40" count="1"/>
|
6512 |
+
<line num="67" type="stmt" count="1"/>
|
6513 |
+
<line num="69" type="stmt" count="1"/>
|
6514 |
+
<line num="71" type="stmt" count="1"/>
|
6515 |
<line num="72" type="stmt" count="0"/>
|
6516 |
+
<line num="73" type="stmt" count="1"/>
|
6517 |
+
<line num="74" type="stmt" count="1"/>
|
6518 |
<line num="75" type="stmt" count="0"/>
|
6519 |
<line num="76" type="stmt" count="0"/>
|
6520 |
<line num="78" type="stmt" count="0"/>
|
6521 |
+
<line num="97" type="method" name="get_available" visibility="public" complexity="5" crap="5.25" count="1"/>
|
6522 |
+
<line num="98" type="stmt" count="1"/>
|
6523 |
+
<line num="99" type="stmt" count="1"/>
|
6524 |
+
<line num="102" type="stmt" count="1"/>
|
6525 |
+
<line num="103" type="stmt" count="1"/>
|
6526 |
+
<line num="106" type="stmt" count="1"/>
|
6527 |
+
<line num="107" type="stmt" count="1"/>
|
6528 |
+
<line num="108" type="stmt" count="1"/>
|
6529 |
+
<line num="110" type="stmt" count="1"/>
|
6530 |
+
<line num="112" type="stmt" count="1"/>
|
6531 |
+
<line num="114" type="stmt" count="1"/>
|
6532 |
<line num="115" type="stmt" count="0"/>
|
6533 |
<line num="116" type="stmt" count="0"/>
|
6534 |
<line num="118" type="stmt" count="0"/>
|
6535 |
+
<line num="120" type="stmt" count="1"/>
|
6536 |
<line num="131" type="method" name="is_available" visibility="public" complexity="1" crap="2" count="0"/>
|
6537 |
<line num="132" type="stmt" count="0"/>
|
6538 |
<line num="134" type="stmt" count="0"/>
|
6539 |
+
<metrics loc="136" ncloc="62" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="18" elements="35" coveredelements="19"/>
|
6540 |
</file>
|
6541 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-settings.php">
|
6542 |
<class name="Boldgrid_Backup_Admin_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
6543 |
+
<metrics complexity="172" methods="19" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="508" coveredstatements="115" elements="527" coveredelements="120"/>
|
6544 |
</class>
|
6545 |
<line num="50" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
6546 |
<line num="52" type="stmt" count="29"/>
|
6556 |
<line num="78" type="stmt" count="0"/>
|
6557 |
<line num="79" type="stmt" count="0"/>
|
6558 |
<line num="81" type="stmt" count="0"/>
|
6559 |
+
<line num="95" type="method" name="get_setting" visibility="public" complexity="2" crap="2" count="17"/>
|
6560 |
+
<line num="96" type="stmt" count="17"/>
|
6561 |
+
<line num="98" type="stmt" count="17"/>
|
6562 |
+
<line num="111" type="method" name="get_settings" visibility="public" complexity="38" crap="40.45" count="19"/>
|
6563 |
+
<line num="113" type="stmt" count="19"/>
|
6564 |
+
<line num="115" type="stmt" count="19"/>
|
6565 |
+
<line num="116" type="stmt" count="9"/>
|
6566 |
+
<line num="120" type="stmt" count="19"/>
|
6567 |
+
<line num="121" type="stmt" count="19"/>
|
6568 |
+
<line num="124" type="stmt" count="19"/>
|
6569 |
+
<line num="127" type="stmt" count="2"/>
|
6570 |
+
<line num="128" type="stmt" count="2"/>
|
6571 |
+
<line num="129" type="stmt" count="2"/>
|
6572 |
+
<line num="130" type="stmt" count="2"/>
|
6573 |
+
<line num="131" type="stmt" count="2"/>
|
6574 |
+
<line num="132" type="stmt" count="2"/>
|
6575 |
+
<line num="133" type="stmt" count="2"/>
|
6576 |
+
<line num="134" type="stmt" count="2"/>
|
6577 |
+
<line num="135" type="stmt" count="2"/>
|
6578 |
+
<line num="136" type="stmt" count="2"/>
|
6579 |
+
<line num="137" type="stmt" count="2"/>
|
6580 |
+
<line num="138" type="stmt" count="2"/>
|
6581 |
+
<line num="139" type="stmt" count="2"/>
|
6582 |
+
<line num="140" type="stmt" count="2"/>
|
6583 |
+
<line num="141" type="stmt" count="2"/>
|
6584 |
+
<line num="142" type="stmt" count="2"/>
|
6585 |
+
<line num="143" type="stmt" count="2"/>
|
6586 |
+
<line num="144" type="stmt" count="2"/>
|
6587 |
+
<line num="145" type="stmt" count="2"/>
|
6588 |
+
<line num="146" type="stmt" count="2"/>
|
6589 |
+
<line num="147" type="stmt" count="2"/>
|
6590 |
+
<line num="150" type="stmt" count="2"/>
|
6591 |
+
<line num="151" type="stmt" count="2"/>
|
6592 |
+
<line num="152" type="stmt" count="2"/>
|
6593 |
+
<line num="153" type="stmt" count="0"/>
|
6594 |
+
<line num="154" type="stmt" count="2"/>
|
6595 |
+
<line num="155" type="stmt" count="2"/>
|
6596 |
+
<line num="156" type="stmt" count="2"/>
|
6597 |
+
<line num="157" type="stmt" count="0"/>
|
6598 |
+
<line num="158" type="stmt" count="2"/>
|
6599 |
+
<line num="159" type="stmt" count="2"/>
|
6600 |
+
<line num="160" type="stmt" count="2"/>
|
6601 |
+
<line num="161" type="stmt" count="0"/>
|
6602 |
+
<line num="164" type="stmt" count="2"/>
|
6603 |
+
<line num="165" type="stmt" count="2"/>
|
6604 |
+
<line num="166" type="stmt" count="2"/>
|
6605 |
+
<line num="167" type="stmt" count="0"/>
|
6606 |
+
<line num="168" type="stmt" count="2"/>
|
6607 |
+
<line num="169" type="stmt" count="2"/>
|
6608 |
+
<line num="170" type="stmt" count="2"/>
|
6609 |
+
<line num="171" type="stmt" count="0"/>
|
6610 |
+
<line num="174" type="stmt" count="2"/>
|
6611 |
+
<line num="175" type="stmt" count="0"/>
|
6612 |
+
<line num="176" type="stmt" count="0"/>
|
6613 |
+
<line num="179" type="stmt" count="2"/>
|
6614 |
+
<line num="180" type="stmt" count="2"/>
|
6615 |
+
<line num="181" type="stmt" count="0"/>
|
6616 |
+
<line num="183" type="stmt" count="2"/>
|
6617 |
+
<line num="184" type="stmt" count="2"/>
|
6618 |
+
<line num="185" type="stmt" count="2"/>
|
6619 |
+
<line num="186" type="stmt" count="0"/>
|
6620 |
+
<line num="189" type="stmt" count="2"/>
|
6621 |
+
<line num="190" type="stmt" count="2"/>
|
6622 |
+
<line num="191" type="stmt" count="2"/>
|
6623 |
+
<line num="193" type="stmt" count="2"/>
|
6624 |
+
<line num="194" type="stmt" count="0"/>
|
6625 |
+
<line num="195" type="stmt" count="0"/>
|
6626 |
+
<line num="196" type="stmt" count="2"/>
|
6627 |
+
<line num="199" type="stmt" count="18"/>
|
6628 |
+
<line num="200" type="stmt" count="18"/>
|
6629 |
+
<line num="201" type="stmt" count="18"/>
|
6630 |
+
<line num="202" type="stmt" count="18"/>
|
6631 |
+
<line num="203" type="stmt" count="18"/>
|
6632 |
+
<line num="204" type="stmt" count="18"/>
|
6633 |
+
<line num="205" type="stmt" count="18"/>
|
6634 |
+
<line num="208" type="stmt" count="18"/>
|
6635 |
+
<line num="209" type="stmt" count="18"/>
|
6636 |
+
<line num="210" type="stmt" count="18"/>
|
6637 |
+
<line num="213" type="stmt" count="18"/>
|
6638 |
+
<line num="214" type="stmt" count="18"/>
|
6639 |
+
<line num="215" type="stmt" count="18"/>
|
6640 |
+
<line num="216" type="stmt" count="18"/>
|
6641 |
+
<line num="217" type="stmt" count="18"/>
|
6642 |
+
<line num="218" type="stmt" count="18"/>
|
6643 |
+
<line num="220" type="stmt" count="18"/>
|
6644 |
+
<line num="223" type="stmt" count="19"/>
|
6645 |
+
<line num="224" type="stmt" count="0"/>
|
6646 |
+
<line num="225" type="stmt" count="0"/>
|
6647 |
+
<line num="228" type="stmt" count="19"/>
|
6648 |
+
<line num="229" type="stmt" count="2"/>
|
6649 |
+
<line num="230" type="stmt" count="2"/>
|
6650 |
+
<line num="232" type="stmt" count="19"/>
|
6651 |
+
<line num="233" type="stmt" count="19"/>
|
6652 |
+
<line num="234" type="stmt" count="19"/>
|
6653 |
+
<line num="237" type="stmt" count="19"/>
|
6654 |
+
<line num="238" type="stmt" count="19"/>
|
6655 |
+
<line num="241" type="stmt" count="19"/>
|
6656 |
+
<line num="242" type="stmt" count="19"/>
|
6657 |
+
<line num="244" type="stmt" count="19"/>
|
6658 |
+
<line num="245" type="stmt" count="19"/>
|
6659 |
+
<line num="247" type="stmt" count="19"/>
|
6660 |
+
<line num="248" type="stmt" count="19"/>
|
6661 |
+
<line num="250" type="stmt" count="19"/>
|
6662 |
+
<line num="251" type="stmt" count="19"/>
|
6663 |
+
<line num="254" type="stmt" count="19"/>
|
6664 |
+
<line num="255" type="stmt" count="19"/>
|
6665 |
+
<line num="256" type="stmt" count="19"/>
|
6666 |
+
<line num="259" type="stmt" count="19"/>
|
6667 |
+
<line num="262" type="stmt" count="19"/>
|
6668 |
+
<line num="265" type="stmt" count="19"/>
|
6669 |
+
<line num="266" type="stmt" count="17"/>
|
6670 |
+
<line num="267" type="stmt" count="17"/>
|
6671 |
+
<line num="270" type="stmt" count="19"/>
|
6672 |
+
<line num="287" type="method" name="set_update_settings" visibility="public" complexity="2" crap="2" count="19"/>
|
6673 |
+
<line num="288" type="stmt" count="19"/>
|
6674 |
+
<line num="291" type="stmt" count="19"/>
|
6675 |
+
<line num="294" type="stmt" count="13"/>
|
6676 |
+
<line num="296" type="stmt" count="13"/>
|
6677 |
+
<line num="297" type="stmt" count="13"/>
|
6678 |
+
<line num="299" type="stmt" count="13"/>
|
6679 |
+
<line num="300" type="stmt" count="13"/>
|
6680 |
+
<line num="301" type="stmt" count="13"/>
|
6681 |
+
<line num="302" type="stmt" count="13"/>
|
6682 |
+
<line num="303" type="stmt" count="8"/>
|
6683 |
+
<line num="306" type="stmt" count="19"/>
|
6684 |
+
<line num="324" type="method" name="update_autoupdate_options" visibility="public" complexity="10" crap="110" count="0"/>
|
|
|
|
|
6685 |
<line num="325" type="stmt" count="0"/>
|
6686 |
+
<line num="327" type="stmt" count="0"/>
|
6687 |
+
<line num="329" type="stmt" count="0"/>
|
6688 |
<line num="331" type="stmt" count="0"/>
|
6689 |
+
<line num="332" type="stmt" count="0"/>
|
6690 |
+
<line num="333" type="stmt" count="0"/>
|
6691 |
<line num="338" type="stmt" count="0"/>
|
6692 |
+
<line num="339" type="stmt" count="0"/>
|
6693 |
+
<line num="344" type="stmt" count="0"/>
|
6694 |
+
<line num="345" type="stmt" count="0"/>
|
6695 |
+
<line num="346" type="stmt" count="0"/>
|
6696 |
+
<line num="348" type="stmt" count="0"/>
|
6697 |
+
<line num="349" type="stmt" count="0"/>
|
6698 |
+
<line num="350" type="stmt" count="0"/>
|
6699 |
+
<line num="361" type="method" name="has_full_protection" visibility="public" complexity="2" crap="6" count="0"/>
|
6700 |
+
<line num="362" type="stmt" count="0"/>
|
6701 |
+
<line num="372" type="method" name="has_remote_configured" visibility="public" complexity="4" crap="20" count="0"/>
|
6702 |
+
<line num="373" type="stmt" count="0"/>
|
|
|
6703 |
<line num="375" type="stmt" count="0"/>
|
|
|
6704 |
<line num="377" type="stmt" count="0"/>
|
6705 |
+
<line num="378" type="stmt" count="0"/>
|
6706 |
<line num="379" type="stmt" count="0"/>
|
6707 |
+
<line num="382" type="stmt" count="0"/>
|
6708 |
+
<line num="383" type="stmt" count="0"/>
|
6709 |
+
<line num="384" type="stmt" count="0"/>
|
6710 |
+
<line num="385" type="stmt" count="0"/>
|
6711 |
+
<line num="387" type="stmt" count="0"/>
|
6712 |
+
<line num="400" type="method" name="has_scheduled_backups" visibility="public" complexity="5" crap="30" count="0"/>
|
6713 |
<line num="401" type="stmt" count="0"/>
|
6714 |
+
<line num="403" type="stmt" count="0"/>
|
6715 |
<line num="405" type="stmt" count="0"/>
|
6716 |
<line num="407" type="stmt" count="0"/>
|
6717 |
+
<line num="408" type="stmt" count="0"/>
|
6718 |
+
<line num="409" type="stmt" count="0"/>
|
6719 |
+
<line num="412" type="stmt" count="0"/>
|
6720 |
+
<line num="413" type="stmt" count="0"/>
|
6721 |
+
<line num="415" type="stmt" count="0"/>
|
6722 |
+
<line num="427" type="method" name="get_settings_url" visibility="public" complexity="2" crap="6" count="0"/>
|
6723 |
+
<line num="428" type="stmt" count="0"/>
|
6724 |
+
<line num="430" type="stmt" count="0"/>
|
6725 |
+
<line num="431" type="stmt" count="0"/>
|
6726 |
+
<line num="432" type="stmt" count="0"/>
|
6727 |
+
<line num="434" type="stmt" count="0"/>
|
6728 |
+
<line num="444" type="method" name="is_all_files" visibility="public" complexity="3" crap="12" count="0"/>
|
6729 |
+
<line num="445" type="stmt" count="0"/>
|
|
|
6730 |
<line num="447" type="stmt" count="0"/>
|
6731 |
<line num="448" type="stmt" count="0"/>
|
6732 |
+
<line num="450" type="stmt" count="0"/>
|
6733 |
+
<line num="451" type="stmt" count="0"/>
|
6734 |
+
<line num="452" type="stmt" count="0"/>
|
6735 |
+
<line num="454" type="stmt" count="0"/>
|
6736 |
+
<line num="455" type="stmt" count="0"/>
|
6737 |
+
<line num="456" type="stmt" count="0"/>
|
6738 |
+
<line num="468" type="stmt" count="0"/>
|
6739 |
+
<line num="470" type="stmt" count="0"/>
|
6740 |
+
<line num="480" type="method" name="is_all_tables" visibility="public" complexity="1" crap="2" count="0"/>
|
6741 |
+
<line num="481" type="stmt" count="0"/>
|
6742 |
+
<line num="483" type="stmt" count="0"/>
|
6743 |
+
<line num="495" type="method" name="move_backups" visibility="public" complexity="3" crap="12" count="0"/>
|
6744 |
+
<line num="496" type="stmt" count="0"/>
|
6745 |
<line num="498" type="stmt" count="0"/>
|
6746 |
<line num="499" type="stmt" count="0"/>
|
6747 |
+
<line num="501" type="stmt" count="0"/>
|
6748 |
+
<line num="503" type="stmt" count="0"/>
|
|
|
|
|
6749 |
<line num="506" type="stmt" count="0"/>
|
6750 |
<line num="507" type="stmt" count="0"/>
|
6751 |
+
<line num="508" type="stmt" count="0"/>
|
6752 |
+
<line num="510" type="stmt" count="0"/>
|
6753 |
+
<line num="512" type="stmt" count="0"/>
|
6754 |
+
<line num="513" type="stmt" count="0"/>
|
6755 |
+
<line num="514" type="stmt" count="0"/>
|
6756 |
+
<line num="515" type="stmt" count="0"/>
|
6757 |
+
<line num="517" type="stmt" count="0"/>
|
6758 |
+
<line num="531" type="method" name="update_settings" visibility="private" complexity="70" crap="4970" count="0"/>
|
6759 |
<line num="532" type="stmt" count="0"/>
|
6760 |
+
<line num="535" type="stmt" count="0"/>
|
6761 |
<line num="536" type="stmt" count="0"/>
|
6762 |
<line num="538" type="stmt" count="0"/>
|
6763 |
+
<line num="540" type="stmt" count="0"/>
|
6764 |
<line num="541" type="stmt" count="0"/>
|
6765 |
<line num="544" type="stmt" count="0"/>
|
6766 |
+
<line num="546" type="stmt" count="0"/>
|
6767 |
<line num="549" type="stmt" count="0"/>
|
|
|
|
|
6768 |
<line num="552" type="stmt" count="0"/>
|
|
|
|
|
|
|
6769 |
<line num="556" type="stmt" count="0"/>
|
6770 |
<line num="557" type="stmt" count="0"/>
|
6771 |
<line num="558" type="stmt" count="0"/>
|
6772 |
+
<line num="559" type="stmt" count="0"/>
|
6773 |
<line num="560" type="stmt" count="0"/>
|
6774 |
+
<line num="561" type="stmt" count="0"/>
|
6775 |
<line num="562" type="stmt" count="0"/>
|
6776 |
<line num="563" type="stmt" count="0"/>
|
6777 |
<line num="564" type="stmt" count="0"/>
|
6778 |
<line num="565" type="stmt" count="0"/>
|
6779 |
<line num="566" type="stmt" count="0"/>
|
|
|
6780 |
<line num="568" type="stmt" count="0"/>
|
|
|
6781 |
<line num="570" type="stmt" count="0"/>
|
6782 |
+
<line num="571" type="stmt" count="0"/>
|
6783 |
<line num="572" type="stmt" count="0"/>
|
6784 |
+
<line num="573" type="stmt" count="0"/>
|
6785 |
+
<line num="574" type="stmt" count="0"/>
|
6786 |
<line num="575" type="stmt" count="0"/>
|
6787 |
+
<line num="576" type="stmt" count="0"/>
|
6788 |
+
<line num="577" type="stmt" count="0"/>
|
6789 |
<line num="578" type="stmt" count="0"/>
|
6790 |
<line num="580" type="stmt" count="0"/>
|
6791 |
<line num="583" type="stmt" count="0"/>
|
6792 |
+
<line num="586" type="stmt" count="0"/>
|
|
|
|
|
6793 |
<line num="588" type="stmt" count="0"/>
|
|
|
6794 |
<line num="591" type="stmt" count="0"/>
|
6795 |
<line num="592" type="stmt" count="0"/>
|
6796 |
+
<line num="593" type="stmt" count="0"/>
|
6797 |
+
<line num="595" type="stmt" count="0"/>
|
6798 |
<line num="596" type="stmt" count="0"/>
|
6799 |
+
<line num="597" type="stmt" count="0"/>
|
6800 |
<line num="599" type="stmt" count="0"/>
|
6801 |
<line num="600" type="stmt" count="0"/>
|
6802 |
+
<line num="604" type="stmt" count="0"/>
|
6803 |
+
<line num="606" type="stmt" count="0"/>
|
6804 |
<line num="607" type="stmt" count="0"/>
|
6805 |
+
<line num="608" type="stmt" count="0"/>
|
6806 |
<line num="610" type="stmt" count="0"/>
|
6807 |
+
<line num="611" type="stmt" count="0"/>
|
6808 |
+
<line num="615" type="stmt" count="0"/>
|
6809 |
+
<line num="618" type="stmt" count="0"/>
|
|
|
|
|
6810 |
<line num="620" type="stmt" count="0"/>
|
6811 |
<line num="621" type="stmt" count="0"/>
|
6812 |
+
<line num="622" type="stmt" count="0"/>
|
6813 |
<line num="624" type="stmt" count="0"/>
|
6814 |
<line num="625" type="stmt" count="0"/>
|
6815 |
<line num="628" type="stmt" count="0"/>
|
6816 |
<line num="629" type="stmt" count="0"/>
|
6817 |
<line num="631" type="stmt" count="0"/>
|
6818 |
<line num="632" type="stmt" count="0"/>
|
6819 |
+
<line num="633" type="stmt" count="0"/>
|
6820 |
<line num="636" type="stmt" count="0"/>
|
6821 |
+
<line num="637" type="stmt" count="0"/>
|
6822 |
+
<line num="639" type="stmt" count="0"/>
|
6823 |
+
<line num="640" type="stmt" count="0"/>
|
6824 |
<line num="642" type="stmt" count="0"/>
|
6825 |
<line num="644" type="stmt" count="0"/>
|
6826 |
+
<line num="646" type="stmt" count="0"/>
|
6827 |
+
<line num="649" type="stmt" count="0"/>
|
|
|
6828 |
<line num="650" type="stmt" count="0"/>
|
6829 |
+
<line num="652" type="stmt" count="0"/>
|
6830 |
<line num="653" type="stmt" count="0"/>
|
6831 |
+
<line num="655" type="stmt" count="0"/>
|
6832 |
<line num="656" type="stmt" count="0"/>
|
6833 |
+
<line num="658" type="stmt" count="0"/>
|
6834 |
<line num="659" type="stmt" count="0"/>
|
|
|
6835 |
<line num="661" type="stmt" count="0"/>
|
6836 |
+
<line num="662" type="stmt" count="0"/>
|
6837 |
<line num="664" type="stmt" count="0"/>
|
6838 |
+
<line num="665" type="stmt" count="0"/>
|
6839 |
<line num="667" type="stmt" count="0"/>
|
6840 |
+
<line num="668" type="stmt" count="0"/>
|
6841 |
+
<line num="669" type="stmt" count="0"/>
|
6842 |
<line num="671" type="stmt" count="0"/>
|
6843 |
<line num="672" type="stmt" count="0"/>
|
6844 |
+
<line num="674" type="stmt" count="0"/>
|
6845 |
+
<line num="675" type="stmt" count="0"/>
|
6846 |
+
<line num="678" type="stmt" count="0"/>
|
6847 |
+
<line num="679" type="stmt" count="0"/>
|
6848 |
+
<line num="680" type="stmt" count="0"/>
|
6849 |
+
<line num="681" type="stmt" count="0"/>
|
6850 |
<line num="684" type="stmt" count="0"/>
|
6851 |
+
<line num="691" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
6852 |
<line num="692" type="stmt" count="0"/>
|
6853 |
+
<line num="693" type="stmt" count="0"/>
|
6854 |
+
<line num="694" type="stmt" count="0"/>
|
6855 |
+
<line num="695" type="stmt" count="0"/>
|
6856 |
+
<line num="696" type="stmt" count="0"/>
|
6857 |
+
<line num="697" type="stmt" count="0"/>
|
6858 |
+
<line num="698" type="stmt" count="0"/>
|
6859 |
+
<line num="700" type="stmt" count="0"/>
|
6860 |
<line num="707" type="stmt" count="0"/>
|
6861 |
+
<line num="714" type="stmt" count="0"/>
|
6862 |
+
<line num="715" type="stmt" count="0"/>
|
6863 |
+
<line num="716" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
6864 |
<line num="725" type="stmt" count="0"/>
|
6865 |
+
<line num="726" type="stmt" count="0"/>
|
6866 |
+
<line num="727" type="stmt" count="0"/>
|
6867 |
+
<line num="728" type="stmt" count="0"/>
|
6868 |
+
<line num="729" type="stmt" count="0"/>
|
6869 |
+
<line num="730" type="stmt" count="0"/>
|
6870 |
+
<line num="731" type="stmt" count="0"/>
|
6871 |
+
<line num="733" type="stmt" count="0"/>
|
6872 |
+
<line num="743" type="stmt" count="0"/>
|
6873 |
+
<line num="744" type="stmt" count="0"/>
|
6874 |
+
<line num="745" type="stmt" count="0"/>
|
6875 |
+
<line num="746" type="stmt" count="0"/>
|
6876 |
<line num="747" type="stmt" count="0"/>
|
6877 |
+
<line num="748" type="stmt" count="0"/>
|
6878 |
+
<line num="755" type="stmt" count="0"/>
|
6879 |
+
<line num="758" type="stmt" count="0"/>
|
6880 |
+
<line num="759" type="stmt" count="0"/>
|
6881 |
<line num="760" type="stmt" count="0"/>
|
6882 |
+
<line num="761" type="stmt" count="0"/>
|
|
|
|
|
6883 |
<line num="768" type="stmt" count="0"/>
|
6884 |
+
<line num="771" type="stmt" count="0"/>
|
6885 |
<line num="772" type="stmt" count="0"/>
|
6886 |
<line num="773" type="stmt" count="0"/>
|
6887 |
+
<line num="776" type="stmt" count="0"/>
|
6888 |
+
<line num="777" type="stmt" count="0"/>
|
6889 |
<line num="780" type="stmt" count="0"/>
|
6890 |
<line num="781" type="stmt" count="0"/>
|
6891 |
+
<line num="787" type="stmt" count="0"/>
|
6892 |
+
<line num="788" type="stmt" count="0"/>
|
6893 |
<line num="789" type="stmt" count="0"/>
|
6894 |
<line num="790" type="stmt" count="0"/>
|
6895 |
<line num="797" type="stmt" count="0"/>
|
6896 |
<line num="798" type="stmt" count="0"/>
|
6897 |
+
<line num="805" type="stmt" count="0"/>
|
6898 |
+
<line num="806" type="stmt" count="0"/>
|
6899 |
+
<line num="807" type="stmt" count="0"/>
|
|
|
|
|
|
|
6900 |
<line num="818" type="stmt" count="0"/>
|
6901 |
<line num="819" type="stmt" count="0"/>
|
|
|
6902 |
<line num="821" type="stmt" count="0"/>
|
6903 |
<line num="822" type="stmt" count="0"/>
|
6904 |
+
<line num="823" type="stmt" count="0"/>
|
6905 |
<line num="826" type="stmt" count="0"/>
|
6906 |
<line num="827" type="stmt" count="0"/>
|
6907 |
+
<line num="828" type="stmt" count="0"/>
|
6908 |
<line num="829" type="stmt" count="0"/>
|
6909 |
<line num="830" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
6910 |
<line num="837" type="stmt" count="0"/>
|
6911 |
+
<line num="838" type="stmt" count="0"/>
|
6912 |
+
<line num="839" type="stmt" count="0"/>
|
6913 |
+
<line num="840" type="stmt" count="0"/>
|
6914 |
<line num="843" type="stmt" count="0"/>
|
6915 |
<line num="844" type="stmt" count="0"/>
|
6916 |
+
<line num="845" type="stmt" count="0"/>
|
6917 |
<line num="847" type="stmt" count="0"/>
|
6918 |
+
<line num="848" type="stmt" count="0"/>
|
6919 |
+
<line num="849" type="stmt" count="0"/>
|
6920 |
<line num="850" type="stmt" count="0"/>
|
6921 |
<line num="851" type="stmt" count="0"/>
|
6922 |
<line num="852" type="stmt" count="0"/>
|
|
|
6923 |
<line num="854" type="stmt" count="0"/>
|
6924 |
+
<line num="855" type="stmt" count="0"/>
|
6925 |
<line num="859" type="stmt" count="0"/>
|
6926 |
<line num="860" type="stmt" count="0"/>
|
6927 |
<line num="861" type="stmt" count="0"/>
|
6928 |
+
<line num="862" type="stmt" count="0"/>
|
|
|
6929 |
<line num="865" type="stmt" count="0"/>
|
6930 |
+
<line num="868" type="stmt" count="0"/>
|
6931 |
+
<line num="869" type="stmt" count="0"/>
|
6932 |
<line num="870" type="stmt" count="0"/>
|
6933 |
<line num="871" type="stmt" count="0"/>
|
6934 |
<line num="872" type="stmt" count="0"/>
|
6935 |
+
<line num="875" type="stmt" count="0"/>
|
6936 |
+
<line num="877" type="stmt" count="0"/>
|
6937 |
+
<line num="878" type="stmt" count="0"/>
|
6938 |
+
<line num="879" type="stmt" count="0"/>
|
6939 |
<line num="881" type="stmt" count="0"/>
|
6940 |
+
<line num="882" type="stmt" count="0"/>
|
6941 |
+
<line num="883" type="stmt" count="0"/>
|
6942 |
<line num="884" type="stmt" count="0"/>
|
6943 |
+
<line num="885" type="stmt" count="0"/>
|
6944 |
+
<line num="888" type="stmt" count="0"/>
|
6945 |
+
<line num="889" type="stmt" count="0"/>
|
6946 |
+
<line num="890" type="stmt" count="0"/>
|
6947 |
+
<line num="892" type="stmt" count="0"/>
|
6948 |
+
<line num="898" type="stmt" count="0"/>
|
6949 |
<line num="899" type="stmt" count="0"/>
|
6950 |
+
<line num="902" type="stmt" count="0"/>
|
6951 |
+
<line num="914" type="method" name="validate_auto_update" visibility="public" complexity="6" crap="42" count="0"/>
|
6952 |
+
<line num="915" type="stmt" count="0"/>
|
6953 |
+
<line num="917" type="stmt" count="0"/>
|
6954 |
+
<line num="918" type="stmt" count="0"/>
|
6955 |
+
<line num="921" type="stmt" count="0"/>
|
6956 |
+
<line num="929" type="method" name="delete_rollback_option" visibility="public" complexity="1" crap="1" count="1"/>
|
6957 |
+
<line num="930" type="stmt" count="1"/>
|
6958 |
+
<line num="931" type="stmt" count="1"/>
|
6959 |
+
<line num="941" type="method" name="page_backup_settings" visibility="public" complexity="12" crap="156" count="0"/>
|
6960 |
+
<line num="943" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6961 |
<line num="944" type="stmt" count="0"/>
|
6962 |
<line num="945" type="stmt" count="0"/>
|
|
|
6963 |
<line num="947" type="stmt" count="0"/>
|
6964 |
+
<line num="948" type="stmt" count="0"/>
|
6965 |
<line num="949" type="stmt" count="0"/>
|
6966 |
<line num="950" type="stmt" count="0"/>
|
6967 |
+
<line num="951" type="stmt" count="0"/>
|
6968 |
<line num="953" type="stmt" count="0"/>
|
6969 |
+
<line num="954" type="stmt" count="0"/>
|
6970 |
<line num="955" type="stmt" count="0"/>
|
6971 |
<line num="957" type="stmt" count="0"/>
|
6972 |
<line num="958" type="stmt" count="0"/>
|
6973 |
+
<line num="959" type="stmt" count="0"/>
|
6974 |
+
<line num="962" type="stmt" count="0"/>
|
6975 |
+
<line num="963" type="stmt" count="0"/>
|
6976 |
+
<line num="964" type="stmt" count="0"/>
|
6977 |
<line num="965" type="stmt" count="0"/>
|
|
|
6978 |
<line num="967" type="stmt" count="0"/>
|
6979 |
<line num="968" type="stmt" count="0"/>
|
6980 |
<line num="970" type="stmt" count="0"/>
|
6981 |
+
<line num="971" type="stmt" count="0"/>
|
6982 |
<line num="973" type="stmt" count="0"/>
|
6983 |
+
<line num="975" type="stmt" count="0"/>
|
6984 |
<line num="976" type="stmt" count="0"/>
|
6985 |
<line num="983" type="stmt" count="0"/>
|
6986 |
<line num="984" type="stmt" count="0"/>
|
6990 |
<line num="990" type="stmt" count="0"/>
|
6991 |
<line num="991" type="stmt" count="0"/>
|
6992 |
<line num="994" type="stmt" count="0"/>
|
|
|
|
|
|
|
6993 |
<line num="1001" type="stmt" count="0"/>
|
6994 |
<line num="1002" type="stmt" count="0"/>
|
6995 |
<line num="1003" type="stmt" count="0"/>
|
6996 |
<line num="1004" type="stmt" count="0"/>
|
6997 |
+
<line num="1006" type="stmt" count="0"/>
|
6998 |
<line num="1008" type="stmt" count="0"/>
|
6999 |
<line num="1009" type="stmt" count="0"/>
|
7000 |
+
<line num="1012" type="stmt" count="0"/>
|
7001 |
+
<line num="1014" type="stmt" count="0"/>
|
|
|
7002 |
<line num="1015" type="stmt" count="0"/>
|
|
|
|
|
7003 |
<line num="1018" type="stmt" count="0"/>
|
7004 |
<line num="1019" type="stmt" count="0"/>
|
7005 |
+
<line num="1020" type="stmt" count="0"/>
|
7006 |
<line num="1021" type="stmt" count="0"/>
|
7007 |
+
<line num="1022" type="stmt" count="0"/>
|
7008 |
<line num="1025" type="stmt" count="0"/>
|
7009 |
<line num="1026" type="stmt" count="0"/>
|
7010 |
<line num="1027" type="stmt" count="0"/>
|
7011 |
<line num="1028" type="stmt" count="0"/>
|
7012 |
+
<line num="1029" type="stmt" count="0"/>
|
7013 |
+
<line num="1031" type="stmt" count="0"/>
|
7014 |
<line num="1033" type="stmt" count="0"/>
|
7015 |
<line num="1034" type="stmt" count="0"/>
|
7016 |
<line num="1035" type="stmt" count="0"/>
|
7021 |
<line num="1043" type="stmt" count="0"/>
|
7022 |
<line num="1044" type="stmt" count="0"/>
|
7023 |
<line num="1045" type="stmt" count="0"/>
|
7024 |
+
<line num="1046" type="stmt" count="0"/>
|
7025 |
+
<line num="1048" type="stmt" count="0"/>
|
7026 |
+
<line num="1051" type="stmt" count="0"/>
|
7027 |
<line num="1052" type="stmt" count="0"/>
|
7028 |
+
<line num="1053" type="stmt" count="0"/>
|
7029 |
+
<line num="1054" type="stmt" count="0"/>
|
7030 |
<line num="1055" type="stmt" count="0"/>
|
|
|
7031 |
<line num="1057" type="stmt" count="0"/>
|
7032 |
+
<line num="1060" type="stmt" count="0"/>
|
7033 |
<line num="1061" type="stmt" count="0"/>
|
7034 |
<line num="1062" type="stmt" count="0"/>
|
7035 |
<line num="1063" type="stmt" count="0"/>
|
7036 |
<line num="1065" type="stmt" count="0"/>
|
|
|
7037 |
<line num="1067" type="stmt" count="0"/>
|
7038 |
+
<line num="1068" type="stmt" count="0"/>
|
7039 |
+
<line num="1070" type="stmt" count="0"/>
|
7040 |
+
<line num="1073" type="stmt" count="0"/>
|
7041 |
<line num="1074" type="stmt" count="0"/>
|
7042 |
+
<line num="1075" type="stmt" count="0"/>
|
7043 |
<line num="1077" type="stmt" count="0"/>
|
7044 |
<line num="1079" type="stmt" count="0"/>
|
7045 |
+
<line num="1080" type="stmt" count="0"/>
|
7046 |
+
<line num="1081" type="stmt" count="0"/>
|
7047 |
+
<line num="1083" type="stmt" count="0"/>
|
7048 |
<line num="1084" type="stmt" count="0"/>
|
7049 |
<line num="1085" type="stmt" count="0"/>
|
7050 |
+
<line num="1092" type="stmt" count="0"/>
|
7051 |
+
<line num="1094" type="stmt" count="0"/>
|
7052 |
+
<line num="1095" type="stmt" count="0"/>
|
7053 |
+
<line num="1097" type="stmt" count="0"/>
|
7054 |
+
<line num="1102" type="stmt" count="0"/>
|
7055 |
+
<line num="1103" type="stmt" count="0"/>
|
7056 |
+
<line num="1104" type="stmt" count="0"/>
|
7057 |
+
<line num="1108" type="stmt" count="0"/>
|
7058 |
+
<line num="1109" type="stmt" count="0"/>
|
7059 |
+
<line num="1119" type="method" name="save" visibility="public" complexity="1" crap="1" count="10"/>
|
7060 |
+
<line num="1120" type="stmt" count="10"/>
|
7061 |
+
<line num="1131" type="method" name="update_cron" visibility="public" complexity="4" crap="20" count="0"/>
|
7062 |
+
<line num="1132" type="stmt" count="0"/>
|
7063 |
+
<line num="1134" type="stmt" count="0"/>
|
7064 |
+
<line num="1136" type="stmt" count="0"/>
|
7065 |
+
<line num="1137" type="stmt" count="0"/>
|
7066 |
+
<line num="1138" type="stmt" count="0"/>
|
7067 |
+
<line num="1139" type="stmt" count="0"/>
|
7068 |
+
<line num="1140" type="stmt" count="0"/>
|
7069 |
+
<line num="1141" type="stmt" count="0"/>
|
7070 |
+
<line num="1142" type="stmt" count="0"/>
|
7071 |
+
<line num="1144" type="stmt" count="0"/>
|
7072 |
+
<metrics loc="1146" ncloc="672" classes="1" methods="19" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="508" coveredstatements="115" elements="527" coveredelements="120"/>
|
7073 |
</file>
|
7074 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-support.php">
|
7075 |
<class name="Boldgrid_Backup_Admin_Support" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7190 |
<line num="308" type="stmt" count="0"/>
|
7191 |
<metrics loc="309" ncloc="177" classes="1" methods="10" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="103" coveredstatements="2" elements="113" coveredelements="3"/>
|
7192 |
</file>
|
7193 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-task-helper.php">
|
7194 |
+
<class name="Boldgrid_Backup_Admin_Task_Helper" namespace="global" fullPackage="Boldgrid.Backup.Admin.Task">
|
7195 |
+
<metrics complexity="11" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="27" coveredstatements="25" elements="31" coveredelements="27"/>
|
7196 |
+
</class>
|
7197 |
+
<line num="42" type="method" name="get_by_id" visibility="public" complexity="3" crap="3" count="13"/>
|
7198 |
+
<line num="43" type="stmt" count="13"/>
|
7199 |
+
<line num="45" type="stmt" count="13"/>
|
7200 |
+
<line num="47" type="stmt" count="13"/>
|
7201 |
+
<line num="48" type="stmt" count="13"/>
|
7202 |
+
<line num="49" type="stmt" count="13"/>
|
7203 |
+
<line num="50" type="stmt" count="13"/>
|
7204 |
+
<line num="52" type="stmt" count="13"/>
|
7205 |
+
<line num="54" type="stmt" count="13"/>
|
7206 |
+
<line num="64" type="method" name="get_tasks" visibility="public" complexity="1" crap="1" count="13"/>
|
7207 |
+
<line num="65" type="stmt" count="13"/>
|
7208 |
+
<line num="76" type="method" name="update" visibility="public" complexity="5" crap="5.01" count="13"/>
|
7209 |
+
<line num="78" type="stmt" count="13"/>
|
7210 |
+
<line num="79" type="stmt" count="0"/>
|
7211 |
+
<line num="82" type="stmt" count="13"/>
|
7212 |
+
<line num="84" type="stmt" count="13"/>
|
7213 |
+
<line num="91" type="stmt" count="13"/>
|
7214 |
+
<line num="92" type="stmt" count="13"/>
|
7215 |
+
<line num="94" type="stmt" count="13"/>
|
7216 |
+
<line num="95" type="stmt" count="8"/>
|
7217 |
+
<line num="99" type="stmt" count="13"/>
|
7218 |
+
<line num="100" type="stmt" count="13"/>
|
7219 |
+
<line num="101" type="stmt" count="13"/>
|
7220 |
+
<line num="102" type="stmt" count="13"/>
|
7221 |
+
<line num="104" type="stmt" count="10"/>
|
7222 |
+
<line num="107" type="stmt" count="13"/>
|
7223 |
+
<line num="117" type="method" name="update_tasks" visibility="public" complexity="2" crap="2.06" count="13"/>
|
7224 |
+
<line num="118" type="stmt" count="13"/>
|
7225 |
+
<line num="119" type="stmt" count="0"/>
|
7226 |
+
<line num="122" type="stmt" count="13"/>
|
7227 |
+
<line num="123" type="stmt" count="13"/>
|
7228 |
+
<metrics loc="124" ncloc="53" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="27" coveredstatements="25" elements="31" coveredelements="27"/>
|
7229 |
+
</file>
|
7230 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-task.php">
|
7231 |
+
<class name="Boldgrid_Backup_Admin_Task" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7232 |
+
<metrics complexity="30" methods="13" coveredmethods="13" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="55" elements="68" coveredelements="68"/>
|
7233 |
+
</class>
|
7234 |
+
<line num="105" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="13"/>
|
7235 |
+
<line num="106" type="stmt" count="13"/>
|
7236 |
+
<line num="107" type="stmt" count="13"/>
|
7237 |
+
<line num="114" type="method" name="end" visibility="public" complexity="1" crap="1" count="10"/>
|
7238 |
+
<line num="115" type="stmt" count="10"/>
|
7239 |
+
<line num="117" type="stmt" count="10"/>
|
7240 |
+
<line num="118" type="stmt" count="10"/>
|
7241 |
+
<line num="127" type="method" name="get" visibility="public" complexity="6" crap="6" count="13"/>
|
7242 |
+
<line num="129" type="stmt" count="13"/>
|
7243 |
+
<line num="130" type="stmt" count="13"/>
|
7244 |
+
<line num="131" type="stmt" count="13"/>
|
7245 |
+
<line num="132" type="stmt" count="13"/>
|
7246 |
+
<line num="133" type="stmt" count="13"/>
|
7247 |
+
<line num="134" type="stmt" count="13"/>
|
7248 |
+
<line num="135" type="stmt" count="13"/>
|
7249 |
+
<line num="136" type="stmt" count="13"/>
|
7250 |
+
<line num="137" type="stmt" count="13"/>
|
7251 |
+
<line num="138" type="stmt" count="13"/>
|
7252 |
+
<line num="139" type="stmt" count="13"/>
|
7253 |
+
<line num="140" type="stmt" count="13"/>
|
7254 |
+
<line num="152" type="method" name="get_data" visibility="public" complexity="2" crap="2" count="1"/>
|
7255 |
+
<line num="153" type="stmt" count="1"/>
|
7256 |
+
<line num="163" type="method" name="get_id" visibility="public" complexity="1" crap="1" count="2"/>
|
7257 |
+
<line num="164" type="stmt" count="2"/>
|
7258 |
+
<line num="174" type="method" name="get_status" visibility="public" complexity="3" crap="3" count="13"/>
|
7259 |
+
<line num="175" type="stmt" count="13"/>
|
7260 |
+
<line num="176" type="stmt" count="4"/>
|
7261 |
+
<line num="177" type="stmt" count="13"/>
|
7262 |
+
<line num="178" type="stmt" count="10"/>
|
7263 |
+
<line num="179" type="stmt" count="10"/>
|
7264 |
+
<line num="180" type="stmt" count="10"/>
|
7265 |
+
<line num="183" type="stmt" count="13"/>
|
7266 |
+
<line num="194" type="method" name="init" visibility="public" complexity="9" crap="9" count="13"/>
|
7267 |
+
<line num="195" type="stmt" count="13"/>
|
7268 |
+
<line num="196" type="stmt" count="13"/>
|
7269 |
+
<line num="197" type="stmt" count="13"/>
|
7270 |
+
<line num="198" type="stmt" count="13"/>
|
7271 |
+
<line num="199" type="stmt" count="13"/>
|
7272 |
+
<line num="202" type="stmt" count="13"/>
|
7273 |
+
<line num="203" type="stmt" count="13"/>
|
7274 |
+
<line num="204" type="stmt" count="1"/>
|
7275 |
+
<line num="205" type="stmt" count="13"/>
|
7276 |
+
<line num="206" type="stmt" count="1"/>
|
7277 |
+
<line num="209" type="stmt" count="13"/>
|
7278 |
+
<line num="220" type="method" name="init_by_id" visibility="public" complexity="1" crap="1" count="1"/>
|
7279 |
+
<line num="221" type="stmt" count="1"/>
|
7280 |
+
<line num="223" type="stmt" count="1"/>
|
7281 |
+
<line num="234" type="method" name="set_id" visibility="private" complexity="1" crap="1" count="13"/>
|
7282 |
+
<line num="236" type="stmt" count="13"/>
|
7283 |
+
<line num="238" type="stmt" count="13"/>
|
7284 |
+
<line num="249" type="method" name="set_type" visibility="private" complexity="2" crap="2" count="13"/>
|
7285 |
+
<line num="251" type="stmt" count="13"/>
|
7286 |
+
<line num="252" type="stmt" count="13"/>
|
7287 |
+
<line num="253" type="stmt" count="13"/>
|
7288 |
+
<line num="255" type="stmt" count="13"/>
|
7289 |
+
<line num="256" type="stmt" count="1"/>
|
7290 |
+
<line num="259" type="stmt" count="13"/>
|
7291 |
+
<line num="261" type="stmt" count="13"/>
|
7292 |
+
<line num="269" type="method" name="start" visibility="public" complexity="1" crap="1" count="10"/>
|
7293 |
+
<line num="270" type="stmt" count="10"/>
|
7294 |
+
<line num="272" type="stmt" count="10"/>
|
7295 |
+
<line num="273" type="stmt" count="10"/>
|
7296 |
+
<line num="283" type="method" name="update_data" visibility="public" complexity="1" crap="1" count="1"/>
|
7297 |
+
<line num="284" type="stmt" count="1"/>
|
7298 |
+
<line num="286" type="stmt" count="1"/>
|
7299 |
+
<line num="287" type="stmt" count="1"/>
|
7300 |
+
<line num="294" type="method" name="update" visibility="public" complexity="1" crap="1" count="13"/>
|
7301 |
+
<line num="295" type="stmt" count="13"/>
|
7302 |
+
<metrics loc="297" ncloc="124" classes="1" methods="13" coveredmethods="13" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="55" elements="68" coveredelements="68"/>
|
7303 |
+
</file>
|
7304 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-test.php">
|
7305 |
<class name="Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7306 |
+
<metrics complexity="99" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="261" coveredstatements="124" elements="287" coveredelements="129"/>
|
7307 |
</class>
|
7308 |
<line num="122" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
7309 |
<line num="124" type="stmt" count="29"/>
|
7310 |
<line num="125" type="stmt" count="29"/>
|
7311 |
+
<line num="135" type="method" name="can_exec_write" visibility="public" complexity="4" crap="4.32" count="2"/>
|
7312 |
+
<line num="136" type="stmt" count="2"/>
|
7313 |
<line num="137" type="stmt" count="0"/>
|
7314 |
+
<line num="140" type="stmt" count="2"/>
|
7315 |
+
<line num="141" type="stmt" count="2"/>
|
7316 |
+
<line num="144" type="stmt" count="2"/>
|
7317 |
+
<line num="145" type="stmt" count="2"/>
|
7318 |
+
<line num="146" type="stmt" count="2"/>
|
7319 |
<line num="147" type="stmt" count="0"/>
|
7320 |
+
<line num="151" type="stmt" count="2"/>
|
7321 |
<line num="152" type="stmt" count="0"/>
|
7322 |
+
<line num="156" type="stmt" count="2"/>
|
7323 |
+
<line num="167" type="method" name="exists" visibility="public" complexity="3" crap="3.58" count="9"/>
|
7324 |
+
<line num="168" type="stmt" count="9"/>
|
7325 |
+
<line num="174" type="stmt" count="9"/>
|
7326 |
<line num="175" type="stmt" count="0"/>
|
7327 |
<line num="176" type="stmt" count="0"/>
|
7328 |
+
<line num="178" type="stmt" count="9"/>
|
7329 |
<line num="191" type="method" name="extensive_dir_test" visibility="public" complexity="3" crap="3" count="2"/>
|
7330 |
<line num="192" type="stmt" count="2"/>
|
7331 |
<line num="193" type="stmt" count="2"/>
|
7361 |
<line num="258" type="stmt" count="0"/>
|
7362 |
<line num="260" type="stmt" count="0"/>
|
7363 |
<line num="262" type="stmt" count="0"/>
|
7364 |
+
<line num="276" type="method" name="delete_test_files" visibility="public" complexity="4" crap="4.01" count="2"/>
|
7365 |
+
<line num="277" type="stmt" count="2"/>
|
7366 |
+
<line num="279" type="stmt" count="2"/>
|
7367 |
+
<line num="281" type="stmt" count="2"/>
|
7368 |
<line num="282" type="stmt" count="0"/>
|
7369 |
+
<line num="285" type="stmt" count="2"/>
|
7370 |
+
<line num="286" type="stmt" count="2"/>
|
7371 |
+
<line num="288" type="stmt" count="2"/>
|
7372 |
<line num="289" type="stmt" count="1"/>
|
7373 |
<line num="290" type="stmt" count="1"/>
|
7374 |
+
<line num="291" type="stmt" count="2"/>
|
7375 |
+
<line num="293" type="stmt" count="2"/>
|
7376 |
<line num="303" type="method" name="is_windows" visibility="public" complexity="2" crap="2" count="8"/>
|
7377 |
<line num="305" type="stmt" count="8"/>
|
7378 |
<line num="306" type="stmt" count="7"/>
|
7408 |
<line num="392" type="stmt" count="0"/>
|
7409 |
<line num="394" type="stmt" count="0"/>
|
7410 |
<line num="396" type="stmt" count="0"/>
|
7411 |
+
<line num="408" type="method" name="is_crontab_available" visibility="public" complexity="4" crap="4.13" count="2"/>
|
7412 |
+
<line num="410" type="stmt" count="2"/>
|
7413 |
+
<line num="411" type="stmt" count="1"/>
|
7414 |
<line num="414" type="stmt" count="1"/>
|
7415 |
<line num="415" type="stmt" count="0"/>
|
7416 |
<line num="416" type="stmt" count="0"/>
|
7419 |
<line num="426" type="stmt" count="1"/>
|
7420 |
<line num="427" type="stmt" count="1"/>
|
7421 |
<line num="429" type="stmt" count="1"/>
|
7422 |
+
<line num="439" type="method" name="wp_cron_enabled" visibility="public" complexity="5" crap="5.01" count="1"/>
|
7423 |
+
<line num="441" type="stmt" count="1"/>
|
7424 |
<line num="442" type="stmt" count="0"/>
|
7425 |
+
<line num="446" type="stmt" count="1"/>
|
7426 |
+
<line num="448" type="stmt" count="1"/>
|
7427 |
+
<line num="449" type="stmt" count="1"/>
|
7428 |
+
<line num="450" type="stmt" count="1"/>
|
7429 |
+
<line num="453" type="stmt" count="1"/>
|
7430 |
+
<line num="455" type="stmt" count="1"/>
|
7431 |
+
<line num="456" type="stmt" count="1"/>
|
7432 |
+
<line num="457" type="stmt" count="1"/>
|
7433 |
+
<line num="459" type="stmt" count="1"/>
|
7434 |
+
<line num="461" type="stmt" count="1"/>
|
7435 |
<line num="471" type="method" name="is_php_safemode" visibility="public" complexity="2" crap="2.06" count="1"/>
|
7436 |
<line num="473" type="stmt" count="1"/>
|
7437 |
<line num="474" type="stmt" count="0"/>
|
7438 |
<line num="478" type="stmt" count="1"/>
|
7439 |
<line num="481" type="stmt" count="1"/>
|
7440 |
+
<line num="491" type="method" name="is_php_zip_supported" visibility="public" complexity="1" crap="1" count="1"/>
|
7441 |
+
<line num="492" type="stmt" count="1"/>
|
7442 |
+
<line num="494" type="stmt" count="1"/>
|
7443 |
<line num="504" type="method" name="is_plesk" visibility="public" complexity="3" crap="12" count="0"/>
|
7444 |
<line num="505" type="stmt" count="0"/>
|
7445 |
<line num="506" type="stmt" count="0"/>
|
7449 |
<line num="521" type="method" name="is_system_zip_supported" visibility="public" complexity="1" crap="2" count="0"/>
|
7450 |
<line num="522" type="stmt" count="0"/>
|
7451 |
<line num="524" type="stmt" count="0"/>
|
7452 |
+
<line num="534" type="method" name="run_functionality_tests" visibility="public" complexity="15" crap="25.25" count="9"/>
|
7453 |
+
<line num="536" type="stmt" count="9"/>
|
7454 |
+
<line num="537" type="stmt" count="9"/>
|
7455 |
<line num="540" type="stmt" count="1"/>
|
7456 |
<line num="550" type="stmt" count="1"/>
|
7457 |
<line num="551" type="stmt" count="1"/>
|
7515 |
<line num="668" type="stmt" count="0"/>
|
7516 |
<line num="671" type="stmt" count="0"/>
|
7517 |
<line num="674" type="stmt" count="0"/>
|
7518 |
+
<line num="687" type="method" name="get_cli_support" visibility="public" complexity="10" crap="10.20" count="2"/>
|
7519 |
+
<line num="689" type="stmt" count="2"/>
|
7520 |
+
<line num="690" type="stmt" count="2"/>
|
7521 |
+
<line num="691" type="stmt" count="2"/>
|
7522 |
+
<line num="694" type="stmt" count="2"/>
|
7523 |
+
<line num="698" type="stmt" count="2"/>
|
7524 |
+
<line num="699" type="stmt" count="2"/>
|
7525 |
+
<line num="701" type="stmt" count="2"/>
|
7526 |
+
<line num="703" type="stmt" count="2"/>
|
7527 |
+
<line num="705" type="stmt" count="2"/>
|
7528 |
<line num="707" type="stmt" count="0"/>
|
7529 |
<line num="708" type="stmt" count="0"/>
|
7530 |
+
<line num="709" type="stmt" count="2"/>
|
7531 |
+
<line num="712" type="stmt" count="2"/>
|
7532 |
+
<line num="713" type="stmt" count="2"/>
|
7533 |
+
<line num="716" type="stmt" count="2"/>
|
7534 |
+
<line num="718" type="stmt" count="2"/>
|
7535 |
+
<line num="720" type="stmt" count="2"/>
|
7536 |
+
<line num="722" type="stmt" count="2"/>
|
7537 |
<line num="723" type="stmt" count="0"/>
|
7538 |
+
<line num="726" type="stmt" count="2"/>
|
7539 |
+
<line num="727" type="stmt" count="2"/>
|
7540 |
+
<line num="729" type="stmt" count="2"/>
|
7541 |
+
<line num="731" type="stmt" count="2"/>
|
7542 |
+
<line num="733" type="stmt" count="2"/>
|
7543 |
<line num="745" type="method" name="get_database_size" visibility="public" complexity="4" crap="20" count="0"/>
|
7544 |
<line num="747" type="stmt" count="0"/>
|
7545 |
<line num="749" type="stmt" count="0"/>
|
7573 |
<line num="838" type="stmt" count="0"/>
|
7574 |
<line num="839" type="stmt" count="0"/>
|
7575 |
<line num="840" type="stmt" count="0"/>
|
7576 |
+
<line num="850" type="method" name="is_pcl_zip_supported" visibility="public" complexity="1" crap="2" count="0"/>
|
7577 |
+
<line num="851" type="stmt" count="0"/>
|
7578 |
+
<line num="853" type="stmt" count="0"/>
|
7579 |
+
<line num="865" type="method" name="is_ea4_cli" visibility="public" complexity="3" crap="3" count="2"/>
|
7580 |
+
<line num="866" type="stmt" count="2"/>
|
7581 |
+
<line num="867" type="stmt" count="2"/>
|
7582 |
+
<line num="869" type="stmt" count="2"/>
|
7583 |
+
<line num="871" type="stmt" count="2"/>
|
7584 |
<line num="883" type="method" name="is_filesystem_supported" visibility="public" complexity="3" crap="4.12" count="1"/>
|
7585 |
<line num="884" type="stmt" count="1"/>
|
7586 |
<line num="886" type="stmt" count="1"/>
|
7592 |
<line num="895" type="stmt" count="0"/>
|
7593 |
<line num="896" type="stmt" count="0"/>
|
7594 |
<line num="898" type="stmt" count="1"/>
|
7595 |
+
<metrics loc="900" ncloc="445" classes="1" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="261" coveredstatements="124" elements="287" coveredelements="129"/>
|
7596 |
</file>
|
7597 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-time.php">
|
7598 |
<class name="Boldgrid_Backup_Admin_Time" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7787 |
</file>
|
7788 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-upload.php">
|
7789 |
<class name="Boldgrid_Backup_Admin_Upload" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7790 |
+
<metrics complexity="34" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="161" coveredstatements="2" elements="170" coveredelements="3"/>
|
7791 |
</class>
|
7792 |
<line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
7793 |
<line num="41" type="stmt" count="29"/>
|
7930 |
<line num="380" type="stmt" count="0"/>
|
7931 |
<line num="382" type="stmt" count="0"/>
|
7932 |
<line num="384" type="stmt" count="0"/>
|
7933 |
+
<line num="403" type="method" name="ajax_url_import" visibility="public" complexity="5" crap="30" count="0"/>
|
7934 |
<line num="404" type="stmt" count="0"/>
|
7935 |
<line num="405" type="stmt" count="0"/>
|
7936 |
<line num="406" type="stmt" count="0"/>
|
7946 |
<line num="424" type="stmt" count="0"/>
|
7947 |
<line num="425" type="stmt" count="0"/>
|
7948 |
<line num="427" type="stmt" count="0"/>
|
7949 |
+
<line num="429" type="stmt" count="0"/>
|
7950 |
<line num="430" type="stmt" count="0"/>
|
7951 |
+
<line num="432" type="stmt" count="0"/>
|
7952 |
<line num="433" type="stmt" count="0"/>
|
7953 |
+
<line num="434" type="stmt" count="0"/>
|
7954 |
<line num="435" type="stmt" count="0"/>
|
7955 |
+
<line num="437" type="stmt" count="0"/>
|
7956 |
+
<line num="444" type="method" name="archive_upload_action" visibility="public" complexity="3" crap="12" count="0"/>
|
7957 |
+
<line num="445" type="stmt" count="0"/>
|
|
|
|
|
|
|
7958 |
<line num="446" type="stmt" count="0"/>
|
7959 |
<line num="447" type="stmt" count="0"/>
|
7960 |
+
<line num="448" type="stmt" count="0"/>
|
7961 |
<line num="449" type="stmt" count="0"/>
|
7962 |
+
<metrics loc="450" ncloc="228" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="161" coveredstatements="2" elements="170" coveredelements="3"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7963 |
</file>
|
7964 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-usage.php">
|
7965 |
<class name="Boldgrid_Backup_Admin_Usage" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7996 |
</file>
|
7997 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-utility.php">
|
7998 |
<class name="Boldgrid_Backup_Admin_Utility" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
7999 |
+
<metrics complexity="86" methods="22" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="300" coveredstatements="44" elements="322" coveredelements="47"/>
|
8000 |
</class>
|
8001 |
+
<line num="34" type="method" name="bytes_to_human" visibility="public" complexity="3" crap="3" count="9"/>
|
8002 |
+
<line num="36" type="stmt" count="9"/>
|
8003 |
<line num="37" type="stmt" count="0"/>
|
8004 |
+
<line num="41" type="stmt" count="9"/>
|
8005 |
+
<line num="44" type="stmt" count="9"/>
|
8006 |
+
<line num="45" type="stmt" count="9"/>
|
8007 |
+
<line num="46" type="stmt" count="9"/>
|
8008 |
+
<line num="47" type="stmt" count="9"/>
|
8009 |
+
<line num="48" type="stmt" count="9"/>
|
8010 |
+
<line num="49" type="stmt" count="9"/>
|
8011 |
+
<line num="50" type="stmt" count="9"/>
|
8012 |
+
<line num="51" type="stmt" count="9"/>
|
8013 |
+
<line num="52" type="stmt" count="9"/>
|
8014 |
+
<line num="53" type="stmt" count="9"/>
|
8015 |
+
<line num="55" type="stmt" count="9"/>
|
8016 |
+
<line num="57" type="stmt" count="9"/>
|
8017 |
+
<line num="58" type="stmt" count="9"/>
|
8018 |
+
<line num="59" type="stmt" count="9"/>
|
8019 |
+
<line num="60" type="stmt" count="9"/>
|
8020 |
+
<line num="62" type="stmt" count="9"/>
|
8021 |
+
<line num="64" type="stmt" count="9"/>
|
8022 |
+
<line num="66" type="stmt" count="9"/>
|
8023 |
+
<line num="78" type="method" name="create_site_id" visibility="public" complexity="2" crap="2.04" count="9"/>
|
8024 |
+
<line num="80" type="stmt" count="9"/>
|
8025 |
<line num="82" type="stmt" count="0"/>
|
8026 |
<line num="83" type="stmt" count="0"/>
|
8027 |
+
<line num="85" type="stmt" count="9"/>
|
8028 |
+
<line num="89" type="stmt" count="9"/>
|
8029 |
+
<line num="90" type="stmt" count="9"/>
|
8030 |
+
<line num="91" type="stmt" count="9"/>
|
8031 |
+
<line num="92" type="stmt" count="9"/>
|
8032 |
+
<line num="94" type="stmt" count="9"/>
|
8033 |
<line num="121" type="method" name="handle_error" visibility="public" complexity="2" crap="6" count="0"/>
|
8034 |
<line num="148" type="stmt" count="0"/>
|
8035 |
<line num="149" type="stmt" count="0"/>
|
8132 |
<line num="320" type="stmt" count="0"/>
|
8133 |
<line num="321" type="stmt" count="0"/>
|
8134 |
<line num="323" type="stmt" count="0"/>
|
8135 |
+
<line num="335" type="method" name="starts_with" visibility="public" complexity="1" crap="1" count="1"/>
|
8136 |
+
<line num="336" type="stmt" count="1"/>
|
8137 |
+
<line num="351" type="method" name="bump_max_execution" visibility="public" complexity="7" crap="56" count="0"/>
|
8138 |
+
<line num="353" type="stmt" count="0"/>
|
|
|
|
|
8139 |
<line num="354" type="stmt" count="0"/>
|
|
|
|
|
8140 |
<line num="358" type="stmt" count="0"/>
|
8141 |
+
<line num="359" type="stmt" count="0"/>
|
8142 |
+
<line num="363" type="stmt" count="0"/>
|
8143 |
+
<line num="367" type="stmt" count="0"/>
|
8144 |
+
<line num="368" type="stmt" count="0"/>
|
8145 |
+
<line num="370" type="stmt" count="0"/>
|
8146 |
+
<line num="371" type="stmt" count="0"/>
|
8147 |
+
<line num="373" type="stmt" count="0"/>
|
8148 |
+
<line num="375" type="stmt" count="0"/>
|
8149 |
+
<line num="390" type="method" name="get_plugin_data" visibility="public" complexity="1" crap="2" count="0"/>
|
8150 |
+
<line num="391" type="stmt" count="0"/>
|
8151 |
+
<line num="392" type="stmt" count="0"/>
|
8152 |
+
<line num="393" type="stmt" count="0"/>
|
8153 |
+
<line num="409" type="method" name="get_upload_limit" visibility="public" complexity="1" crap="2" count="0"/>
|
8154 |
+
<line num="412" type="stmt" count="0"/>
|
8155 |
+
<line num="416" type="stmt" count="0"/>
|
8156 |
+
<line num="419" type="stmt" count="0"/>
|
8157 |
+
<line num="422" type="stmt" count="0"/>
|
8158 |
+
<line num="439" type="method" name="bump_memory_limit" visibility="public" complexity="5" crap="5.20" count="9"/>
|
8159 |
+
<line num="441" type="stmt" count="9"/>
|
8160 |
+
<line num="442" type="stmt" count="0"/>
|
8161 |
+
<line num="446" type="stmt" count="9"/>
|
8162 |
+
<line num="449" type="stmt" count="9"/>
|
8163 |
+
<line num="452" type="stmt" count="9"/>
|
8164 |
+
<line num="456" type="stmt" count="9"/>
|
8165 |
+
<line num="457" type="stmt" count="3"/>
|
8166 |
+
<line num="458" type="stmt" count="0"/>
|
8167 |
+
<line num="460" type="stmt" count="3"/>
|
8168 |
+
<line num="462" type="stmt" count="9"/>
|
8169 |
+
<line num="485" type="method" name="bump_upload_limit" visibility="public" complexity="4" crap="20" count="0"/>
|
8170 |
<line num="487" type="stmt" count="0"/>
|
8171 |
+
<line num="488" type="stmt" count="0"/>
|
8172 |
+
<line num="493" type="stmt" count="0"/>
|
8173 |
<line num="494" type="stmt" count="0"/>
|
8174 |
+
<line num="499" type="stmt" count="0"/>
|
8175 |
+
<line num="500" type="stmt" count="0"/>
|
8176 |
+
<line num="504" type="stmt" count="0"/>
|
8177 |
+
<line num="507" type="stmt" count="0"/>
|
8178 |
+
<line num="509" type="stmt" count="0"/>
|
8179 |
+
<line num="526" type="method" name="is_active" visibility="public" complexity="1" crap="1" count="29"/>
|
8180 |
+
<line num="527" type="stmt" count="29"/>
|
8181 |
+
<line num="529" type="stmt" count="29"/>
|
8182 |
+
<line num="542" type="method" name="is_admin_page" visibility="public" complexity="3" crap="3" count="1"/>
|
8183 |
+
<line num="543" type="stmt" count="1"/>
|
8184 |
+
<line num="545" type="stmt" count="1"/>
|
8185 |
+
<line num="560" type="method" name="is_zip_file" visibility="public" complexity="2" crap="6" count="0"/>
|
8186 |
+
<line num="562" type="stmt" count="0"/>
|
8187 |
<line num="563" type="stmt" count="0"/>
|
8188 |
+
<line num="567" type="stmt" count="0"/>
|
8189 |
+
<line num="570" type="stmt" count="0"/>
|
8190 |
+
<line num="573" type="stmt" count="0"/>
|
8191 |
+
<line num="576" type="stmt" count="0"/>
|
8192 |
+
<line num="579" type="stmt" count="0"/>
|
8193 |
+
<line num="596" type="method" name="zip_file_exists" visibility="public" complexity="5" crap="30" count="0"/>
|
8194 |
+
<line num="598" type="stmt" count="0"/>
|
8195 |
+
<line num="599" type="stmt" count="0"/>
|
|
|
|
|
8196 |
<line num="603" type="stmt" count="0"/>
|
8197 |
+
<line num="606" type="stmt" count="0"/>
|
8198 |
<line num="608" type="stmt" count="0"/>
|
8199 |
+
<line num="610" type="stmt" count="0"/>
|
8200 |
+
<line num="614" type="stmt" count="0"/>
|
8201 |
+
<line num="615" type="stmt" count="0"/>
|
8202 |
+
<line num="616" type="stmt" count="0"/>
|
8203 |
+
<line num="617" type="stmt" count="0"/>
|
8204 |
+
<line num="621" type="stmt" count="0"/>
|
8205 |
+
<line num="624" type="stmt" count="0"/>
|
8206 |
+
<line num="641" type="method" name="chmod" visibility="public" complexity="1" crap="2" count="0"/>
|
8207 |
+
<line num="643" type="stmt" count="0"/>
|
8208 |
+
<line num="646" type="stmt" count="0"/>
|
8209 |
+
<line num="649" type="stmt" count="0"/>
|
8210 |
+
<line num="666" type="method" name="fix_wpconfig" visibility="public" complexity="5" crap="30" count="0"/>
|
8211 |
+
<line num="668" type="stmt" count="0"/>
|
8212 |
<line num="671" type="stmt" count="0"/>
|
|
|
|
|
8213 |
<line num="674" type="stmt" count="0"/>
|
8214 |
<line num="675" type="stmt" count="0"/>
|
|
|
|
|
|
|
8215 |
<line num="679" type="stmt" count="0"/>
|
8216 |
+
<line num="683" type="stmt" count="0"/>
|
8217 |
+
<line num="684" type="stmt" count="0"/>
|
|
|
8218 |
<line num="685" type="stmt" count="0"/>
|
8219 |
+
<line num="686" type="stmt" count="0"/>
|
8220 |
<line num="687" type="stmt" count="0"/>
|
8221 |
<line num="688" type="stmt" count="0"/>
|
8222 |
+
<line num="689" type="stmt" count="0"/>
|
8223 |
+
<line num="690" type="stmt" count="0"/>
|
8224 |
+
<line num="691" type="stmt" count="0"/>
|
8225 |
+
<line num="692" type="stmt" count="0"/>
|
8226 |
<line num="693" type="stmt" count="0"/>
|
8227 |
+
<line num="694" type="stmt" count="0"/>
|
8228 |
+
<line num="695" type="stmt" count="0"/>
|
8229 |
<line num="698" type="stmt" count="0"/>
|
8230 |
+
<line num="700" type="stmt" count="0"/>
|
8231 |
<line num="701" type="stmt" count="0"/>
|
8232 |
+
<line num="706" type="stmt" count="0"/>
|
8233 |
+
<line num="709" type="stmt" count="0"/>
|
|
|
8234 |
<line num="710" type="stmt" count="0"/>
|
8235 |
+
<line num="711" type="stmt" count="0"/>
|
8236 |
<line num="712" type="stmt" count="0"/>
|
8237 |
+
<line num="714" type="stmt" count="0"/>
|
8238 |
+
<line num="717" type="stmt" count="0"/>
|
8239 |
+
<line num="718" type="stmt" count="0"/>
|
8240 |
+
<line num="720" type="stmt" count="0"/>
|
8241 |
+
<line num="723" type="stmt" count="0"/>
|
8242 |
+
<line num="725" type="stmt" count="0"/>
|
8243 |
+
<line num="742" type="method" name="update_siteurl" visibility="public" complexity="6" crap="42" count="0"/>
|
8244 |
<line num="744" type="stmt" count="0"/>
|
8245 |
+
<line num="747" type="stmt" count="0"/>
|
8246 |
<line num="748" type="stmt" count="0"/>
|
8247 |
+
<line num="752" type="stmt" count="0"/>
|
8248 |
+
<line num="753" type="stmt" count="0"/>
|
8249 |
<line num="757" type="stmt" count="0"/>
|
8250 |
+
<line num="758" type="stmt" count="0"/>
|
8251 |
+
<line num="761" type="stmt" count="0"/>
|
8252 |
<line num="764" type="stmt" count="0"/>
|
|
|
8253 |
<line num="767" type="stmt" count="0"/>
|
|
|
8254 |
<line num="770" type="stmt" count="0"/>
|
8255 |
+
<line num="775" type="stmt" count="0"/>
|
|
|
8256 |
<line num="776" type="stmt" count="0"/>
|
8257 |
<line num="777" type="stmt" count="0"/>
|
8258 |
<line num="779" type="stmt" count="0"/>
|
8259 |
<line num="780" type="stmt" count="0"/>
|
8260 |
+
<line num="781" type="stmt" count="0"/>
|
8261 |
+
<line num="783" type="stmt" count="0"/>
|
8262 |
<line num="784" type="stmt" count="0"/>
|
8263 |
+
<line num="787" type="stmt" count="0"/>
|
|
|
|
|
8264 |
<line num="789" type="stmt" count="0"/>
|
8265 |
<line num="790" type="stmt" count="0"/>
|
8266 |
<line num="792" type="stmt" count="0"/>
|
8267 |
+
<line num="793" type="stmt" count="0"/>
|
8268 |
+
<line num="797" type="stmt" count="0"/>
|
8269 |
+
<line num="798" type="stmt" count="0"/>
|
8270 |
<line num="799" type="stmt" count="0"/>
|
8271 |
+
<line num="801" type="stmt" count="0"/>
|
8272 |
+
<line num="802" type="stmt" count="0"/>
|
8273 |
+
<line num="803" type="stmt" count="0"/>
|
8274 |
<line num="805" type="stmt" count="0"/>
|
8275 |
+
<line num="807" type="stmt" count="0"/>
|
|
|
|
|
8276 |
<line num="812" type="stmt" count="0"/>
|
8277 |
+
<line num="813" type="stmt" count="0"/>
|
|
|
8278 |
<line num="817" type="stmt" count="0"/>
|
8279 |
+
<line num="818" type="stmt" count="0"/>
|
8280 |
<line num="821" type="stmt" count="0"/>
|
8281 |
<line num="822" type="stmt" count="0"/>
|
8282 |
+
<line num="823" type="stmt" count="0"/>
|
8283 |
+
<line num="825" type="stmt" count="0"/>
|
8284 |
+
<line num="828" type="stmt" count="0"/>
|
8285 |
+
<line num="829" type="stmt" count="0"/>
|
8286 |
+
<line num="830" type="stmt" count="0"/>
|
8287 |
+
<line num="832" type="stmt" count="0"/>
|
8288 |
+
<line num="834" type="stmt" count="0"/>
|
8289 |
+
<line num="835" type="stmt" count="0"/>
|
8290 |
+
<line num="837" type="stmt" count="0"/>
|
8291 |
+
<line num="852" type="method" name="str_replace_recursive" visibility="public" complexity="6" crap="42" count="0"/>
|
8292 |
+
<line num="853" type="stmt" count="0"/>
|
|
|
|
|
8293 |
<line num="854" type="stmt" count="0"/>
|
8294 |
<line num="855" type="stmt" count="0"/>
|
8295 |
<line num="856" type="stmt" count="0"/>
|
8297 |
<line num="859" type="stmt" count="0"/>
|
8298 |
<line num="860" type="stmt" count="0"/>
|
8299 |
<line num="862" type="stmt" count="0"/>
|
8300 |
+
<line num="863" type="stmt" count="0"/>
|
8301 |
+
<line num="864" type="stmt" count="0"/>
|
8302 |
+
<line num="865" type="stmt" count="0"/>
|
8303 |
+
<line num="867" type="stmt" count="0"/>
|
8304 |
+
<line num="868" type="stmt" count="0"/>
|
8305 |
+
<line num="869" type="stmt" count="0"/>
|
8306 |
+
<line num="871" type="stmt" count="0"/>
|
8307 |
+
<line num="872" type="stmt" count="0"/>
|
8308 |
+
<line num="873" type="stmt" count="0"/>
|
8309 |
+
<line num="875" type="stmt" count="0"/>
|
8310 |
+
<line num="886" type="method" name="time" visibility="public" complexity="3" crap="12" count="0"/>
|
8311 |
+
<line num="887" type="stmt" count="0"/>
|
8312 |
+
<line num="889" type="stmt" count="0"/>
|
8313 |
+
<line num="890" type="stmt" count="0"/>
|
8314 |
+
<line num="893" type="stmt" count="0"/>
|
8315 |
+
<line num="909" type="method" name="trailingslashit" visibility="public" complexity="3" crap="3.71" count="14"/>
|
8316 |
+
<line num="911" type="stmt" count="14"/>
|
8317 |
+
<line num="912" type="stmt" count="14"/>
|
8318 |
+
<line num="913" type="stmt" count="14"/>
|
8319 |
+
<line num="914" type="stmt" count="0"/>
|
8320 |
+
<line num="915" type="stmt" count="0"/>
|
8321 |
+
<line num="916" type="stmt" count="0"/>
|
8322 |
+
<line num="919" type="stmt" count="14"/>
|
8323 |
+
<metrics loc="921" ncloc="422" classes="1" methods="22" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="300" coveredstatements="44" elements="322" coveredelements="47"/>
|
8324 |
</file>
|
8325 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-wp-cron.php">
|
8326 |
<class name="Boldgrid_Backup_Admin_WP_Cron" namespace="global" fullPackage="Boldgrid.Backup.Admin.WP">
|
8327 |
+
<metrics complexity="32" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="95" coveredstatements="12" elements="106" coveredelements="13"/>
|
8328 |
</class>
|
8329 |
<line num="73" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
8330 |
<line num="74" type="stmt" count="29"/>
|
8431 |
<line num="351" type="method" name="backup" visibility="public" complexity="1" crap="2" count="0"/>
|
8432 |
<line num="352" type="stmt" count="0"/>
|
8433 |
<line num="353" type="stmt" count="0"/>
|
8434 |
+
<line num="354" type="stmt" count="0"/>
|
8435 |
+
<metrics loc="355" ncloc="181" classes="1" methods="11" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="95" coveredstatements="12" elements="106" coveredelements="13"/>
|
8436 |
</file>
|
8437 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-wpcli.php">
|
8438 |
<class name="Boldgrid_Backup_Admin_Wpcli" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
8677 |
<line num="178" type="stmt" count="0"/>
|
8678 |
<line num="179" type="stmt" count="0"/>
|
8679 |
<line num="180" type="stmt" count="0"/>
|
8680 |
+
<line num="191" type="method" name="get_configs" visibility="public" complexity="6" crap="6.56" count="38"/>
|
8681 |
+
<line num="193" type="stmt" count="38"/>
|
8682 |
+
<line num="194" type="stmt" count="38"/>
|
8683 |
<line num="198" type="stmt" count="1"/>
|
8684 |
<line num="201" type="stmt" count="1"/>
|
8685 |
<line num="202" type="stmt" count="1"/>
|
8718 |
<package name="Boldgrid\Backup\Admin">
|
8719 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-cron.php">
|
8720 |
<class name="Cron" namespace="Boldgrid\Backup\Admin">
|
8721 |
+
<metrics complexity="9" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="19" elements="33" coveredelements="21"/>
|
8722 |
+
</class>
|
8723 |
+
<line num="31" type="method" name="get_configs" visibility="public" complexity="1" crap="1" count="1"/>
|
8724 |
+
<line num="32" type="stmt" count="1"/>
|
8725 |
+
<line num="42" type="method" name="get_engine" visibility="public" complexity="1" crap="1" count="1"/>
|
8726 |
+
<line num="43" type="stmt" count="1"/>
|
8727 |
+
<line num="45" type="stmt" count="1"/>
|
8728 |
+
<line num="56" type="method" name="get_entry" visibility="public" complexity="4" crap="4.37" count="1"/>
|
8729 |
+
<line num="57" type="stmt" count="1"/>
|
8730 |
+
<line num="59" type="stmt" count="1"/>
|
8731 |
+
<line num="60" type="stmt" count="1"/>
|
|
|
|
|
8732 |
<line num="61" type="stmt" count="0"/>
|
8733 |
+
<line num="65" type="stmt" count="1"/>
|
8734 |
+
<line num="66" type="stmt" count="1"/>
|
|
|
8735 |
<line num="67" type="stmt" count="0"/>
|
8736 |
+
<line num="72" type="stmt" count="1"/>
|
|
|
|
|
8737 |
<line num="73" type="stmt" count="0"/>
|
8738 |
<line num="74" type="stmt" count="0"/>
|
8739 |
+
<line num="75" type="stmt" count="1"/>
|
8740 |
+
<line num="76" type="stmt" count="1"/>
|
8741 |
+
<line num="77" type="stmt" count="1"/>
|
8742 |
+
<line num="79" type="stmt" count="1"/>
|
8743 |
+
<line num="91" type="method" name="get_entry_class" visibility="public" complexity="3" crap="4.12" count="1"/>
|
8744 |
+
<line num="92" type="stmt" count="1"/>
|
8745 |
+
<line num="94" type="stmt" count="1"/>
|
8746 |
+
<line num="98" type="stmt" count="1"/>
|
8747 |
+
<line num="99" type="stmt" count="1"/>
|
8748 |
+
<line num="100" type="stmt" count="1"/>
|
|
|
|
|
8749 |
<line num="101" type="stmt" count="0"/>
|
8750 |
<line num="102" type="stmt" count="0"/>
|
8751 |
<line num="103" type="stmt" count="0"/>
|
8752 |
<line num="104" type="stmt" count="0"/>
|
8753 |
<line num="105" type="stmt" count="0"/>
|
8754 |
<line num="106" type="stmt" count="0"/>
|
8755 |
+
<line num="108" type="stmt" count="1"/>
|
8756 |
+
<metrics loc="110" ncloc="55" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="19" elements="33" coveredelements="21"/>
|
|
|
8757 |
</file>
|
8758 |
</package>
|
8759 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-pcl-zip.php">
|
8760 |
<class name="Boldgrid_Backup_Admin_Compressor_Pcl_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Pcl">
|
8761 |
+
<metrics complexity="57" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="198" coveredstatements="98" elements="207" coveredelements="99"/>
|
8762 |
</class>
|
8763 |
+
<line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="2.26" count="8"/>
|
8764 |
<line num="67" type="stmt" count="8"/>
|
8765 |
+
<line num="68" type="stmt" count="0"/>
|
8766 |
+
<line num="69" type="stmt" count="0"/>
|
8767 |
<line num="71" type="stmt" count="8"/>
|
8768 |
<line num="72" type="stmt" count="8"/>
|
8769 |
<line num="96" type="method" name="browse_add_dirs" visibility="public" complexity="9" crap="9" count="1"/>
|
8792 |
<line num="145" type="stmt" count="1"/>
|
8793 |
<line num="146" type="stmt" count="1"/>
|
8794 |
<line num="148" type="stmt" count="1"/>
|
8795 |
+
<line num="170" type="method" name="archive_files" visibility="public" complexity="10" crap="12.24" count="4"/>
|
8796 |
<line num="171" type="stmt" count="4"/>
|
8797 |
+
<line num="173" type="stmt" count="4"/>
|
8798 |
+
<line num="174" type="stmt" count="4"/>
|
8799 |
+
<line num="176" type="stmt" count="0"/>
|
8800 |
+
<line num="177" type="stmt" count="0"/>
|
8801 |
+
<line num="181" type="stmt" count="4"/>
|
8802 |
+
<line num="182" type="stmt" count="4"/>
|
8803 |
+
<line num="191" type="stmt" count="4"/>
|
8804 |
+
<line num="192" type="stmt" count="4"/>
|
8805 |
+
<line num="193" type="stmt" count="4"/>
|
8806 |
<line num="195" type="stmt" count="4"/>
|
8807 |
<line num="196" type="stmt" count="4"/>
|
|
|
8808 |
<line num="199" type="stmt" count="4"/>
|
8809 |
+
<line num="201" type="stmt" count="4"/>
|
8810 |
+
<line num="202" type="stmt" count="4"/>
|
8811 |
+
<line num="204" type="stmt" count="4"/>
|
8812 |
<line num="205" type="stmt" count="4"/>
|
8813 |
<line num="206" type="stmt" count="4"/>
|
8814 |
<line num="208" type="stmt" count="4"/>
|
8815 |
<line num="209" type="stmt" count="4"/>
|
8816 |
<line num="210" type="stmt" count="4"/>
|
8817 |
+
<line num="211" type="stmt" count="4"/>
|
8818 |
<line num="213" type="stmt" count="4"/>
|
8819 |
+
<line num="214" type="stmt" count="0"/>
|
8820 |
+
<line num="216" type="stmt" count="0"/>
|
|
|
8821 |
<line num="218" type="stmt" count="0"/>
|
8822 |
<line num="220" type="stmt" count="0"/>
|
8823 |
+
<line num="221" type="stmt" count="0"/>
|
8824 |
<line num="224" type="stmt" count="0"/>
|
8825 |
<line num="225" type="stmt" count="0"/>
|
8826 |
+
<line num="235" type="stmt" count="4"/>
|
8827 |
+
<line num="236" type="stmt" count="4"/>
|
8828 |
+
<line num="237" type="stmt" count="4"/>
|
8829 |
+
<line num="239" type="stmt" count="0"/>
|
8830 |
+
<line num="240" type="stmt" count="0"/>
|
8831 |
+
<line num="242" type="stmt" count="4"/>
|
8832 |
+
<line num="244" type="stmt" count="4"/>
|
8833 |
<line num="246" type="stmt" count="4"/>
|
8834 |
<line num="248" type="stmt" count="4"/>
|
8835 |
+
<line num="258" type="method" name="browse" visibility="public" complexity="4" crap="4.00" count="1"/>
|
8836 |
+
<line num="259" type="stmt" count="1"/>
|
8837 |
+
<line num="268" type="stmt" count="1"/>
|
8838 |
+
<line num="277" type="stmt" count="1"/>
|
8839 |
+
<line num="279" type="stmt" count="1"/>
|
8840 |
<line num="281" type="stmt" count="1"/>
|
8841 |
+
<line num="282" type="stmt" count="1"/>
|
8842 |
+
<line num="283" type="stmt" count="0"/>
|
8843 |
+
<line num="290" type="stmt" count="1"/>
|
8844 |
+
<line num="299" type="stmt" count="1"/>
|
8845 |
+
<line num="301" type="stmt" count="1"/>
|
8846 |
+
<line num="302" type="stmt" count="1"/>
|
8847 |
<line num="305" type="stmt" count="1"/>
|
8848 |
<line num="306" type="stmt" count="1"/>
|
8849 |
+
<line num="307" type="stmt" count="1"/>
|
8850 |
<line num="309" type="stmt" count="1"/>
|
|
|
8851 |
<line num="311" type="stmt" count="1"/>
|
8852 |
+
<line num="323" type="method" name="extract_one" visibility="public" complexity="5" crap="8.71" count="2"/>
|
8853 |
+
<line num="324" type="stmt" count="2"/>
|
8854 |
+
<line num="325" type="stmt" count="1"/>
|
8855 |
+
<line num="326" type="stmt" count="1"/>
|
8856 |
<line num="329" type="stmt" count="1"/>
|
8857 |
+
<line num="330" type="stmt" count="0"/>
|
8858 |
+
<line num="331" type="stmt" count="0"/>
|
8859 |
+
<line num="334" type="stmt" count="1"/>
|
8860 |
+
<line num="335" type="stmt" count="1"/>
|
8861 |
+
<line num="336" type="stmt" count="1"/>
|
8862 |
+
<line num="337" type="stmt" count="1"/>
|
8863 |
<line num="341" type="stmt" count="0"/>
|
8864 |
<line num="342" type="stmt" count="0"/>
|
8865 |
<line num="343" type="stmt" count="0"/>
|
8867 |
<line num="345" type="stmt" count="0"/>
|
8868 |
<line num="346" type="stmt" count="0"/>
|
8869 |
<line num="349" type="stmt" count="0"/>
|
8870 |
+
<line num="375" type="method" name="get_file" visibility="public" complexity="7" crap="24.86" count="1"/>
|
8871 |
+
<line num="376" type="stmt" count="1"/>
|
8872 |
<line num="377" type="stmt" count="0"/>
|
8873 |
+
<line num="380" type="stmt" count="1"/>
|
8874 |
<line num="381" type="stmt" count="0"/>
|
8875 |
+
<line num="384" type="stmt" count="1"/>
|
8876 |
+
<line num="386" type="stmt" count="1"/>
|
8877 |
+
<line num="387" type="stmt" count="1"/>
|
8878 |
+
<line num="388" type="stmt" count="1"/>
|
8879 |
<line num="391" type="stmt" count="0"/>
|
8880 |
<line num="393" type="stmt" count="0"/>
|
8881 |
<line num="394" type="stmt" count="0"/>
|
8922 |
<line num="498" type="stmt" count="0"/>
|
8923 |
<line num="499" type="stmt" count="0"/>
|
8924 |
<line num="501" type="stmt" count="0"/>
|
8925 |
+
<line num="512" type="method" name="test" visibility="public" complexity="6" crap="42" count="0"/>
|
8926 |
+
<line num="513" type="stmt" count="0"/>
|
8927 |
<line num="514" type="stmt" count="0"/>
|
8928 |
+
<line num="517" type="stmt" count="0"/>
|
8929 |
+
<line num="520" type="stmt" count="0"/>
|
8930 |
+
<line num="522" type="stmt" count="0"/>
|
8931 |
+
<line num="524" type="stmt" count="0"/>
|
8932 |
+
<line num="526" type="stmt" count="0"/>
|
8933 |
+
<line num="527" type="stmt" count="0"/>
|
8934 |
+
<line num="528" type="stmt" count="0"/>
|
8935 |
+
<line num="529" type="stmt" count="0"/>
|
8936 |
+
<line num="530" type="stmt" count="0"/>
|
8937 |
+
<line num="531" type="stmt" count="0"/>
|
8938 |
+
<line num="532" type="stmt" count="0"/>
|
8939 |
+
<line num="533" type="stmt" count="0"/>
|
8940 |
+
<line num="535" type="stmt" count="0"/>
|
8941 |
+
<line num="536" type="stmt" count="0"/>
|
8942 |
+
<line num="537" type="stmt" count="0"/>
|
8943 |
+
<line num="540" type="stmt" count="0"/>
|
8944 |
+
<line num="543" type="stmt" count="0"/>
|
8945 |
+
<line num="545" type="stmt" count="0"/>
|
8946 |
+
<line num="548" type="stmt" count="0"/>
|
8947 |
+
<line num="551" type="stmt" count="0"/>
|
8948 |
+
<line num="553" type="stmt" count="0"/>
|
8949 |
+
<line num="555" type="stmt" count="0"/>
|
8950 |
+
<line num="556" type="stmt" count="0"/>
|
8951 |
<line num="557" type="stmt" count="0"/>
|
8952 |
<line num="558" type="stmt" count="0"/>
|
8953 |
<line num="559" type="stmt" count="0"/>
|
8954 |
+
<line num="562" type="stmt" count="0"/>
|
8955 |
+
<line num="563" type="stmt" count="0"/>
|
8956 |
<line num="564" type="stmt" count="0"/>
|
8957 |
<line num="565" type="stmt" count="0"/>
|
8958 |
<line num="566" type="stmt" count="0"/>
|
8959 |
+
<line num="569" type="stmt" count="0"/>
|
8960 |
+
<line num="570" type="stmt" count="0"/>
|
8961 |
<line num="571" type="stmt" count="0"/>
|
8962 |
<line num="572" type="stmt" count="0"/>
|
8963 |
+
<line num="574" type="stmt" count="0"/>
|
8964 |
+
<line num="575" type="stmt" count="0"/>
|
8965 |
<line num="576" type="stmt" count="0"/>
|
8966 |
<line num="577" type="stmt" count="0"/>
|
8967 |
+
<line num="579" type="stmt" count="0"/>
|
8968 |
+
<line num="581" type="stmt" count="0"/>
|
8969 |
+
<line num="583" type="stmt" count="0"/>
|
8970 |
+
<metrics loc="585" ncloc="330" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="198" coveredstatements="98" elements="207" coveredelements="99"/>
|
8971 |
</file>
|
8972 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php">
|
8973 |
<class name="Boldgrid_Backup_Admin_Compressor_Php_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Php">
|
8974 |
+
<metrics complexity="28" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="125" coveredstatements="105" elements="129" coveredelements="107"/>
|
8975 |
</class>
|
8976 |
+
<line num="78" type="method" name="add_dir" visibility="public" complexity="4" crap="4" count="6"/>
|
8977 |
+
<line num="79" type="stmt" count="6"/>
|
8978 |
+
<line num="80" type="stmt" count="6"/>
|
8979 |
+
<line num="82" type="stmt" count="6"/>
|
8980 |
+
<line num="83" type="stmt" count="6"/>
|
8981 |
+
<line num="84" type="stmt" count="6"/>
|
8982 |
+
<line num="85" type="stmt" count="6"/>
|
8983 |
+
<line num="86" type="stmt" count="6"/>
|
8984 |
+
<line num="89" type="stmt" count="6"/>
|
8985 |
+
<line num="90" type="stmt" count="6"/>
|
8986 |
+
<line num="91" type="stmt" count="6"/>
|
8987 |
+
<line num="92" type="stmt" count="6"/>
|
8988 |
+
<line num="93" type="stmt" count="6"/>
|
8989 |
+
<line num="94" type="stmt" count="6"/>
|
8990 |
+
<line num="122" type="method" name="archive_files" visibility="public" complexity="18" crap="19.34" count="6"/>
|
8991 |
+
<line num="124" type="stmt" count="6"/>
|
8992 |
+
<line num="125" type="stmt" count="6"/>
|
8993 |
+
<line num="126" type="stmt" count="6"/>
|
8994 |
+
<line num="127" type="stmt" count="6"/>
|
8995 |
+
<line num="130" type="stmt" count="6"/>
|
8996 |
+
<line num="131" type="stmt" count="6"/>
|
8997 |
+
<line num="133" type="stmt" count="6"/>
|
8998 |
+
<line num="135" type="stmt" count="6"/>
|
8999 |
+
<line num="137" type="stmt" count="6"/>
|
9000 |
+
<line num="139" type="stmt" count="0"/>
|
9001 |
+
<line num="140" type="stmt" count="0"/>
|
9002 |
+
<line num="141" type="stmt" count="0"/>
|
9003 |
+
<line num="142" type="stmt" count="0"/>
|
9004 |
+
<line num="145" type="stmt" count="6"/>
|
9005 |
+
<line num="147" type="stmt" count="6"/>
|
9006 |
+
<line num="148" type="stmt" count="6"/>
|
9007 |
+
<line num="151" type="stmt" count="6"/>
|
9008 |
+
<line num="152" type="stmt" count="6"/>
|
9009 |
+
<line num="153" type="stmt" count="6"/>
|
9010 |
+
<line num="154" type="stmt" count="6"/>
|
9011 |
+
<line num="155" type="stmt" count="6"/>
|
9012 |
+
<line num="156" type="stmt" count="0"/>
|
9013 |
+
<line num="158" type="stmt" count="0"/>
|
9014 |
+
<line num="159" type="stmt" count="0"/>
|
9015 |
<line num="160" type="stmt" count="0"/>
|
9016 |
+
<line num="161" type="stmt" count="0"/>
|
9017 |
+
<line num="163" type="stmt" count="6"/>
|
9018 |
+
<line num="164" type="stmt" count="6"/>
|
9019 |
+
<line num="166" type="stmt" count="6"/>
|
9020 |
+
<line num="176" type="stmt" count="6"/>
|
9021 |
+
<line num="177" type="stmt" count="6"/>
|
9022 |
+
<line num="178" type="stmt" count="6"/>
|
9023 |
+
<line num="179" type="stmt" count="6"/>
|
9024 |
+
<line num="180" type="stmt" count="6"/>
|
9025 |
+
<line num="181" type="stmt" count="6"/>
|
9026 |
+
<line num="182" type="stmt" count="6"/>
|
9027 |
+
<line num="184" type="stmt" count="6"/>
|
9028 |
+
<line num="185" type="stmt" count="6"/>
|
9029 |
+
<line num="196" type="stmt" count="6"/>
|
9030 |
+
<line num="197" type="stmt" count="6"/>
|
9031 |
+
<line num="198" type="stmt" count="6"/>
|
9032 |
+
<line num="199" type="stmt" count="6"/>
|
9033 |
+
<line num="200" type="stmt" count="6"/>
|
9034 |
+
<line num="201" type="stmt" count="6"/>
|
9035 |
+
<line num="209" type="stmt" count="6"/>
|
9036 |
+
<line num="210" type="stmt" count="6"/>
|
9037 |
+
<line num="211" type="stmt" count="6"/>
|
9038 |
+
<line num="212" type="stmt" count="6"/>
|
9039 |
+
<line num="213" type="stmt" count="6"/>
|
9040 |
+
<line num="214" type="stmt" count="6"/>
|
9041 |
+
<line num="215" type="stmt" count="6"/>
|
9042 |
+
<line num="216" type="stmt" count="6"/>
|
9043 |
+
<line num="217" type="stmt" count="6"/>
|
9044 |
+
<line num="219" type="stmt" count="6"/>
|
9045 |
+
<line num="220" type="stmt" count="6"/>
|
9046 |
+
<line num="221" type="stmt" count="6"/>
|
9047 |
+
<line num="222" type="stmt" count="6"/>
|
9048 |
+
<line num="223" type="stmt" count="6"/>
|
9049 |
+
<line num="224" type="stmt" count="6"/>
|
9050 |
+
<line num="225" type="stmt" count="6"/>
|
9051 |
+
<line num="226" type="stmt" count="6"/>
|
9052 |
+
<line num="233" type="stmt" count="6"/>
|
9053 |
+
<line num="234" type="stmt" count="6"/>
|
9054 |
+
<line num="249" type="stmt" count="6"/>
|
9055 |
+
<line num="250" type="stmt" count="6"/>
|
9056 |
+
<line num="251" type="stmt" count="6"/>
|
9057 |
+
<line num="252" type="stmt" count="6"/>
|
9058 |
+
<line num="254" type="stmt" count="6"/>
|
9059 |
+
<line num="255" type="stmt" count="0"/>
|
9060 |
+
<line num="256" type="stmt" count="0"/>
|
9061 |
+
<line num="257" type="stmt" count="6"/>
|
9062 |
+
<line num="259" type="stmt" count="6"/>
|
9063 |
+
<line num="260" type="stmt" count="6"/>
|
9064 |
+
<line num="262" type="stmt" count="6"/>
|
9065 |
+
<line num="264" type="stmt" count="6"/>
|
9066 |
+
<line num="265" type="stmt" count="6"/>
|
9067 |
+
<line num="267" type="stmt" count="6"/>
|
9068 |
+
<line num="269" type="stmt" count="6"/>
|
9069 |
+
<line num="271" type="stmt" count="0"/>
|
9070 |
+
<line num="272" type="stmt" count="0"/>
|
9071 |
+
<line num="275" type="stmt" count="6"/>
|
9072 |
+
<line num="283" type="method" name="is_extension_available" visibility="public" complexity="2" crap="2" count="30"/>
|
9073 |
+
<line num="284" type="stmt" count="30"/>
|
9074 |
+
<line num="294" type="method" name="test" visibility="public" complexity="4" crap="4.20" count="1"/>
|
9075 |
+
<line num="295" type="stmt" count="1"/>
|
9076 |
+
<line num="296" type="stmt" count="0"/>
|
9077 |
+
<line num="299" type="stmt" count="1"/>
|
9078 |
+
<line num="301" type="stmt" count="1"/>
|
9079 |
+
<line num="303" type="stmt" count="1"/>
|
9080 |
+
<line num="305" type="stmt" count="1"/>
|
9081 |
+
<line num="308" type="stmt" count="1"/>
|
9082 |
+
<line num="311" type="stmt" count="1"/>
|
9083 |
+
<line num="312" type="stmt" count="1"/>
|
9084 |
+
<line num="313" type="stmt" count="1"/>
|
9085 |
+
<line num="314" type="stmt" count="1"/>
|
9086 |
+
<line num="315" type="stmt" count="1"/>
|
9087 |
+
<line num="316" type="stmt" count="1"/>
|
9088 |
+
<line num="318" type="stmt" count="1"/>
|
9089 |
+
<line num="319" type="stmt" count="1"/>
|
9090 |
+
<line num="321" type="stmt" count="1"/>
|
9091 |
<line num="322" type="stmt" count="0"/>
|
9092 |
<line num="323" type="stmt" count="0"/>
|
9093 |
<line num="325" type="stmt" count="0"/>
|
9094 |
+
<line num="328" type="stmt" count="1"/>
|
9095 |
+
<line num="329" type="stmt" count="1"/>
|
9096 |
+
<line num="331" type="stmt" count="1"/>
|
9097 |
+
<line num="333" type="stmt" count="1"/>
|
9098 |
+
<line num="335" type="stmt" count="1"/>
|
9099 |
+
<line num="337" type="stmt" count="1"/>
|
9100 |
+
<line num="338" type="stmt" count="0"/>
|
9101 |
<line num="339" type="stmt" count="0"/>
|
9102 |
<line num="341" type="stmt" count="0"/>
|
9103 |
+
<line num="344" type="stmt" count="1"/>
|
9104 |
+
<line num="346" type="stmt" count="1"/>
|
9105 |
+
<metrics loc="348" ncloc="192" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="125" coveredstatements="105" elements="129" coveredelements="107"/>
|
|
|
|
|
|
|
9106 |
</file>
|
9107 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-system-zip-temp-folder.php">
|
9108 |
<class name="Boldgrid_Backup_Admin_Compressor_System_Zip_Temp_Folder" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.System.Zip.Temp">
|
9109 |
<metrics complexity="9" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="11" elements="25" coveredelements="16"/>
|
9110 |
</class>
|
9111 |
+
<line num="44" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="12"/>
|
9112 |
+
<line num="45" type="stmt" count="12"/>
|
9113 |
+
<line num="46" type="stmt" count="12"/>
|
9114 |
<line num="55" type="method" name="create" visibility="public" complexity="1" crap="1" count="1"/>
|
9115 |
<line num="56" type="stmt" count="1"/>
|
9116 |
<line num="66" type="method" name="delete" visibility="public" complexity="1" crap="1" count="1"/>
|
9117 |
<line num="67" type="stmt" count="1"/>
|
9118 |
+
<line num="77" type="method" name="exists" visibility="public" complexity="1" crap="1" count="9"/>
|
9119 |
+
<line num="78" type="stmt" count="9"/>
|
9120 |
+
<line num="80" type="stmt" count="9"/>
|
9121 |
+
<line num="90" type="method" name="dirlist" visibility="public" complexity="4" crap="10.15" count="9"/>
|
9122 |
+
<line num="91" type="stmt" count="9"/>
|
9123 |
+
<line num="93" type="stmt" count="9"/>
|
9124 |
<line num="94" type="stmt" count="0"/>
|
9125 |
<line num="96" type="stmt" count="0"/>
|
9126 |
<line num="97" type="stmt" count="0"/>
|
9129 |
<line num="105" type="stmt" count="0"/>
|
9130 |
<line num="106" type="stmt" count="0"/>
|
9131 |
<line num="107" type="stmt" count="0"/>
|
9132 |
+
<line num="109" type="stmt" count="9"/>
|
9133 |
+
<line num="119" type="method" name="get_path" visibility="public" complexity="1" crap="1" count="9"/>
|
9134 |
+
<line num="120" type="stmt" count="9"/>
|
9135 |
+
<line num="122" type="stmt" count="9"/>
|
9136 |
<metrics loc="124" ncloc="49" classes="1" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="11" elements="25" coveredelements="16"/>
|
9137 |
</file>
|
9138 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-system-zip-test.php">
|
9244 |
</file>
|
9245 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-system-zip.php">
|
9246 |
<class name="Boldgrid_Backup_Admin_Compressor_System_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.System">
|
9247 |
+
<metrics complexity="18" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="108" coveredstatements="107" elements="117" coveredelements="115"/>
|
9248 |
</class>
|
9249 |
<line num="96" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="4"/>
|
9250 |
<line num="97" type="stmt" count="4"/>
|
9251 |
<line num="98" type="stmt" count="4"/>
|
9252 |
<line num="100" type="stmt" count="4"/>
|
9253 |
<line num="101" type="stmt" count="4"/>
|
9254 |
+
<line num="129" type="method" name="archive_files" visibility="public" complexity="1" crap="1" count="1"/>
|
9255 |
+
<line num="131" type="stmt" count="1"/>
|
9256 |
+
<line num="132" type="stmt" count="1"/>
|
9257 |
+
<line num="134" type="stmt" count="1"/>
|
9258 |
<line num="136" type="stmt" count="1"/>
|
9259 |
<line num="138" type="stmt" count="1"/>
|
9260 |
<line num="140" type="stmt" count="1"/>
|
9261 |
<line num="142" type="stmt" count="1"/>
|
9262 |
<line num="144" type="stmt" count="1"/>
|
9263 |
<line num="146" type="stmt" count="1"/>
|
9264 |
+
<line num="149" type="stmt" count="1"/>
|
9265 |
+
<line num="151" type="stmt" count="1"/>
|
9266 |
+
<line num="159" type="method" name="filelist_create" visibility="private" complexity="4" crap="4" count="1"/>
|
9267 |
+
<line num="160" type="stmt" count="1"/>
|
9268 |
+
<line num="161" type="stmt" count="1"/>
|
9269 |
+
<line num="163" type="stmt" count="1"/>
|
9270 |
<line num="165" type="stmt" count="1"/>
|
9271 |
<line num="167" type="stmt" count="1"/>
|
9272 |
+
<line num="170" type="stmt" count="1"/>
|
9273 |
<line num="171" type="stmt" count="1"/>
|
9274 |
+
<line num="172" type="stmt" count="1"/>
|
9275 |
<line num="174" type="stmt" count="1"/>
|
9276 |
<line num="175" type="stmt" count="1"/>
|
|
|
9277 |
<line num="178" type="stmt" count="1"/>
|
9278 |
<line num="179" type="stmt" count="1"/>
|
9279 |
+
<line num="180" type="stmt" count="1"/>
|
9280 |
+
<line num="189" type="stmt" count="1"/>
|
9281 |
+
<line num="190" type="stmt" count="1"/>
|
9282 |
+
<line num="191" type="stmt" count="1"/>
|
9283 |
<line num="193" type="stmt" count="1"/>
|
9284 |
<line num="194" type="stmt" count="1"/>
|
9285 |
<line num="195" type="stmt" count="1"/>
|
9286 |
+
<line num="196" type="stmt" count="1"/>
|
9287 |
<line num="198" type="stmt" count="1"/>
|
9288 |
<line num="199" type="stmt" count="1"/>
|
9289 |
<line num="200" type="stmt" count="1"/>
|
9290 |
+
<line num="207" type="method" name="zip" visibility="private" complexity="1" crap="1" count="1"/>
|
9291 |
+
<line num="208" type="stmt" count="1"/>
|
9292 |
+
<line num="209" type="stmt" count="1"/>
|
9293 |
+
<line num="211" type="stmt" count="1"/>
|
|
|
9294 |
<line num="213" type="stmt" count="1"/>
|
9295 |
<line num="215" type="stmt" count="1"/>
|
9296 |
<line num="217" type="stmt" count="1"/>
|
9297 |
+
<line num="218" type="stmt" count="1"/>
|
9298 |
<line num="219" type="stmt" count="1"/>
|
9299 |
+
<line num="228" type="method" name="get_filelist_chunks" visibility="public" complexity="3" crap="3" count="1"/>
|
9300 |
+
<line num="230" type="stmt" count="1"/>
|
9301 |
+
<line num="231" type="stmt" count="1"/>
|
9302 |
+
<line num="232" type="stmt" count="1"/>
|
9303 |
+
<line num="233" type="stmt" count="1"/>
|
9304 |
<line num="234" type="stmt" count="1"/>
|
|
|
9305 |
<line num="236" type="stmt" count="1"/>
|
9306 |
+
<line num="239" type="stmt" count="1"/>
|
9307 |
+
<line num="242" type="stmt" count="1"/>
|
|
|
9308 |
<line num="243" type="stmt" count="1"/>
|
9309 |
+
<line num="244" type="stmt" count="1"/>
|
9310 |
+
<line num="245" type="stmt" count="1"/>
|
9311 |
<line num="246" type="stmt" count="1"/>
|
|
|
9312 |
<line num="248" type="stmt" count="1"/>
|
9313 |
+
<line num="256" type="method" name="close" visibility="private" complexity="2" crap="2" count="1"/>
|
9314 |
+
<line num="257" type="stmt" count="1"/>
|
9315 |
+
<line num="258" type="stmt" count="1"/>
|
9316 |
+
<line num="259" type="stmt" count="1"/>
|
9317 |
<line num="261" type="stmt" count="1"/>
|
9318 |
<line num="262" type="stmt" count="1"/>
|
9319 |
<line num="263" type="stmt" count="1"/>
|
9320 |
+
<line num="264" type="stmt" count="1"/>
|
9321 |
<line num="265" type="stmt" count="1"/>
|
9322 |
<line num="266" type="stmt" count="1"/>
|
9323 |
<line num="267" type="stmt" count="1"/>
|
9324 |
<line num="268" type="stmt" count="1"/>
|
9325 |
<line num="269" type="stmt" count="1"/>
|
9326 |
<line num="270" type="stmt" count="1"/>
|
|
|
9327 |
<line num="272" type="stmt" count="1"/>
|
9328 |
<line num="273" type="stmt" count="1"/>
|
9329 |
+
<line num="275" type="stmt" count="1"/>
|
9330 |
<line num="276" type="stmt" count="1"/>
|
9331 |
<line num="277" type="stmt" count="1"/>
|
9332 |
+
<line num="278" type="stmt" count="1"/>
|
9333 |
+
<line num="287" type="method" name="get_compression_level" visibility="private" complexity="2" crap="2" count="1"/>
|
9334 |
+
<line num="288" type="stmt" count="1"/>
|
9335 |
+
<line num="289" type="stmt" count="1"/>
|
9336 |
+
<line num="299" type="method" name="zip_proc" visibility="private" complexity="3" crap="3" count="1"/>
|
9337 |
+
<line num="301" type="stmt" count="1"/>
|
9338 |
+
<line num="302" type="stmt" count="1"/>
|
9339 |
+
<line num="303" type="stmt" count="1"/>
|
9340 |
+
<line num="304" type="stmt" count="1"/>
|
9341 |
<line num="306" type="stmt" count="1"/>
|
|
|
9342 |
<line num="308" type="stmt" count="1"/>
|
9343 |
<line num="310" type="stmt" count="1"/>
|
9344 |
+
<line num="311" type="stmt" count="1"/>
|
9345 |
<line num="312" type="stmt" count="1"/>
|
9346 |
+
<line num="313" type="stmt" count="0"/>
|
9347 |
<line num="315" type="stmt" count="1"/>
|
9348 |
+
<line num="317" type="stmt" count="1"/>
|
9349 |
+
<line num="323" type="stmt" count="1"/>
|
9350 |
+
<line num="324" type="stmt" count="1"/>
|
9351 |
+
<line num="325" type="stmt" count="1"/>
|
9352 |
<line num="327" type="stmt" count="1"/>
|
|
|
9353 |
<line num="329" type="stmt" count="1"/>
|
|
|
9354 |
<line num="333" type="stmt" count="1"/>
|
9355 |
+
<line num="334" type="stmt" count="1"/>
|
9356 |
+
<line num="335" type="stmt" count="1"/>
|
9357 |
+
<line num="344" type="method" name="zip_sql" visibility="private" complexity="1" crap="1" count="1"/>
|
9358 |
+
<line num="345" type="stmt" count="1"/>
|
9359 |
+
<line num="346" type="stmt" count="1"/>
|
9360 |
+
<line num="348" type="stmt" count="1"/>
|
9361 |
<line num="350" type="stmt" count="1"/>
|
9362 |
<line num="352" type="stmt" count="1"/>
|
9363 |
<line num="354" type="stmt" count="1"/>
|
9364 |
+
<line num="355" type="stmt" count="1"/>
|
9365 |
<line num="356" type="stmt" count="1"/>
|
9366 |
+
<metrics loc="357" ncloc="162" classes="1" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="108" coveredstatements="107" elements="117" coveredelements="115"/>
|
|
|
|
|
|
|
9367 |
</file>
|
9368 |
<package name="Boldgrid\Backup\Admin\Cron">
|
9369 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/class-crontab.php">
|
9370 |
<class name="Crontab" namespace="Boldgrid\Backup\Admin\Cron">
|
9371 |
+
<metrics complexity="9" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="14" elements="33" coveredelements="15"/>
|
9372 |
</class>
|
9373 |
+
<line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="2"/>
|
9374 |
+
<line num="40" type="stmt" count="2"/>
|
9375 |
+
<line num="41" type="stmt" count="2"/>
|
9376 |
+
<line num="55" type="method" name="find_crons" visibility="public" complexity="5" crap="30" count="0"/>
|
9377 |
<line num="56" type="stmt" count="0"/>
|
9378 |
<line num="58" type="stmt" count="0"/>
|
9379 |
<line num="60" type="stmt" count="0"/>
|
9380 |
+
<line num="61" type="stmt" count="0"/>
|
9381 |
<line num="63" type="stmt" count="0"/>
|
9382 |
+
<line num="64" type="stmt" count="0"/>
|
9383 |
<line num="65" type="stmt" count="0"/>
|
9384 |
<line num="66" type="stmt" count="0"/>
|
9385 |
<line num="67" type="stmt" count="0"/>
|
|
|
9386 |
<line num="69" type="stmt" count="0"/>
|
9387 |
+
<line num="70" type="stmt" count="0"/>
|
9388 |
<line num="71" type="stmt" count="0"/>
|
9389 |
<line num="72" type="stmt" count="0"/>
|
|
|
9390 |
<line num="74" type="stmt" count="0"/>
|
9391 |
+
<line num="87" type="method" name="write_crontab" visibility="public" complexity="3" crap="3.03" count="1"/>
|
9392 |
+
<line num="88" type="stmt" count="1"/>
|
9393 |
<line num="90" type="stmt" count="1"/>
|
9394 |
+
<line num="91" type="stmt" count="0"/>
|
9395 |
+
<line num="95" type="stmt" count="1"/>
|
9396 |
+
<line num="98" type="stmt" count="1"/>
|
9397 |
+
<line num="101" type="stmt" count="1"/>
|
9398 |
+
<line num="104" type="stmt" count="1"/>
|
9399 |
+
<line num="107" type="stmt" count="1"/>
|
9400 |
+
<line num="110" type="stmt" count="1"/>
|
9401 |
+
<line num="111" type="stmt" count="0"/>
|
9402 |
+
<line num="115" type="stmt" count="1"/>
|
9403 |
<line num="117" type="stmt" count="1"/>
|
9404 |
+
<line num="120" type="stmt" count="1"/>
|
9405 |
<line num="122" type="stmt" count="1"/>
|
9406 |
+
<metrics loc="124" ncloc="55" classes="1" methods="3" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="14" elements="33" coveredelements="15"/>
|
|
|
9407 |
</file>
|
9408 |
</package>
|
9409 |
<package name="Boldgrid\Backup\Admin\Cron\Entry">
|
9410 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/entry/class-base.php">
|
9411 |
<class name="Base" namespace="Boldgrid\Backup\Admin\Cron\Entry">
|
9412 |
+
<metrics complexity="3" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="3" coveredstatements="0" elements="6" coveredelements="0"/>
|
9413 |
</class>
|
9414 |
<line num="33" type="method" name="get_next_runtime" visibility="public" complexity="1" crap="2" count="0"/>
|
9415 |
<line num="34" type="stmt" count="0"/>
|
|
|
9416 |
<line num="44" type="method" name="init_via_search" visibility="public" complexity="1" crap="2" count="0"/>
|
9417 |
<line num="45" type="stmt" count="0"/>
|
|
|
9418 |
<line num="55" type="method" name="is_set" visibility="public" complexity="1" crap="2" count="0"/>
|
9419 |
<line num="56" type="stmt" count="0"/>
|
9420 |
+
<metrics loc="58" ncloc="19" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="3" coveredstatements="0" elements="6" coveredelements="0"/>
|
|
|
9421 |
</file>
|
9422 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/entry/class-crontab.php">
|
9423 |
<class name="Crontab" namespace="Boldgrid\Backup\Admin\Cron\Entry">
|
9424 |
+
<metrics complexity="5" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="3" elements="25" coveredelements="5"/>
|
9425 |
</class>
|
9426 |
+
<line num="90" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
|
9427 |
+
<line num="91" type="stmt" count="1"/>
|
9428 |
+
<line num="92" type="stmt" count="1"/>
|
9429 |
<line num="101" type="method" name="get_next_runtime" visibility="public" complexity="1" crap="2" count="0"/>
|
9430 |
<line num="102" type="stmt" count="0"/>
|
9431 |
<line num="104" type="stmt" count="0"/>
|
9433 |
<line num="113" type="stmt" count="0"/>
|
9434 |
<line num="119" type="stmt" count="0"/>
|
9435 |
<line num="121" type="stmt" count="0"/>
|
|
|
9436 |
<line num="131" type="method" name="init_via_search" visibility="public" complexity="2" crap="6" count="0"/>
|
9437 |
<line num="132" type="stmt" count="0"/>
|
9438 |
<line num="134" type="stmt" count="0"/>
|
9446 |
<line num="147" type="stmt" count="0"/>
|
9447 |
<line num="148" type="stmt" count="0"/>
|
9448 |
<line num="149" type="stmt" count="0"/>
|
9449 |
+
<line num="158" type="method" name="is_set" visibility="public" complexity="1" crap="1" count="1"/>
|
9450 |
+
<line num="159" type="stmt" count="1"/>
|
9451 |
+
<metrics loc="161" ncloc="59" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="3" elements="25" coveredelements="5"/>
|
|
|
9452 |
</file>
|
9453 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/entry/class-wpcron.php">
|
9454 |
<class name="Wpcron" namespace="Boldgrid\Backup\Admin\Cron\Entry">
|
9455 |
+
<metrics complexity="4" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="0" elements="12" coveredelements="0"/>
|
9456 |
</class>
|
9457 |
<line num="53" type="method" name="get_next_runtime" visibility="public" complexity="1" crap="2" count="0"/>
|
9458 |
<line num="54" type="stmt" count="0"/>
|
|
|
9459 |
<line num="64" type="method" name="init_via_search" visibility="public" complexity="2" crap="6" count="0"/>
|
9460 |
<line num="65" type="stmt" count="0"/>
|
9461 |
<line num="67" type="stmt" count="0"/>
|
9466 |
<line num="74" type="stmt" count="0"/>
|
9467 |
<line num="83" type="method" name="is_set" visibility="public" complexity="1" crap="2" count="0"/>
|
9468 |
<line num="84" type="stmt" count="0"/>
|
9469 |
+
<metrics loc="86" ncloc="32" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="0" elements="12" coveredelements="0"/>
|
|
|
9470 |
</file>
|
9471 |
</package>
|
9472 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/entry/class-entry.php">
|
9480 |
<class name="Cleanup" namespace="Boldgrid\Backup\Admin\Orphan">
|
9481 |
<metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="11" elements="23" coveredelements="12"/>
|
9482 |
</class>
|
9483 |
+
<line num="45" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="9"/>
|
9484 |
+
<line num="46" type="stmt" count="9"/>
|
9485 |
+
<line num="48" type="stmt" count="9"/>
|
9486 |
+
<line num="49" type="stmt" count="9"/>
|
9487 |
+
<line num="50" type="stmt" count="9"/>
|
9488 |
+
<line num="51" type="stmt" count="9"/>
|
9489 |
+
<line num="52" type="stmt" count="9"/>
|
9490 |
+
<line num="53" type="stmt" count="9"/>
|
9491 |
+
<line num="60" type="method" name="run" visibility="public" complexity="4" crap="9.83" count="9"/>
|
9492 |
+
<line num="61" type="stmt" count="9"/>
|
9493 |
+
<line num="62" type="stmt" count="9"/>
|
9494 |
+
<line num="64" type="stmt" count="9"/>
|
9495 |
<line num="65" type="stmt" count="0"/>
|
9496 |
<line num="66" type="stmt" count="0"/>
|
9497 |
<line num="68" type="stmt" count="0"/>
|
9502 |
<line num="74" type="stmt" count="0"/>
|
9503 |
<line num="75" type="stmt" count="0"/>
|
9504 |
<line num="76" type="stmt" count="0"/>
|
9505 |
+
<line num="77" type="stmt" count="9"/>
|
9506 |
<metrics loc="78" ncloc="38" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="21" coveredstatements="11" elements="23" coveredelements="12"/>
|
9507 |
</file>
|
9508 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/orphan/class-finder.php">
|
9509 |
<class name="Finder" namespace="Boldgrid\Backup\Admin\Orphan">
|
9510 |
<metrics complexity="9" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="22" coveredstatements="13" elements="26" coveredelements="15"/>
|
9511 |
</class>
|
9512 |
+
<line num="47" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="9"/>
|
9513 |
+
<line num="48" type="stmt" count="9"/>
|
9514 |
+
<line num="49" type="stmt" count="9"/>
|
9515 |
<line num="63" type="method" name="is_file_old" visibility="public" complexity="2" crap="6" count="0"/>
|
9516 |
<line num="65" type="stmt" count="0"/>
|
9517 |
<line num="67" type="stmt" count="0"/>
|
9518 |
+
<line num="79" type="method" name="run" visibility="public" complexity="1" crap="1" count="9"/>
|
9519 |
+
<line num="80" type="stmt" count="9"/>
|
9520 |
+
<line num="82" type="stmt" count="9"/>
|
9521 |
+
<line num="90" type="method" name="set_filelist" visibility="public" complexity="5" crap="7.09" count="9"/>
|
9522 |
+
<line num="92" type="stmt" count="9"/>
|
9523 |
+
<line num="93" type="stmt" count="9"/>
|
9524 |
+
<line num="94" type="stmt" count="9"/>
|
9525 |
+
<line num="95" type="stmt" count="9"/>
|
9526 |
<line num="96" type="stmt" count="0"/>
|
9527 |
<line num="97" type="stmt" count="0"/>
|
9528 |
<line num="98" type="stmt" count="0"/>
|
9529 |
<line num="99" type="stmt" count="0"/>
|
9530 |
+
<line num="100" type="stmt" count="9"/>
|
9531 |
+
<line num="103" type="stmt" count="9"/>
|
9532 |
+
<line num="104" type="stmt" count="9"/>
|
9533 |
<line num="105" type="stmt" count="0"/>
|
9534 |
<line num="106" type="stmt" count="0"/>
|
9535 |
<line num="107" type="stmt" count="0"/>
|
9536 |
+
<line num="108" type="stmt" count="9"/>
|
9537 |
+
<line num="109" type="stmt" count="9"/>
|
9538 |
<metrics loc="110" ncloc="41" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="22" coveredstatements="13" elements="26" coveredelements="15"/>
|
9539 |
</file>
|
9540 |
</package>
|
9704 |
<line num="109" type="stmt" count="0"/>
|
9705 |
<metrics loc="109" ncloc="88" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="75" coveredstatements="0" elements="75" coveredelements="0"/>
|
9706 |
</file>
|
9707 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/archive-details/dir.php">
|
9708 |
+
<line num="16" type="stmt" count="0"/>
|
9709 |
+
<line num="18" type="stmt" count="0"/>
|
9710 |
+
<line num="19" type="stmt" count="0"/>
|
9711 |
+
<line num="20" type="stmt" count="0"/>
|
9712 |
+
<line num="21" type="stmt" count="0"/>
|
9713 |
+
<line num="25" type="stmt" count="0"/>
|
9714 |
+
<line num="26" type="stmt" count="0"/>
|
9715 |
+
<line num="28" type="stmt" count="0"/>
|
9716 |
+
<line num="29" type="stmt" count="0"/>
|
9717 |
+
<line num="30" type="stmt" count="0"/>
|
9718 |
+
<line num="31" type="stmt" count="0"/>
|
9719 |
+
<line num="32" type="stmt" count="0"/>
|
9720 |
+
<line num="33" type="stmt" count="0"/>
|
9721 |
+
<line num="34" type="stmt" count="0"/>
|
9722 |
+
<line num="35" type="stmt" count="0"/>
|
9723 |
+
<line num="36" type="stmt" count="0"/>
|
9724 |
+
<line num="37" type="stmt" count="0"/>
|
9725 |
+
<line num="38" type="stmt" count="0"/>
|
9726 |
+
<line num="39" type="stmt" count="0"/>
|
9727 |
+
<line num="40" type="stmt" count="0"/>
|
9728 |
+
<line num="41" type="stmt" count="0"/>
|
9729 |
+
<line num="42" type="stmt" count="0"/>
|
9730 |
+
<line num="43" type="stmt" count="0"/>
|
9731 |
+
<line num="44" type="stmt" count="0"/>
|
9732 |
+
<line num="45" type="stmt" count="0"/>
|
9733 |
+
<line num="46" type="stmt" count="0"/>
|
9734 |
+
<line num="47" type="stmt" count="0"/>
|
9735 |
+
<line num="49" type="stmt" count="0"/>
|
9736 |
+
<line num="50" type="stmt" count="0"/>
|
9737 |
+
<line num="51" type="stmt" count="0"/>
|
9738 |
+
<line num="52" type="stmt" count="0"/>
|
9739 |
+
<line num="53" type="stmt" count="0"/>
|
9740 |
+
<line num="55" type="stmt" count="0"/>
|
9741 |
+
<metrics loc="55" ncloc="40" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="33" coveredstatements="0" elements="33" coveredelements="0"/>
|
9742 |
+
</file>
|
9743 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/archive-details/not-found.php">
|
9744 |
<line num="17" type="stmt" count="0"/>
|
9745 |
<line num="19" type="stmt" count="0"/>
|
10035 |
<line num="54" type="stmt" count="0"/>
|
10036 |
<line num="55" type="stmt" count="0"/>
|
10037 |
<line num="56" type="stmt" count="0"/>
|
10038 |
+
<line num="57" type="stmt" count="0"/>
|
10039 |
<line num="60" type="stmt" count="0"/>
|
10040 |
+
<line num="61" type="stmt" count="0"/>
|
10041 |
<line num="63" type="stmt" count="0"/>
|
10042 |
<line num="64" type="stmt" count="0"/>
|
10043 |
<line num="65" type="stmt" count="0"/>
|
10044 |
+
<line num="66" type="stmt" count="0"/>
|
10045 |
<line num="69" type="stmt" count="0"/>
|
10046 |
<line num="70" type="stmt" count="0"/>
|
10047 |
<line num="71" type="stmt" count="0"/>
|
10048 |
+
<line num="72" type="stmt" count="0"/>
|
10049 |
<line num="74" type="stmt" count="0"/>
|
10050 |
<line num="75" type="stmt" count="0"/>
|
10051 |
<line num="76" type="stmt" count="0"/>
|
10058 |
<line num="83" type="stmt" count="0"/>
|
10059 |
<line num="84" type="stmt" count="0"/>
|
10060 |
<line num="85" type="stmt" count="0"/>
|
10061 |
+
<line num="86" type="stmt" count="0"/>
|
10062 |
<line num="89" type="stmt" count="0"/>
|
10063 |
<line num="90" type="stmt" count="0"/>
|
10064 |
<line num="91" type="stmt" count="0"/>
|
10065 |
<line num="92" type="stmt" count="0"/>
|
10066 |
<line num="93" type="stmt" count="0"/>
|
10067 |
+
<line num="94" type="stmt" count="0"/>
|
10068 |
<line num="96" type="stmt" count="0"/>
|
10069 |
<line num="97" type="stmt" count="0"/>
|
10070 |
<line num="98" type="stmt" count="0"/>
|
10075 |
<line num="103" type="stmt" count="0"/>
|
10076 |
<line num="104" type="stmt" count="0"/>
|
10077 |
<line num="105" type="stmt" count="0"/>
|
10078 |
+
<line num="106" type="stmt" count="0"/>
|
10079 |
<line num="108" type="stmt" count="0"/>
|
10080 |
<line num="109" type="stmt" count="0"/>
|
10081 |
<line num="110" type="stmt" count="0"/>
|
10090 |
<line num="119" type="stmt" count="0"/>
|
10091 |
<line num="120" type="stmt" count="0"/>
|
10092 |
<line num="121" type="stmt" count="0"/>
|
10093 |
+
<line num="122" type="stmt" count="0"/>
|
10094 |
<line num="124" type="stmt" count="0"/>
|
10095 |
<line num="125" type="stmt" count="0"/>
|
10096 |
<line num="126" type="stmt" count="0"/>
|
10103 |
<line num="133" type="stmt" count="0"/>
|
10104 |
<line num="134" type="stmt" count="0"/>
|
10105 |
<line num="135" type="stmt" count="0"/>
|
10106 |
+
<line num="136" type="stmt" count="0"/>
|
10107 |
<line num="138" type="stmt" count="0"/>
|
10108 |
<line num="139" type="stmt" count="0"/>
|
10109 |
<line num="140" type="stmt" count="0"/>
|
10123 |
<line num="154" type="stmt" count="0"/>
|
10124 |
<line num="155" type="stmt" count="0"/>
|
10125 |
<line num="156" type="stmt" count="0"/>
|
10126 |
+
<line num="157" type="stmt" count="0"/>
|
10127 |
<line num="160" type="stmt" count="0"/>
|
10128 |
<line num="161" type="stmt" count="0"/>
|
10129 |
<line num="162" type="stmt" count="0"/>
|
10157 |
<line num="190" type="stmt" count="0"/>
|
10158 |
<line num="191" type="stmt" count="0"/>
|
10159 |
<line num="192" type="stmt" count="0"/>
|
10160 |
+
<line num="193" type="stmt" count="0"/>
|
10161 |
<line num="195" type="stmt" count="0"/>
|
10162 |
<line num="196" type="stmt" count="0"/>
|
10163 |
<line num="197" type="stmt" count="0"/>
|
10172 |
<line num="206" type="stmt" count="0"/>
|
10173 |
<line num="207" type="stmt" count="0"/>
|
10174 |
<line num="208" type="stmt" count="0"/>
|
10175 |
+
<line num="209" type="stmt" count="0"/>
|
10176 |
<line num="211" type="stmt" count="0"/>
|
10177 |
<line num="212" type="stmt" count="0"/>
|
10178 |
<line num="213" type="stmt" count="0"/>
|
10185 |
<line num="220" type="stmt" count="0"/>
|
10186 |
<line num="221" type="stmt" count="0"/>
|
10187 |
<line num="222" type="stmt" count="0"/>
|
10188 |
+
<line num="223" type="stmt" count="0"/>
|
10189 |
<line num="225" type="stmt" count="0"/>
|
10190 |
<line num="226" type="stmt" count="0"/>
|
10191 |
<line num="227" type="stmt" count="0"/>
|
10209 |
<line num="245" type="stmt" count="0"/>
|
10210 |
<line num="246" type="stmt" count="0"/>
|
10211 |
<line num="247" type="stmt" count="0"/>
|
10212 |
+
<line num="248" type="stmt" count="0"/>
|
10213 |
<line num="250" type="stmt" count="0"/>
|
10214 |
<line num="251" type="stmt" count="0"/>
|
10215 |
<line num="252" type="stmt" count="0"/>
|
10233 |
<line num="270" type="stmt" count="0"/>
|
10234 |
<line num="271" type="stmt" count="0"/>
|
10235 |
<line num="272" type="stmt" count="0"/>
|
10236 |
+
<line num="273" type="stmt" count="0"/>
|
10237 |
<line num="275" type="stmt" count="0"/>
|
10238 |
<line num="276" type="stmt" count="0"/>
|
10239 |
<line num="277" type="stmt" count="0"/>
|
10257 |
<line num="295" type="stmt" count="0"/>
|
10258 |
<line num="296" type="stmt" count="0"/>
|
10259 |
<line num="297" type="stmt" count="0"/>
|
10260 |
+
<line num="298" type="stmt" count="0"/>
|
10261 |
<line num="300" type="stmt" count="0"/>
|
10262 |
<line num="301" type="stmt" count="0"/>
|
10263 |
<line num="302" type="stmt" count="0"/>
|
10265 |
<line num="304" type="stmt" count="0"/>
|
10266 |
<line num="305" type="stmt" count="0"/>
|
10267 |
<line num="306" type="stmt" count="0"/>
|
10268 |
+
<line num="307" type="stmt" count="0"/>
|
10269 |
<line num="309" type="stmt" count="0"/>
|
10270 |
<line num="310" type="stmt" count="0"/>
|
10271 |
<line num="311" type="stmt" count="0"/>
|
10276 |
<line num="316" type="stmt" count="0"/>
|
10277 |
<line num="317" type="stmt" count="0"/>
|
10278 |
<line num="318" type="stmt" count="0"/>
|
10279 |
+
<line num="319" type="stmt" count="0"/>
|
10280 |
<line num="321" type="stmt" count="0"/>
|
10281 |
<line num="322" type="stmt" count="0"/>
|
10282 |
<line num="323" type="stmt" count="0"/>
|
10292 |
<line num="333" type="stmt" count="0"/>
|
10293 |
<line num="334" type="stmt" count="0"/>
|
10294 |
<line num="335" type="stmt" count="0"/>
|
10295 |
+
<line num="336" type="stmt" count="0"/>
|
10296 |
<line num="337" type="stmt" count="0"/>
|
|
|
10297 |
<line num="339" type="stmt" count="0"/>
|
10298 |
<line num="340" type="stmt" count="0"/>
|
10299 |
<line num="341" type="stmt" count="0"/>
|
10305 |
<line num="347" type="stmt" count="0"/>
|
10306 |
<line num="348" type="stmt" count="0"/>
|
10307 |
<line num="349" type="stmt" count="0"/>
|
10308 |
+
<line num="350" type="stmt" count="0"/>
|
10309 |
<line num="351" type="stmt" count="0"/>
|
|
|
10310 |
<line num="353" type="stmt" count="0"/>
|
10311 |
<line num="354" type="stmt" count="0"/>
|
10312 |
<line num="355" type="stmt" count="0"/>
|
10313 |
<line num="356" type="stmt" count="0"/>
|
10314 |
<line num="357" type="stmt" count="0"/>
|
10315 |
+
<line num="358" type="stmt" count="0"/>
|
10316 |
<line num="359" type="stmt" count="0"/>
|
|
|
10317 |
<line num="361" type="stmt" count="0"/>
|
10318 |
<line num="362" type="stmt" count="0"/>
|
10319 |
<line num="363" type="stmt" count="0"/>
|
10323 |
<line num="367" type="stmt" count="0"/>
|
10324 |
<line num="368" type="stmt" count="0"/>
|
10325 |
<line num="369" type="stmt" count="0"/>
|
10326 |
+
<line num="370" type="stmt" count="0"/>
|
10327 |
<line num="371" type="stmt" count="0"/>
|
|
|
10328 |
<line num="373" type="stmt" count="0"/>
|
10329 |
<line num="374" type="stmt" count="0"/>
|
10330 |
<line num="375" type="stmt" count="0"/>
|
10334 |
<line num="379" type="stmt" count="0"/>
|
10335 |
<line num="380" type="stmt" count="0"/>
|
10336 |
<line num="381" type="stmt" count="0"/>
|
10337 |
+
<line num="382" type="stmt" count="0"/>
|
10338 |
<line num="383" type="stmt" count="0"/>
|
|
|
10339 |
<line num="385" type="stmt" count="0"/>
|
10340 |
<line num="386" type="stmt" count="0"/>
|
10341 |
<line num="387" type="stmt" count="0"/>
|
10356 |
<line num="402" type="stmt" count="0"/>
|
10357 |
<line num="403" type="stmt" count="0"/>
|
10358 |
<line num="404" type="stmt" count="0"/>
|
10359 |
+
<line num="405" type="stmt" count="0"/>
|
10360 |
+
<line num="406" type="stmt" count="0"/>
|
10361 |
<line num="414" type="stmt" count="0"/>
|
10362 |
<line num="415" type="stmt" count="0"/>
|
10363 |
<line num="416" type="stmt" count="0"/>
|
10370 |
<line num="423" type="stmt" count="0"/>
|
10371 |
<line num="424" type="stmt" count="0"/>
|
10372 |
<line num="425" type="stmt" count="0"/>
|
10373 |
+
<line num="426" type="stmt" count="0"/>
|
10374 |
<line num="427" type="stmt" count="0"/>
|
10375 |
<line num="429" type="stmt" count="0"/>
|
|
|
10376 |
<line num="431" type="stmt" count="0"/>
|
10377 |
<line num="432" type="stmt" count="0"/>
|
10378 |
<line num="433" type="stmt" count="0"/>
|
10386 |
<line num="441" type="stmt" count="0"/>
|
10387 |
<line num="442" type="stmt" count="0"/>
|
10388 |
<line num="443" type="stmt" count="0"/>
|
10389 |
+
<line num="444" type="stmt" count="0"/>
|
10390 |
<line num="445" type="stmt" count="0"/>
|
|
|
10391 |
<line num="447" type="stmt" count="0"/>
|
10392 |
<line num="448" type="stmt" count="0"/>
|
10393 |
<line num="449" type="stmt" count="0"/>
|
10395 |
<line num="451" type="stmt" count="0"/>
|
10396 |
<line num="452" type="stmt" count="0"/>
|
10397 |
<line num="453" type="stmt" count="0"/>
|
10398 |
+
<line num="454" type="stmt" count="0"/>
|
10399 |
<line num="455" type="stmt" count="0"/>
|
10400 |
<line num="457" type="stmt" count="0"/>
|
|
|
10401 |
<line num="459" type="stmt" count="0"/>
|
10402 |
<line num="460" type="stmt" count="0"/>
|
10403 |
<line num="461" type="stmt" count="0"/>
|
10409 |
<line num="467" type="stmt" count="0"/>
|
10410 |
<line num="468" type="stmt" count="0"/>
|
10411 |
<line num="469" type="stmt" count="0"/>
|
10412 |
+
<line num="470" type="stmt" count="0"/>
|
10413 |
<line num="471" type="stmt" count="0"/>
|
10414 |
<line num="473" type="stmt" count="0"/>
|
10415 |
+
<line num="475" type="stmt" count="0"/>
|
10416 |
+
<metrics loc="475" ncloc="386" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="397" coveredstatements="0" elements="397" coveredelements="0"/>
|
10417 |
</file>
|
10418 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-backup-button.php">
|
10419 |
<line num="19" type="stmt" count="0"/>
|
10775 |
<line num="31" type="stmt" count="0"/>
|
10776 |
<line num="32" type="stmt" count="0"/>
|
10777 |
<line num="33" type="stmt" count="0"/>
|
10778 |
+
<line num="34" type="stmt" count="0"/>
|
10779 |
<line num="36" type="stmt" count="0"/>
|
10780 |
<line num="37" type="stmt" count="0"/>
|
10781 |
<line num="38" type="stmt" count="0"/>
|
10782 |
<line num="39" type="stmt" count="0"/>
|
10783 |
+
<line num="40" type="stmt" count="0"/>
|
10784 |
<line num="42" type="stmt" count="0"/>
|
10785 |
<line num="43" type="stmt" count="0"/>
|
10786 |
<line num="44" type="stmt" count="0"/>
|
10833 |
<line num="91" type="stmt" count="0"/>
|
10834 |
<line num="92" type="stmt" count="0"/>
|
10835 |
<line num="93" type="stmt" count="0"/>
|
10836 |
+
<line num="94" type="stmt" count="0"/>
|
10837 |
+
<line num="103" type="stmt" count="0"/>
|
10838 |
<line num="114" type="stmt" count="0"/>
|
10839 |
<line num="115" type="stmt" count="0"/>
|
10840 |
<line num="116" type="stmt" count="0"/>
|
10841 |
+
<line num="117" type="stmt" count="0"/>
|
10842 |
<line num="120" type="stmt" count="0"/>
|
10843 |
<line num="121" type="stmt" count="0"/>
|
10844 |
<line num="122" type="stmt" count="0"/>
|
10847 |
<line num="125" type="stmt" count="0"/>
|
10848 |
<line num="126" type="stmt" count="0"/>
|
10849 |
<line num="127" type="stmt" count="0"/>
|
10850 |
+
<line num="128" type="stmt" count="0"/>
|
10851 |
+
<line num="134" type="stmt" count="0"/>
|
10852 |
+
<line num="136" type="stmt" count="0"/>
|
10853 |
+
<line num="138" type="stmt" count="0"/>
|
10854 |
+
<line num="149" type="stmt" count="0"/>
|
10855 |
<line num="151" type="stmt" count="0"/>
|
10856 |
+
<line num="152" type="stmt" count="0"/>
|
10857 |
<line num="154" type="stmt" count="0"/>
|
10858 |
<line num="155" type="stmt" count="0"/>
|
10859 |
<line num="156" type="stmt" count="0"/>
|
10862 |
<line num="159" type="stmt" count="0"/>
|
10863 |
<line num="160" type="stmt" count="0"/>
|
10864 |
<line num="161" type="stmt" count="0"/>
|
10865 |
+
<line num="162" type="stmt" count="0"/>
|
10866 |
+
<line num="164" type="stmt" count="0"/>
|
10867 |
+
<line num="166" type="stmt" count="0"/>
|
10868 |
+
<line num="168" type="stmt" count="0"/>
|
10869 |
+
<line num="170" type="stmt" count="0"/>
|
10870 |
<line num="172" type="stmt" count="0"/>
|
10871 |
+
<line num="173" type="stmt" count="0"/>
|
10872 |
+
<line num="176" type="stmt" count="0"/>
|
10873 |
+
<metrics loc="176" ncloc="125" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="111" coveredstatements="0" elements="111" coveredelements="0"/>
|
10874 |
</file>
|
10875 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/boldgrid-backup-admin-support.php">
|
10876 |
<line num="17" type="stmt" count="0"/>
|
12545 |
<line num="275" type="stmt" count="0"/>
|
12546 |
<metrics loc="275" ncloc="194" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="225" coveredstatements="0" elements="225" coveredelements="0"/>
|
12547 |
</file>
|
12548 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/format.php">
|
12549 |
+
<line num="17" type="stmt" count="0"/>
|
12550 |
+
<line num="19" type="stmt" count="0"/>
|
12551 |
+
<line num="21" type="stmt" count="0"/>
|
12552 |
+
<line num="22" type="stmt" count="0"/>
|
12553 |
+
<line num="23" type="stmt" count="0"/>
|
12554 |
+
<line num="25" type="stmt" count="0"/>
|
12555 |
+
<line num="26" type="stmt" count="0"/>
|
12556 |
+
<line num="27" type="stmt" count="0"/>
|
12557 |
+
<line num="28" type="stmt" count="0"/>
|
12558 |
+
<line num="29" type="stmt" count="0"/>
|
12559 |
+
<line num="30" type="stmt" count="0"/>
|
12560 |
+
<line num="32" type="stmt" count="0"/>
|
12561 |
+
<line num="34" type="stmt" count="0"/>
|
12562 |
+
<line num="35" type="stmt" count="0"/>
|
12563 |
+
<line num="37" type="stmt" count="0"/>
|
12564 |
+
<line num="38" type="stmt" count="0"/>
|
12565 |
+
<line num="39" type="stmt" count="0"/>
|
12566 |
+
<line num="40" type="stmt" count="0"/>
|
12567 |
+
<line num="42" type="stmt" count="0"/>
|
12568 |
+
<line num="44" type="stmt" count="0"/>
|
12569 |
+
<line num="46" type="stmt" count="0"/>
|
12570 |
+
<line num="47" type="stmt" count="0"/>
|
12571 |
+
<line num="49" type="stmt" count="0"/>
|
12572 |
+
<line num="51" type="stmt" count="0"/>
|
12573 |
+
<line num="52" type="stmt" count="0"/>
|
12574 |
+
<line num="53" type="stmt" count="0"/>
|
12575 |
+
<line num="54" type="stmt" count="0"/>
|
12576 |
+
<line num="55" type="stmt" count="0"/>
|
12577 |
+
<line num="58" type="stmt" count="0"/>
|
12578 |
+
<line num="59" type="stmt" count="0"/>
|
12579 |
+
<line num="60" type="stmt" count="0"/>
|
12580 |
+
<metrics loc="60" ncloc="45" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="31" coveredstatements="0" elements="31" coveredelements="0"/>
|
12581 |
+
</file>
|
12582 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/partials/settings/notifications.php">
|
12583 |
<line num="17" type="stmt" count="0"/>
|
12584 |
<line num="19" type="stmt" count="0"/>
|
14386 |
<line num="60" type="stmt" count="0"/>
|
14387 |
<line num="61" type="stmt" count="0"/>
|
14388 |
<line num="62" type="stmt" count="0"/>
|
14389 |
+
<line num="63" type="stmt" count="0"/>
|
14390 |
<line num="65" type="stmt" count="0"/>
|
14391 |
<line num="66" type="stmt" count="0"/>
|
14392 |
<line num="67" type="stmt" count="0"/>
|
14393 |
<line num="68" type="stmt" count="0"/>
|
14394 |
+
<line num="69" type="stmt" count="0"/>
|
14395 |
<line num="72" type="stmt" count="0"/>
|
14396 |
<line num="73" type="stmt" count="0"/>
|
14397 |
<line num="74" type="stmt" count="0"/>
|
14398 |
<line num="75" type="stmt" count="0"/>
|
14399 |
<line num="76" type="stmt" count="0"/>
|
14400 |
+
<line num="77" type="stmt" count="0"/>
|
14401 |
<line num="79" type="stmt" count="0"/>
|
14402 |
<line num="80" type="stmt" count="0"/>
|
14403 |
+
<line num="81" type="stmt" count="0"/>
|
14404 |
<line num="83" type="stmt" count="0"/>
|
14405 |
<line num="84" type="stmt" count="0"/>
|
14406 |
+
<line num="85" type="stmt" count="0"/>
|
14407 |
+
<line num="87" type="stmt" count="0"/>
|
14408 |
<line num="90" type="stmt" count="0"/>
|
14409 |
<line num="91" type="stmt" count="0"/>
|
14410 |
+
<line num="92" type="stmt" count="0"/>
|
14411 |
<line num="94" type="stmt" count="0"/>
|
14412 |
<line num="95" type="stmt" count="0"/>
|
14413 |
<line num="96" type="stmt" count="0"/>
|
14414 |
<line num="97" type="stmt" count="0"/>
|
14415 |
<line num="98" type="stmt" count="0"/>
|
14416 |
<line num="99" type="stmt" count="0"/>
|
14417 |
+
<line num="100" type="stmt" count="0"/>
|
14418 |
+
<line num="102" type="stmt" count="0"/>
|
14419 |
+
<metrics loc="102" ncloc="71" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="60" coveredstatements="0" elements="60" coveredelements="0"/>
|
14420 |
</file>
|
14421 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/boldgrid-backup.php">
|
14422 |
<line num="29" type="stmt" count="0"/>
|
14434 |
<line num="49" type="stmt" count="0"/>
|
14435 |
<line num="50" type="stmt" count="0"/>
|
14436 |
<line num="51" type="stmt" count="0"/>
|
14437 |
+
<line num="53" type="stmt" count="0"/>
|
|
|
14438 |
<line num="60" type="stmt" count="0"/>
|
14439 |
+
<line num="61" type="stmt" count="0"/>
|
14440 |
+
<line num="62" type="stmt" count="0"/>
|
14441 |
<line num="69" type="stmt" count="0"/>
|
14442 |
+
<line num="70" type="stmt" count="0"/>
|
14443 |
+
<line num="71" type="stmt" count="0"/>
|
14444 |
<line num="83" type="stmt" count="0"/>
|
14445 |
+
<line num="84" type="stmt" count="0"/>
|
14446 |
+
<line num="85" type="stmt" count="0"/>
|
14447 |
<line num="101" type="stmt" count="0"/>
|
14448 |
+
<line num="102" type="stmt" count="0"/>
|
14449 |
<line num="103" type="stmt" count="0"/>
|
|
|
14450 |
<line num="105" type="stmt" count="0"/>
|
14451 |
+
<line num="106" type="stmt" count="0"/>
|
14452 |
+
<line num="107" type="stmt" count="0"/>
|
14453 |
+
<line num="110" type="stmt" count="0"/>
|
14454 |
<line num="113" type="stmt" count="0"/>
|
14455 |
<line num="114" type="stmt" count="0"/>
|
14456 |
<line num="115" type="stmt" count="0"/>
|
14458 |
<line num="117" type="stmt" count="0"/>
|
14459 |
<line num="118" type="stmt" count="0"/>
|
14460 |
<line num="119" type="stmt" count="0"/>
|
14461 |
+
<line num="120" type="stmt" count="0"/>
|
14462 |
+
<line num="121" type="stmt" count="0"/>
|
14463 |
<line num="124" type="stmt" count="0"/>
|
14464 |
+
<line num="125" type="stmt" count="0"/>
|
14465 |
<line num="126" type="stmt" count="0"/>
|
14466 |
+
<line num="128" type="stmt" count="0"/>
|
14467 |
<line num="129" type="stmt" count="0"/>
|
14468 |
+
<line num="131" type="stmt" count="0"/>
|
14469 |
+
<line num="132" type="stmt" count="0"/>
|
14470 |
<line num="145" type="stmt" count="0"/>
|
|
|
14471 |
<line num="147" type="stmt" count="0"/>
|
14472 |
<line num="148" type="stmt" count="0"/>
|
14473 |
<line num="149" type="stmt" count="0"/>
|
14474 |
+
<line num="150" type="stmt" count="0"/>
|
14475 |
+
<line num="151" type="stmt" count="0"/>
|
14476 |
<line num="158" type="stmt" count="0"/>
|
14477 |
<line num="159" type="stmt" count="0"/>
|
14478 |
<line num="160" type="stmt" count="0"/>
|
14479 |
<line num="161" type="stmt" count="0"/>
|
14480 |
+
<line num="162" type="stmt" count="0"/>
|
14481 |
+
<line num="163" type="stmt" count="0"/>
|
14482 |
+
<metrics loc="163" ncloc="74" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="60" coveredstatements="0" elements="60" coveredelements="0"/>
|
14483 |
</file>
|
14484 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/cli/bgbkup-cli.php">
|
14485 |
<line num="27" type="stmt" count="0"/>
|
15478 |
<line num="63" type="stmt" count="0"/>
|
15479 |
<metrics loc="63" ncloc="28" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="0" elements="30" coveredelements="0"/>
|
15480 |
</file>
|
15481 |
+
<package name="Boldgrid\Backup\Archive">
|
15482 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/archive/class-factory.php">
|
15483 |
+
<class name="Factory" namespace="Boldgrid\Backup\Archive">
|
15484 |
+
<metrics complexity="7" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="23" coveredstatements="21" elements="26" coveredelements="23"/>
|
15485 |
+
</class>
|
15486 |
+
<line num="32" type="method" name="get_by_filename" visibility="public" complexity="1" crap="1" count="4"/>
|
15487 |
+
<line num="33" type="stmt" count="4"/>
|
15488 |
+
<line num="35" type="stmt" count="4"/>
|
15489 |
+
<line num="37" type="stmt" count="4"/>
|
15490 |
+
<line num="39" type="stmt" count="4"/>
|
15491 |
+
<line num="50" type="method" name="get_by_id" visibility="public" complexity="3" crap="3" count="1"/>
|
15492 |
+
<line num="51" type="stmt" count="1"/>
|
15493 |
+
<line num="54" type="stmt" count="1"/>
|
15494 |
+
<line num="55" type="stmt" count="1"/>
|
15495 |
+
<line num="56" type="stmt" count="1"/>
|
15496 |
+
<line num="58" type="stmt" count="1"/>
|
15497 |
+
<line num="59" type="stmt" count="1"/>
|
15498 |
+
<line num="60" type="stmt" count="1"/>
|
15499 |
+
<line num="62" type="stmt" count="1"/>
|
15500 |
+
<line num="73" type="method" name="set_id" visibility="private" complexity="3" crap="3.05" count="4"/>
|
15501 |
+
<line num="74" type="stmt" count="4"/>
|
15502 |
+
<line num="76" type="stmt" count="4"/>
|
15503 |
+
<line num="78" type="stmt" count="4"/>
|
15504 |
+
<line num="79" type="stmt" count="4"/>
|
15505 |
+
<line num="80" type="stmt" count="4"/>
|
15506 |
+
<line num="82" type="stmt" count="4"/>
|
15507 |
+
<line num="83" type="stmt" count="0"/>
|
15508 |
+
<line num="84" type="stmt" count="0"/>
|
15509 |
+
<line num="85" type="stmt" count="4"/>
|
15510 |
+
<line num="87" type="stmt" count="4"/>
|
15511 |
+
<line num="90" type="stmt" count="4"/>
|
15512 |
+
<metrics loc="92" ncloc="48" classes="1" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="23" coveredstatements="21" elements="26" coveredelements="23"/>
|
15513 |
+
</file>
|
15514 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/archive/class-option.php">
|
15515 |
+
<class name="Option" namespace="Boldgrid\Backup\Archive">
|
15516 |
+
<metrics complexity="14" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="31" coveredstatements="31" elements="35" coveredelements="35"/>
|
15517 |
+
</class>
|
15518 |
+
<line num="43" type="method" name="get_all" visibility="public" complexity="1" crap="1" count="4"/>
|
15519 |
+
<line num="44" type="stmt" count="4"/>
|
15520 |
+
<line num="55" type="method" name="get_by_key" visibility="public" complexity="4" crap="4" count="4"/>
|
15521 |
+
<line num="56" type="stmt" count="4"/>
|
15522 |
+
<line num="58" type="stmt" count="4"/>
|
15523 |
+
<line num="60" type="stmt" count="4"/>
|
15524 |
+
<line num="61" type="stmt" count="1"/>
|
15525 |
+
<line num="62" type="stmt" count="1"/>
|
15526 |
+
<line num="63" type="stmt" count="1"/>
|
15527 |
+
<line num="65" type="stmt" count="4"/>
|
15528 |
+
<line num="67" type="stmt" count="4"/>
|
15529 |
+
<line num="77" type="method" name="get_next_id" visibility="public" complexity="4" crap="4" count="4"/>
|
15530 |
+
<line num="78" type="stmt" count="4"/>
|
15531 |
+
<line num="80" type="stmt" count="4"/>
|
15532 |
+
<line num="82" type="stmt" count="4"/>
|
15533 |
+
<line num="83" type="stmt" count="1"/>
|
15534 |
+
<line num="85" type="stmt" count="1"/>
|
15535 |
+
<line num="86" type="stmt" count="4"/>
|
15536 |
+
<line num="88" type="stmt" count="4"/>
|
15537 |
+
<line num="100" type="method" name="update_by_filename" visibility="public" complexity="5" crap="5" count="4"/>
|
15538 |
+
<line num="101" type="stmt" count="4"/>
|
15539 |
+
<line num="103" type="stmt" count="4"/>
|
15540 |
+
<line num="106" type="stmt" count="4"/>
|
15541 |
+
<line num="107" type="stmt" count="1"/>
|
15542 |
+
<line num="108" type="stmt" count="1"/>
|
15543 |
+
<line num="110" type="stmt" count="1"/>
|
15544 |
+
<line num="112" type="stmt" count="1"/>
|
15545 |
+
<line num="114" type="stmt" count="4"/>
|
15546 |
+
<line num="117" type="stmt" count="4"/>
|
15547 |
+
<line num="118" type="stmt" count="4"/>
|
15548 |
+
<line num="119" type="stmt" count="4"/>
|
15549 |
+
<line num="120" type="stmt" count="4"/>
|
15550 |
+
<line num="122" type="stmt" count="4"/>
|
15551 |
+
<line num="124" type="stmt" count="4"/>
|
15552 |
+
<line num="125" type="stmt" count="4"/>
|
15553 |
+
<metrics loc="126" ncloc="63" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="31" coveredstatements="31" elements="35" coveredelements="35"/>
|
15554 |
+
</file>
|
15555 |
+
</package>
|
15556 |
+
<package name="Boldgrid\Backup\Archiver">
|
15557 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/archiver/class-info.php">
|
15558 |
+
<class name="Info" namespace="Boldgrid\Backup\Archiver">
|
15559 |
+
<metrics complexity="12" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="25" coveredstatements="24" elements="31" coveredelements="29"/>
|
15560 |
+
</class>
|
15561 |
+
<line num="37" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="9"/>
|
15562 |
+
<line num="38" type="stmt" count="9"/>
|
15563 |
+
<line num="40" type="stmt" count="9"/>
|
15564 |
+
<line num="41" type="stmt" count="9"/>
|
15565 |
+
<line num="42" type="stmt" count="9"/>
|
15566 |
+
<line num="43" type="stmt" count="1"/>
|
15567 |
+
<line num="45" type="stmt" count="9"/>
|
15568 |
+
<line num="50" type="method" name="get" visibility="public" complexity="2" crap="2" count="9"/>
|
15569 |
+
<line num="51" type="stmt" count="9"/>
|
15570 |
+
<line num="52" type="stmt" count="9"/>
|
15571 |
+
<line num="54" type="stmt" count="1"/>
|
15572 |
+
<line num="61" type="method" name="get_key" visibility="public" complexity="2" crap="2" count="9"/>
|
15573 |
+
<line num="62" type="stmt" count="9"/>
|
15574 |
+
<line num="64" type="stmt" count="9"/>
|
15575 |
+
<line num="70" type="method" name="set_key" visibility="public" complexity="2" crap="2" count="9"/>
|
15576 |
+
<line num="71" type="stmt" count="9"/>
|
15577 |
+
<line num="72" type="stmt" count="9"/>
|
15578 |
+
<line num="73" type="stmt" count="9"/>
|
15579 |
+
<line num="74" type="stmt" count="1"/>
|
15580 |
+
<line num="76" type="stmt" count="9"/>
|
15581 |
+
<line num="81" type="method" name="set" visibility="public" complexity="2" crap="2.03" count="9"/>
|
15582 |
+
<line num="82" type="stmt" count="9"/>
|
15583 |
+
<line num="83" type="stmt" count="9"/>
|
15584 |
+
<line num="84" type="stmt" count="9"/>
|
15585 |
+
<line num="85" type="stmt" count="0"/>
|
15586 |
+
<line num="87" type="stmt" count="9"/>
|
15587 |
+
<line num="92" type="method" name="set_keys" visibility="public" complexity="2" crap="2" count="9"/>
|
15588 |
+
<line num="93" type="stmt" count="9"/>
|
15589 |
+
<line num="94" type="stmt" count="9"/>
|
15590 |
+
<line num="95" type="stmt" count="9"/>
|
15591 |
+
<line num="96" type="stmt" count="9"/>
|
15592 |
+
<metrics loc="97" ncloc="58" classes="1" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="25" coveredstatements="24" elements="31" coveredelements="29"/>
|
15593 |
+
</file>
|
15594 |
+
</package>
|
15595 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-activator.php">
|
15596 |
<class name="Boldgrid_Backup_Activator" namespace="global" fullPackage="Boldgrid.Backup">
|
15597 |
<metrics complexity="18" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="75" coveredstatements="0" elements="80" coveredelements="0"/>
|
15678 |
<line num="225" type="stmt" count="0"/>
|
15679 |
<metrics loc="226" ncloc="98" classes="1" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="75" coveredstatements="0" elements="80" coveredelements="0"/>
|
15680 |
</file>
|
15681 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-archive-fetcher.php">
|
15682 |
+
<class name="Boldgrid_Backup_Archive_Fetcher" namespace="global" fullPackage="Boldgrid.Backup.Archive">
|
15683 |
+
<metrics complexity="17" methods="10" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="73" coveredstatements="0" elements="83" coveredelements="0"/>
|
15684 |
+
</class>
|
15685 |
+
<line num="115" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
|
15686 |
+
<line num="116" type="stmt" count="0"/>
|
15687 |
+
<line num="118" type="stmt" count="0"/>
|
15688 |
+
<line num="119" type="stmt" count="0"/>
|
15689 |
+
<line num="128" type="method" name="download" visibility="public" complexity="4" crap="20" count="0"/>
|
15690 |
+
<line num="129" type="stmt" count="0"/>
|
15691 |
+
<line num="130" type="stmt" count="0"/>
|
15692 |
+
<line num="131" type="stmt" count="0"/>
|
15693 |
+
<line num="132" type="stmt" count="0"/>
|
15694 |
+
<line num="134" type="stmt" count="0"/>
|
15695 |
+
<line num="135" type="stmt" count="0"/>
|
15696 |
+
<line num="136" type="stmt" count="0"/>
|
15697 |
+
<line num="137" type="stmt" count="0"/>
|
15698 |
+
<line num="139" type="stmt" count="0"/>
|
15699 |
+
<line num="141" type="stmt" count="0"/>
|
15700 |
+
<line num="142" type="stmt" count="0"/>
|
15701 |
+
<line num="143" type="stmt" count="0"/>
|
15702 |
+
<line num="144" type="stmt" count="0"/>
|
15703 |
+
<line num="145" type="stmt" count="0"/>
|
15704 |
+
<line num="146" type="stmt" count="0"/>
|
15705 |
+
<line num="147" type="stmt" count="0"/>
|
15706 |
+
<line num="148" type="stmt" count="0"/>
|
15707 |
+
<line num="149" type="stmt" count="0"/>
|
15708 |
+
<line num="150" type="stmt" count="0"/>
|
15709 |
+
<line num="152" type="stmt" count="0"/>
|
15710 |
+
<line num="153" type="stmt" count="0"/>
|
15711 |
+
<line num="155" type="stmt" count="0"/>
|
15712 |
+
<line num="156" type="stmt" count="0"/>
|
15713 |
+
<line num="157" type="stmt" count="0"/>
|
15714 |
+
<line num="159" type="stmt" count="0"/>
|
15715 |
+
<line num="160" type="stmt" count="0"/>
|
15716 |
+
<line num="161" type="stmt" count="0"/>
|
15717 |
+
<line num="162" type="stmt" count="0"/>
|
15718 |
+
<line num="164" type="stmt" count="0"/>
|
15719 |
+
<line num="165" type="stmt" count="0"/>
|
15720 |
+
<line num="166" type="stmt" count="0"/>
|
15721 |
+
<line num="175" type="method" name="get_error" visibility="public" complexity="1" crap="2" count="0"/>
|
15722 |
+
<line num="176" type="stmt" count="0"/>
|
15723 |
+
<line num="177" type="stmt" count="0"/>
|
15724 |
+
<line num="186" type="method" name="get_info" visibility="public" complexity="1" crap="2" count="0"/>
|
15725 |
+
<line num="187" type="stmt" count="0"/>
|
15726 |
+
<line num="188" type="stmt" count="0"/>
|
15727 |
+
<line num="197" type="method" name="has_error" visibility="public" complexity="1" crap="2" count="0"/>
|
15728 |
+
<line num="198" type="stmt" count="0"/>
|
15729 |
+
<line num="199" type="stmt" count="0"/>
|
15730 |
+
<line num="211" type="method" name="is_call_successful" visibility="private" complexity="3" crap="12" count="0"/>
|
15731 |
+
<line num="212" type="stmt" count="0"/>
|
15732 |
+
<line num="213" type="stmt" count="0"/>
|
15733 |
+
<line num="214" type="stmt" count="0"/>
|
15734 |
+
<line num="215" type="stmt" count="0"/>
|
15735 |
+
<line num="224" type="method" name="is_valid_backupdir" visibility="private" complexity="2" crap="6" count="0"/>
|
15736 |
+
<line num="225" type="stmt" count="0"/>
|
15737 |
+
<line num="227" type="stmt" count="0"/>
|
15738 |
+
<line num="228" type="stmt" count="0"/>
|
15739 |
+
<line num="237" type="method" name="is_valid_url" visibility="private" complexity="1" crap="2" count="0"/>
|
15740 |
+
<line num="238" type="stmt" count="0"/>
|
15741 |
+
<line num="240" type="stmt" count="0"/>
|
15742 |
+
<line num="241" type="stmt" count="0"/>
|
15743 |
+
<line num="248" type="method" name="post_successful_download" visibility="private" complexity="1" crap="2" count="0"/>
|
15744 |
+
<line num="249" type="stmt" count="0"/>
|
15745 |
+
<line num="251" type="stmt" count="0"/>
|
15746 |
+
<line num="254" type="stmt" count="0"/>
|
15747 |
+
<line num="257" type="stmt" count="0"/>
|
15748 |
+
<line num="260" type="stmt" count="0"/>
|
15749 |
+
<line num="262" type="stmt" count="0"/>
|
15750 |
+
<line num="263" type="stmt" count="0"/>
|
15751 |
+
<line num="264" type="stmt" count="0"/>
|
15752 |
+
<line num="265" type="stmt" count="0"/>
|
15753 |
+
<line num="266" type="stmt" count="0"/>
|
15754 |
+
<line num="267" type="stmt" count="0"/>
|
15755 |
+
<line num="268" type="stmt" count="0"/>
|
15756 |
+
<line num="275" type="method" name="set_logfilepath" visibility="private" complexity="2" crap="6" count="0"/>
|
15757 |
+
<line num="276" type="stmt" count="0"/>
|
15758 |
+
<line num="278" type="stmt" count="0"/>
|
15759 |
+
<line num="279" type="stmt" count="0"/>
|
15760 |
+
<line num="280" type="stmt" count="0"/>
|
15761 |
+
<line num="281" type="stmt" count="0"/>
|
15762 |
+
<line num="282" type="stmt" count="0"/>
|
15763 |
+
<line num="283" type="stmt" count="0"/>
|
15764 |
+
<line num="285" type="stmt" count="0"/>
|
15765 |
+
<line num="286" type="stmt" count="0"/>
|
15766 |
+
<line num="288" type="stmt" count="0"/>
|
15767 |
+
<line num="289" type="stmt" count="0"/>
|
15768 |
+
<metrics loc="290" ncloc="131" classes="1" methods="10" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="73" coveredstatements="0" elements="83" coveredelements="0"/>
|
15769 |
+
</file>
|
15770 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-archiver.php">
|
15771 |
+
<class name="Boldgrid_Backup_Archiver" namespace="global" fullPackage="Boldgrid.Backup">
|
15772 |
+
<metrics complexity="34" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="140" coveredstatements="117" elements="147" coveredelements="120"/>
|
15773 |
+
</class>
|
15774 |
+
<line num="77" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="9"/>
|
15775 |
+
<line num="78" type="stmt" count="9"/>
|
15776 |
+
<line num="79" type="stmt" count="9"/>
|
15777 |
+
<line num="81" type="stmt" count="9"/>
|
15778 |
+
<line num="82" type="stmt" count="9"/>
|
15779 |
+
<line num="83" type="stmt" count="9"/>
|
15780 |
+
<line num="84" type="stmt" count="1"/>
|
15781 |
+
<line num="85" type="stmt" count="1"/>
|
15782 |
+
<line num="86" type="stmt" count="1"/>
|
15783 |
+
<line num="88" type="stmt" count="9"/>
|
15784 |
+
<line num="95" type="method" name="complete" visibility="public" complexity="6" crap="6.09" count="9"/>
|
15785 |
+
<line num="97" type="stmt" count="9"/>
|
15786 |
+
<line num="98" type="stmt" count="9"/>
|
15787 |
+
<line num="131" type="stmt" count="9"/>
|
15788 |
+
<line num="142" type="stmt" count="9"/>
|
15789 |
+
<line num="143" type="stmt" count="9"/>
|
15790 |
+
<line num="145" type="stmt" count="9"/>
|
15791 |
+
<line num="146" type="stmt" count="9"/>
|
15792 |
+
<line num="147" type="stmt" count="9"/>
|
15793 |
+
<line num="148" type="stmt" count="9"/>
|
15794 |
+
<line num="150" type="stmt" count="9"/>
|
15795 |
+
<line num="151" type="stmt" count="9"/>
|
15796 |
+
<line num="154" type="stmt" count="9"/>
|
15797 |
+
<line num="156" type="stmt" count="9"/>
|
15798 |
+
<line num="159" type="stmt" count="9"/>
|
15799 |
+
<line num="161" type="stmt" count="9"/>
|
15800 |
+
<line num="164" type="stmt" count="9"/>
|
15801 |
+
<line num="165" type="stmt" count="0"/>
|
15802 |
+
<line num="166" type="stmt" count="0"/>
|
15803 |
+
<line num="168" type="stmt" count="9"/>
|
15804 |
+
<line num="170" type="stmt" count="9"/>
|
15805 |
+
<line num="171" type="stmt" count="0"/>
|
15806 |
+
<line num="172" type="stmt" count="0"/>
|
15807 |
+
<line num="174" type="stmt" count="9"/>
|
15808 |
+
<line num="175" type="stmt" count="1"/>
|
15809 |
+
<line num="176" type="stmt" count="1"/>
|
15810 |
+
<line num="178" type="stmt" count="9"/>
|
15811 |
+
<line num="179" type="stmt" count="9"/>
|
15812 |
+
<line num="181" type="stmt" count="9"/>
|
15813 |
+
<line num="183" type="stmt" count="9"/>
|
15814 |
+
<line num="184" type="stmt" count="9"/>
|
15815 |
+
<line num="193" type="method" name="get_info" visibility="public" complexity="1" crap="1" count="9"/>
|
15816 |
+
<line num="194" type="stmt" count="9"/>
|
15817 |
+
<line num="204" type="method" name="init" visibility="public" complexity="18" crap="20.41" count="9"/>
|
15818 |
+
<line num="206" type="stmt" count="9"/>
|
15819 |
+
<line num="207" type="stmt" count="9"/>
|
15820 |
+
<line num="208" type="stmt" count="9"/>
|
15821 |
+
<line num="210" type="stmt" count="9"/>
|
15822 |
+
<line num="211" type="stmt" count="9"/>
|
15823 |
+
<line num="214" type="stmt" count="9"/>
|
15824 |
+
<line num="215" type="stmt" count="9"/>
|
15825 |
+
<line num="216" type="stmt" count="0"/>
|
15826 |
+
<line num="217" type="stmt" count="0"/>
|
15827 |
+
<line num="218" type="stmt" count="9"/>
|
15828 |
+
<line num="220" type="stmt" count="9"/>
|
15829 |
+
<line num="222" type="stmt" count="9"/>
|
15830 |
+
<line num="224" type="stmt" count="9"/>
|
15831 |
+
<line num="225" type="stmt" count="1"/>
|
15832 |
+
<line num="226" type="stmt" count="1"/>
|
15833 |
+
<line num="228" type="stmt" count="9"/>
|
15834 |
+
<line num="230" type="stmt" count="9"/>
|
15835 |
+
<line num="232" type="stmt" count="9"/>
|
15836 |
+
<line num="238" type="stmt" count="9"/>
|
15837 |
+
<line num="239" type="stmt" count="9"/>
|
15838 |
+
<line num="241" type="stmt" count="9"/>
|
15839 |
+
<line num="242" type="stmt" count="9"/>
|
15840 |
+
<line num="243" type="stmt" count="9"/>
|
15841 |
+
<line num="250" type="stmt" count="9"/>
|
15842 |
+
<line num="252" type="stmt" count="9"/>
|
15843 |
+
<line num="263" type="stmt" count="9"/>
|
15844 |
+
<line num="264" type="stmt" count="0"/>
|
15845 |
+
<line num="265" type="stmt" count="0"/>
|
15846 |
+
<line num="266" type="stmt" count="0"/>
|
15847 |
+
<line num="270" type="stmt" count="9"/>
|
15848 |
+
<line num="272" type="stmt" count="0"/>
|
15849 |
+
<line num="274" type="stmt" count="0"/>
|
15850 |
+
<line num="275" type="stmt" count="0"/>
|
15851 |
+
<line num="277" type="stmt" count="0"/>
|
15852 |
+
<line num="285" type="stmt" count="9"/>
|
15853 |
+
<line num="286" type="stmt" count="9"/>
|
15854 |
+
<line num="287" type="stmt" count="9"/>
|
15855 |
+
<line num="288" type="stmt" count="9"/>
|
15856 |
+
<line num="289" type="stmt" count="9"/>
|
15857 |
+
<line num="290" type="stmt" count="9"/>
|
15858 |
+
<line num="291" type="stmt" count="9"/>
|
15859 |
+
<line num="292" type="stmt" count="9"/>
|
15860 |
+
<line num="293" type="stmt" count="9"/>
|
15861 |
+
<line num="294" type="stmt" count="9"/>
|
15862 |
+
<line num="295" type="stmt" count="9"/>
|
15863 |
+
<line num="297" type="stmt" count="9"/>
|
15864 |
+
<line num="298" type="stmt" count="9"/>
|
15865 |
+
<line num="299" type="stmt" count="9"/>
|
15866 |
+
<line num="300" type="stmt" count="9"/>
|
15867 |
+
<line num="302" type="stmt" count="9"/>
|
15868 |
+
<line num="303" type="stmt" count="9"/>
|
15869 |
+
<line num="304" type="stmt" count="9"/>
|
15870 |
+
<line num="305" type="stmt" count="9"/>
|
15871 |
+
<line num="306" type="stmt" count="9"/>
|
15872 |
+
<line num="307" type="stmt" count="9"/>
|
15873 |
+
<line num="308" type="stmt" count="9"/>
|
15874 |
+
<line num="309" type="stmt" count="9"/>
|
15875 |
+
<line num="310" type="stmt" count="9"/>
|
15876 |
+
<line num="311" type="stmt" count="9"/>
|
15877 |
+
<line num="312" type="stmt" count="9"/>
|
15878 |
+
<line num="313" type="stmt" count="9"/>
|
15879 |
+
<line num="314" type="stmt" count="9"/>
|
15880 |
+
<line num="317" type="stmt" count="9"/>
|
15881 |
+
<line num="318" type="stmt" count="0"/>
|
15882 |
+
<line num="319" type="stmt" count="9"/>
|
15883 |
+
<line num="320" type="stmt" count="0"/>
|
15884 |
+
<line num="321" type="stmt" count="0"/>
|
15885 |
+
<line num="322" type="stmt" count="9"/>
|
15886 |
+
<line num="323" type="stmt" count="0"/>
|
15887 |
+
<line num="324" type="stmt" count="9"/>
|
15888 |
+
<line num="325" type="stmt" count="0"/>
|
15889 |
+
<line num="326" type="stmt" count="0"/>
|
15890 |
+
<line num="327" type="stmt" count="9"/>
|
15891 |
+
<line num="331" type="stmt" count="9"/>
|
15892 |
+
<line num="332" type="stmt" count="9"/>
|
15893 |
+
<line num="333" type="stmt" count="9"/>
|
15894 |
+
<line num="334" type="stmt" count="0"/>
|
15895 |
+
<line num="338" type="stmt" count="9"/>
|
15896 |
+
<line num="339" type="stmt" count="9"/>
|
15897 |
+
<line num="340" type="stmt" count="9"/>
|
15898 |
+
<line num="342" type="stmt" count="9"/>
|
15899 |
+
<line num="343" type="stmt" count="9"/>
|
15900 |
+
<line num="351" type="method" name="is_archiving" visibility="public" complexity="1" crap="2" count="0"/>
|
15901 |
+
<line num="352" type="stmt" count="0"/>
|
15902 |
+
<line num="358" type="method" name="is_init_incomplete" visibility="public" complexity="2" crap="2" count="9"/>
|
15903 |
+
<line num="359" type="stmt" count="9"/>
|
15904 |
+
<line num="360" type="stmt" count="9"/>
|
15905 |
+
<line num="362" type="stmt" count="9"/>
|
15906 |
+
<line num="372" type="method" name="run" visibility="public" complexity="4" crap="4.05" count="9"/>
|
15907 |
+
<line num="374" type="stmt" count="9"/>
|
15908 |
+
<line num="375" type="stmt" count="0"/>
|
15909 |
+
<line num="376" type="stmt" count="0"/>
|
15910 |
+
<line num="377" type="stmt" count="9"/>
|
15911 |
+
<line num="380" type="stmt" count="9"/>
|
15912 |
+
<line num="381" type="stmt" count="9"/>
|
15913 |
+
<line num="382" type="stmt" count="9"/>
|
15914 |
+
<line num="383" type="stmt" count="9"/>
|
15915 |
+
<line num="384" type="stmt" count="9"/>
|
15916 |
+
<line num="385" type="stmt" count="9"/>
|
15917 |
+
<line num="386" type="stmt" count="1"/>
|
15918 |
+
<line num="388" type="stmt" count="9"/>
|
15919 |
+
<line num="390" type="stmt" count="9"/>
|
15920 |
+
<line num="392" type="stmt" count="9"/>
|
15921 |
+
<metrics loc="394" ncloc="191" classes="1" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="140" coveredstatements="117" elements="147" coveredelements="120"/>
|
15922 |
+
</file>
|
15923 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-authentication.php">
|
15924 |
<class name="Boldgrid_Backup_Authentication" namespace="global" fullPackage="Boldgrid.Backup">
|
15925 |
<metrics complexity="7" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="24" coveredstatements="0" elements="26" coveredelements="0"/>
|
16072 |
<line num="142" type="stmt" count="0"/>
|
16073 |
<metrics loc="143" ncloc="58" classes="1" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="39" coveredstatements="0" elements="44" coveredelements="0"/>
|
16074 |
</file>
|
16075 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup-restorer.php">
|
16076 |
+
<class name="Boldgrid_Backup_Restorer" namespace="global" fullPackage="Boldgrid.Backup">
|
16077 |
+
<metrics complexity="17" methods="13" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="58" coveredstatements="0" elements="71" coveredelements="0"/>
|
16078 |
+
</class>
|
16079 |
+
<line num="56" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
|
16080 |
+
<line num="57" type="stmt" count="0"/>
|
16081 |
+
<line num="58" type="stmt" count="0"/>
|
16082 |
+
<line num="65" type="method" name="complete" visibility="public" complexity="2" crap="6" count="0"/>
|
16083 |
+
<line num="67" type="stmt" count="0"/>
|
16084 |
+
<line num="68" type="stmt" count="0"/>
|
16085 |
+
<line num="70" type="stmt" count="0"/>
|
16086 |
+
<line num="71" type="stmt" count="0"/>
|
16087 |
+
<line num="72" type="stmt" count="0"/>
|
16088 |
+
<line num="75" type="stmt" count="0"/>
|
16089 |
+
<line num="76" type="stmt" count="0"/>
|
16090 |
+
<line num="85" type="method" name="get_error" visibility="private" complexity="2" crap="6" count="0"/>
|
16091 |
+
<line num="86" type="stmt" count="0"/>
|
16092 |
+
<line num="87" type="stmt" count="0"/>
|
16093 |
+
<line num="96" type="method" name="get_info" visibility="public" complexity="1" crap="2" count="0"/>
|
16094 |
+
<line num="97" type="stmt" count="0"/>
|
16095 |
+
<line num="98" type="stmt" count="0"/>
|
16096 |
+
<line num="107" type="method" name="has_error" visibility="private" complexity="1" crap="2" count="0"/>
|
16097 |
+
<line num="108" type="stmt" count="0"/>
|
16098 |
+
<line num="109" type="stmt" count="0"/>
|
16099 |
+
<line num="116" type="method" name="init" visibility="public" complexity="2" crap="6" count="0"/>
|
16100 |
+
<line num="118" type="stmt" count="0"/>
|
16101 |
+
<line num="119" type="stmt" count="0"/>
|
16102 |
+
<line num="120" type="stmt" count="0"/>
|
16103 |
+
<line num="127" type="stmt" count="0"/>
|
16104 |
+
<line num="128" type="stmt" count="0"/>
|
16105 |
+
<line num="129" type="stmt" count="0"/>
|
16106 |
+
<line num="130" type="stmt" count="0"/>
|
16107 |
+
<line num="131" type="stmt" count="0"/>
|
16108 |
+
<line num="132" type="stmt" count="0"/>
|
16109 |
+
<line num="133" type="stmt" count="0"/>
|
16110 |
+
<line num="134" type="stmt" count="0"/>
|
16111 |
+
<line num="143" type="method" name="restore_by_id" visibility="public" complexity="1" crap="2" count="0"/>
|
16112 |
+
<line num="144" type="stmt" count="0"/>
|
16113 |
+
<line num="146" type="stmt" count="0"/>
|
16114 |
+
<line num="147" type="stmt" count="0"/>
|
16115 |
+
<line num="157" type="method" name="restore_by_key" visibility="public" complexity="1" crap="2" count="0"/>
|
16116 |
+
<line num="158" type="stmt" count="0"/>
|
16117 |
+
<line num="159" type="stmt" count="0"/>
|
16118 |
+
<line num="160" type="stmt" count="0"/>
|
16119 |
+
<line num="161" type="stmt" count="0"/>
|
16120 |
+
<line num="163" type="stmt" count="0"/>
|
16121 |
+
<line num="164" type="stmt" count="0"/>
|
16122 |
+
<line num="173" type="method" name="restore_by_url" visibility="public" complexity="2" crap="6" count="0"/>
|
16123 |
+
<line num="175" type="stmt" count="0"/>
|
16124 |
+
<line num="176" type="stmt" count="0"/>
|
16125 |
+
<line num="179" type="stmt" count="0"/>
|
16126 |
+
<line num="180" type="stmt" count="0"/>
|
16127 |
+
<line num="181" type="stmt" count="0"/>
|
16128 |
+
<line num="182" type="stmt" count="0"/>
|
16129 |
+
<line num="185" type="stmt" count="0"/>
|
16130 |
+
<line num="186" type="stmt" count="0"/>
|
16131 |
+
<line num="187" type="stmt" count="0"/>
|
16132 |
+
<line num="197" type="method" name="run" visibility="public" complexity="1" crap="2" count="0"/>
|
16133 |
+
<line num="198" type="stmt" count="0"/>
|
16134 |
+
<line num="200" type="stmt" count="0"/>
|
16135 |
+
<line num="202" type="stmt" count="0"/>
|
16136 |
+
<line num="203" type="stmt" count="0"/>
|
16137 |
+
<line num="215" type="method" name="run_by_id" visibility="public" complexity="1" crap="2" count="0"/>
|
16138 |
+
<line num="216" type="stmt" count="0"/>
|
16139 |
+
<line num="218" type="stmt" count="0"/>
|
16140 |
+
<line num="220" type="stmt" count="0"/>
|
16141 |
+
<line num="221" type="stmt" count="0"/>
|
16142 |
+
<line num="233" type="method" name="run_by_url" visibility="public" complexity="1" crap="2" count="0"/>
|
16143 |
+
<line num="234" type="stmt" count="0"/>
|
16144 |
+
<line num="236" type="stmt" count="0"/>
|
16145 |
+
<line num="238" type="stmt" count="0"/>
|
16146 |
+
<line num="239" type="stmt" count="0"/>
|
16147 |
+
<line num="248" type="method" name="set_error" visibility="private" complexity="1" crap="2" count="0"/>
|
16148 |
+
<line num="249" type="stmt" count="0"/>
|
16149 |
+
<line num="250" type="stmt" count="0"/>
|
16150 |
+
<metrics loc="251" ncloc="96" classes="1" methods="13" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="58" coveredstatements="0" elements="71" coveredelements="0"/>
|
16151 |
+
</file>
|
16152 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup.php">
|
16153 |
<class name="Boldgrid_Backup" namespace="global" fullPackage="Boldgrid">
|
16154 |
+
<metrics complexity="19" methods="9" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="304" coveredstatements="0" elements="313" coveredelements="0"/>
|
16155 |
</class>
|
16156 |
<line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
|
16157 |
<line num="67" type="stmt" count="0"/>
|
16272 |
<line num="291" type="stmt" count="0"/>
|
16273 |
<line num="292" type="stmt" count="0"/>
|
16274 |
<line num="294" type="stmt" count="0"/>
|
16275 |
+
<line num="297" type="stmt" count="0"/>
|
16276 |
+
<line num="298" type="stmt" count="0"/>
|
16277 |
<line num="299" type="stmt" count="0"/>
|
16278 |
<line num="300" type="stmt" count="0"/>
|
16279 |
+
<line num="301" type="stmt" count="0"/>
|
16280 |
+
<line num="303" type="stmt" count="0"/>
|
16281 |
<line num="306" type="stmt" count="0"/>
|
16282 |
+
<line num="307" type="stmt" count="0"/>
|
16283 |
+
<line num="309" type="stmt" count="0"/>
|
16284 |
<line num="312" type="stmt" count="0"/>
|
16285 |
<line num="313" type="stmt" count="0"/>
|
16286 |
+
<line num="316" type="stmt" count="0"/>
|
16287 |
+
<line num="317" type="stmt" count="0"/>
|
16288 |
+
<line num="319" type="stmt" count="0"/>
|
16289 |
+
<line num="322" type="stmt" count="0"/>
|
16290 |
+
<line num="323" type="stmt" count="0"/>
|
16291 |
<line num="325" type="stmt" count="0"/>
|
|
|
16292 |
<line num="328" type="stmt" count="0"/>
|
16293 |
+
<line num="329" type="stmt" count="0"/>
|
16294 |
+
<line num="331" type="stmt" count="0"/>
|
16295 |
+
<line num="333" type="stmt" count="0"/>
|
16296 |
+
<line num="335" type="stmt" count="0"/>
|
16297 |
+
<line num="342" type="stmt" count="0"/>
|
16298 |
<line num="343" type="stmt" count="0"/>
|
16299 |
+
<line num="344" type="stmt" count="0"/>
|
16300 |
+
<line num="345" type="stmt" count="0"/>
|
16301 |
<line num="346" type="stmt" count="0"/>
|
16302 |
<line num="347" type="stmt" count="0"/>
|
16303 |
<line num="348" type="stmt" count="0"/>
|
16304 |
+
<line num="349" type="stmt" count="0"/>
|
16305 |
<line num="350" type="stmt" count="0"/>
|
16306 |
<line num="351" type="stmt" count="0"/>
|
16307 |
<line num="352" type="stmt" count="0"/>
|
16308 |
+
<line num="353" type="stmt" count="0"/>
|
16309 |
<line num="355" type="stmt" count="0"/>
|
16310 |
<line num="356" type="stmt" count="0"/>
|
16311 |
+
<line num="367" type="method" name="set_locale" visibility="private" complexity="1" crap="2" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16312 |
<line num="368" type="stmt" count="0"/>
|
|
|
16313 |
<line num="370" type="stmt" count="0"/>
|
16314 |
+
<line num="371" type="stmt" count="0"/>
|
16315 |
+
<line num="379" type="method" name="define_admin_hooks" visibility="private" complexity="7" crap="56" count="0"/>
|
|
|
|
|
|
|
|
|
16316 |
<line num="381" type="stmt" count="0"/>
|
16317 |
+
<line num="383" type="stmt" count="0"/>
|
|
|
16318 |
<line num="386" type="stmt" count="0"/>
|
16319 |
<line num="387" type="stmt" count="0"/>
|
16320 |
+
<line num="390" type="stmt" count="0"/>
|
16321 |
<line num="391" type="stmt" count="0"/>
|
16322 |
<line num="392" type="stmt" count="0"/>
|
|
|
16323 |
<line num="394" type="stmt" count="0"/>
|
16324 |
+
<line num="395" type="stmt" count="0"/>
|
16325 |
+
<line num="396" type="stmt" count="0"/>
|
16326 |
<line num="399" type="stmt" count="0"/>
|
16327 |
<line num="400" type="stmt" count="0"/>
|
16328 |
+
<line num="401" type="stmt" count="0"/>
|
16329 |
+
<line num="402" type="stmt" count="0"/>
|
16330 |
<line num="405" type="stmt" count="0"/>
|
16331 |
<line num="406" type="stmt" count="0"/>
|
16332 |
+
<line num="407" type="stmt" count="0"/>
|
16333 |
<line num="408" type="stmt" count="0"/>
|
|
|
16334 |
<line num="410" type="stmt" count="0"/>
|
16335 |
+
<line num="411" type="stmt" count="0"/>
|
16336 |
+
<line num="412" type="stmt" count="0"/>
|
16337 |
<line num="413" type="stmt" count="0"/>
|
16338 |
<line num="414" type="stmt" count="0"/>
|
16339 |
+
<line num="417" type="stmt" count="0"/>
|
16340 |
+
<line num="418" type="stmt" count="0"/>
|
16341 |
<line num="419" type="stmt" count="0"/>
|
16342 |
<line num="420" type="stmt" count="0"/>
|
16343 |
+
<line num="423" type="stmt" count="0"/>
|
|
|
16344 |
<line num="424" type="stmt" count="0"/>
|
16345 |
<line num="425" type="stmt" count="0"/>
|
16346 |
<line num="426" type="stmt" count="0"/>
|
|
|
|
|
16347 |
<line num="429" type="stmt" count="0"/>
|
16348 |
+
<line num="430" type="stmt" count="0"/>
|
16349 |
<line num="431" type="stmt" count="0"/>
|
16350 |
+
<line num="432" type="stmt" count="0"/>
|
16351 |
<line num="435" type="stmt" count="0"/>
|
16352 |
+
<line num="436" type="stmt" count="0"/>
|
16353 |
<line num="437" type="stmt" count="0"/>
|
16354 |
<line num="438" type="stmt" count="0"/>
|
|
|
16355 |
<line num="441" type="stmt" count="0"/>
|
16356 |
<line num="442" type="stmt" count="0"/>
|
16357 |
+
<line num="443" type="stmt" count="0"/>
|
16358 |
<line num="444" type="stmt" count="0"/>
|
16359 |
+
<line num="447" type="stmt" count="0"/>
|
16360 |
<line num="448" type="stmt" count="0"/>
|
16361 |
+
<line num="449" type="stmt" count="0"/>
|
16362 |
<line num="450" type="stmt" count="0"/>
|
16363 |
<line num="452" type="stmt" count="0"/>
|
16364 |
<line num="453" type="stmt" count="0"/>
|
16365 |
<line num="454" type="stmt" count="0"/>
|
16366 |
+
<line num="457" type="stmt" count="0"/>
|
16367 |
<line num="458" type="stmt" count="0"/>
|
16368 |
<line num="459" type="stmt" count="0"/>
|
16369 |
<line num="460" type="stmt" count="0"/>
|
|
|
16370 |
<line num="463" type="stmt" count="0"/>
|
16371 |
+
<line num="464" type="stmt" count="0"/>
|
16372 |
<line num="465" type="stmt" count="0"/>
|
16373 |
+
<line num="466" type="stmt" count="0"/>
|
16374 |
+
<line num="468" type="stmt" count="0"/>
|
16375 |
<line num="469" type="stmt" count="0"/>
|
16376 |
+
<line num="470" type="stmt" count="0"/>
|
16377 |
<line num="471" type="stmt" count="0"/>
|
16378 |
+
<line num="472" type="stmt" count="0"/>
|
16379 |
<line num="473" type="stmt" count="0"/>
|
16380 |
+
<line num="475" type="stmt" count="0"/>
|
16381 |
+
<line num="477" type="stmt" count="0"/>
|
16382 |
+
<line num="479" type="stmt" count="0"/>
|
16383 |
+
<line num="481" type="stmt" count="0"/>
|
16384 |
<line num="482" type="stmt" count="0"/>
|
16385 |
+
<line num="483" type="stmt" count="0"/>
|
16386 |
+
<line num="485" type="stmt" count="0"/>
|
16387 |
<line num="486" type="stmt" count="0"/>
|
16388 |
<line num="488" type="stmt" count="0"/>
|
16389 |
<line num="490" type="stmt" count="0"/>
|
16390 |
<line num="492" type="stmt" count="0"/>
|
16391 |
+
<line num="494" type="stmt" count="0"/>
|
|
|
16392 |
<line num="496" type="stmt" count="0"/>
|
16393 |
+
<line num="497" type="stmt" count="0"/>
|
16394 |
<line num="498" type="stmt" count="0"/>
|
16395 |
<line num="500" type="stmt" count="0"/>
|
|
|
16396 |
<line num="502" type="stmt" count="0"/>
|
16397 |
+
<line num="503" type="stmt" count="0"/>
|
16398 |
<line num="504" type="stmt" count="0"/>
|
16399 |
+
<line num="505" type="stmt" count="0"/>
|
16400 |
<line num="507" type="stmt" count="0"/>
|
16401 |
+
<line num="509" type="stmt" count="0"/>
|
16402 |
<line num="511" type="stmt" count="0"/>
|
16403 |
+
<line num="513" type="stmt" count="0"/>
|
16404 |
<line num="515" type="stmt" count="0"/>
|
16405 |
+
<line num="517" type="stmt" count="0"/>
|
|
|
16406 |
<line num="522" type="stmt" count="0"/>
|
16407 |
+
<line num="524" type="stmt" count="0"/>
|
16408 |
+
<line num="526" type="stmt" count="0"/>
|
16409 |
<line num="528" type="stmt" count="0"/>
|
16410 |
<line num="530" type="stmt" count="0"/>
|
16411 |
<line num="532" type="stmt" count="0"/>
|
16412 |
<line num="534" type="stmt" count="0"/>
|
16413 |
<line num="536" type="stmt" count="0"/>
|
16414 |
+
<line num="537" type="stmt" count="0"/>
|
16415 |
<line num="539" type="stmt" count="0"/>
|
16416 |
<line num="540" type="stmt" count="0"/>
|
|
|
16417 |
<line num="542" type="stmt" count="0"/>
|
|
|
16418 |
<line num="544" type="stmt" count="0"/>
|
16419 |
+
<line num="545" type="stmt" count="0"/>
|
16420 |
+
<line num="546" type="stmt" count="0"/>
|
16421 |
+
<line num="548" type="stmt" count="0"/>
|
16422 |
<line num="550" type="stmt" count="0"/>
|
16423 |
<line num="551" type="stmt" count="0"/>
|
16424 |
+
<line num="554" type="stmt" count="0"/>
|
16425 |
<line num="555" type="stmt" count="0"/>
|
16426 |
<line num="556" type="stmt" count="0"/>
|
16427 |
<line num="557" type="stmt" count="0"/>
|
|
|
|
|
16428 |
<line num="560" type="stmt" count="0"/>
|
16429 |
+
<line num="561" type="stmt" count="0"/>
|
16430 |
<line num="564" type="stmt" count="0"/>
|
16431 |
+
<line num="567" type="stmt" count="0"/>
|
16432 |
+
<line num="570" type="stmt" count="0"/>
|
16433 |
+
<line num="573" type="stmt" count="0"/>
|
16434 |
<line num="575" type="stmt" count="0"/>
|
|
|
16435 |
<line num="577" type="stmt" count="0"/>
|
16436 |
<line num="579" type="stmt" count="0"/>
|
16437 |
+
<line num="581" type="stmt" count="0"/>
|
16438 |
+
<line num="584" type="stmt" count="0"/>
|
16439 |
+
<line num="585" type="stmt" count="0"/>
|
16440 |
+
<line num="586" type="stmt" count="0"/>
|
16441 |
+
<line num="587" type="stmt" count="0"/>
|
16442 |
+
<line num="588" type="stmt" count="0"/>
|
16443 |
+
<line num="589" type="stmt" count="0"/>
|
16444 |
<line num="592" type="stmt" count="0"/>
|
16445 |
+
<line num="595" type="stmt" count="0"/>
|
16446 |
+
<line num="596" type="stmt" count="0"/>
|
16447 |
+
<line num="599" type="method" name="anonymous function" complexity="1" crap="2" count="0"/>
|
16448 |
+
<line num="600" type="stmt" count="0"/>
|
16449 |
+
<line num="601" type="stmt" count="0"/>
|
16450 |
<line num="603" type="stmt" count="0"/>
|
16451 |
+
<line num="604" type="stmt" count="0"/>
|
16452 |
+
<line num="606" type="stmt" count="0"/>
|
16453 |
+
<line num="607" type="stmt" count="0"/>
|
16454 |
+
<line num="609" type="stmt" count="0"/>
|
16455 |
+
<line num="610" type="stmt" count="0"/>
|
16456 |
+
<line num="611" type="stmt" count="0"/>
|
16457 |
<line num="613" type="stmt" count="0"/>
|
16458 |
+
<line num="615" type="stmt" count="0"/>
|
16459 |
+
<line num="616" type="stmt" count="0"/>
|
16460 |
+
<line num="617" type="stmt" count="0"/>
|
16461 |
+
<line num="618" type="stmt" count="0"/>
|
16462 |
+
<line num="619" type="stmt" count="0"/>
|
16463 |
+
<line num="620" type="stmt" count="0"/>
|
16464 |
<line num="623" type="stmt" count="0"/>
|
16465 |
+
<line num="624" type="stmt" count="0"/>
|
16466 |
+
<line num="625" type="stmt" count="0"/>
|
16467 |
+
<line num="628" type="stmt" count="0"/>
|
16468 |
+
<line num="635" type="stmt" count="0"/>
|
16469 |
+
<line num="636" type="stmt" count="0"/>
|
16470 |
+
<line num="637" type="stmt" count="0"/>
|
16471 |
+
<line num="639" type="stmt" count="0"/>
|
16472 |
+
<line num="640" type="stmt" count="0"/>
|
16473 |
+
<line num="642" type="stmt" count="0"/>
|
16474 |
+
<line num="649" type="stmt" count="0"/>
|
16475 |
+
<line num="650" type="stmt" count="0"/>
|
16476 |
+
<line num="651" type="stmt" count="0"/>
|
16477 |
+
<line num="652" type="stmt" count="0"/>
|
16478 |
+
<line num="659" type="method" name="run" visibility="public" complexity="1" crap="2" count="0"/>
|
16479 |
+
<line num="660" type="stmt" count="0"/>
|
16480 |
+
<line num="661" type="stmt" count="0"/>
|
16481 |
+
<line num="670" type="method" name="get_plugin_name" visibility="public" complexity="1" crap="2" count="0"/>
|
16482 |
+
<line num="671" type="stmt" count="0"/>
|
16483 |
+
<line num="672" type="stmt" count="0"/>
|
16484 |
+
<line num="680" type="method" name="get_loader" visibility="public" complexity="1" crap="2" count="0"/>
|
16485 |
+
<line num="681" type="stmt" count="0"/>
|
16486 |
+
<line num="682" type="stmt" count="0"/>
|
16487 |
+
<line num="690" type="method" name="get_version" visibility="public" complexity="1" crap="2" count="0"/>
|
16488 |
+
<line num="691" type="stmt" count="0"/>
|
16489 |
+
<line num="692" type="stmt" count="0"/>
|
16490 |
+
<metrics loc="693" ncloc="433" classes="1" methods="9" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="325" coveredstatements="0" elements="334" coveredelements="0"/>
|
16491 |
</file>
|
16492 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.cron.php">
|
16493 |
+
<line num="17" type="stmt" count="1"/>
|
16494 |
<line num="18" type="stmt" count="0"/>
|
16495 |
<line num="19" type="stmt" count="0"/>
|
16496 |
<line num="20" type="stmt" count="0"/>
|
16497 |
+
<line num="23" type="stmt" count="1"/>
|
16498 |
+
<line num="32" type="stmt" count="1"/>
|
16499 |
+
<line num="40" type="stmt" count="1"/>
|
16500 |
+
<line num="41" type="stmt" count="1"/>
|
16501 |
+
<line num="42" type="stmt" count="1"/>
|
16502 |
+
<line num="44" type="stmt" count="1"/>
|
16503 |
+
<line num="45" type="stmt" count="1"/>
|
16504 |
+
<line num="46" type="stmt" count="1"/>
|
16505 |
+
<line num="47" type="stmt" count="1"/>
|
16506 |
+
<line num="51" type="stmt" count="1"/>
|
16507 |
+
<line num="52" type="stmt" count="1"/>
|
16508 |
+
<line num="53" type="stmt" count="1"/>
|
16509 |
+
<line num="55" type="stmt" count="1"/>
|
16510 |
+
<line num="56" type="stmt" count="1"/>
|
16511 |
+
<line num="57" type="stmt" count="1"/>
|
16512 |
+
<line num="58" type="stmt" count="1"/>
|
16513 |
+
<line num="60" type="stmt" count="1"/>
|
16514 |
+
<line num="62" type="stmt" count="1"/>
|
16515 |
+
<metrics loc="62" ncloc="36" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="22" coveredstatements="19" elements="22" coveredelements="19"/>
|
|
|
|
|
16516 |
</file>
|
16517 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.plugin.php">
|
16518 |
<line num="17" type="stmt" count="1"/>
|
16694 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/index.php">
|
16695 |
<metrics loc="8" ncloc="1" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
|
16696 |
</file>
|
16697 |
+
<package name="Boldgrid\Backup\V2\Archiver">
|
16698 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/archiver/class-archiver.php">
|
16699 |
+
<class name="Archiver" namespace="Boldgrid\Backup\V2\Archiver">
|
16700 |
+
<metrics complexity="5" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="34" coveredstatements="33" elements="35" coveredelements="33"/>
|
16701 |
+
</class>
|
16702 |
+
<line num="33" type="method" name="run" visibility="public" complexity="5" crap="5" count="1"/>
|
16703 |
+
<line num="34" type="stmt" count="1"/>
|
16704 |
+
<line num="36" type="stmt" count="1"/>
|
16705 |
+
<line num="39" type="stmt" count="1"/>
|
16706 |
+
<line num="40" type="stmt" count="1"/>
|
16707 |
+
<line num="41" type="stmt" count="1"/>
|
16708 |
+
<line num="42" type="stmt" count="1"/>
|
16709 |
+
<line num="44" type="stmt" count="1"/>
|
16710 |
+
<line num="46" type="stmt" count="1"/>
|
16711 |
+
<line num="47" type="stmt" count="1"/>
|
16712 |
+
<line num="48" type="stmt" count="1"/>
|
16713 |
+
<line num="49" type="stmt" count="1"/>
|
16714 |
+
<line num="52" type="stmt" count="1"/>
|
16715 |
+
<line num="53" type="stmt" count="1"/>
|
16716 |
+
<line num="54" type="stmt" count="1"/>
|
16717 |
+
<line num="56" type="stmt" count="1"/>
|
16718 |
+
<line num="58" type="stmt" count="1"/>
|
16719 |
+
<line num="59" type="stmt" count="1"/>
|
16720 |
+
<line num="60" type="stmt" count="1"/>
|
16721 |
+
<line num="62" type="stmt" count="1"/>
|
16722 |
+
<line num="64" type="stmt" count="1"/>
|
16723 |
+
<line num="65" type="stmt" count="1"/>
|
16724 |
+
<line num="67" type="stmt" count="1"/>
|
16725 |
+
<line num="68" type="stmt" count="1"/>
|
16726 |
+
<line num="70" type="stmt" count="1"/>
|
16727 |
+
<line num="71" type="stmt" count="1"/>
|
16728 |
+
<line num="73" type="stmt" count="1"/>
|
16729 |
+
<line num="74" type="stmt" count="1"/>
|
16730 |
+
<line num="76" type="stmt" count="1"/>
|
16731 |
+
<line num="78" type="stmt" count="0"/>
|
16732 |
+
<line num="80" type="stmt" count="1"/>
|
16733 |
+
<line num="81" type="stmt" count="1"/>
|
16734 |
+
<line num="83" type="stmt" count="1"/>
|
16735 |
+
<line num="85" type="stmt" count="1"/>
|
16736 |
+
<line num="86" type="stmt" count="1"/>
|
16737 |
+
<metrics loc="87" ncloc="61" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="34" coveredstatements="33" elements="35" coveredelements="33"/>
|
16738 |
+
</file>
|
16739 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/archiver/class-factory.php">
|
16740 |
+
<class name="Factory" namespace="Boldgrid\Backup\V2\Archiver">
|
16741 |
+
<metrics complexity="4" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="16" coveredstatements="16" elements="17" coveredelements="17"/>
|
16742 |
+
</class>
|
16743 |
+
<line num="25" type="method" name="run" visibility="public" complexity="4" crap="4" count="1"/>
|
16744 |
+
<line num="26" type="stmt" count="1"/>
|
16745 |
+
<line num="29" type="stmt" count="1"/>
|
16746 |
+
<line num="30" type="stmt" count="1"/>
|
16747 |
+
<line num="31" type="stmt" count="1"/>
|
16748 |
+
<line num="33" type="stmt" count="1"/>
|
16749 |
+
<line num="36" type="stmt" count="1"/>
|
16750 |
+
<line num="37" type="stmt" count="1"/>
|
16751 |
+
<line num="38" type="stmt" count="1"/>
|
16752 |
+
<line num="39" type="stmt" count="1"/>
|
16753 |
+
<line num="42" type="stmt" count="1"/>
|
16754 |
+
<line num="43" type="stmt" count="1"/>
|
16755 |
+
<line num="44" type="stmt" count="1"/>
|
16756 |
+
<line num="45" type="stmt" count="1"/>
|
16757 |
+
<line num="47" type="stmt" count="1"/>
|
16758 |
+
<line num="48" type="stmt" count="1"/>
|
16759 |
+
<line num="50" type="stmt" count="1"/>
|
16760 |
+
<metrics loc="52" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="16" coveredstatements="16" elements="17" coveredelements="17"/>
|
16761 |
+
</file>
|
16762 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/archiver/class-resumer.php">
|
16763 |
+
<class name="Resumer" namespace="Boldgrid\Backup\V2\Archiver">
|
16764 |
+
<metrics complexity="10" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="21" elements="41" coveredelements="26"/>
|
16765 |
+
</class>
|
16766 |
+
<line num="27" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="1"/>
|
16767 |
+
<line num="28" type="stmt" count="1"/>
|
16768 |
+
<line num="29" type="stmt" count="1"/>
|
16769 |
+
<line num="34" type="method" name="add_cron_command" visibility="private" complexity="1" crap="1" count="1"/>
|
16770 |
+
<line num="35" type="stmt" count="1"/>
|
16771 |
+
<line num="37" type="stmt" count="1"/>
|
16772 |
+
<line num="43" type="method" name="get_cron_command" visibility="private" complexity="1" crap="1" count="1"/>
|
16773 |
+
<line num="45" type="stmt" count="1"/>
|
16774 |
+
<line num="46" type="stmt" count="1"/>
|
16775 |
+
<line num="47" type="stmt" count="1"/>
|
16776 |
+
<line num="48" type="stmt" count="1"/>
|
16777 |
+
<line num="49" type="stmt" count="1"/>
|
16778 |
+
<line num="50" type="stmt" count="1"/>
|
16779 |
+
<line num="51" type="stmt" count="1"/>
|
16780 |
+
<line num="52" type="stmt" count="1"/>
|
16781 |
+
<line num="54" type="stmt" count="1"/>
|
16782 |
+
<line num="60" type="method" name="maybe_add_cron" visibility="public" complexity="2" crap="2" count="1"/>
|
16783 |
+
<line num="61" type="stmt" count="1"/>
|
16784 |
+
<line num="62" type="stmt" count="1"/>
|
16785 |
+
<line num="64" type="stmt" count="1"/>
|
16786 |
+
<line num="65" type="stmt" count="1"/>
|
16787 |
+
<line num="66" type="stmt" count="1"/>
|
16788 |
+
<line num="67" type="stmt" count="1"/>
|
16789 |
+
<line num="72" type="method" name="remove_cron" visibility="public" complexity="1" crap="1" count="1"/>
|
16790 |
+
<line num="73" type="stmt" count="1"/>
|
16791 |
+
<line num="75" type="stmt" count="1"/>
|
16792 |
+
<line num="81" type="method" name="run" visibility="public" complexity="3" crap="12" count="0"/>
|
16793 |
+
<line num="82" type="stmt" count="0"/>
|
16794 |
+
<line num="84" type="stmt" count="0"/>
|
16795 |
+
<line num="85" type="stmt" count="0"/>
|
16796 |
+
<line num="86" type="stmt" count="0"/>
|
16797 |
+
<line num="87" type="stmt" count="0"/>
|
16798 |
+
<line num="88" type="stmt" count="0"/>
|
16799 |
+
<line num="89" type="stmt" count="0"/>
|
16800 |
+
<line num="90" type="stmt" count="0"/>
|
16801 |
+
<line num="91" type="stmt" count="0"/>
|
16802 |
+
<line num="92" type="stmt" count="0"/>
|
16803 |
+
<line num="94" type="stmt" count="0"/>
|
16804 |
+
<line num="95" type="stmt" count="0"/>
|
16805 |
+
<line num="96" type="stmt" count="0"/>
|
16806 |
+
<line num="98" type="stmt" count="0"/>
|
16807 |
+
<metrics loc="99" ncloc="57" classes="1" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="21" elements="41" coveredelements="26"/>
|
16808 |
+
</file>
|
16809 |
+
</package>
|
16810 |
+
<package name="Boldgrid\Backup\V2\Archiver\Steps\Archive_Files">
|
16811 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/archiver/steps/archive_files/class-part.php">
|
16812 |
+
<class name="Part" namespace="Boldgrid\Backup\V2\Archiver\Steps\Archive_Files">
|
16813 |
+
<metrics complexity="12" methods="10" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="32" coveredstatements="30" elements="42" coveredelements="38"/>
|
16814 |
+
</class>
|
16815 |
+
<line num="95" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
|
16816 |
+
<line num="96" type="stmt" count="1"/>
|
16817 |
+
<line num="97" type="stmt" count="1"/>
|
16818 |
+
<line num="98" type="stmt" count="1"/>
|
16819 |
+
<line num="100" type="stmt" count="1"/>
|
16820 |
+
<line num="101" type="stmt" count="1"/>
|
16821 |
+
<line num="102" type="stmt" count="1"/>
|
16822 |
+
<line num="115" type="method" name="add_batch" visibility="public" complexity="3" crap="3" count="1"/>
|
16823 |
+
<line num="116" type="stmt" count="1"/>
|
16824 |
+
<line num="117" type="stmt" count="1"/>
|
16825 |
+
<line num="119" type="stmt" count="1"/>
|
16826 |
+
<line num="121" type="stmt" count="1"/>
|
16827 |
+
<line num="123" type="stmt" count="1"/>
|
16828 |
+
<line num="127" type="stmt" count="1"/>
|
16829 |
+
<line num="129" type="stmt" count="1"/>
|
16830 |
+
<line num="131" type="stmt" count="1"/>
|
16831 |
+
<line num="141" type="method" name="complete" visibility="public" complexity="1" crap="1" count="1"/>
|
16832 |
+
<line num="142" type="stmt" count="1"/>
|
16833 |
+
<line num="143" type="stmt" count="1"/>
|
16834 |
+
<line num="144" type="stmt" count="1"/>
|
16835 |
+
<line num="153" type="method" name="get_max_size" visibility="public" complexity="1" crap="2" count="0"/>
|
16836 |
+
<line num="154" type="stmt" count="0"/>
|
16837 |
+
<line num="164" type="method" name="get_number" visibility="public" complexity="1" crap="2" count="0"/>
|
16838 |
+
<line num="165" type="stmt" count="0"/>
|
16839 |
+
<line num="177" type="method" name="get_remaining_size" visibility="public" complexity="1" crap="1" count="1"/>
|
16840 |
+
<line num="178" type="stmt" count="1"/>
|
16841 |
+
<line num="188" type="method" name="get_size" visibility="public" complexity="1" crap="1" count="1"/>
|
16842 |
+
<line num="190" type="stmt" count="1"/>
|
16843 |
+
<line num="192" type="stmt" count="1"/>
|
16844 |
+
<line num="204" type="method" name="is_empty" visibility="public" complexity="1" crap="1" count="1"/>
|
16845 |
+
<line num="205" type="stmt" count="1"/>
|
16846 |
+
<line num="207" type="stmt" count="1"/>
|
16847 |
+
<line num="213" type="method" name="set_configs" visibility="public" complexity="1" crap="1" count="1"/>
|
16848 |
+
<line num="215" type="stmt" count="1"/>
|
16849 |
+
<line num="216" type="stmt" count="1"/>
|
16850 |
+
<line num="218" type="stmt" count="1"/>
|
16851 |
+
<line num="219" type="stmt" count="1"/>
|
16852 |
+
<line num="233" type="method" name="set_key" visibility="public" complexity="1" crap="1" count="1"/>
|
16853 |
+
<line num="234" type="stmt" count="1"/>
|
16854 |
+
<line num="236" type="stmt" count="1"/>
|
16855 |
+
<line num="238" type="stmt" count="1"/>
|
16856 |
+
<line num="239" type="stmt" count="1"/>
|
16857 |
+
<metrics loc="240" ncloc="87" classes="1" methods="10" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="32" coveredstatements="30" elements="42" coveredelements="38"/>
|
16858 |
+
</file>
|
16859 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/archiver/steps/archive_files/class-parts.php">
|
16860 |
+
<class name="Parts" namespace="Boldgrid\Backup\V2\Archiver\Steps\Archive_Files">
|
16861 |
+
<metrics complexity="5" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="6" elements="14" coveredelements="7"/>
|
16862 |
+
</class>
|
16863 |
+
<line num="38" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
|
16864 |
+
<line num="39" type="stmt" count="1"/>
|
16865 |
+
<line num="40" type="stmt" count="1"/>
|
16866 |
+
<line num="49" type="method" name="get_next" visibility="public" complexity="4" crap="7.46" count="1"/>
|
16867 |
+
<line num="50" type="stmt" count="1"/>
|
16868 |
+
<line num="52" type="stmt" count="1"/>
|
16869 |
+
<line num="54" type="stmt" count="1"/>
|
16870 |
+
<line num="55" type="stmt" count="0"/>
|
16871 |
+
<line num="57" type="stmt" count="0"/>
|
16872 |
+
<line num="58" type="stmt" count="0"/>
|
16873 |
+
<line num="59" type="stmt" count="0"/>
|
16874 |
+
<line num="60" type="stmt" count="0"/>
|
16875 |
+
<line num="61" type="stmt" count="0"/>
|
16876 |
+
<line num="63" type="stmt" count="1"/>
|
16877 |
+
<metrics loc="65" ncloc="26" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="6" elements="14" coveredelements="7"/>
|
16878 |
+
</file>
|
16879 |
+
</package>
|
16880 |
+
<package name="Boldgrid\Backup\V2\Archiver\Steps">
|
16881 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/archiver/steps/class-archive-database.php">
|
16882 |
+
<class name="Archive_Database" namespace="Boldgrid\Backup\V2\Archiver\Steps" fullPackage="Archive">
|
16883 |
+
<metrics complexity="10" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="47" elements="61" coveredelements="51"/>
|
16884 |
+
</class>
|
16885 |
+
<line num="36" type="method" name="add_to_filelist" visibility="private" complexity="1" crap="1" count="1"/>
|
16886 |
+
<line num="37" type="stmt" count="1"/>
|
16887 |
+
<line num="41" type="stmt" count="1"/>
|
16888 |
+
<line num="42" type="stmt" count="1"/>
|
16889 |
+
<line num="43" type="stmt" count="1"/>
|
16890 |
+
<line num="44" type="stmt" count="1"/>
|
16891 |
+
<line num="45" type="stmt" count="1"/>
|
16892 |
+
<line num="47" type="stmt" count="1"/>
|
16893 |
+
<line num="48" type="stmt" count="1"/>
|
16894 |
+
<line num="57" type="method" name="dump" visibility="private" complexity="5" crap="5.56" count="1"/>
|
16895 |
+
<line num="58" type="stmt" count="1"/>
|
16896 |
+
<line num="60" type="stmt" count="1"/>
|
16897 |
+
<line num="61" type="stmt" count="1"/>
|
16898 |
+
<line num="63" type="stmt" count="1"/>
|
16899 |
+
<line num="64" type="stmt" count="1"/>
|
16900 |
+
<line num="65" type="stmt" count="1"/>
|
16901 |
+
<line num="68" type="stmt" count="1"/>
|
16902 |
+
<line num="69" type="stmt" count="1"/>
|
16903 |
+
<line num="70" type="stmt" count="1"/>
|
16904 |
+
<line num="71" type="stmt" count="1"/>
|
16905 |
+
<line num="72" type="stmt" count="1"/>
|
16906 |
+
<line num="84" type="stmt" count="1"/>
|
16907 |
+
<line num="85" type="stmt" count="1"/>
|
16908 |
+
<line num="86" type="stmt" count="1"/>
|
16909 |
+
<line num="88" type="stmt" count="1"/>
|
16910 |
+
<line num="89" type="stmt" count="0"/>
|
16911 |
+
<line num="90" type="stmt" count="0"/>
|
16912 |
+
<line num="91" type="stmt" count="0"/>
|
16913 |
+
<line num="93" type="stmt" count="0"/>
|
16914 |
+
<line num="94" type="stmt" count="0"/>
|
16915 |
+
<line num="96" type="stmt" count="0"/>
|
16916 |
+
<line num="97" type="stmt" count="0"/>
|
16917 |
+
<line num="99" type="stmt" count="0"/>
|
16918 |
+
<line num="102" type="stmt" count="1"/>
|
16919 |
+
<line num="103" type="stmt" count="1"/>
|
16920 |
+
<line num="104" type="stmt" count="1"/>
|
16921 |
+
<line num="105" type="stmt" count="1"/>
|
16922 |
+
<line num="107" type="stmt" count="1"/>
|
16923 |
+
<line num="108" type="stmt" count="1"/>
|
16924 |
+
<line num="109" type="stmt" count="1"/>
|
16925 |
+
<line num="110" type="stmt" count="0"/>
|
16926 |
+
<line num="113" type="stmt" count="1"/>
|
16927 |
+
<line num="121" type="method" name="run" visibility="public" complexity="2" crap="2" count="1"/>
|
16928 |
+
<line num="122" type="stmt" count="1"/>
|
16929 |
+
<line num="124" type="stmt" count="1"/>
|
16930 |
+
<line num="125" type="stmt" count="1"/>
|
16931 |
+
<line num="127" type="stmt" count="1"/>
|
16932 |
+
<line num="129" type="stmt" count="1"/>
|
16933 |
+
<line num="131" type="stmt" count="1"/>
|
16934 |
+
<line num="133" type="stmt" count="1"/>
|
16935 |
+
<line num="135" type="stmt" count="1"/>
|
16936 |
+
<line num="136" type="stmt" count="1"/>
|
16937 |
+
<line num="137" type="stmt" count="1"/>
|
16938 |
+
<line num="139" type="stmt" count="1"/>
|
16939 |
+
<line num="147" type="method" name="post" visibility="private" complexity="1" crap="1" count="1"/>
|
16940 |
+
<line num="148" type="stmt" count="1"/>
|
16941 |
+
<line num="155" type="stmt" count="1"/>
|
16942 |
+
<line num="156" type="stmt" count="1"/>
|
16943 |
+
<line num="163" type="method" name="pre" visibility="private" complexity="1" crap="1" count="1"/>
|
16944 |
+
<line num="169" type="stmt" count="1"/>
|
16945 |
+
<line num="170" type="stmt" count="1"/>
|
16946 |
+
<metrics loc="171" ncloc="103" classes="1" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="47" elements="61" coveredelements="51"/>
|
16947 |
+
</file>
|
16948 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/archiver/steps/class-archive-files.php">
|
16949 |
+
<class name="Archive_Files" namespace="Boldgrid\Backup\V2\Archiver\Steps" fullPackage="Archive">
|
16950 |
+
<metrics complexity="26" methods="6" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="75" elements="98" coveredelements="79"/>
|
16951 |
+
</class>
|
16952 |
+
<line num="83" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
|
16953 |
+
<line num="84" type="stmt" count="1"/>
|
16954 |
+
<line num="86" type="stmt" count="1"/>
|
16955 |
+
<line num="87" type="stmt" count="1"/>
|
16956 |
+
<line num="100" type="method" name="get_next_batch" visibility="private" complexity="13" crap="14.35" count="1"/>
|
16957 |
+
<line num="102" type="stmt" count="1"/>
|
16958 |
+
<line num="104" type="stmt" count="1"/>
|
16959 |
+
<line num="106" type="stmt" count="1"/>
|
16960 |
+
<line num="108" type="stmt" count="1"/>
|
16961 |
+
<line num="110" type="stmt" count="1"/>
|
16962 |
+
<line num="111" type="stmt" count="1"/>
|
16963 |
+
<line num="112" type="stmt" count="1"/>
|
16964 |
+
<line num="115" type="stmt" count="1"/>
|
16965 |
+
<line num="116" type="stmt" count="1"/>
|
16966 |
+
<line num="117" type="stmt" count="1"/>
|
16967 |
+
<line num="120" type="stmt" count="1"/>
|
16968 |
+
<line num="121" type="stmt" count="0"/>
|
16969 |
+
<line num="122" type="stmt" count="0"/>
|
16970 |
+
<line num="125" type="stmt" count="0"/>
|
16971 |
+
<line num="126" type="stmt" count="0"/>
|
16972 |
+
<line num="127" type="stmt" count="0"/>
|
16973 |
+
<line num="128" type="stmt" count="0"/>
|
16974 |
+
<line num="131" type="stmt" count="1"/>
|
16975 |
+
<line num="132" type="stmt" count="1"/>
|
16976 |
+
<line num="133" type="stmt" count="1"/>
|
16977 |
+
<line num="136" type="stmt" count="1"/>
|
16978 |
+
<line num="137" type="stmt" count="1"/>
|
16979 |
+
<line num="139" type="stmt" count="1"/>
|
16980 |
+
<line num="140" type="stmt" count="1"/>
|
16981 |
+
<line num="141" type="stmt" count="1"/>
|
16982 |
+
<line num="142" type="stmt" count="1"/>
|
16983 |
+
<line num="143" type="stmt" count="1"/>
|
16984 |
+
<line num="144" type="stmt" count="1"/>
|
16985 |
+
<line num="145" type="stmt" count="1"/>
|
16986 |
+
<line num="147" type="stmt" count="1"/>
|
16987 |
+
<line num="150" type="stmt" count="1"/>
|
16988 |
+
<line num="151" type="stmt" count="1"/>
|
16989 |
+
<line num="153" type="stmt" count="1"/>
|
16990 |
+
<line num="154" type="stmt" count="0"/>
|
16991 |
+
<line num="155" type="stmt" count="0"/>
|
16992 |
+
<line num="158" type="stmt" count="1"/>
|
16993 |
+
<line num="161" type="stmt" count="1"/>
|
16994 |
+
<line num="162" type="stmt" count="1"/>
|
16995 |
+
<line num="163" type="stmt" count="1"/>
|
16996 |
+
<line num="165" type="stmt" count="1"/>
|
16997 |
+
<line num="175" type="method" name="get_configs" visibility="public" complexity="1" crap="1" count="1"/>
|
16998 |
+
<line num="176" type="stmt" count="1"/>
|
16999 |
+
<line num="184" type="method" name="run" visibility="public" complexity="9" crap="9.92" count="1"/>
|
17000 |
+
<line num="187" type="stmt" count="1"/>
|
17001 |
+
<line num="189" type="stmt" count="1"/>
|
17002 |
+
<line num="197" type="stmt" count="1"/>
|
17003 |
+
<line num="198" type="stmt" count="1"/>
|
17004 |
+
<line num="199" type="stmt" count="0"/>
|
17005 |
+
<line num="200" type="stmt" count="0"/>
|
17006 |
+
<line num="203" type="stmt" count="1"/>
|
17007 |
+
<line num="204" type="stmt" count="1"/>
|
17008 |
+
<line num="205" type="stmt" count="1"/>
|
17009 |
+
<line num="207" type="stmt" count="1"/>
|
17010 |
+
<line num="208" type="stmt" count="1"/>
|
17011 |
+
<line num="210" type="stmt" count="1"/>
|
17012 |
+
<line num="216" type="stmt" count="1"/>
|
17013 |
+
<line num="217" type="stmt" count="1"/>
|
17014 |
+
<line num="218" type="stmt" count="1"/>
|
17015 |
+
<line num="219" type="stmt" count="1"/>
|
17016 |
+
<line num="221" type="stmt" count="1"/>
|
17017 |
+
<line num="222" type="stmt" count="1"/>
|
17018 |
+
<line num="224" type="stmt" count="1"/>
|
17019 |
+
<line num="226" type="stmt" count="1"/>
|
17020 |
+
<line num="228" type="stmt" count="1"/>
|
17021 |
+
<line num="229" type="stmt" count="0"/>
|
17022 |
+
<line num="230" type="stmt" count="0"/>
|
17023 |
+
<line num="231" type="stmt" count="0"/>
|
17024 |
+
<line num="232" type="stmt" count="1"/>
|
17025 |
+
<line num="234" type="stmt" count="1"/>
|
17026 |
+
<line num="236" type="stmt" count="1"/>
|
17027 |
+
<line num="239" type="stmt" count="1"/>
|
17028 |
+
<line num="240" type="stmt" count="1"/>
|
17029 |
+
<line num="241" type="stmt" count="1"/>
|
17030 |
+
<line num="242" type="stmt" count="1"/>
|
17031 |
+
<line num="243" type="stmt" count="0"/>
|
17032 |
+
<line num="244" type="stmt" count="0"/>
|
17033 |
+
<line num="246" type="stmt" count="1"/>
|
17034 |
+
<line num="247" type="stmt" count="0"/>
|
17035 |
+
<line num="248" type="stmt" count="0"/>
|
17036 |
+
<line num="251" type="stmt" count="1"/>
|
17037 |
+
<line num="252" type="stmt" count="1"/>
|
17038 |
+
<line num="254" type="stmt" count="1"/>
|
17039 |
+
<line num="256" type="stmt" count="1"/>
|
17040 |
+
<line num="262" type="method" name="set_configs" visibility="public" complexity="1" crap="1" count="1"/>
|
17041 |
+
<line num="264" type="stmt" count="1"/>
|
17042 |
+
<line num="265" type="stmt" count="1"/>
|
17043 |
+
<line num="267" type="stmt" count="1"/>
|
17044 |
+
<line num="268" type="stmt" count="1"/>
|
17045 |
+
<line num="275" type="method" name="set_filelist" visibility="private" complexity="1" crap="1" count="1"/>
|
17046 |
+
<line num="276" type="stmt" count="1"/>
|
17047 |
+
<line num="277" type="stmt" count="1"/>
|
17048 |
+
<line num="279" type="stmt" count="1"/>
|
17049 |
+
<line num="280" type="stmt" count="1"/>
|
17050 |
+
<metrics loc="281" ncloc="151" classes="1" methods="6" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="75" elements="98" coveredelements="79"/>
|
17051 |
+
</file>
|
17052 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/archiver/steps/class-discovery.php">
|
17053 |
+
<class name="Discovery" namespace="Boldgrid\Backup\V2\Archiver\Steps">
|
17054 |
+
<metrics complexity="4" methods="3" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="20" elements="23" coveredelements="23"/>
|
17055 |
+
</class>
|
17056 |
+
<line num="29" type="method" name="run" visibility="public" complexity="1" crap="1" count="1"/>
|
17057 |
+
<line num="30" type="stmt" count="1"/>
|
17058 |
+
<line num="32" type="stmt" count="1"/>
|
17059 |
+
<line num="33" type="stmt" count="1"/>
|
17060 |
+
<line num="35" type="stmt" count="1"/>
|
17061 |
+
<line num="37" type="stmt" count="1"/>
|
17062 |
+
<line num="45" type="method" name="database" visibility="private" complexity="1" crap="1" count="1"/>
|
17063 |
+
<line num="46" type="stmt" count="1"/>
|
17064 |
+
<line num="48" type="stmt" count="1"/>
|
17065 |
+
<line num="49" type="stmt" count="1"/>
|
17066 |
+
<line num="56" type="method" name="files" visibility="private" complexity="2" crap="2" count="1"/>
|
17067 |
+
<line num="57" type="stmt" count="1"/>
|
17068 |
+
<line num="58" type="stmt" count="1"/>
|
17069 |
+
<line num="60" type="stmt" count="1"/>
|
17070 |
+
<line num="61" type="stmt" count="1"/>
|
17071 |
+
<line num="63" type="stmt" count="1"/>
|
17072 |
+
<line num="65" type="stmt" count="1"/>
|
17073 |
+
<line num="66" type="stmt" count="1"/>
|
17074 |
+
<line num="67" type="stmt" count="1"/>
|
17075 |
+
<line num="69" type="stmt" count="1"/>
|
17076 |
+
<line num="70" type="stmt" count="1"/>
|
17077 |
+
<line num="72" type="stmt" count="1"/>
|
17078 |
+
<line num="73" type="stmt" count="1"/>
|
17079 |
+
<metrics loc="74" ncloc="41" classes="1" methods="3" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="20" elements="23" coveredelements="23"/>
|
17080 |
+
</file>
|
17081 |
+
</package>
|
17082 |
+
<package name="Boldgrid\Backup\V2\Filelist">
|
17083 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/filelist/class-create.php">
|
17084 |
+
<class name="Create" namespace="Boldgrid\Backup\V2\Filelist">
|
17085 |
+
<metrics complexity="9" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="17" elements="21" coveredelements="21"/>
|
17086 |
+
</class>
|
17087 |
+
<line num="54" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
|
17088 |
+
<line num="55" type="stmt" count="1"/>
|
17089 |
+
<line num="56" type="stmt" count="1"/>
|
17090 |
+
<line num="65" type="method" name="run" visibility="public" complexity="3" crap="3" count="1"/>
|
17091 |
+
<line num="66" type="stmt" count="1"/>
|
17092 |
+
<line num="69" type="stmt" count="1"/>
|
17093 |
+
<line num="70" type="stmt" count="1"/>
|
17094 |
+
<line num="71" type="stmt" count="1"/>
|
17095 |
+
<line num="73" type="stmt" count="1"/>
|
17096 |
+
<line num="74" type="stmt" count="1"/>
|
17097 |
+
<line num="76" type="stmt" count="1"/>
|
17098 |
+
<line num="86" type="method" name="get_total_size" visibility="public" complexity="1" crap="1" count="1"/>
|
17099 |
+
<line num="87" type="stmt" count="1"/>
|
17100 |
+
<line num="98" type="method" name="get_type" visibility="private" complexity="4" crap="4" count="1"/>
|
17101 |
+
<line num="99" type="stmt" count="1"/>
|
17102 |
+
<line num="100" type="stmt" count="1"/>
|
17103 |
+
<line num="101" type="stmt" count="1"/>
|
17104 |
+
<line num="102" type="stmt" count="1"/>
|
17105 |
+
<line num="103" type="stmt" count="1"/>
|
17106 |
+
<line num="104" type="stmt" count="1"/>
|
17107 |
+
<line num="106" type="stmt" count="1"/>
|
17108 |
+
<metrics loc="110" ncloc="44" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="17" coveredstatements="17" elements="21" coveredelements="21"/>
|
17109 |
+
</file>
|
17110 |
+
</package>
|
17111 |
+
<package name="Boldgrid\Backup\V2\Step">
|
17112 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/step/class-data.php">
|
17113 |
+
<class name="Data" namespace="Boldgrid\Backup\V2\Step">
|
17114 |
+
<metrics complexity="6" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="10" elements="14" coveredelements="14"/>
|
17115 |
+
</class>
|
17116 |
+
<line num="52" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
|
17117 |
+
<line num="53" type="stmt" count="1"/>
|
17118 |
+
<line num="54" type="stmt" count="1"/>
|
17119 |
+
<line num="55" type="stmt" count="1"/>
|
17120 |
+
<line num="64" type="method" name="get_data" visibility="public" complexity="2" crap="2" count="1"/>
|
17121 |
+
<line num="65" type="stmt" count="1"/>
|
17122 |
+
<line num="67" type="stmt" count="1"/>
|
17123 |
+
<line num="79" type="method" name="get_key" visibility="public" complexity="2" crap="2" count="1"/>
|
17124 |
+
<line num="80" type="stmt" count="1"/>
|
17125 |
+
<line num="82" type="stmt" count="1"/>
|
17126 |
+
<line num="93" type="method" name="set_key" visibility="public" complexity="1" crap="1" count="1"/>
|
17127 |
+
<line num="94" type="stmt" count="1"/>
|
17128 |
+
<line num="95" type="stmt" count="1"/>
|
17129 |
+
<line num="97" type="stmt" count="1"/>
|
17130 |
+
<metrics loc="99" ncloc="33" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="10" elements="14" coveredelements="14"/>
|
17131 |
+
</file>
|
17132 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/step/class-json-file.php">
|
17133 |
+
<class name="Json_File" namespace="Boldgrid\Backup\V2\Step" fullPackage="Json">
|
17134 |
+
<metrics complexity="9" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="15" elements="25" coveredelements="20"/>
|
17135 |
+
</class>
|
17136 |
+
<line num="35" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
|
17137 |
+
<line num="36" type="stmt" count="1"/>
|
17138 |
+
<line num="38" type="stmt" count="1"/>
|
17139 |
+
<line num="39" type="stmt" count="1"/>
|
17140 |
+
<line num="44" type="method" name="get" visibility="public" complexity="2" crap="2" count="1"/>
|
17141 |
+
<line num="45" type="stmt" count="1"/>
|
17142 |
+
<line num="47" type="stmt" count="1"/>
|
17143 |
+
<line num="48" type="stmt" count="1"/>
|
17144 |
+
<line num="50" type="stmt" count="1"/>
|
17145 |
+
<line num="56" type="method" name="get_key" visibility="public" complexity="2" crap="2" count="1"/>
|
17146 |
+
<line num="57" type="stmt" count="1"/>
|
17147 |
+
<line num="59" type="stmt" count="1"/>
|
17148 |
+
<line num="65" type="method" name="set_key" visibility="public" complexity="1" crap="1" count="1"/>
|
17149 |
+
<line num="66" type="stmt" count="1"/>
|
17150 |
+
<line num="68" type="stmt" count="1"/>
|
17151 |
+
<line num="70" type="stmt" count="1"/>
|
17152 |
+
<line num="71" type="stmt" count="1"/>
|
17153 |
+
<line num="76" type="method" name="set_keys" visibility="public" complexity="2" crap="6" count="0"/>
|
17154 |
+
<line num="77" type="stmt" count="0"/>
|
17155 |
+
<line num="78" type="stmt" count="0"/>
|
17156 |
+
<line num="79" type="stmt" count="0"/>
|
17157 |
+
<line num="80" type="stmt" count="0"/>
|
17158 |
+
<line num="85" type="method" name="write" visibility="public" complexity="1" crap="1" count="1"/>
|
17159 |
+
<line num="86" type="stmt" count="1"/>
|
17160 |
+
<line num="87" type="stmt" count="1"/>
|
17161 |
+
<metrics loc="88" ncloc="46" classes="1" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="15" elements="25" coveredelements="20"/>
|
17162 |
+
</file>
|
17163 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/v2/step/class-step.php">
|
17164 |
+
<class name="Step" namespace="Boldgrid\Backup\V2\Step">
|
17165 |
+
<metrics complexity="32" methods="22" coveredmethods="19" conditionals="0" coveredconditionals="0" statements="77" coveredstatements="66" elements="99" coveredelements="85"/>
|
17166 |
+
</class>
|
17167 |
+
<line num="112" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
|
17168 |
+
<line num="113" type="stmt" count="1"/>
|
17169 |
+
<line num="115" type="stmt" count="1"/>
|
17170 |
+
<line num="116" type="stmt" count="1"/>
|
17171 |
+
<line num="117" type="stmt" count="1"/>
|
17172 |
+
<line num="118" type="stmt" count="1"/>
|
17173 |
+
<line num="119" type="stmt" count="1"/>
|
17174 |
+
<line num="121" type="stmt" count="1"/>
|
17175 |
+
<line num="122" type="stmt" count="1"/>
|
17176 |
+
<line num="124" type="stmt" count="1"/>
|
17177 |
+
<line num="126" type="stmt" count="1"/>
|
17178 |
+
<line num="127" type="stmt" count="1"/>
|
17179 |
+
<line num="134" type="method" name="add_attempt" visibility="public" complexity="1" crap="1" count="1"/>
|
17180 |
+
<line num="135" type="stmt" count="1"/>
|
17181 |
+
<line num="136" type="stmt" count="1"/>
|
17182 |
+
<line num="138" type="stmt" count="1"/>
|
17183 |
+
<line num="139" type="stmt" count="1"/>
|
17184 |
+
<line num="140" type="stmt" count="1"/>
|
17185 |
+
<line num="141" type="stmt" count="1"/>
|
17186 |
+
<line num="142" type="stmt" count="1"/>
|
17187 |
+
<line num="151" type="method" name="check_in" visibility="public" complexity="2" crap="2" count="1"/>
|
17188 |
+
<line num="152" type="stmt" count="1"/>
|
17189 |
+
<line num="155" type="stmt" count="1"/>
|
17190 |
+
<line num="156" type="stmt" count="1"/>
|
17191 |
+
<line num="157" type="stmt" count="1"/>
|
17192 |
+
<line num="158" type="stmt" count="1"/>
|
17193 |
+
<line num="159" type="stmt" count="1"/>
|
17194 |
+
<line num="166" type="method" name="complete" visibility="public" complexity="1" crap="1" count="1"/>
|
17195 |
+
<line num="167" type="stmt" count="1"/>
|
17196 |
+
<line num="168" type="stmt" count="1"/>
|
17197 |
+
<line num="170" type="stmt" count="1"/>
|
17198 |
+
<line num="171" type="stmt" count="1"/>
|
17199 |
+
<line num="173" type="stmt" count="1"/>
|
17200 |
+
<line num="174" type="stmt" count="1"/>
|
17201 |
+
<line num="176" type="stmt" count="1"/>
|
17202 |
+
<line num="177" type="stmt" count="1"/>
|
17203 |
+
<line num="178" type="stmt" count="1"/>
|
17204 |
+
<line num="183" type="method" name="fail" visibility="public" complexity="1" crap="2" count="0"/>
|
17205 |
+
<line num="184" type="stmt" count="0"/>
|
17206 |
+
<line num="185" type="stmt" count="0"/>
|
17207 |
+
<line num="187" type="stmt" count="0"/>
|
17208 |
+
<line num="189" type="stmt" count="0"/>
|
17209 |
+
<line num="190" type="stmt" count="0"/>
|
17210 |
+
<line num="199" type="method" name="get_core" visibility="public" complexity="1" crap="1" count="1"/>
|
17211 |
+
<line num="200" type="stmt" count="1"/>
|
17212 |
+
<line num="210" type="method" name="get_contents" visibility="public" complexity="3" crap="3" count="1"/>
|
17213 |
+
<line num="211" type="stmt" count="1"/>
|
17214 |
+
<line num="213" type="stmt" count="1"/>
|
17215 |
+
<line num="214" type="stmt" count="1"/>
|
17216 |
+
<line num="215" type="stmt" count="1"/>
|
17217 |
+
<line num="216" type="stmt" count="1"/>
|
17218 |
+
<line num="217" type="stmt" count="1"/>
|
17219 |
+
<line num="219" type="stmt" count="1"/>
|
17220 |
+
<line num="232" type="method" name="get_data_type" visibility="public" complexity="1" crap="1" count="1"/>
|
17221 |
+
<line num="233" type="stmt" count="1"/>
|
17222 |
+
<line num="243" type="method" name="get_dir" visibility="public" complexity="1" crap="1" count="1"/>
|
17223 |
+
<line num="244" type="stmt" count="1"/>
|
17224 |
+
<line num="250" type="method" name="get_info" visibility="public" complexity="1" crap="1" count="1"/>
|
17225 |
+
<line num="251" type="stmt" count="1"/>
|
17226 |
+
<line num="257" type="method" name="get_parent" visibility="public" complexity="1" crap="1" count="1"/>
|
17227 |
+
<line num="258" type="stmt" count="1"/>
|
17228 |
+
<line num="269" type="method" name="get_path_to" visibility="public" complexity="1" crap="1" count="1"/>
|
17229 |
+
<line num="270" type="stmt" count="1"/>
|
17230 |
+
<line num="276" type="method" name="get_this" visibility="public" complexity="1" crap="1" count="1"/>
|
17231 |
+
<line num="277" type="stmt" count="1"/>
|
17232 |
+
<line num="283" type="method" name="get_step" visibility="public" complexity="1" crap="1" count="1"/>
|
17233 |
+
<line num="284" type="stmt" count="1"/>
|
17234 |
+
<line num="294" type="method" name="is_complete" visibility="public" complexity="1" crap="1" count="1"/>
|
17235 |
+
<line num="295" type="stmt" count="1"/>
|
17236 |
+
<line num="297" type="stmt" count="1"/>
|
17237 |
+
<line num="307" type="method" name="is_fail" visibility="public" complexity="1" crap="1" count="1"/>
|
17238 |
+
<line num="308" type="stmt" count="1"/>
|
17239 |
+
<line num="310" type="stmt" count="1"/>
|
17240 |
+
<line num="320" type="method" name="is_in_progress" visibility="public" complexity="2" crap="2" count="1"/>
|
17241 |
+
<line num="321" type="stmt" count="1"/>
|
17242 |
+
<line num="324" type="stmt" count="1"/>
|
17243 |
+
<line num="334" type="method" name="is_max_attemps" visibility="public" complexity="1" crap="1" count="1"/>
|
17244 |
+
<line num="335" type="stmt" count="1"/>
|
17245 |
+
<line num="345" type="method" name="is_unresponsive" visibility="public" complexity="2" crap="6" count="0"/>
|
17246 |
+
<line num="346" type="stmt" count="0"/>
|
17247 |
+
<line num="348" type="stmt" count="0"/>
|
17248 |
+
<line num="358" type="method" name="maybe_run" visibility="public" complexity="6" crap="9.16" count="1"/>
|
17249 |
+
<line num="360" type="stmt" count="1"/>
|
17250 |
+
<line num="361" type="stmt" count="0"/>
|
17251 |
+
<line num="364" type="stmt" count="1"/>
|
17252 |
+
<line num="365" type="stmt" count="0"/>
|
17253 |
+
<line num="368" type="stmt" count="1"/>
|
17254 |
+
<line num="369" type="stmt" count="0"/>
|
17255 |
+
<line num="372" type="stmt" count="1"/>
|
17256 |
+
<line num="373" type="stmt" count="0"/>
|
17257 |
+
<line num="376" type="stmt" count="1"/>
|
17258 |
+
<line num="388" type="method" name="write_contents" visibility="public" complexity="1" crap="1" count="1"/>
|
17259 |
+
<line num="389" type="stmt" count="1"/>
|
17260 |
+
<line num="391" type="stmt" count="1"/>
|
17261 |
+
<line num="402" type="method" name="write_key" visibility="public" complexity="1" crap="1" count="1"/>
|
17262 |
+
<line num="403" type="stmt" count="1"/>
|
17263 |
+
<line num="404" type="stmt" count="1"/>
|
17264 |
+
<line num="408" type="stmt" count="1"/>
|
17265 |
+
<line num="411" type="stmt" count="1"/>
|
17266 |
+
<metrics loc="412" ncloc="184" classes="1" methods="22" coveredmethods="19" conditionals="0" coveredconditionals="0" statements="77" coveredstatements="66" elements="99" coveredelements="85"/>
|
17267 |
+
</file>
|
17268 |
+
</package>
|
17269 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/index.php">
|
17270 |
<metrics loc="8" ncloc="1" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
|
17271 |
</file>
|
71168 |
<metrics loc="510" ncloc="285" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="215" coveredstatements="0" elements="218" coveredelements="0"/>
|
71169 |
</file>
|
71170 |
</package>
|
71171 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/rest/class-boldgrid-backup-rest-archive.php">
|
71172 |
+
<class name="Boldgrid_Backup_Rest_Archive" namespace="global" fullPackage="Boldgrid.Backup.Rest">
|
71173 |
+
<metrics complexity="15" methods="10" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="132" coveredstatements="0" elements="142" coveredelements="0"/>
|
71174 |
+
</class>
|
71175 |
+
<line num="37" type="method" name="register_routes" visibility="public" complexity="1" crap="2" count="0"/>
|
71176 |
+
<line num="38" type="stmt" count="0"/>
|
71177 |
+
<line num="39" type="stmt" count="0"/>
|
71178 |
+
<line num="40" type="stmt" count="0"/>
|
71179 |
+
<line num="41" type="stmt" count="0"/>
|
71180 |
+
<line num="48" type="method" name="register_creation" visibility="public" complexity="1" crap="2" count="0"/>
|
71181 |
+
<line num="49" type="stmt" count="0"/>
|
71182 |
+
<line num="50" type="stmt" count="0"/>
|
71183 |
+
<line num="51" type="stmt" count="0"/>
|
71184 |
+
<line num="52" type="stmt" count="0"/>
|
71185 |
+
<line num="53" type="stmt" count="0"/>
|
71186 |
+
<line num="54" type="stmt" count="0"/>
|
71187 |
+
<line num="55" type="stmt" count="0"/>
|
71188 |
+
<line num="56" type="stmt" count="0"/>
|
71189 |
+
<line num="57" type="stmt" count="0"/>
|
71190 |
+
<line num="64" type="method" name="register_restore" visibility="public" complexity="1" crap="2" count="0"/>
|
71191 |
+
<line num="65" type="stmt" count="0"/>
|
71192 |
+
<line num="66" type="stmt" count="0"/>
|
71193 |
+
<line num="67" type="stmt" count="0"/>
|
71194 |
+
<line num="68" type="stmt" count="0"/>
|
71195 |
+
<line num="69" type="stmt" count="0"/>
|
71196 |
+
<line num="70" type="stmt" count="0"/>
|
71197 |
+
<line num="71" type="stmt" count="0"/>
|
71198 |
+
<line num="72" type="stmt" count="0"/>
|
71199 |
+
<line num="73" type="stmt" count="0"/>
|
71200 |
+
<line num="74" type="stmt" count="0"/>
|
71201 |
+
<line num="76" type="stmt" count="0"/>
|
71202 |
+
<line num="77" type="stmt" count="0"/>
|
71203 |
+
<line num="78" type="stmt" count="0"/>
|
71204 |
+
<line num="79" type="stmt" count="0"/>
|
71205 |
+
<line num="80" type="stmt" count="0"/>
|
71206 |
+
<line num="81" type="stmt" count="0"/>
|
71207 |
+
<line num="82" type="stmt" count="0"/>
|
71208 |
+
<line num="83" type="method" name="anonymous function" complexity="1" crap="2" count="0"/>
|
71209 |
+
<line num="84" type="stmt" count="0"/>
|
71210 |
+
<line num="85" type="stmt" count="0"/>
|
71211 |
+
<line num="86" type="stmt" count="0"/>
|
71212 |
+
<line num="87" type="stmt" count="0"/>
|
71213 |
+
<line num="88" type="stmt" count="0"/>
|
71214 |
+
<line num="89" type="stmt" count="0"/>
|
71215 |
+
<line num="90" type="stmt" count="0"/>
|
71216 |
+
<line num="91" type="stmt" count="0"/>
|
71217 |
+
<line num="98" type="method" name="register_list" visibility="public" complexity="1" crap="2" count="0"/>
|
71218 |
+
<line num="99" type="stmt" count="0"/>
|
71219 |
+
<line num="100" type="stmt" count="0"/>
|
71220 |
+
<line num="101" type="stmt" count="0"/>
|
71221 |
+
<line num="102" type="stmt" count="0"/>
|
71222 |
+
<line num="103" type="stmt" count="0"/>
|
71223 |
+
<line num="104" type="stmt" count="0"/>
|
71224 |
+
<line num="105" type="stmt" count="0"/>
|
71225 |
+
<line num="106" type="stmt" count="0"/>
|
71226 |
+
<line num="107" type="stmt" count="0"/>
|
71227 |
+
<line num="116" type="method" name="get_schema" visibility="public" complexity="1" crap="2" count="0"/>
|
71228 |
+
<line num="117" type="stmt" count="0"/>
|
71229 |
+
<line num="118" type="stmt" count="0"/>
|
71230 |
+
<line num="119" type="stmt" count="0"/>
|
71231 |
+
<line num="120" type="stmt" count="0"/>
|
71232 |
+
<line num="121" type="stmt" count="0"/>
|
71233 |
+
<line num="122" type="stmt" count="0"/>
|
71234 |
+
<line num="123" type="stmt" count="0"/>
|
71235 |
+
<line num="124" type="stmt" count="0"/>
|
71236 |
+
<line num="125" type="stmt" count="0"/>
|
71237 |
+
<line num="126" type="stmt" count="0"/>
|
71238 |
+
<line num="127" type="stmt" count="0"/>
|
71239 |
+
<line num="128" type="stmt" count="0"/>
|
71240 |
+
<line num="129" type="stmt" count="0"/>
|
71241 |
+
<line num="130" type="stmt" count="0"/>
|
71242 |
+
<line num="131" type="stmt" count="0"/>
|
71243 |
+
<line num="132" type="stmt" count="0"/>
|
71244 |
+
<line num="133" type="stmt" count="0"/>
|
71245 |
+
<line num="134" type="stmt" count="0"/>
|
71246 |
+
<line num="135" type="stmt" count="0"/>
|
71247 |
+
<line num="136" type="stmt" count="0"/>
|
71248 |
+
<line num="137" type="stmt" count="0"/>
|
71249 |
+
<line num="138" type="stmt" count="0"/>
|
71250 |
+
<line num="139" type="stmt" count="0"/>
|
71251 |
+
<line num="140" type="stmt" count="0"/>
|
71252 |
+
<line num="141" type="stmt" count="0"/>
|
71253 |
+
<line num="142" type="stmt" count="0"/>
|
71254 |
+
<line num="143" type="stmt" count="0"/>
|
71255 |
+
<line num="144" type="stmt" count="0"/>
|
71256 |
+
<line num="145" type="stmt" count="0"/>
|
71257 |
+
<line num="146" type="stmt" count="0"/>
|
71258 |
+
<line num="147" type="stmt" count="0"/>
|
71259 |
+
<line num="148" type="stmt" count="0"/>
|
71260 |
+
<line num="149" type="stmt" count="0"/>
|
71261 |
+
<line num="150" type="stmt" count="0"/>
|
71262 |
+
<line num="151" type="stmt" count="0"/>
|
71263 |
+
<line num="152" type="stmt" count="0"/>
|
71264 |
+
<line num="153" type="stmt" count="0"/>
|
71265 |
+
<line num="155" type="stmt" count="0"/>
|
71266 |
+
<line num="156" type="stmt" count="0"/>
|
71267 |
+
<line num="167" type="method" name="prepare_item_for_response" visibility="public" complexity="1" crap="2" count="0"/>
|
71268 |
+
<line num="168" type="stmt" count="0"/>
|
71269 |
+
<line num="169" type="stmt" count="0"/>
|
71270 |
+
<line num="184" type="method" name="create_item" visibility="public" complexity="1" crap="2" count="0"/>
|
71271 |
+
<line num="186" type="stmt" count="0"/>
|
71272 |
+
<line num="187" type="stmt" count="0"/>
|
71273 |
+
<line num="188" type="stmt" count="0"/>
|
71274 |
+
<line num="189" type="stmt" count="0"/>
|
71275 |
+
<line num="192" type="stmt" count="0"/>
|
71276 |
+
<line num="193" type="stmt" count="0"/>
|
71277 |
+
<line num="195" type="stmt" count="0"/>
|
71278 |
+
<line num="196" type="stmt" count="0"/>
|
71279 |
+
<line num="208" type="method" name="get_items" visibility="public" complexity="3" crap="12" count="0"/>
|
71280 |
+
<line num="210" type="stmt" count="0"/>
|
71281 |
+
<line num="211" type="stmt" count="0"/>
|
71282 |
+
<line num="214" type="stmt" count="0"/>
|
71283 |
+
<line num="216" type="stmt" count="0"/>
|
71284 |
+
<line num="217" type="stmt" count="0"/>
|
71285 |
+
<line num="218" type="stmt" count="0"/>
|
71286 |
+
<line num="220" type="stmt" count="0"/>
|
71287 |
+
<line num="221" type="stmt" count="0"/>
|
71288 |
+
<line num="222" type="stmt" count="0"/>
|
71289 |
+
<line num="223" type="stmt" count="0"/>
|
71290 |
+
<line num="224" type="stmt" count="0"/>
|
71291 |
+
<line num="225" type="stmt" count="0"/>
|
71292 |
+
<line num="226" type="stmt" count="0"/>
|
71293 |
+
<line num="227" type="stmt" count="0"/>
|
71294 |
+
<line num="228" type="stmt" count="0"/>
|
71295 |
+
<line num="230" type="stmt" count="0"/>
|
71296 |
+
<line num="231" type="stmt" count="0"/>
|
71297 |
+
<line num="232" type="stmt" count="0"/>
|
71298 |
+
<line num="234" type="stmt" count="0"/>
|
71299 |
+
<line num="235" type="stmt" count="0"/>
|
71300 |
+
<line num="247" type="method" name="restore" visibility="public" complexity="4" crap="20" count="0"/>
|
71301 |
+
<line num="248" type="stmt" count="0"/>
|
71302 |
+
<line num="249" type="stmt" count="0"/>
|
71303 |
+
<line num="252" type="stmt" count="0"/>
|
71304 |
+
<line num="253" type="stmt" count="0"/>
|
71305 |
+
<line num="254" type="stmt" count="0"/>
|
71306 |
+
<line num="256" type="stmt" count="0"/>
|
71307 |
+
<line num="258" type="stmt" count="0"/>
|
71308 |
+
<line num="259" type="stmt" count="0"/>
|
71309 |
+
<line num="260" type="stmt" count="0"/>
|
71310 |
+
<line num="261" type="stmt" count="0"/>
|
71311 |
+
<line num="262" type="stmt" count="0"/>
|
71312 |
+
<line num="265" type="stmt" count="0"/>
|
71313 |
+
<line num="266" type="stmt" count="0"/>
|
71314 |
+
<line num="267" type="stmt" count="0"/>
|
71315 |
+
<line num="268" type="stmt" count="0"/>
|
71316 |
+
<line num="269" type="stmt" count="0"/>
|
71317 |
+
<line num="270" type="stmt" count="0"/>
|
71318 |
+
<line num="271" type="stmt" count="0"/>
|
71319 |
+
<line num="272" type="stmt" count="0"/>
|
71320 |
+
<line num="273" type="stmt" count="0"/>
|
71321 |
+
<line num="275" type="stmt" count="0"/>
|
71322 |
+
<line num="276" type="stmt" count="0"/>
|
71323 |
+
<metrics loc="277" ncloc="167" classes="1" methods="10" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="138" coveredstatements="0" elements="148" coveredelements="0"/>
|
71324 |
+
</file>
|
71325 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/rest/class-boldgrid-backup-rest-controller.php">
|
71326 |
+
<class name="Boldgrid_Backup_Rest_Controller" namespace="global" fullPackage="Boldgrid.Backup.Rest">
|
71327 |
+
<metrics complexity="6" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="15" coveredstatements="0" elements="18" coveredelements="0"/>
|
71328 |
+
</class>
|
71329 |
+
<line num="47" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
|
71330 |
+
<line num="48" type="stmt" count="0"/>
|
71331 |
+
<line num="49" type="stmt" count="0"/>
|
71332 |
+
<line num="58" type="method" name="permission_check" visibility="public" complexity="1" crap="2" count="0"/>
|
71333 |
+
<line num="59" type="stmt" count="0"/>
|
71334 |
+
<line num="60" type="stmt" count="0"/>
|
71335 |
+
<line num="70" type="method" name="filter_schema_properties" visibility="protected" complexity="4" crap="20" count="0"/>
|
71336 |
+
<line num="71" type="stmt" count="0"/>
|
71337 |
+
<line num="72" type="stmt" count="0"/>
|
71338 |
+
<line num="73" type="stmt" count="0"/>
|
71339 |
+
<line num="74" type="stmt" count="0"/>
|
71340 |
+
<line num="75" type="stmt" count="0"/>
|
71341 |
+
<line num="76" type="stmt" count="0"/>
|
71342 |
+
<line num="77" type="stmt" count="0"/>
|
71343 |
+
<line num="78" type="stmt" count="0"/>
|
71344 |
+
<line num="79" type="stmt" count="0"/>
|
71345 |
+
<line num="81" type="stmt" count="0"/>
|
71346 |
+
<line num="82" type="stmt" count="0"/>
|
71347 |
+
<metrics loc="84" ncloc="31" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="15" coveredstatements="0" elements="18" coveredelements="0"/>
|
71348 |
+
</file>
|
71349 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/rest/class-boldgrid-backup-rest-job.php">
|
71350 |
+
<class name="Boldgrid_Backup_Rest_Job" namespace="global" fullPackage="Boldgrid.Backup.Rest">
|
71351 |
+
<metrics complexity="5" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="71" coveredstatements="0" elements="75" coveredelements="0"/>
|
71352 |
+
</class>
|
71353 |
+
<line num="37" type="method" name="register_routes" visibility="public" complexity="1" crap="2" count="0"/>
|
71354 |
+
<line num="38" type="stmt" count="0"/>
|
71355 |
+
<line num="39" type="stmt" count="0"/>
|
71356 |
+
<line num="40" type="stmt" count="0"/>
|
71357 |
+
<line num="41" type="stmt" count="0"/>
|
71358 |
+
<line num="42" type="stmt" count="0"/>
|
71359 |
+
<line num="43" type="stmt" count="0"/>
|
71360 |
+
<line num="44" type="stmt" count="0"/>
|
71361 |
+
<line num="45" type="stmt" count="0"/>
|
71362 |
+
<line num="46" type="stmt" count="0"/>
|
71363 |
+
<line num="47" type="stmt" count="0"/>
|
71364 |
+
<line num="48" type="stmt" count="0"/>
|
71365 |
+
<line num="49" type="stmt" count="0"/>
|
71366 |
+
<line num="50" type="stmt" count="0"/>
|
71367 |
+
<line num="51" type="stmt" count="0"/>
|
71368 |
+
<line num="52" type="stmt" count="0"/>
|
71369 |
+
<line num="53" type="stmt" count="0"/>
|
71370 |
+
<line num="54" type="stmt" count="0"/>
|
71371 |
+
<line num="63" type="method" name="get_schema" visibility="public" complexity="1" crap="2" count="0"/>
|
71372 |
+
<line num="64" type="stmt" count="0"/>
|
71373 |
+
<line num="65" type="stmt" count="0"/>
|
71374 |
+
<line num="66" type="stmt" count="0"/>
|
71375 |
+
<line num="67" type="stmt" count="0"/>
|
71376 |
+
<line num="68" type="stmt" count="0"/>
|
71377 |
+
<line num="69" type="stmt" count="0"/>
|
71378 |
+
<line num="70" type="stmt" count="0"/>
|
71379 |
+
<line num="71" type="stmt" count="0"/>
|
71380 |
+
<line num="72" type="stmt" count="0"/>
|
71381 |
+
<line num="73" type="stmt" count="0"/>
|
71382 |
+
<line num="74" type="stmt" count="0"/>
|
71383 |
+
<line num="75" type="stmt" count="0"/>
|
71384 |
+
<line num="76" type="stmt" count="0"/>
|
71385 |
+
<line num="77" type="stmt" count="0"/>
|
71386 |
+
<line num="78" type="stmt" count="0"/>
|
71387 |
+
<line num="79" type="stmt" count="0"/>
|
71388 |
+
<line num="80" type="stmt" count="0"/>
|
71389 |
+
<line num="81" type="stmt" count="0"/>
|
71390 |
+
<line num="82" type="stmt" count="0"/>
|
71391 |
+
<line num="83" type="stmt" count="0"/>
|
71392 |
+
<line num="84" type="stmt" count="0"/>
|
71393 |
+
<line num="85" type="stmt" count="0"/>
|
71394 |
+
<line num="86" type="stmt" count="0"/>
|
71395 |
+
<line num="87" type="stmt" count="0"/>
|
71396 |
+
<line num="88" type="stmt" count="0"/>
|
71397 |
+
<line num="89" type="stmt" count="0"/>
|
71398 |
+
<line num="90" type="stmt" count="0"/>
|
71399 |
+
<line num="91" type="stmt" count="0"/>
|
71400 |
+
<line num="92" type="stmt" count="0"/>
|
71401 |
+
<line num="93" type="stmt" count="0"/>
|
71402 |
+
<line num="94" type="stmt" count="0"/>
|
71403 |
+
<line num="95" type="stmt" count="0"/>
|
71404 |
+
<line num="96" type="stmt" count="0"/>
|
71405 |
+
<line num="97" type="stmt" count="0"/>
|
71406 |
+
<line num="98" type="stmt" count="0"/>
|
71407 |
+
<line num="99" type="stmt" count="0"/>
|
71408 |
+
<line num="101" type="stmt" count="0"/>
|
71409 |
+
<line num="102" type="stmt" count="0"/>
|
71410 |
+
<line num="113" type="method" name="prepare_item_for_response" visibility="public" complexity="1" crap="2" count="0"/>
|
71411 |
+
<line num="114" type="stmt" count="0"/>
|
71412 |
+
<line num="115" type="stmt" count="0"/>
|
71413 |
+
<line num="128" type="method" name="get_item" visibility="public" complexity="2" crap="6" count="0"/>
|
71414 |
+
<line num="129" type="stmt" count="0"/>
|
71415 |
+
<line num="131" type="stmt" count="0"/>
|
71416 |
+
<line num="132" type="stmt" count="0"/>
|
71417 |
+
<line num="133" type="stmt" count="0"/>
|
71418 |
+
<line num="135" type="stmt" count="0"/>
|
71419 |
+
<line num="136" type="stmt" count="0"/>
|
71420 |
+
<line num="137" type="stmt" count="0"/>
|
71421 |
+
<line num="138" type="stmt" count="0"/>
|
71422 |
+
<line num="139" type="stmt" count="0"/>
|
71423 |
+
<line num="140" type="stmt" count="0"/>
|
71424 |
+
<line num="141" type="stmt" count="0"/>
|
71425 |
+
<line num="142" type="stmt" count="0"/>
|
71426 |
+
<line num="143" type="stmt" count="0"/>
|
71427 |
+
<line num="144" type="stmt" count="0"/>
|
71428 |
+
<metrics loc="145" ncloc="88" classes="1" methods="4" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="71" coveredstatements="0" elements="75" coveredelements="0"/>
|
71429 |
+
</file>
|
71430 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/rest/class-boldgrid-backup-rest-setting.php">
|
71431 |
+
<class name="Boldgrid_Backup_Rest_Setting" namespace="global" fullPackage="Boldgrid.Backup.Rest">
|
71432 |
+
<metrics complexity="11" methods="7" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="0" elements="99" coveredelements="0"/>
|
71433 |
+
</class>
|
71434 |
+
<line num="37" type="method" name="register_routes" visibility="public" complexity="1" crap="2" count="0"/>
|
71435 |
+
<line num="38" type="stmt" count="0"/>
|
71436 |
+
<line num="39" type="stmt" count="0"/>
|
71437 |
+
<line num="40" type="stmt" count="0"/>
|
71438 |
+
<line num="47" type="method" name="register_get" visibility="public" complexity="1" crap="2" count="0"/>
|
71439 |
+
<line num="48" type="stmt" count="0"/>
|
71440 |
+
<line num="49" type="stmt" count="0"/>
|
71441 |
+
<line num="50" type="stmt" count="0"/>
|
71442 |
+
<line num="51" type="stmt" count="0"/>
|
71443 |
+
<line num="52" type="stmt" count="0"/>
|
71444 |
+
<line num="53" type="stmt" count="0"/>
|
71445 |
+
<line num="54" type="stmt" count="0"/>
|
71446 |
+
<line num="55" type="stmt" count="0"/>
|
71447 |
+
<line num="56" type="stmt" count="0"/>
|
71448 |
+
<line num="63" type="method" name="register_update" visibility="public" complexity="1" crap="2" count="0"/>
|
71449 |
+
<line num="64" type="stmt" count="0"/>
|
71450 |
+
<line num="65" type="stmt" count="0"/>
|
71451 |
+
<line num="66" type="stmt" count="0"/>
|
71452 |
+
<line num="67" type="stmt" count="0"/>
|
71453 |
+
<line num="68" type="stmt" count="0"/>
|
71454 |
+
<line num="69" type="stmt" count="0"/>
|
71455 |
+
<line num="70" type="stmt" count="0"/>
|
71456 |
+
<line num="71" type="stmt" count="0"/>
|
71457 |
+
<line num="72" type="stmt" count="0"/>
|
71458 |
+
<line num="83" type="method" name="prepare_item_for_response" visibility="public" complexity="1" crap="2" count="0"/>
|
71459 |
+
<line num="84" type="stmt" count="0"/>
|
71460 |
+
<line num="85" type="stmt" count="0"/>
|
71461 |
+
<line num="94" type="method" name="get_schema" visibility="public" complexity="1" crap="2" count="0"/>
|
71462 |
+
<line num="95" type="stmt" count="0"/>
|
71463 |
+
<line num="96" type="stmt" count="0"/>
|
71464 |
+
<line num="97" type="stmt" count="0"/>
|
71465 |
+
<line num="98" type="stmt" count="0"/>
|
71466 |
+
<line num="99" type="stmt" count="0"/>
|
71467 |
+
<line num="100" type="stmt" count="0"/>
|
71468 |
+
<line num="101" type="stmt" count="0"/>
|
71469 |
+
<line num="102" type="stmt" count="0"/>
|
71470 |
+
<line num="103" type="stmt" count="0"/>
|
71471 |
+
<line num="104" type="stmt" count="0"/>
|
71472 |
+
<line num="105" type="stmt" count="0"/>
|
71473 |
+
<line num="106" type="stmt" count="0"/>
|
71474 |
+
<line num="107" type="stmt" count="0"/>
|
71475 |
+
<line num="108" type="stmt" count="0"/>
|
71476 |
+
<line num="109" type="stmt" count="0"/>
|
71477 |
+
<line num="110" type="stmt" count="0"/>
|
71478 |
+
<line num="111" type="stmt" count="0"/>
|
71479 |
+
<line num="112" type="stmt" count="0"/>
|
71480 |
+
<line num="113" type="stmt" count="0"/>
|
71481 |
+
<line num="114" type="stmt" count="0"/>
|
71482 |
+
<line num="115" type="stmt" count="0"/>
|
71483 |
+
<line num="116" type="stmt" count="0"/>
|
71484 |
+
<line num="117" type="stmt" count="0"/>
|
71485 |
+
<line num="118" type="stmt" count="0"/>
|
71486 |
+
<line num="119" type="stmt" count="0"/>
|
71487 |
+
<line num="120" type="stmt" count="0"/>
|
71488 |
+
<line num="121" type="stmt" count="0"/>
|
71489 |
+
<line num="122" type="stmt" count="0"/>
|
71490 |
+
<line num="123" type="stmt" count="0"/>
|
71491 |
+
<line num="124" type="stmt" count="0"/>
|
71492 |
+
<line num="125" type="stmt" count="0"/>
|
71493 |
+
<line num="126" type="stmt" count="0"/>
|
71494 |
+
<line num="127" type="stmt" count="0"/>
|
71495 |
+
<line num="128" type="stmt" count="0"/>
|
71496 |
+
<line num="129" type="stmt" count="0"/>
|
71497 |
+
<line num="130" type="stmt" count="0"/>
|
71498 |
+
<line num="131" type="stmt" count="0"/>
|
71499 |
+
<line num="132" type="stmt" count="0"/>
|
71500 |
+
<line num="133" type="stmt" count="0"/>
|
71501 |
+
<line num="134" type="stmt" count="0"/>
|
71502 |
+
<line num="135" type="stmt" count="0"/>
|
71503 |
+
<line num="136" type="stmt" count="0"/>
|
71504 |
+
<line num="138" type="stmt" count="0"/>
|
71505 |
+
<line num="139" type="stmt" count="0"/>
|
71506 |
+
<line num="149" type="method" name="get_item" visibility="public" complexity="2" crap="6" count="0"/>
|
71507 |
+
<line num="150" type="stmt" count="0"/>
|
71508 |
+
<line num="151" type="stmt" count="0"/>
|
71509 |
+
<line num="153" type="stmt" count="0"/>
|
71510 |
+
<line num="155" type="stmt" count="0"/>
|
71511 |
+
<line num="156" type="stmt" count="0"/>
|
71512 |
+
<line num="166" type="method" name="update_item" visibility="public" complexity="4" crap="20" count="0"/>
|
71513 |
+
<line num="167" type="stmt" count="0"/>
|
71514 |
+
<line num="168" type="stmt" count="0"/>
|
71515 |
+
<line num="169" type="stmt" count="0"/>
|
71516 |
+
<line num="171" type="stmt" count="0"/>
|
71517 |
+
<line num="172" type="stmt" count="0"/>
|
71518 |
+
<line num="173" type="stmt" count="0"/>
|
71519 |
+
<line num="174" type="stmt" count="0"/>
|
71520 |
+
<line num="175" type="stmt" count="0"/>
|
71521 |
+
<line num="177" type="stmt" count="0"/>
|
71522 |
+
<line num="178" type="stmt" count="0"/>
|
71523 |
+
<line num="180" type="stmt" count="0"/>
|
71524 |
+
<line num="181" type="stmt" count="0"/>
|
71525 |
+
<line num="184" type="stmt" count="0"/>
|
71526 |
+
<line num="187" type="stmt" count="0"/>
|
71527 |
+
<line num="188" type="stmt" count="0"/>
|
71528 |
+
<line num="189" type="stmt" count="0"/>
|
71529 |
+
<line num="190" type="stmt" count="0"/>
|
71530 |
+
<line num="191" type="stmt" count="0"/>
|
71531 |
+
<line num="193" type="stmt" count="0"/>
|
71532 |
+
<line num="194" type="stmt" count="0"/>
|
71533 |
+
<metrics loc="195" ncloc="119" classes="1" methods="7" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="0" elements="99" coveredelements="0"/>
|
71534 |
+
</file>
|
71535 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/rest/class-boldgrid-backup-rest-test.php">
|
71536 |
+
<class name="Boldgrid_Backup_Rest_Test" namespace="global" fullPackage="Boldgrid.Backup.Rest">
|
71537 |
+
<metrics complexity="5" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="31" coveredstatements="0" elements="36" coveredelements="0"/>
|
71538 |
+
</class>
|
71539 |
+
<line num="37" type="method" name="register_routes" visibility="public" complexity="1" crap="2" count="0"/>
|
71540 |
+
<line num="38" type="stmt" count="0"/>
|
71541 |
+
<line num="39" type="stmt" count="0"/>
|
71542 |
+
<line num="46" type="method" name="register_get" visibility="public" complexity="1" crap="2" count="0"/>
|
71543 |
+
<line num="47" type="stmt" count="0"/>
|
71544 |
+
<line num="48" type="stmt" count="0"/>
|
71545 |
+
<line num="49" type="stmt" count="0"/>
|
71546 |
+
<line num="50" type="stmt" count="0"/>
|
71547 |
+
<line num="51" type="stmt" count="0"/>
|
71548 |
+
<line num="52" type="stmt" count="0"/>
|
71549 |
+
<line num="53" type="stmt" count="0"/>
|
71550 |
+
<line num="54" type="stmt" count="0"/>
|
71551 |
+
<line num="55" type="stmt" count="0"/>
|
71552 |
+
<line num="66" type="method" name="prepare_item_for_response" visibility="public" complexity="1" crap="2" count="0"/>
|
71553 |
+
<line num="67" type="stmt" count="0"/>
|
71554 |
+
<line num="68" type="stmt" count="0"/>
|
71555 |
+
<line num="77" type="method" name="get_schema" visibility="public" complexity="1" crap="2" count="0"/>
|
71556 |
+
<line num="78" type="stmt" count="0"/>
|
71557 |
+
<line num="79" type="stmt" count="0"/>
|
71558 |
+
<line num="80" type="stmt" count="0"/>
|
71559 |
+
<line num="81" type="stmt" count="0"/>
|
71560 |
+
<line num="82" type="stmt" count="0"/>
|
71561 |
+
<line num="83" type="stmt" count="0"/>
|
71562 |
+
<line num="84" type="stmt" count="0"/>
|
71563 |
+
<line num="85" type="stmt" count="0"/>
|
71564 |
+
<line num="86" type="stmt" count="0"/>
|
71565 |
+
<line num="87" type="stmt" count="0"/>
|
71566 |
+
<line num="88" type="stmt" count="0"/>
|
71567 |
+
<line num="89" type="stmt" count="0"/>
|
71568 |
+
<line num="91" type="stmt" count="0"/>
|
71569 |
+
<line num="92" type="stmt" count="0"/>
|
71570 |
+
<line num="102" type="method" name="get_item" visibility="public" complexity="1" crap="2" count="0"/>
|
71571 |
+
<line num="103" type="stmt" count="0"/>
|
71572 |
+
<line num="104" type="stmt" count="0"/>
|
71573 |
+
<line num="105" type="stmt" count="0"/>
|
71574 |
+
<line num="106" type="stmt" count="0"/>
|
71575 |
+
<metrics loc="107" ncloc="48" classes="1" methods="5" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="31" coveredstatements="0" elements="36" coveredelements="0"/>
|
71576 |
+
</file>
|
71577 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/rest/class-boldgrid-backup-rest-utility.php">
|
71578 |
+
<class name="Boldgrid_Backup_Rest_Utility" namespace="global" fullPackage="Boldgrid.Backup.Rest">
|
71579 |
+
<metrics complexity="7" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="0" elements="17" coveredelements="0"/>
|
71580 |
+
</class>
|
71581 |
+
<line num="27" type="method" name="get_current_url" visibility="public" complexity="3" crap="12" count="0"/>
|
71582 |
+
<line num="28" type="stmt" count="0"/>
|
71583 |
+
<line num="30" type="stmt" count="0"/>
|
71584 |
+
<line num="31" type="stmt" count="0"/>
|
71585 |
+
<line num="45" type="method" name="insert_nonce" visibility="public" complexity="1" crap="2" count="0"/>
|
71586 |
+
<line num="46" type="stmt" count="0"/>
|
71587 |
+
<line num="47" type="stmt" count="0"/>
|
71588 |
+
<line num="48" type="stmt" count="0"/>
|
71589 |
+
<line num="57" type="method" name="is_rest" visibility="public" complexity="3" crap="12" count="0"/>
|
71590 |
+
<line num="58" type="stmt" count="0"/>
|
71591 |
+
<line num="61" type="stmt" count="0"/>
|
71592 |
+
<line num="62" type="stmt" count="0"/>
|
71593 |
+
<line num="65" type="stmt" count="0"/>
|
71594 |
+
<line num="66" type="stmt" count="0"/>
|
71595 |
+
<line num="69" type="stmt" count="0"/>
|
71596 |
+
<line num="71" type="stmt" count="0"/>
|
71597 |
+
<line num="72" type="stmt" count="0"/>
|
71598 |
+
<metrics loc="73" ncloc="23" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="0" elements="17" coveredelements="0"/>
|
71599 |
+
</file>
|
71600 |
<package name="Boldgrid\Library\Library">
|
71601 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/class-license.php">
|
71602 |
<class name="License" namespace="Boldgrid\Library\Library">
|
72946 |
</file>
|
72947 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-archive.php">
|
72948 |
<class name="Test_Boldgrid_Backup_Admin_Archive" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
72949 |
+
<metrics complexity="7" methods="6" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="41" elements="47" coveredelements="47"/>
|
72950 |
</class>
|
72951 |
+
<line num="26" type="method" name="maybe_create_backup" visibility="public" complexity="2" crap="2" count="5"/>
|
72952 |
+
<line num="27" type="stmt" count="5"/>
|
72953 |
+
<line num="29" type="stmt" count="5"/>
|
72954 |
+
<line num="30" type="stmt" count="5"/>
|
72955 |
+
<line num="31" type="stmt" count="5"/>
|
72956 |
+
<line num="32" type="stmt" count="5"/>
|
72957 |
+
<line num="33" type="stmt" count="5"/>
|
72958 |
+
<line num="40" type="method" name="test_init_by_key" visibility="public" complexity="1" crap="1" count="1"/>
|
72959 |
<line num="41" type="stmt" count="1"/>
|
|
|
72960 |
<line num="43" type="stmt" count="1"/>
|
72961 |
+
<line num="45" type="stmt" count="1"/>
|
72962 |
+
<line num="46" type="stmt" count="1"/>
|
72963 |
+
<line num="48" type="stmt" count="1"/>
|
72964 |
+
<line num="49" type="stmt" count="1"/>
|
72965 |
+
<line num="50" type="stmt" count="1"/>
|
72966 |
+
<line num="57" type="method" name="test_init_by_latest" visibility="public" complexity="1" crap="1" count="1"/>
|
72967 |
+
<line num="58" type="stmt" count="1"/>
|
72968 |
+
<line num="61" type="stmt" count="1"/>
|
72969 |
+
<line num="63" type="stmt" count="1"/>
|
72970 |
+
<line num="66" type="stmt" count="1"/>
|
72971 |
+
<line num="67" type="stmt" count="1"/>
|
72972 |
+
<line num="68" type="stmt" count="1"/>
|
72973 |
+
<line num="75" type="method" name="test_is_archive" visibility="public" complexity="1" crap="1" count="1"/>
|
72974 |
+
<line num="76" type="stmt" count="1"/>
|
72975 |
+
<line num="78" type="stmt" count="1"/>
|
72976 |
+
<line num="81" type="stmt" count="1"/>
|
72977 |
+
<line num="82" type="stmt" count="1"/>
|
72978 |
+
<line num="83" type="stmt" count="1"/>
|
72979 |
+
<line num="84" type="stmt" count="1"/>
|
72980 |
+
<line num="91" type="method" name="test_is_stored_locally" visibility="public" complexity="1" crap="1" count="1"/>
|
72981 |
+
<line num="92" type="stmt" count="1"/>
|
72982 |
+
<line num="94" type="stmt" count="1"/>
|
72983 |
+
<line num="96" type="stmt" count="1"/>
|
72984 |
+
<line num="97" type="stmt" count="1"/>
|
72985 |
+
<line num="99" type="stmt" count="1"/>
|
72986 |
+
<line num="100" type="stmt" count="1"/>
|
72987 |
+
<line num="101" type="stmt" count="1"/>
|
72988 |
+
<line num="108" type="method" name="test_set_id" visibility="public" complexity="1" crap="1" count="1"/>
|
72989 |
+
<line num="110" type="stmt" count="1"/>
|
72990 |
+
<line num="111" type="stmt" count="1"/>
|
72991 |
+
<line num="112" type="stmt" count="1"/>
|
72992 |
+
<line num="115" type="stmt" count="1"/>
|
72993 |
+
<line num="116" type="stmt" count="1"/>
|
72994 |
+
<line num="118" type="stmt" count="1"/>
|
72995 |
+
<line num="121" type="stmt" count="1"/>
|
72996 |
+
<line num="122" type="stmt" count="1"/>
|
72997 |
+
<line num="123" type="stmt" count="1"/>
|
72998 |
+
<metrics loc="124" ncloc="63" classes="1" methods="6" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="41" elements="47" coveredelements="47"/>
|
72999 |
</file>
|
73000 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-auto-rollback.php">
|
73001 |
<class name="Test_Boldgrid_Backup_Auto_Rollback" namespace="global" fullPackage="Test.Boldgrid.Backup.Auto">
|
73214 |
</file>
|
73215 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-compressor.php">
|
73216 |
<class name="Test_Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
73217 |
+
<metrics complexity="11" methods="5" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="85" coveredstatements="85" elements="90" coveredelements="90"/>
|
73218 |
</class>
|
73219 |
<line num="32" type="method" name="setUp" visibility="public" complexity="2" crap="2" count="4"/>
|
73220 |
<line num="33" type="stmt" count="4"/>
|
73225 |
<line num="41" type="stmt" count="4"/>
|
73226 |
<line num="43" type="stmt" count="4"/>
|
73227 |
<line num="44" type="stmt" count="4"/>
|
73228 |
+
<line num="51" type="method" name="test_archive_files" visibility="public" complexity="5" crap="5" count="1"/>
|
73229 |
<line num="53" type="stmt" count="1"/>
|
73230 |
<line num="54" type="stmt" count="1"/>
|
73231 |
<line num="55" type="stmt" count="1"/>
|
73232 |
<line num="56" type="stmt" count="1"/>
|
73233 |
+
<line num="61" type="stmt" count="1"/>
|
|
|
73234 |
<line num="62" type="stmt" count="1"/>
|
73235 |
+
<line num="63" type="stmt" count="1"/>
|
73236 |
+
<line num="64" type="stmt" count="1"/>
|
73237 |
+
<line num="67" type="stmt" count="1"/>
|
73238 |
+
<line num="68" type="stmt" count="1"/>
|
73239 |
<line num="69" type="stmt" count="1"/>
|
73240 |
<line num="70" type="stmt" count="1"/>
|
73241 |
+
<line num="73" type="stmt" count="1"/>
|
73242 |
+
<line num="74" type="stmt" count="1"/>
|
73243 |
+
<line num="75" type="stmt" count="1"/>
|
73244 |
+
<line num="76" type="stmt" count="1"/>
|
73245 |
+
<line num="79" type="stmt" count="1"/>
|
73246 |
<line num="80" type="stmt" count="1"/>
|
73247 |
<line num="81" type="stmt" count="1"/>
|
73248 |
<line num="82" type="stmt" count="1"/>
|
73249 |
+
<line num="83" type="stmt" count="1"/>
|
73250 |
+
<line num="86" type="stmt" count="1"/>
|
73251 |
+
<line num="87" type="stmt" count="1"/>
|
73252 |
+
<line num="89" type="stmt" count="1"/>
|
73253 |
+
<line num="90" type="stmt" count="1"/>
|
73254 |
+
<line num="93" type="stmt" count="1"/>
|
73255 |
<line num="94" type="stmt" count="1"/>
|
73256 |
+
<line num="97" type="stmt" count="1"/>
|
73257 |
+
<line num="98" type="stmt" count="1"/>
|
73258 |
<line num="108" type="stmt" count="1"/>
|
73259 |
<line num="109" type="stmt" count="1"/>
|
73260 |
+
<line num="110" type="stmt" count="1"/>
|
73261 |
<line num="113" type="stmt" count="1"/>
|
73262 |
+
<line num="115" type="stmt" count="1"/>
|
73263 |
+
<line num="117" type="stmt" count="1"/>
|
73264 |
+
<line num="120" type="stmt" count="1"/>
|
73265 |
<line num="123" type="stmt" count="1"/>
|
73266 |
+
<line num="124" type="stmt" count="1"/>
|
73267 |
+
<line num="126" type="stmt" count="1"/>
|
|
|
73268 |
<line num="129" type="stmt" count="1"/>
|
73269 |
+
<line num="132" type="stmt" count="1"/>
|
73270 |
+
<line num="135" type="stmt" count="1"/>
|
73271 |
+
<line num="137" type="stmt" count="1"/>
|
73272 |
+
<line num="149" type="stmt" count="1"/>
|
73273 |
+
<line num="150" type="stmt" count="1"/>
|
73274 |
+
<line num="151" type="stmt" count="1"/>
|
73275 |
+
<line num="154" type="stmt" count="1"/>
|
|
|
73276 |
<line num="155" type="stmt" count="1"/>
|
73277 |
<line num="156" type="stmt" count="1"/>
|
73278 |
+
<line num="159" type="stmt" count="1"/>
|
73279 |
+
<line num="160" type="stmt" count="1"/>
|
73280 |
+
<line num="161" type="stmt" count="1"/>
|
|
|
73281 |
<line num="168" type="stmt" count="1"/>
|
73282 |
+
<line num="169" type="stmt" count="1"/>
|
73283 |
+
<line num="170" type="stmt" count="1"/>
|
73284 |
<line num="172" type="stmt" count="1"/>
|
|
|
73285 |
<line num="174" type="stmt" count="1"/>
|
73286 |
<line num="175" type="stmt" count="1"/>
|
73287 |
<line num="176" type="stmt" count="1"/>
|
73288 |
+
<line num="177" type="stmt" count="1"/>
|
73289 |
+
<line num="184" type="method" name="test_is_available" visibility="public" complexity="1" crap="1" count="1"/>
|
73290 |
+
<line num="185" type="stmt" count="1"/>
|
73291 |
+
<line num="187" type="stmt" count="1"/>
|
73292 |
+
<line num="189" type="stmt" count="1"/>
|
73293 |
+
<line num="190" type="stmt" count="1"/>
|
73294 |
+
<line num="197" type="method" name="test_is_default" visibility="public" complexity="2" crap="2" count="1"/>
|
73295 |
+
<line num="199" type="stmt" count="1"/>
|
73296 |
+
<line num="202" type="stmt" count="1"/>
|
73297 |
+
<line num="203" type="stmt" count="1"/>
|
73298 |
+
<line num="210" type="method" name="test_is_saved_compressor" visibility="public" complexity="1" crap="1" count="1"/>
|
73299 |
+
<line num="212" type="stmt" count="1"/>
|
73300 |
+
<line num="213" type="stmt" count="1"/>
|
73301 |
+
<line num="214" type="stmt" count="1"/>
|
73302 |
+
<line num="215" type="stmt" count="1"/>
|
73303 |
+
<line num="218" type="stmt" count="1"/>
|
73304 |
+
<line num="219" type="stmt" count="1"/>
|
73305 |
+
<line num="220" type="stmt" count="1"/>
|
73306 |
+
<line num="221" type="stmt" count="1"/>
|
73307 |
+
<line num="222" type="stmt" count="1"/>
|
73308 |
+
<line num="223" type="stmt" count="1"/>
|
73309 |
+
<metrics loc="224" ncloc="105" classes="1" methods="5" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="85" coveredstatements="85" elements="90" coveredelements="90"/>
|
73310 |
</file>
|
73311 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-core.php">
|
73312 |
<class name="Test_Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
73313 |
+
<metrics complexity="23" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="124" coveredstatements="121" elements="133" coveredelements="129"/>
|
73314 |
</class>
|
73315 |
<line num="41" type="method" name="assertDirNotEmpty" visibility="public" complexity="5" crap="5" count="1"/>
|
73316 |
<line num="42" type="stmt" count="1"/>
|
73407 |
<line num="275" type="stmt" count="1"/>
|
73408 |
<line num="276" type="stmt" count="1"/>
|
73409 |
<line num="278" type="stmt" count="1"/>
|
73410 |
+
<line num="279" type="stmt" count="1"/>
|
73411 |
<line num="281" type="stmt" count="1"/>
|
73412 |
<line num="284" type="stmt" count="1"/>
|
73413 |
<line num="287" type="stmt" count="1"/>
|
|
|
|
|
73414 |
<line num="290" type="stmt" count="1"/>
|
73415 |
+
<line num="291" type="stmt" count="1"/>
|
73416 |
+
<line num="292" type="stmt" count="1"/>
|
73417 |
<line num="293" type="stmt" count="1"/>
|
73418 |
+
<line num="296" type="stmt" count="1"/>
|
73419 |
+
<line num="297" type="stmt" count="1"/>
|
73420 |
+
<line num="298" type="stmt" count="1"/>
|
73421 |
+
<line num="305" type="method" name="test_restore_archive_file" visibility="public" complexity="2" crap="2" count="1"/>
|
73422 |
+
<line num="313" type="stmt" count="1"/>
|
|
|
73423 |
<line num="314" type="stmt" count="1"/>
|
73424 |
+
<line num="315" type="stmt" count="1"/>
|
73425 |
<line num="317" type="stmt" count="1"/>
|
73426 |
<line num="318" type="stmt" count="1"/>
|
73427 |
+
<line num="320" type="stmt" count="1"/>
|
|
|
73428 |
<line num="323" type="stmt" count="1"/>
|
73429 |
<line num="324" type="stmt" count="1"/>
|
73430 |
+
<line num="325" type="stmt" count="1"/>
|
73431 |
+
<line num="327" type="stmt" count="1"/>
|
73432 |
+
<line num="329" type="stmt" count="1"/>
|
73433 |
+
<line num="330" type="stmt" count="1"/>
|
73434 |
+
<line num="340" type="method" name="test_restore_cli" visibility="public" complexity="2" crap="2" count="1"/>
|
73435 |
<line num="341" type="stmt" count="1"/>
|
73436 |
+
<line num="343" type="stmt" count="1"/>
|
73437 |
<line num="344" type="stmt" count="1"/>
|
73438 |
<line num="345" type="stmt" count="1"/>
|
73439 |
+
<line num="347" type="stmt" count="1"/>
|
73440 |
+
<line num="348" type="stmt" count="1"/>
|
73441 |
+
<line num="350" type="stmt" count="1"/>
|
73442 |
+
<line num="353" type="stmt" count="1"/>
|
73443 |
+
<line num="354" type="stmt" count="1"/>
|
73444 |
+
<line num="355" type="stmt" count="1"/>
|
73445 |
+
<line num="358" type="stmt" count="1"/>
|
73446 |
+
<line num="360" type="stmt" count="1"/>
|
73447 |
+
<line num="361" type="stmt" count="1"/>
|
73448 |
+
<metrics loc="362" ncloc="185" classes="1" methods="9" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="124" coveredstatements="121" elements="133" coveredelements="129"/>
|
73449 |
</file>
|
73450 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-cron.php">
|
73451 |
<class name="Test_Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
73983 |
<line num="119" type="stmt" count="0"/>
|
73984 |
<metrics loc="120" ncloc="103" classes="1" methods="6" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="39" elements="69" coveredelements="42"/>
|
73985 |
</file>
|
73986 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-task.php">
|
73987 |
+
<class name="Test_Boldgrid_Backup_Admin_Task" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
73988 |
+
<metrics complexity="5" methods="5" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="24" coveredstatements="24" elements="29" coveredelements="29"/>
|
73989 |
+
</class>
|
73990 |
+
<line num="34" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="4"/>
|
73991 |
+
<line num="35" type="stmt" count="4"/>
|
73992 |
+
<line num="36" type="stmt" count="4"/>
|
73993 |
+
<line num="37" type="stmt" count="4"/>
|
73994 |
+
<line num="38" type="stmt" count="4"/>
|
73995 |
+
<line num="45" type="method" name="test_get_data" visibility="public" complexity="1" crap="1" count="1"/>
|
73996 |
+
<line num="46" type="stmt" count="1"/>
|
73997 |
+
<line num="49" type="stmt" count="1"/>
|
73998 |
+
<line num="50" type="stmt" count="1"/>
|
73999 |
+
<line num="51" type="stmt" count="1"/>
|
74000 |
+
<line num="58" type="method" name="test_get_id" visibility="public" complexity="1" crap="1" count="1"/>
|
74001 |
+
<line num="59" type="stmt" count="1"/>
|
74002 |
+
<line num="60" type="stmt" count="1"/>
|
74003 |
+
<line num="67" type="method" name="test_get_status" visibility="public" complexity="1" crap="1" count="1"/>
|
74004 |
+
<line num="68" type="stmt" count="1"/>
|
74005 |
+
<line num="70" type="stmt" count="1"/>
|
74006 |
+
<line num="71" type="stmt" count="1"/>
|
74007 |
+
<line num="73" type="stmt" count="1"/>
|
74008 |
+
<line num="74" type="stmt" count="1"/>
|
74009 |
+
<line num="75" type="stmt" count="1"/>
|
74010 |
+
<line num="82" type="method" name="test_init" visibility="public" complexity="1" crap="1" count="1"/>
|
74011 |
+
<line num="83" type="stmt" count="1"/>
|
74012 |
+
<line num="86" type="stmt" count="1"/>
|
74013 |
+
<line num="87" type="stmt" count="1"/>
|
74014 |
+
<line num="88" type="stmt" count="1"/>
|
74015 |
+
<line num="90" type="stmt" count="1"/>
|
74016 |
+
<line num="93" type="stmt" count="1"/>
|
74017 |
+
<line num="94" type="stmt" count="1"/>
|
74018 |
+
<line num="95" type="stmt" count="1"/>
|
74019 |
+
<metrics loc="96" ncloc="42" classes="1" methods="5" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="24" coveredstatements="24" elements="29" coveredelements="29"/>
|
74020 |
+
</file>
|
74021 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-test.php">
|
74022 |
<class name="Test_Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
|
74023 |
<metrics complexity="2" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="10" coveredelements="10"/>
|
74096 |
<metrics loc="135" ncloc="76" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
|
74097 |
</file>
|
74098 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/bootstrap.php">
|
74099 |
+
<line num="169" type="stmt" count="0"/>
|
74100 |
+
<line num="170" type="stmt" count="0"/>
|
74101 |
+
<line num="172" type="stmt" count="0"/>
|
74102 |
+
<line num="174" type="stmt" count="0"/>
|
74103 |
+
<line num="175" type="stmt" count="0"/>
|
74104 |
+
<metrics loc="177" ncloc="133" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="5" coveredelements="0"/>
|
74105 |
</file>
|
74106 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/cli/test-class-info.php">
|
74107 |
<class name="Test_Boldgrid_Backup_Cli_Info" namespace="global" fullPackage="Test.Boldgrid.Backup.Cli">
|
74187 |
<line num="226" type="stmt" count="1"/>
|
74188 |
<metrics loc="227" ncloc="109" classes="1" methods="15" coveredmethods="14" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="61" elements="78" coveredelements="75"/>
|
74189 |
</file>
|
74190 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/includes/archive/test-class-factory.php">
|
74191 |
+
<class name="Test_Factory" namespace="global" fullPackage="Test">
|
74192 |
+
<metrics complexity="2" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="8" elements="13" coveredelements="8"/>
|
74193 |
+
</class>
|
74194 |
+
<line num="26" type="method" name="test_get_by_id" visibility="public" complexity="2" crap="2.15" count="1"/>
|
74195 |
+
<line num="28" type="stmt" count="1"/>
|
74196 |
+
<line num="29" type="stmt" count="1"/>
|
74197 |
+
<line num="32" type="stmt" count="1"/>
|
74198 |
+
<line num="33" type="stmt" count="1"/>
|
74199 |
+
<line num="34" type="stmt" count="0"/>
|
74200 |
+
<line num="35" type="stmt" count="0"/>
|
74201 |
+
<line num="37" type="stmt" count="0"/>
|
74202 |
+
<line num="38" type="stmt" count="0"/>
|
74203 |
+
<line num="41" type="stmt" count="1"/>
|
74204 |
+
<line num="44" type="stmt" count="1"/>
|
74205 |
+
<line num="45" type="stmt" count="1"/>
|
74206 |
+
<line num="46" type="stmt" count="1"/>
|
74207 |
+
<metrics loc="47" ncloc="17" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="12" coveredstatements="8" elements="13" coveredelements="8"/>
|
74208 |
+
</file>
|
74209 |
+
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/includes/archive/test-class-option.php">
|
74210 |
+
<class name="Test_Option" namespace="global" fullPackage="Test">
|
74211 |
+
<metrics complexity="4" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="22" coveredstatements="18" elements="25" coveredelements="20"/>
|
74212 |
+
</class>
|
74213 |
+
<line num="26" type="method" name="get_latest_backup" visibility="public" complexity="2" crap="2.75" count="2"/>
|
74214 |
+
<line num="27" type="stmt" count="2"/>
|
74215 |
+
<line num="29" type="stmt" count="2"/>
|
74216 |
+
<line num="30" type="stmt" count="0"/>
|
74217 |
+
<line num="31" type="stmt" count="0"/>
|
74218 |
+
<line num="33" type="stmt" count="0"/>
|
74219 |
+
<line num="34" type="stmt" count="0"/>
|
74220 |
+
<line num="36" type="stmt" count="2"/>
|
74221 |
+
<line num="44" type="method" name="test_get_next_id" visibility="public" complexity="1" crap="1" count="1"/>
|
74222 |
+
<line num="45" type="stmt" count="1"/>
|
74223 |
+
<line num="47" type="stmt" count="1"/>
|
74224 |
+
<line num="50" type="stmt" count="1"/>
|
74225 |
+
<line num="53" type="stmt" count="1"/>
|
74226 |
+
<line num="54" type="stmt" count="1"/>
|
74227 |
+
<line num="56" type="stmt" count="1"/>
|
74228 |
+
<line num="57" type="stmt" count="1"/>
|
74229 |
+
<line num="64" type="method" name="test_update_by_filename" visibility="public" complexity="1" crap="1" count="1"/>
|
74230 |
+
<line num="66" type="stmt" count="1"/>
|
74231 |
+
<line num="67" type="stmt" count="1"/>
|
74232 |
+
<line num="68" type="stmt" count="1"/>
|
74233 |
+
<line num="71" type="stmt" count="1"/>
|
74234 |
+
<line num="72" type="stmt" count="1"/>
|
74235 |
+
<line num="75" type="stmt" count="1"/>
|
74236 |
+
<line num="76" type="stmt" count="1"/>
|
74237 |
+
<line num="77" type="stmt" count="1"/>
|
74238 |
+
<metrics loc="78" ncloc="36" classes="1" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="22" coveredstatements="18" elements="25" coveredelements="20"/>
|
74239 |
+
</file>
|
74240 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/uninstall.php">
|
74241 |
<line num="12" type="stmt" count="0"/>
|
74242 |
<line num="13" type="stmt" count="0"/>
|
78835 |
<metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
|
78836 |
</file>
|
78837 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
|
78838 |
+
<class name="ComposerStaticInit330c6d37f1f7d1e9db9dd0b27407636e" namespace="Composer\Autoload">
|
78839 |
<metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
|
78840 |
</class>
|
78841 |
<line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
|
78927 |
<metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
|
78928 |
</file>
|
78929 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
|
78930 |
+
<class name="ComposerAutoloaderInit330c6d37f1f7d1e9db9dd0b27407636e" namespace="global">
|
78931 |
<metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
|
78932 |
</class>
|
78933 |
<line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
|
79022 |
<class name="TypeAdapterMysql" namespace="Ifsnop\Mysqldump">
|
79023 |
<metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="11" coveredstatements="0" elements="12" coveredelements="0"/>
|
79024 |
</class>
|
79025 |
+
<line num="125" type="method" name="__construct" visibility="public" complexity="7" crap="7.02" count="9"/>
|
79026 |
+
<line num="133" type="stmt" count="9"/>
|
79027 |
+
<line num="134" type="stmt" count="9"/>
|
79028 |
+
<line num="135" type="stmt" count="9"/>
|
79029 |
+
<line num="136" type="stmt" count="9"/>
|
79030 |
+
<line num="137" type="stmt" count="9"/>
|
79031 |
+
<line num="138" type="stmt" count="9"/>
|
79032 |
+
<line num="139" type="stmt" count="9"/>
|
79033 |
+
<line num="140" type="stmt" count="9"/>
|
79034 |
+
<line num="141" type="stmt" count="9"/>
|
79035 |
+
<line num="142" type="stmt" count="9"/>
|
79036 |
+
<line num="143" type="stmt" count="9"/>
|
79037 |
+
<line num="144" type="stmt" count="9"/>
|
79038 |
+
<line num="145" type="stmt" count="9"/>
|
79039 |
+
<line num="146" type="stmt" count="9"/>
|
79040 |
+
<line num="147" type="stmt" count="9"/>
|
79041 |
+
<line num="148" type="stmt" count="9"/>
|
79042 |
+
<line num="149" type="stmt" count="9"/>
|
79043 |
+
<line num="150" type="stmt" count="9"/>
|
79044 |
+
<line num="151" type="stmt" count="9"/>
|
79045 |
+
<line num="152" type="stmt" count="9"/>
|
79046 |
+
<line num="153" type="stmt" count="9"/>
|
79047 |
+
<line num="154" type="stmt" count="9"/>
|
79048 |
+
<line num="155" type="stmt" count="9"/>
|
79049 |
+
<line num="156" type="stmt" count="9"/>
|
79050 |
+
<line num="157" type="stmt" count="9"/>
|
79051 |
+
<line num="158" type="stmt" count="9"/>
|
79052 |
+
<line num="159" type="stmt" count="9"/>
|
79053 |
+
<line num="160" type="stmt" count="9"/>
|
79054 |
+
<line num="161" type="stmt" count="9"/>
|
79055 |
+
<line num="162" type="stmt" count="9"/>
|
79056 |
+
<line num="163" type="stmt" count="9"/>
|
79057 |
+
<line num="166" type="stmt" count="9"/>
|
79058 |
+
<line num="169" type="stmt" count="9"/>
|
79059 |
+
<line num="170" type="stmt" count="9"/>
|
79060 |
+
<line num="171" type="stmt" count="9"/>
|
79061 |
+
<line num="173" type="stmt" count="9"/>
|
79062 |
+
<line num="174" type="stmt" count="9"/>
|
79063 |
+
<line num="175" type="stmt" count="9"/>
|
79064 |
+
<line num="178" type="stmt" count="9"/>
|
79065 |
+
<line num="179" type="stmt" count="9"/>
|
79066 |
+
<line num="180" type="stmt" count="9"/>
|
79067 |
+
<line num="182" type="stmt" count="9"/>
|
79068 |
+
<line num="183" type="stmt" count="9"/>
|
79069 |
+
<line num="184" type="stmt" count="9"/>
|
79070 |
+
<line num="186" type="stmt" count="9"/>
|
79071 |
+
<line num="187" type="stmt" count="9"/>
|
79072 |
+
<line num="188" type="stmt" count="9"/>
|
79073 |
+
<line num="190" type="stmt" count="9"/>
|
79074 |
+
<line num="191" type="stmt" count="9"/>
|
79075 |
<line num="192" type="stmt" count="0"/>
|
79076 |
+
<line num="195" type="stmt" count="9"/>
|
79077 |
+
<line num="196" type="stmt" count="9"/>
|
79078 |
<line num="197" type="stmt" count="0"/>
|
79079 |
+
<line num="201" type="stmt" count="9"/>
|
79080 |
<line num="202" type="stmt" count="0"/>
|
79081 |
<line num="203" type="stmt" count="0"/>
|
79082 |
+
<line num="206" type="stmt" count="9"/>
|
79083 |
+
<line num="207" type="stmt" count="9"/>
|
79084 |
+
<line num="212" type="method" name="__destruct" visibility="public" complexity="1" crap="1" count="9"/>
|
79085 |
+
<line num="214" type="stmt" count="9"/>
|
79086 |
+
<line num="215" type="stmt" count="9"/>
|
79087 |
+
<line num="226" type="method" name="array_replace_recursive" visibility="public" complexity="4" crap="11.53" count="9"/>
|
79088 |
+
<line num="228" type="stmt" count="9"/>
|
79089 |
+
<line num="229" type="stmt" count="9"/>
|
79090 |
<line num="232" type="stmt" count="0"/>
|
79091 |
<line num="233" type="stmt" count="0"/>
|
79092 |
<line num="234" type="stmt" count="0"/>
|
79097 |
<line num="248" type="method" name="setTableWheres" visibility="public" complexity="1" crap="2" count="0"/>
|
79098 |
<line num="250" type="stmt" count="0"/>
|
79099 |
<line num="251" type="stmt" count="0"/>
|
79100 |
+
<line num="258" type="method" name="getTableWhere" visibility="public" complexity="3" crap="3.58" count="9"/>
|
79101 |
+
<line num="260" type="stmt" count="9"/>
|
79102 |
<line num="261" type="stmt" count="0"/>
|
79103 |
+
<line num="262" type="stmt" count="9"/>
|
79104 |
<line num="263" type="stmt" count="0"/>
|
79105 |
+
<line num="266" type="stmt" count="9"/>
|
79106 |
<line num="275" type="method" name="setTableLimits" visibility="public" complexity="1" crap="2" count="0"/>
|
79107 |
<line num="277" type="stmt" count="0"/>
|
79108 |
<line num="278" type="stmt" count="0"/>
|
79109 |
+
<line num="285" type="method" name="getTableLimit" visibility="public" complexity="3" crap="5.67" count="9"/>
|
79110 |
+
<line num="287" type="stmt" count="9"/>
|
79111 |
+
<line num="288" type="stmt" count="9"/>
|
79112 |
<line num="291" type="stmt" count="0"/>
|
79113 |
<line num="292" type="stmt" count="0"/>
|
79114 |
<line num="293" type="stmt" count="0"/>
|
79115 |
<line num="296" type="stmt" count="0"/>
|
79116 |
+
<line num="309" type="method" name="parseDsn" visibility="private" complexity="9" crap="9.65" count="9"/>
|
79117 |
+
<line num="311" type="stmt" count="9"/>
|
79118 |
<line num="312" type="stmt" count="0"/>
|
79119 |
+
<line num="315" type="stmt" count="9"/>
|
79120 |
+
<line num="316" type="stmt" count="9"/>
|
79121 |
+
<line num="318" type="stmt" count="9"/>
|
79122 |
<line num="319" type="stmt" count="0"/>
|
79123 |
+
<line num="322" type="stmt" count="9"/>
|
79124 |
+
<line num="324" type="stmt" count="9"/>
|
79125 |
+
<line num="325" type="stmt" count="9"/>
|
79126 |
+
<line num="326" type="stmt" count="9"/>
|
79127 |
+
<line num="327" type="stmt" count="9"/>
|
79128 |
+
<line num="329" type="stmt" count="9"/>
|
79129 |
+
<line num="330" type="stmt" count="9"/>
|
79130 |
<line num="331" type="stmt" count="0"/>
|
79131 |
+
<line num="333" type="stmt" count="9"/>
|
79132 |
+
<line num="334" type="stmt" count="9"/>
|
79133 |
+
<line num="336" type="stmt" count="9"/>
|
79134 |
<line num="337" type="stmt" count="0"/>
|
79135 |
+
<line num="340" type="stmt" count="9"/>
|
79136 |
+
<line num="342" type="stmt" count="9"/>
|
79137 |
+
<line num="350" type="method" name="connect" visibility="private" complexity="8" crap="9.57" count="9"/>
|
79138 |
+
<line num="354" type="stmt" count="9"/>
|
79139 |
+
<line num="355" type="stmt" count="9"/>
|
79140 |
<line num="356" type="stmt" count="0"/>
|
79141 |
<line num="357" type="stmt" count="0"/>
|
79142 |
+
<line num="358" type="stmt" count="9"/>
|
79143 |
+
<line num="359" type="stmt" count="9"/>
|
79144 |
+
<line num="360" type="stmt" count="9"/>
|
79145 |
+
<line num="361" type="stmt" count="9"/>
|
79146 |
+
<line num="362" type="stmt" count="9"/>
|
79147 |
+
<line num="363" type="stmt" count="9"/>
|
79148 |
+
<line num="364" type="stmt" count="9"/>
|
79149 |
+
<line num="365" type="stmt" count="9"/>
|
79150 |
+
<line num="366" type="stmt" count="9"/>
|
79151 |
+
<line num="368" type="stmt" count="9"/>
|
79152 |
+
<line num="369" type="stmt" count="9"/>
|
79153 |
+
<line num="370" type="stmt" count="9"/>
|
79154 |
+
<line num="372" type="stmt" count="9"/>
|
79155 |
+
<line num="373" type="stmt" count="9"/>
|
79156 |
<line num="374" type="stmt" count="0"/>
|
79157 |
<line num="375" type="stmt" count="0"/>
|
79158 |
+
<line num="376" type="stmt" count="9"/>
|
79159 |
+
<line num="377" type="stmt" count="9"/>
|
79160 |
<line num="378" type="stmt" count="0"/>
|
79161 |
<line num="379" type="stmt" count="0"/>
|
79162 |
<line num="380" type="stmt" count="0"/>
|
79163 |
<line num="381" type="stmt" count="0"/>
|
79164 |
+
<line num="384" type="stmt" count="9"/>
|
79165 |
<line num="385" type="stmt" count="0"/>
|
79166 |
+
<line num="388" type="stmt" count="9"/>
|
79167 |
+
<line num="389" type="stmt" count="9"/>
|
79168 |
+
<line num="390" type="stmt" count="9"/>
|
79169 |
+
<line num="399" type="method" name="start" visibility="public" complexity="6" crap="7.33" count="9"/>
|
79170 |
+
<line num="402" type="stmt" count="9"/>
|
79171 |
+
<line num="403" type="stmt" count="9"/>
|
79172 |
+
<line num="404" type="stmt" count="9"/>
|
79173 |
+
<line num="407" type="stmt" count="9"/>
|
79174 |
+
<line num="410" type="stmt" count="9"/>
|
79175 |
+
<line num="413" type="stmt" count="9"/>
|
79176 |
+
<line num="416" type="stmt" count="9"/>
|
79177 |
+
<line num="417" type="stmt" count="9"/>
|
79178 |
+
<line num="418" type="stmt" count="9"/>
|
79179 |
+
<line num="420" type="stmt" count="9"/>
|
79180 |
<line num="421" type="stmt" count="0"/>
|
79181 |
<line num="422" type="stmt" count="0"/>
|
79182 |
<line num="423" type="stmt" count="0"/>
|
79186 |
<line num="427" type="stmt" count="0"/>
|
79187 |
<line num="428" type="stmt" count="0"/>
|
79188 |
<line num="429" type="stmt" count="0"/>
|
79189 |
+
<line num="433" type="stmt" count="9"/>
|
79190 |
+
<line num="434" type="stmt" count="9"/>
|
79191 |
+
<line num="435" type="stmt" count="9"/>
|
79192 |
+
<line num="436" type="stmt" count="9"/>
|
79193 |
+
<line num="437" type="stmt" count="9"/>
|
79194 |
+
<line num="438" type="stmt" count="9"/>
|
79195 |
+
<line num="440" type="stmt" count="9"/>
|
79196 |
<line num="441" type="stmt" count="0"/>
|
79197 |
<line num="442" type="stmt" count="0"/>
|
79198 |
<line num="443" type="stmt" count="0"/>
|
79199 |
<line num="444" type="stmt" count="0"/>
|
79200 |
+
<line num="450" type="stmt" count="9"/>
|
79201 |
<line num="451" type="stmt" count="0"/>
|
79202 |
<line num="452" type="stmt" count="0"/>
|
79203 |
+
<line num="455" type="stmt" count="9"/>
|
79204 |
+
<line num="456" type="stmt" count="9"/>
|
79205 |
+
<line num="457" type="stmt" count="9"/>
|
79206 |
+
<line num="458" type="stmt" count="9"/>
|
79207 |
+
<line num="459" type="stmt" count="9"/>
|
79208 |
+
<line num="460" type="stmt" count="9"/>
|
79209 |
+
<line num="463" type="stmt" count="9"/>
|
79210 |
+
<line num="464" type="stmt" count="9"/>
|
79211 |
+
<line num="465" type="stmt" count="9"/>
|
79212 |
+
<line num="467" type="stmt" count="9"/>
|
79213 |
+
<line num="469" type="stmt" count="9"/>
|
79214 |
+
<line num="471" type="stmt" count="9"/>
|
79215 |
+
<line num="479" type="method" name="getDumpFileHeader" visibility="private" complexity="4" crap="4" count="9"/>
|
79216 |
+
<line num="481" type="stmt" count="9"/>
|
79217 |
+
<line num="482" type="stmt" count="9"/>
|
79218 |
+
<line num="484" type="stmt" count="9"/>
|
79219 |
+
<line num="485" type="stmt" count="9"/>
|
79220 |
+
<line num="486" type="stmt" count="9"/>
|
79221 |
+
<line num="487" type="stmt" count="9"/>
|
79222 |
+
<line num="489" type="stmt" count="9"/>
|
79223 |
+
<line num="490" type="stmt" count="9"/>
|
79224 |
+
<line num="491" type="stmt" count="9"/>
|
79225 |
+
<line num="493" type="stmt" count="9"/>
|
79226 |
+
<line num="494" type="stmt" count="9"/>
|
79227 |
+
<line num="495" type="stmt" count="9"/>
|
79228 |
+
<line num="496" type="stmt" count="9"/>
|
79229 |
+
<line num="497" type="stmt" count="9"/>
|
79230 |
+
<line num="505" type="method" name="getDumpFileFooter" visibility="private" complexity="3" crap="3" count="9"/>
|
79231 |
+
<line num="507" type="stmt" count="9"/>
|
79232 |
+
<line num="508" type="stmt" count="9"/>
|
79233 |
+
<line num="509" type="stmt" count="9"/>
|
79234 |
+
<line num="510" type="stmt" count="9"/>
|
79235 |
+
<line num="511" type="stmt" count="9"/>
|
79236 |
+
<line num="512" type="stmt" count="9"/>
|
79237 |
+
<line num="513" type="stmt" count="9"/>
|
79238 |
+
<line num="514" type="stmt" count="9"/>
|
79239 |
+
<line num="516" type="stmt" count="9"/>
|
79240 |
+
<line num="525" type="method" name="getDatabaseStructureTables" visibility="private" complexity="5" crap="5.39" count="9"/>
|
79241 |
+
<line num="528" type="stmt" count="9"/>
|
79242 |
<line num="530" type="stmt" count="0"/>
|
79243 |
<line num="531" type="stmt" count="0"/>
|
79244 |
<line num="532" type="stmt" count="0"/>
|
79245 |
<line num="533" type="stmt" count="0"/>
|
79246 |
+
<line num="535" type="stmt" count="9"/>
|
79247 |
+
<line num="536" type="stmt" count="9"/>
|
79248 |
+
<line num="537" type="stmt" count="9"/>
|
79249 |
+
<line num="538" type="stmt" count="9"/>
|
79250 |
+
<line num="539" type="stmt" count="9"/>
|
79251 |
+
<line num="540" type="stmt" count="9"/>
|
79252 |
+
<line num="541" type="stmt" count="9"/>
|
79253 |
+
<line num="542" type="stmt" count="9"/>
|
79254 |
+
<line num="543" type="stmt" count="9"/>
|
79255 |
+
<line num="544" type="stmt" count="9"/>
|
79256 |
+
<line num="546" type="stmt" count="9"/>
|
79257 |
+
<line num="555" type="method" name="getDatabaseStructureViews" visibility="private" complexity="5" crap="5.01" count="9"/>
|
79258 |
+
<line num="558" type="stmt" count="9"/>
|
79259 |
+
<line num="560" type="stmt" count="6"/>
|
79260 |
<line num="561" type="stmt" count="0"/>
|
79261 |
+
<line num="562" type="stmt" count="6"/>
|
79262 |
+
<line num="563" type="stmt" count="6"/>
|
79263 |
<line num="565" type="stmt" count="3"/>
|
79264 |
<line num="566" type="stmt" count="3"/>
|
79265 |
<line num="567" type="stmt" count="3"/>
|
79270 |
<line num="572" type="stmt" count="3"/>
|
79271 |
<line num="573" type="stmt" count="3"/>
|
79272 |
<line num="574" type="stmt" count="3"/>
|
79273 |
+
<line num="576" type="stmt" count="9"/>
|
79274 |
+
<line num="585" type="method" name="getDatabaseStructureTriggers" visibility="private" complexity="3" crap="3.04" count="9"/>
|
79275 |
+
<line num="588" type="stmt" count="9"/>
|
79276 |
+
<line num="589" type="stmt" count="9"/>
|
79277 |
<line num="590" type="stmt" count="0"/>
|
79278 |
+
<line num="591" type="stmt" count="9"/>
|
79279 |
+
<line num="592" type="stmt" count="9"/>
|
79280 |
+
<line num="593" type="stmt" count="9"/>
|
79281 |
+
<line num="602" type="method" name="getDatabaseStructureProcedures" visibility="private" complexity="3" crap="5.67" count="9"/>
|
79282 |
+
<line num="605" type="stmt" count="9"/>
|
79283 |
<line num="606" type="stmt" count="0"/>
|
79284 |
<line num="607" type="stmt" count="0"/>
|
79285 |
<line num="608" type="stmt" count="0"/>
|
79286 |
<line num="609" type="stmt" count="0"/>
|
79287 |
+
<line num="610" type="stmt" count="9"/>
|
79288 |
+
<line num="619" type="method" name="getDatabaseStructureFunctions" visibility="private" complexity="3" crap="5.67" count="9"/>
|
79289 |
+
<line num="622" type="stmt" count="9"/>
|
79290 |
<line num="623" type="stmt" count="0"/>
|
79291 |
<line num="624" type="stmt" count="0"/>
|
79292 |
<line num="625" type="stmt" count="0"/>
|
79293 |
<line num="626" type="stmt" count="0"/>
|
79294 |
+
<line num="627" type="stmt" count="9"/>
|
79295 |
+
<line num="636" type="method" name="getDatabaseStructureEvents" visibility="private" complexity="3" crap="5.67" count="9"/>
|
79296 |
+
<line num="639" type="stmt" count="9"/>
|
79297 |
<line num="640" type="stmt" count="0"/>
|
79298 |
<line num="641" type="stmt" count="0"/>
|
79299 |
<line num="642" type="stmt" count="0"/>
|
79300 |
<line num="643" type="stmt" count="0"/>
|
79301 |
+
<line num="644" type="stmt" count="9"/>
|
79302 |
+
<line num="653" type="method" name="matches" visibility="private" complexity="5" crap="9.29" count="9"/>
|
79303 |
+
<line num="655" type="stmt" count="9"/>
|
79304 |
+
<line num="657" type="stmt" count="9"/>
|
79305 |
<line num="658" type="stmt" count="0"/>
|
79306 |
<line num="659" type="stmt" count="0"/>
|
79307 |
<line num="661" type="stmt" count="0"/>
|
79308 |
<line num="662" type="stmt" count="0"/>
|
79309 |
<line num="663" type="stmt" count="0"/>
|
79310 |
+
<line num="664" type="stmt" count="9"/>
|
79311 |
+
<line num="666" type="stmt" count="9"/>
|
79312 |
+
<line num="674" type="method" name="exportTables" visibility="private" complexity="6" crap="6.56" count="9"/>
|
79313 |
+
<line num="677" type="stmt" count="9"/>
|
79314 |
+
<line num="678" type="stmt" count="9"/>
|
79315 |
<line num="679" type="stmt" count="0"/>
|
79316 |
+
<line num="681" type="stmt" count="9"/>
|
79317 |
+
<line num="682" type="stmt" count="9"/>
|
79318 |
<line num="683" type="stmt" count="0"/>
|
79319 |
+
<line num="684" type="stmt" count="9"/>
|
79320 |
+
<line num="685" type="stmt" count="9"/>
|
79321 |
<line num="686" type="stmt" count="0"/>
|
79322 |
+
<line num="688" type="stmt" count="9"/>
|
79323 |
+
<line num="690" type="stmt" count="9"/>
|
79324 |
+
<line num="691" type="stmt" count="9"/>
|
79325 |
+
<line num="698" type="method" name="exportViews" visibility="private" complexity="6" crap="6.10" count="9"/>
|
79326 |
+
<line num="700" type="stmt" count="9"/>
|
79327 |
+
<line num="702" type="stmt" count="9"/>
|
79328 |
<line num="703" type="stmt" count="3"/>
|
79329 |
<line num="704" type="stmt" count="0"/>
|
79330 |
<line num="706" type="stmt" count="3"/>
|
79331 |
<line num="707" type="stmt" count="3"/>
|
79332 |
+
<line num="708" type="stmt" count="9"/>
|
79333 |
+
<line num="709" type="stmt" count="9"/>
|
79334 |
<line num="710" type="stmt" count="3"/>
|
79335 |
<line num="711" type="stmt" count="0"/>
|
79336 |
<line num="713" type="stmt" count="3"/>
|
79337 |
+
<line num="714" type="stmt" count="9"/>
|
79338 |
+
<line num="715" type="stmt" count="9"/>
|
79339 |
+
<line num="716" type="stmt" count="9"/>
|
79340 |
+
<line num="723" type="method" name="exportTriggers" visibility="private" complexity="2" crap="2.06" count="9"/>
|
79341 |
+
<line num="726" type="stmt" count="9"/>
|
79342 |
<line num="727" type="stmt" count="0"/>
|
79343 |
+
<line num="728" type="stmt" count="9"/>
|
79344 |
+
<line num="729" type="stmt" count="9"/>
|
79345 |
+
<line num="736" type="method" name="exportProcedures" visibility="private" complexity="2" crap="2.06" count="9"/>
|
79346 |
+
<line num="739" type="stmt" count="9"/>
|
79347 |
<line num="740" type="stmt" count="0"/>
|
79348 |
+
<line num="741" type="stmt" count="9"/>
|
79349 |
+
<line num="742" type="stmt" count="9"/>
|
79350 |
+
<line num="749" type="method" name="exportFunctions" visibility="private" complexity="2" crap="2.06" count="9"/>
|
79351 |
+
<line num="752" type="stmt" count="9"/>
|
79352 |
<line num="753" type="stmt" count="0"/>
|
79353 |
+
<line num="754" type="stmt" count="9"/>
|
79354 |
+
<line num="755" type="stmt" count="9"/>
|
79355 |
+
<line num="762" type="method" name="exportEvents" visibility="private" complexity="2" crap="2.06" count="9"/>
|
79356 |
+
<line num="765" type="stmt" count="9"/>
|
79357 |
<line num="766" type="stmt" count="0"/>
|
79358 |
+
<line num="767" type="stmt" count="9"/>
|
79359 |
+
<line num="768" type="stmt" count="9"/>
|
79360 |
+
<line num="777" type="method" name="getTableStructure" visibility="private" complexity="5" crap="5" count="9"/>
|
79361 |
+
<line num="779" type="stmt" count="9"/>
|
79362 |
+
<line num="780" type="stmt" count="9"/>
|
79363 |
+
<line num="781" type="stmt" count="9"/>
|
79364 |
+
<line num="782" type="stmt" count="9"/>
|
79365 |
+
<line num="783" type="stmt" count="9"/>
|
79366 |
+
<line num="784" type="stmt" count="9"/>
|
79367 |
+
<line num="785" type="stmt" count="9"/>
|
79368 |
+
<line num="786" type="stmt" count="9"/>
|
79369 |
+
<line num="787" type="stmt" count="9"/>
|
79370 |
+
<line num="788" type="stmt" count="9"/>
|
79371 |
+
<line num="789" type="stmt" count="9"/>
|
79372 |
+
<line num="790" type="stmt" count="9"/>
|
79373 |
+
<line num="791" type="stmt" count="9"/>
|
79374 |
+
<line num="792" type="stmt" count="9"/>
|
79375 |
+
<line num="793" type="stmt" count="9"/>
|
79376 |
+
<line num="794" type="stmt" count="9"/>
|
79377 |
+
<line num="795" type="stmt" count="9"/>
|
79378 |
+
<line num="796" type="stmt" count="9"/>
|
79379 |
+
<line num="797" type="stmt" count="9"/>
|
79380 |
+
<line num="798" type="stmt" count="9"/>
|
79381 |
+
<line num="799" type="stmt" count="9"/>
|
79382 |
+
<line num="800" type="stmt" count="9"/>
|
79383 |
+
<line num="801" type="stmt" count="9"/>
|
79384 |
+
<line num="811" type="method" name="getTableColumnTypes" visibility="private" complexity="2" crap="2" count="9"/>
|
79385 |
+
<line num="813" type="stmt" count="9"/>
|
79386 |
+
<line num="814" type="stmt" count="9"/>
|
79387 |
+
<line num="815" type="stmt" count="9"/>
|
79388 |
+
<line num="816" type="stmt" count="9"/>
|
79389 |
+
<line num="817" type="stmt" count="9"/>
|
79390 |
+
<line num="819" type="stmt" count="9"/>
|
79391 |
+
<line num="820" type="stmt" count="9"/>
|
79392 |
+
<line num="821" type="stmt" count="9"/>
|
79393 |
+
<line num="822" type="stmt" count="9"/>
|
79394 |
+
<line num="823" type="stmt" count="9"/>
|
79395 |
+
<line num="824" type="stmt" count="9"/>
|
79396 |
+
<line num="825" type="stmt" count="9"/>
|
79397 |
+
<line num="826" type="stmt" count="9"/>
|
79398 |
+
<line num="827" type="stmt" count="9"/>
|
79399 |
+
<line num="828" type="stmt" count="9"/>
|
79400 |
+
<line num="830" type="stmt" count="9"/>
|
79401 |
<line num="840" type="method" name="getViewStructureTable" visibility="private" complexity="2" crap="2" count="3"/>
|
79402 |
<line num="842" type="stmt" count="3"/>
|
79403 |
<line num="843" type="stmt" count="3"/>
|
79485 |
<line num="1004" type="stmt" count="0"/>
|
79486 |
<line num="1005" type="stmt" count="0"/>
|
79487 |
<line num="1006" type="stmt" count="0"/>
|
79488 |
+
<line num="1019" type="stmt" count="9"/>
|
79489 |
+
<line num="1020" type="stmt" count="9"/>
|
79490 |
+
<line num="1021" type="stmt" count="9"/>
|
79491 |
+
<line num="1022" type="stmt" count="9"/>
|
79492 |
+
<line num="1023" type="stmt" count="9"/>
|
79493 |
+
<line num="1024" type="stmt" count="9"/>
|
79494 |
+
<line num="1026" type="stmt" count="9"/>
|
79495 |
+
<line num="1039" type="stmt" count="9"/>
|
79496 |
<line num="1040" type="stmt" count="0"/>
|
79497 |
+
<line num="1041" type="stmt" count="9"/>
|
79498 |
<line num="1042" type="stmt" count="0"/>
|
79499 |
<line num="1043" type="stmt" count="0"/>
|
79500 |
<line num="1045" type="stmt" count="0"/>
|
79501 |
+
<line num="1047" type="stmt" count="9"/>
|
79502 |
+
<line num="1048" type="stmt" count="9"/>
|
79503 |
+
<line num="1051" type="stmt" count="9"/>
|
79504 |
<line num="1063" type="stmt" count="0"/>
|
79505 |
<line num="1064" type="stmt" count="0"/>
|
79506 |
+
<line num="1077" type="stmt" count="9"/>
|
79507 |
+
<line num="1078" type="stmt" count="9"/>
|
79508 |
<line num="1081" type="stmt" count="0"/>
|
79509 |
<line num="1082" type="stmt" count="0"/>
|
79510 |
<line num="1083" type="stmt" count="0"/>
|
79511 |
<line num="1084" type="stmt" count="0"/>
|
79512 |
<line num="1086" type="stmt" count="0"/>
|
79513 |
+
<line num="1098" type="stmt" count="9"/>
|
79514 |
+
<line num="1100" type="stmt" count="9"/>
|
79515 |
+
<line num="1101" type="stmt" count="9"/>
|
79516 |
+
<line num="1104" type="stmt" count="9"/>
|
79517 |
+
<line num="1106" type="stmt" count="9"/>
|
79518 |
<line num="1107" type="stmt" count="0"/>
|
79519 |
<line num="1108" type="stmt" count="0"/>
|
79520 |
+
<line num="1110" type="stmt" count="9"/>
|
79521 |
+
<line num="1113" type="stmt" count="9"/>
|
79522 |
+
<line num="1115" type="stmt" count="9"/>
|
79523 |
<line num="1116" type="stmt" count="0"/>
|
79524 |
<line num="1117" type="stmt" count="0"/>
|
79525 |
+
<line num="1119" type="stmt" count="9"/>
|
79526 |
+
<line num="1121" type="stmt" count="9"/>
|
79527 |
<line num="1122" type="stmt" count="0"/>
|
79528 |
<line num="1123" type="stmt" count="0"/>
|
79529 |
+
<line num="1125" type="stmt" count="9"/>
|
79530 |
+
<line num="1126" type="stmt" count="9"/>
|
79531 |
+
<line num="1128" type="stmt" count="9"/>
|
79532 |
+
<line num="1130" type="stmt" count="9"/>
|
79533 |
+
<line num="1131" type="stmt" count="9"/>
|
79534 |
+
<line num="1132" type="stmt" count="9"/>
|
79535 |
+
<line num="1133" type="stmt" count="9"/>
|
79536 |
+
<line num="1134" type="stmt" count="9"/>
|
79537 |
+
<line num="1135" type="stmt" count="9"/>
|
79538 |
<line num="1136" type="stmt" count="0"/>
|
79539 |
<line num="1137" type="stmt" count="0"/>
|
79540 |
<line num="1138" type="stmt" count="0"/>
|
79541 |
<line num="1139" type="stmt" count="0"/>
|
79542 |
<line num="1140" type="stmt" count="0"/>
|
79543 |
<line num="1141" type="stmt" count="0"/>
|
79544 |
+
<line num="1142" type="stmt" count="9"/>
|
79545 |
+
<line num="1143" type="stmt" count="9"/>
|
79546 |
+
<line num="1144" type="stmt" count="9"/>
|
79547 |
+
<line num="1146" type="stmt" count="9"/>
|
79548 |
+
<line num="1147" type="stmt" count="9"/>
|
79549 |
+
<line num="1148" type="stmt" count="9"/>
|
79550 |
+
<line num="1150" type="stmt" count="9"/>
|
79551 |
+
<line num="1151" type="stmt" count="9"/>
|
79552 |
<line num="1152" type="stmt" count="0"/>
|
79553 |
<line num="1153" type="stmt" count="0"/>
|
79554 |
<line num="1154" type="stmt" count="0"/>
|
79555 |
+
<line num="1155" type="stmt" count="9"/>
|
79556 |
+
<line num="1156" type="stmt" count="9"/>
|
79557 |
+
<line num="1158" type="stmt" count="9"/>
|
79558 |
+
<line num="1159" type="stmt" count="9"/>
|
79559 |
+
<line num="1160" type="stmt" count="9"/>
|
79560 |
+
<line num="1162" type="stmt" count="9"/>
|
79561 |
+
<line num="1163" type="stmt" count="9"/>
|
79562 |
+
<line num="1174" type="stmt" count="9"/>
|
79563 |
+
<line num="1175" type="stmt" count="9"/>
|
79564 |
+
<line num="1176" type="stmt" count="9"/>
|
79565 |
+
<line num="1177" type="stmt" count="9"/>
|
79566 |
+
<line num="1178" type="stmt" count="9"/>
|
79567 |
+
<line num="1179" type="stmt" count="9"/>
|
79568 |
+
<line num="1180" type="stmt" count="9"/>
|
79569 |
+
<line num="1182" type="stmt" count="9"/>
|
79570 |
+
<line num="1183" type="stmt" count="9"/>
|
79571 |
+
<line num="1184" type="stmt" count="9"/>
|
79572 |
+
<line num="1185" type="stmt" count="9"/>
|
79573 |
+
<line num="1187" type="stmt" count="9"/>
|
79574 |
<line num="1188" type="stmt" count="0"/>
|
79575 |
<line num="1189" type="stmt" count="0"/>
|
79576 |
+
<line num="1191" type="stmt" count="9"/>
|
79577 |
+
<line num="1192" type="stmt" count="9"/>
|
79578 |
+
<line num="1193" type="stmt" count="9"/>
|
79579 |
+
<line num="1194" type="stmt" count="9"/>
|
79580 |
+
<line num="1195" type="stmt" count="9"/>
|
79581 |
+
<line num="1197" type="stmt" count="9"/>
|
79582 |
+
<line num="1198" type="stmt" count="9"/>
|
79583 |
+
<line num="1199" type="stmt" count="9"/>
|
79584 |
+
<line num="1200" type="stmt" count="9"/>
|
79585 |
+
<line num="1201" type="stmt" count="9"/>
|
79586 |
+
<line num="1204" type="stmt" count="9"/>
|
79587 |
<line num="1205" type="stmt" count="0"/>
|
79588 |
<line num="1206" type="stmt" count="0"/>
|
79589 |
<line num="1207" type="stmt" count="0"/>
|
79590 |
<line num="1208" type="stmt" count="0"/>
|
79591 |
+
<line num="1210" type="stmt" count="9"/>
|
79592 |
+
<line num="1223" type="stmt" count="9"/>
|
79593 |
+
<line num="1224" type="stmt" count="9"/>
|
79594 |
+
<line num="1225" type="stmt" count="9"/>
|
79595 |
+
<line num="1226" type="stmt" count="9"/>
|
79596 |
+
<line num="1227" type="stmt" count="9"/>
|
79597 |
+
<line num="1229" type="stmt" count="9"/>
|
79598 |
+
<line num="1230" type="stmt" count="9"/>
|
79599 |
+
<line num="1231" type="stmt" count="9"/>
|
79600 |
+
<line num="1232" type="stmt" count="9"/>
|
79601 |
+
<line num="1233" type="stmt" count="9"/>
|
79602 |
+
<line num="1235" type="stmt" count="9"/>
|
79603 |
+
<line num="1236" type="stmt" count="9"/>
|
79604 |
+
<line num="1237" type="stmt" count="9"/>
|
79605 |
+
<line num="1239" type="stmt" count="9"/>
|
79606 |
<line num="1240" type="stmt" count="0"/>
|
79607 |
<line num="1241" type="stmt" count="0"/>
|
79608 |
+
<line num="1244" type="stmt" count="9"/>
|
79609 |
<line num="1245" type="stmt" count="0"/>
|
79610 |
<line num="1246" type="stmt" count="0"/>
|
79611 |
<line num="1247" type="stmt" count="0"/>
|
79612 |
<line num="1248" type="stmt" count="0"/>
|
79613 |
+
<line num="1250" type="stmt" count="9"/>
|
79614 |
+
<line num="1252" type="stmt" count="9"/>
|
79615 |
+
<line num="1253" type="stmt" count="9"/>
|
79616 |
+
<line num="1254" type="stmt" count="9"/>
|
79617 |
+
<line num="1255" type="stmt" count="9"/>
|
79618 |
+
<line num="1256" type="stmt" count="9"/>
|
79619 |
+
<line num="1257" type="stmt" count="9"/>
|
79620 |
+
<line num="1259" type="stmt" count="9"/>
|
79621 |
+
<line num="1271" type="stmt" count="9"/>
|
79622 |
+
<line num="1272" type="stmt" count="9"/>
|
79623 |
+
<line num="1273" type="stmt" count="9"/>
|
79624 |
<line num="1274" type="stmt" count="0"/>
|
79625 |
+
<line num="1275" type="stmt" count="9"/>
|
79626 |
<line num="1276" type="stmt" count="0"/>
|
79627 |
+
<line num="1277" type="stmt" count="9"/>
|
79628 |
<line num="1278" type="stmt" count="0"/>
|
79629 |
<line num="1279" type="stmt" count="0"/>
|
79630 |
+
<line num="1281" type="stmt" count="9"/>
|
79631 |
+
<line num="1283" type="stmt" count="9"/>
|
79632 |
+
<line num="1285" type="stmt" count="9"/>
|
79633 |
<line num="1297" type="stmt" count="0"/>
|
79634 |
<line num="1298" type="stmt" count="0"/>
|
79635 |
<line num="1299" type="stmt" count="0"/>
|
79638 |
<line num="1303" type="stmt" count="0"/>
|
79639 |
<line num="1305" type="stmt" count="0"/>
|
79640 |
<line num="1306" type="stmt" count="0"/>
|
79641 |
+
<line num="1327" type="method" name="isValid" visibility="public" complexity="1" crap="1" count="9"/>
|
79642 |
+
<line num="1329" type="stmt" count="9"/>
|
79643 |
+
<line num="1339" type="method" name="create" visibility="public" complexity="2" crap="2.03" count="9"/>
|
79644 |
+
<line num="1341" type="stmt" count="9"/>
|
79645 |
+
<line num="1342" type="stmt" count="9"/>
|
79646 |
<line num="1343" type="stmt" count="0"/>
|
79647 |
+
<line num="1346" type="stmt" count="9"/>
|
79648 |
+
<line num="1348" type="stmt" count="9"/>
|
79649 |
<line num="1356" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
|
79650 |
<line num="1358" type="stmt" count="0"/>
|
79651 |
<line num="1359" type="stmt" count="0"/>
|
79678 |
<line num="1421" type="stmt" count="0"/>
|
79679 |
<line num="1424" type="method" name="close" visibility="public" complexity="1" crap="2" count="0"/>
|
79680 |
<line num="1426" type="stmt" count="0"/>
|
79681 |
+
<line num="1437" type="method" name="open" visibility="public" complexity="2" crap="2.06" count="9"/>
|
79682 |
+
<line num="1439" type="stmt" count="9"/>
|
79683 |
+
<line num="1440" type="stmt" count="9"/>
|
79684 |
<line num="1441" type="stmt" count="0"/>
|
79685 |
+
<line num="1444" type="stmt" count="9"/>
|
79686 |
+
<line num="1447" type="method" name="write" visibility="public" complexity="2" crap="2.06" count="9"/>
|
79687 |
+
<line num="1449" type="stmt" count="9"/>
|
79688 |
+
<line num="1450" type="stmt" count="9"/>
|
79689 |
<line num="1451" type="stmt" count="0"/>
|
79690 |
+
<line num="1453" type="stmt" count="9"/>
|
79691 |
+
<line num="1456" type="method" name="close" visibility="public" complexity="1" crap="1" count="9"/>
|
79692 |
+
<line num="1458" type="stmt" count="9"/>
|
79693 |
<line num="1471" type="method" name="open" visibility="public" complexity="2" crap="6" count="0"/>
|
79694 |
<line num="1473" type="stmt" count="0"/>
|
79695 |
<line num="1474" type="stmt" count="0"/>
|
79704 |
<line num="1492" type="method" name="close" visibility="public" complexity="1" crap="2" count="0"/>
|
79705 |
<line num="1494" type="stmt" count="0"/>
|
79706 |
<line num="1495" type="stmt" count="0"/>
|
79707 |
+
<line num="1514" type="method" name="isValid" visibility="public" complexity="1" crap="1" count="9"/>
|
79708 |
+
<line num="1516" type="stmt" count="9"/>
|
79709 |
+
<line num="1533" type="method" name="create" visibility="public" complexity="2" crap="2.03" count="9"/>
|
79710 |
+
<line num="1535" type="stmt" count="9"/>
|
79711 |
+
<line num="1536" type="stmt" count="9"/>
|
79712 |
<line num="1537" type="stmt" count="0"/>
|
79713 |
+
<line num="1539" type="stmt" count="9"/>
|
79714 |
+
<line num="1540" type="stmt" count="9"/>
|
79715 |
+
<line num="1543" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="9"/>
|
79716 |
+
<line num="1545" type="stmt" count="9"/>
|
79717 |
+
<line num="1546" type="stmt" count="9"/>
|
79718 |
+
<line num="1547" type="stmt" count="9"/>
|
79719 |
<line num="1553" type="method" name="databases" visibility="public" complexity="1" crap="2" count="0"/>
|
79720 |
<line num="1555" type="stmt" count="0"/>
|
79721 |
<line num="1558" type="method" name="show_create_table" visibility="public" complexity="1" crap="2" count="0"/>
|
79783 |
<line num="1834" type="stmt" count="0"/>
|
79784 |
<line num="1835" type="stmt" count="0"/>
|
79785 |
<line num="1837" type="stmt" count="0"/>
|
79786 |
+
<line num="1842" type="stmt" count="9"/>
|
79787 |
<line num="1847" type="stmt" count="3"/>
|
79788 |
<line num="1852" type="stmt" count="0"/>
|
79789 |
<line num="1857" type="stmt" count="0"/>
|
79790 |
<line num="1862" type="stmt" count="0"/>
|
79791 |
<line num="1867" type="stmt" count="0"/>
|
79792 |
+
<line num="1872" type="stmt" count="9"/>
|
79793 |
<line num="1873" type="stmt" count="0"/>
|
79794 |
+
<line num="1876" type="stmt" count="9"/>
|
79795 |
+
<line num="1877" type="stmt" count="9"/>
|
79796 |
<line num="1878" type="stmt" count="0"/>
|
79797 |
<line num="1879" type="stmt" count="0"/>
|
79798 |
<line num="1880" type="stmt" count="0"/>
|
79799 |
<line num="1881" type="stmt" count="0"/>
|
79800 |
+
<line num="1883" type="stmt" count="9"/>
|
79801 |
+
<line num="1884" type="stmt" count="9"/>
|
79802 |
+
<line num="1885" type="stmt" count="9"/>
|
79803 |
+
<line num="1886" type="stmt" count="9"/>
|
79804 |
+
<line num="1887" type="stmt" count="9"/>
|
79805 |
+
<line num="1888" type="stmt" count="9"/>
|
79806 |
<line num="1893" type="stmt" count="3"/>
|
79807 |
<line num="1894" type="stmt" count="3"/>
|
79808 |
<line num="1895" type="stmt" count="0"/>
|
79929 |
<line num="2058" type="stmt" count="0"/>
|
79930 |
<line num="2059" type="stmt" count="0"/>
|
79931 |
<line num="2063" type="stmt" count="0"/>
|
79932 |
+
<line num="2068" type="stmt" count="9"/>
|
79933 |
+
<line num="2069" type="stmt" count="9"/>
|
79934 |
+
<line num="2071" type="stmt" count="9"/>
|
79935 |
+
<line num="2072" type="stmt" count="9"/>
|
79936 |
+
<line num="2077" type="stmt" count="9"/>
|
79937 |
+
<line num="2078" type="stmt" count="9"/>
|
79938 |
+
<line num="2080" type="stmt" count="9"/>
|
79939 |
+
<line num="2081" type="stmt" count="9"/>
|
79940 |
+
<line num="2086" type="stmt" count="9"/>
|
79941 |
+
<line num="2087" type="stmt" count="9"/>
|
79942 |
+
<line num="2088" type="stmt" count="9"/>
|
79943 |
+
<line num="2093" type="stmt" count="9"/>
|
79944 |
+
<line num="2094" type="stmt" count="9"/>
|
79945 |
+
<line num="2095" type="stmt" count="9"/>
|
79946 |
<line num="2100" type="stmt" count="0"/>
|
79947 |
<line num="2101" type="stmt" count="0"/>
|
79948 |
<line num="2103" type="stmt" count="0"/>
|
79955 |
<line num="2125" type="stmt" count="0"/>
|
79956 |
<line num="2127" type="stmt" count="0"/>
|
79957 |
<line num="2128" type="stmt" count="0"/>
|
79958 |
+
<line num="2133" type="stmt" count="9"/>
|
79959 |
+
<line num="2139" type="stmt" count="9"/>
|
79960 |
+
<line num="2145" type="stmt" count="9"/>
|
79961 |
<line num="2150" type="stmt" count="0"/>
|
79962 |
<line num="2151" type="stmt" count="0"/>
|
79963 |
<line num="2152" type="stmt" count="0"/>
|
79964 |
<line num="2157" type="stmt" count="0"/>
|
79965 |
+
<line num="2162" type="stmt" count="9"/>
|
79966 |
+
<line num="2163" type="stmt" count="9"/>
|
79967 |
+
<line num="2164" type="stmt" count="9"/>
|
79968 |
+
<line num="2169" type="stmt" count="9"/>
|
79969 |
+
<line num="2174" type="stmt" count="9"/>
|
79970 |
+
<line num="2175" type="stmt" count="9"/>
|
79971 |
+
<line num="2176" type="stmt" count="9"/>
|
79972 |
+
<line num="2177" type="stmt" count="9"/>
|
79973 |
+
<line num="2182" type="stmt" count="9"/>
|
79974 |
+
<line num="2183" type="stmt" count="9"/>
|
79975 |
+
<line num="2184" type="stmt" count="9"/>
|
79976 |
+
<line num="2185" type="stmt" count="9"/>
|
79977 |
<line num="2190" type="stmt" count="0"/>
|
79978 |
<line num="2195" type="stmt" count="0"/>
|
79979 |
<line num="2200" type="stmt" count="0"/>
|
79983 |
<line num="2208" type="stmt" count="0"/>
|
79984 |
<line num="2209" type="stmt" count="0"/>
|
79985 |
<line num="2210" type="stmt" count="0"/>
|
79986 |
+
<line num="2215" type="stmt" count="9"/>
|
79987 |
+
<line num="2216" type="stmt" count="9"/>
|
79988 |
+
<line num="2217" type="stmt" count="9"/>
|
79989 |
<line num="2222" type="stmt" count="3"/>
|
79990 |
<line num="2223" type="stmt" count="3"/>
|
79991 |
<line num="2224" type="stmt" count="3"/>
|
79995 |
<line num="2232" type="stmt" count="0"/>
|
79996 |
<line num="2233" type="stmt" count="0"/>
|
79997 |
<line num="2234" type="stmt" count="0"/>
|
79998 |
+
<line num="2246" type="stmt" count="9"/>
|
79999 |
+
<line num="2247" type="stmt" count="9"/>
|
80000 |
+
<line num="2249" type="stmt" count="9"/>
|
80001 |
+
<line num="2250" type="stmt" count="9"/>
|
80002 |
+
<line num="2251" type="stmt" count="9"/>
|
80003 |
+
<line num="2252" type="stmt" count="9"/>
|
80004 |
+
<line num="2253" type="stmt" count="9"/>
|
80005 |
+
<line num="2254" type="stmt" count="9"/>
|
80006 |
+
<line num="2256" type="stmt" count="9"/>
|
80007 |
+
<line num="2257" type="stmt" count="9"/>
|
80008 |
+
<line num="2261" type="stmt" count="9"/>
|
80009 |
+
<line num="2263" type="stmt" count="9"/>
|
80010 |
+
<line num="2268" type="stmt" count="9"/>
|
80011 |
+
<line num="2269" type="stmt" count="9"/>
|
80012 |
+
<line num="2270" type="stmt" count="9"/>
|
80013 |
+
<line num="2271" type="stmt" count="9"/>
|
80014 |
+
<line num="2273" type="stmt" count="9"/>
|
80015 |
+
<line num="2274" type="stmt" count="9"/>
|
80016 |
+
<line num="2275" type="stmt" count="9"/>
|
80017 |
+
<line num="2276" type="stmt" count="9"/>
|
80018 |
+
<line num="2278" type="stmt" count="9"/>
|
80019 |
+
<line num="2279" type="stmt" count="9"/>
|
80020 |
+
<line num="2280" type="stmt" count="9"/>
|
80021 |
+
<line num="2281" type="stmt" count="9"/>
|
80022 |
+
<line num="2283" type="stmt" count="9"/>
|
80023 |
+
<line num="2288" type="stmt" count="9"/>
|
80024 |
+
<line num="2290" type="stmt" count="9"/>
|
80025 |
+
<line num="2291" type="stmt" count="9"/>
|
80026 |
+
<line num="2292" type="stmt" count="9"/>
|
80027 |
+
<line num="2294" type="stmt" count="9"/>
|
80028 |
+
<line num="2295" type="stmt" count="9"/>
|
80029 |
+
<line num="2296" type="stmt" count="9"/>
|
80030 |
+
<line num="2297" type="stmt" count="9"/>
|
80031 |
+
<line num="2298" type="stmt" count="9"/>
|
80032 |
+
<line num="2299" type="stmt" count="9"/>
|
80033 |
+
<line num="2300" type="stmt" count="9"/>
|
80034 |
+
<line num="2302" type="stmt" count="9"/>
|
80035 |
+
<line num="2315" type="stmt" count="9"/>
|
80036 |
<line num="2316" type="stmt" count="0"/>
|
80037 |
+
<line num="2318" type="stmt" count="9"/>
|
80038 |
<metrics loc="2320" ncloc="1775" classes="10" methods="61" coveredmethods="10" conditionals="0" coveredconditionals="0" statements="952" coveredstatements="521" elements="1013" coveredelements="531"/>
|
80039 |
</file>
|
80040 |
</package>
|
98172 |
<line num="16" type="stmt" count="0"/>
|
98173 |
<metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
|
98174 |
</file>
|
98175 |
+
<metrics files="996" loc="198737" ncloc="120502" classes="902" methods="3796" coveredmethods="432" conditionals="0" coveredconditionals="0" statements="88253" coveredstatements="5440" elements="92049" coveredelements="5872"/>
|
98176 |
</project>
|
98177 |
</coverage>
|
includes/archive/class-factory.php
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Factory class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\Archive;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Factory
|
18 |
+
*
|
19 |
+
* A factory for getting an archive of type Boldgrid_Backup_Admin_Archive.
|
20 |
+
*
|
21 |
+
* @since SINCEVERSION
|
22 |
+
*/
|
23 |
+
class Factory {
|
24 |
+
/**
|
25 |
+
* Get an archive by filename.
|
26 |
+
*
|
27 |
+
* @since SINCEVERSION
|
28 |
+
*
|
29 |
+
* @param string $filename The filename of a backup.
|
30 |
+
* @return Boldgrid_Backup_Admin_Archive
|
31 |
+
*/
|
32 |
+
public static function get_by_filename( $filename ) {
|
33 |
+
$archive = new \Boldgrid_Backup_Admin_Archive();
|
34 |
+
|
35 |
+
$archive->init_by_filename( $filename );
|
36 |
+
|
37 |
+
$archive = self::set_id( $archive );
|
38 |
+
|
39 |
+
return $archive;
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Get a backup by id.
|
44 |
+
*
|
45 |
+
* @since SINCEVERSION
|
46 |
+
*
|
47 |
+
* @param string $id The backup id.
|
48 |
+
* @return Boldgrid_Backup_Admin_Archive
|
49 |
+
*/
|
50 |
+
public static function get_by_id( $id ) {
|
51 |
+
$archive = new \Boldgrid_Backup_Admin_Archive();
|
52 |
+
|
53 |
+
// Get the filename of our backup based on id.
|
54 |
+
$option = new Option();
|
55 |
+
$option_row = $option->get_by_key( 'id', (int) $id );
|
56 |
+
$filename = ! empty( $option_row['filename'] ) ? $option_row['filename'] : null;
|
57 |
+
|
58 |
+
if ( ! empty( $filename ) ) {
|
59 |
+
$archive->init_by_filename( $filename );
|
60 |
+
}
|
61 |
+
|
62 |
+
return $archive;
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Give a backup an id.
|
67 |
+
*
|
68 |
+
* @since SINCEVERSION
|
69 |
+
*
|
70 |
+
* @param Boldgrid_Backup_Admin_Archive $archive An archive.
|
71 |
+
* @return Boldgrid_Backup_Admin_Archive
|
72 |
+
*/
|
73 |
+
private static function set_id( $archive ) {
|
74 |
+
$option = new Option();
|
75 |
+
|
76 |
+
$option_row = $option->get_by_key( 'filename', $archive->filename );
|
77 |
+
|
78 |
+
if ( empty( $option_row ) ) {
|
79 |
+
$option_row = [ 'filename' => $archive->filename ];
|
80 |
+
}
|
81 |
+
|
82 |
+
if ( isset( $option_row['id'] ) ) {
|
83 |
+
$archive->set_id( $option_row['id'] );
|
84 |
+
} else {
|
85 |
+
$archive->set_id( $option->get_next_id() );
|
86 |
+
|
87 |
+
$option->update_by_filename( $archive->filename, 'id', $archive->get_id() );
|
88 |
+
}
|
89 |
+
|
90 |
+
return $archive;
|
91 |
+
}
|
92 |
+
}
|
includes/archive/class-option.php
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Option class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\Archive;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Option
|
18 |
+
*
|
19 |
+
* This class is used to manage the boldgrid_backup_backups option.
|
20 |
+
*
|
21 |
+
* In it's first implementation, each entry in the array represents a single backup, and has an id and
|
22 |
+
* a filename. For examples, please see: https://pastebin.com/Wuey2zvP
|
23 |
+
*
|
24 |
+
* @since SINCEVERSION
|
25 |
+
*/
|
26 |
+
class Option {
|
27 |
+
/**
|
28 |
+
* The option name storing backups.
|
29 |
+
*
|
30 |
+
* @since SINCEVERSION
|
31 |
+
* @access private
|
32 |
+
* @var string
|
33 |
+
*/
|
34 |
+
private $option = 'boldgrid_backup_backups';
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Get all our backups.
|
38 |
+
*
|
39 |
+
* @since SINCEVERSION
|
40 |
+
*
|
41 |
+
* @return array
|
42 |
+
*/
|
43 |
+
public function get_all() {
|
44 |
+
return get_option( $this->option, [] );
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Get one backup.
|
49 |
+
*
|
50 |
+
* @since SINCEVERSION
|
51 |
+
*
|
52 |
+
* @param string $filename The filename to look for.
|
53 |
+
* @return array
|
54 |
+
*/
|
55 |
+
public function get_by_key( $key, $value ) {
|
56 |
+
$found_backup = [];
|
57 |
+
|
58 |
+
$backups = $this->get_all();
|
59 |
+
|
60 |
+
foreach ( $backups as $backup ) {
|
61 |
+
if ( isset( $backup[ $key ] ) && $backup[ $key ] === $value ) {
|
62 |
+
$found_backup = $backup;
|
63 |
+
break;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
|
67 |
+
return $found_backup;
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Get a new id for a new backup being added to the list.
|
72 |
+
*
|
73 |
+
* @since SINCEVERSION
|
74 |
+
*
|
75 |
+
* @return int
|
76 |
+
*/
|
77 |
+
public function get_next_id() {
|
78 |
+
$next_id = 1;
|
79 |
+
|
80 |
+
$backups = $this->get_all();
|
81 |
+
|
82 |
+
foreach ( $backups as $backup ) {
|
83 |
+
$id = isset( $backup['id'] ) ? $backup['id'] : 1;
|
84 |
+
|
85 |
+
$next_id = $id >= $next_id ? ( $id + 1 ) : $next_id;
|
86 |
+
}
|
87 |
+
|
88 |
+
return $next_id;
|
89 |
+
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Update a backup entry based on the filename.
|
93 |
+
*
|
94 |
+
* @since SINCEVERSION
|
95 |
+
*
|
96 |
+
* @param string $filename The filename to update attributes of.
|
97 |
+
* @param string $key The key to update.
|
98 |
+
* @param string $value The value for the key.
|
99 |
+
*/
|
100 |
+
public function update_by_filename( $filename, $key, $value ) {
|
101 |
+
$found = false;
|
102 |
+
|
103 |
+
$backups = $this->get_all();
|
104 |
+
|
105 |
+
// Find our backup by filename, and update the key.
|
106 |
+
foreach ( $backups as $k => $backup ) {
|
107 |
+
if ( ! empty( $backup['filename'] ) && $backup['filename'] === $filename ) {
|
108 |
+
$found = true;
|
109 |
+
|
110 |
+
$backups[ $k ][ $key ] = $value;
|
111 |
+
|
112 |
+
break;
|
113 |
+
}
|
114 |
+
}
|
115 |
+
|
116 |
+
// If the backup was not found in the array, add it.
|
117 |
+
if ( ! $found ) {
|
118 |
+
$backups[] = [
|
119 |
+
'filename' => $filename,
|
120 |
+
$key => $value,
|
121 |
+
];
|
122 |
+
}
|
123 |
+
|
124 |
+
update_option( $this->option, $backups );
|
125 |
+
}
|
126 |
+
}
|
includes/archiver/class-info.php
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-info.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @subpackage Boldgrid_Backup/includes
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @version $Id$
|
12 |
+
* @author BoldGrid <support@boldgrid.com>
|
13 |
+
*/
|
14 |
+
|
15 |
+
namespace Boldgrid\Backup\Archiver;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Class: Info
|
19 |
+
*
|
20 |
+
* @since SINCEVERSION
|
21 |
+
*/
|
22 |
+
class Info {
|
23 |
+
|
24 |
+
/**
|
25 |
+
*
|
26 |
+
* @var \BoldGrid\Backup\V2\Archiver\Archiver
|
27 |
+
*/
|
28 |
+
private $backup_process;
|
29 |
+
|
30 |
+
private $info;
|
31 |
+
|
32 |
+
private $type;
|
33 |
+
|
34 |
+
/**
|
35 |
+
*
|
36 |
+
*/
|
37 |
+
public function __construct( $type, $value ) {
|
38 |
+
$this->type = $type;
|
39 |
+
|
40 |
+
if ( 'one' === $this->type ) {
|
41 |
+
$this->info = $value;
|
42 |
+
} else {
|
43 |
+
$this->backup_process = $value;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
*
|
49 |
+
*/
|
50 |
+
public function get() {
|
51 |
+
if ( 'one' === $this->type ) {
|
52 |
+
return $this->info;
|
53 |
+
} else {
|
54 |
+
return $this->backup_process->get_info()->get();
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
*
|
60 |
+
*/
|
61 |
+
public function get_key( $key, $default = false ) {
|
62 |
+
$info = $this->get();
|
63 |
+
|
64 |
+
return isset( $info[ $key ] ) ? $info[ $key ] : $default;
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
*
|
69 |
+
*/
|
70 |
+
public function set_key( $key, $value ) {
|
71 |
+
if ( 'one' === $this->type ) {
|
72 |
+
$this->info[ $key ] = $value;
|
73 |
+
} else {
|
74 |
+
$this->backup_process->get_info()->set_key( $key, $value );
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
*
|
80 |
+
*/
|
81 |
+
public function set( $info ) {
|
82 |
+
if ( 'one' === $this->type ) {
|
83 |
+
$this->info = $info;
|
84 |
+
} else {
|
85 |
+
$this->backup_process->get_info()->write( $info );
|
86 |
+
}
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
*
|
91 |
+
*/
|
92 |
+
public function set_keys( $array ) {
|
93 |
+
foreach ( $array as $key => $value ) {
|
94 |
+
$this->set_key( $key, $value );
|
95 |
+
}
|
96 |
+
}
|
97 |
+
}
|
includes/class-boldgrid-backup-archive-fetcher.php
ADDED
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-archive-fetcher.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @subpackage Boldgrid_Backup/includes
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @version $Id$
|
12 |
+
* @author BoldGrid <support@boldgrid.com>
|
13 |
+
*/
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Class: Boldgrid_Backup_Archive_Fetcher
|
17 |
+
*
|
18 |
+
* This class is used to download archives from a url.
|
19 |
+
*
|
20 |
+
* The contents of this class were originally in the Boldgrid_Backup_Admin_Upload class, and have been
|
21 |
+
* moved here for reusability.
|
22 |
+
*
|
23 |
+
* @since SINCEVERSION
|
24 |
+
*/
|
25 |
+
class Boldgrid_Backup_Archive_Fetcher {
|
26 |
+
/**
|
27 |
+
* The url to download.
|
28 |
+
*
|
29 |
+
* @since SINCEVERSION
|
30 |
+
* @param string
|
31 |
+
*/
|
32 |
+
public $url;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Allowed content types.
|
36 |
+
*
|
37 |
+
* @since SINCVERSION
|
38 |
+
* @access private
|
39 |
+
* @var array
|
40 |
+
*/
|
41 |
+
private $allowed_content_types = [
|
42 |
+
'application/octet-stream',
|
43 |
+
'binary/octet-stream',
|
44 |
+
'application/zip',
|
45 |
+
];
|
46 |
+
|
47 |
+
/**
|
48 |
+
* The core class object.
|
49 |
+
*
|
50 |
+
* @since SINCEVERSION
|
51 |
+
* @access private
|
52 |
+
* @var Boldgrid_Backup_Admin_Core
|
53 |
+
*/
|
54 |
+
private $core;
|
55 |
+
|
56 |
+
/**
|
57 |
+
* An error message.
|
58 |
+
*
|
59 |
+
* @since SINCEVERSION
|
60 |
+
* @access private
|
61 |
+
* @var string
|
62 |
+
*/
|
63 |
+
private $error;
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Filepath to our archive.
|
67 |
+
*
|
68 |
+
* @since SINCEVERSION
|
69 |
+
* @access private
|
70 |
+
* @var string
|
71 |
+
*/
|
72 |
+
private $filepath;
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Fetcher info.
|
76 |
+
*
|
77 |
+
* After a successful fetch, this array will have info about our new backup.
|
78 |
+
*
|
79 |
+
* @since SINCEVERSION
|
80 |
+
* @access private
|
81 |
+
* @var array {
|
82 |
+
* @type string $filepath The filepath to the archive.
|
83 |
+
* @type string $detailsUrl The admin url to the details page for this archive.
|
84 |
+
* @type string $archiveFilename The filename of the archive.
|
85 |
+
* @type int $archiveKey The archive key.
|
86 |
+
* }
|
87 |
+
*/
|
88 |
+
private $info = [];
|
89 |
+
|
90 |
+
/**
|
91 |
+
* The path to the archive's log.
|
92 |
+
*
|
93 |
+
* @since SINCEVERSION
|
94 |
+
* @access private
|
95 |
+
* @var string
|
96 |
+
*/
|
97 |
+
private $log_filepath;
|
98 |
+
|
99 |
+
/**
|
100 |
+
* The response received when trying to download the file.
|
101 |
+
*
|
102 |
+
* @since SINCEVERSION
|
103 |
+
* @access private
|
104 |
+
* @var mixed
|
105 |
+
*/
|
106 |
+
private $response;
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Constructor.
|
110 |
+
*
|
111 |
+
* @since SINCEVERSION
|
112 |
+
*
|
113 |
+
* @param string $url The url we will be downloading.
|
114 |
+
*/
|
115 |
+
public function __construct( $url ) {
|
116 |
+
$this->core = apply_filters( 'boldgrid_backup_get_core', null );
|
117 |
+
|
118 |
+
$this->url = $url;
|
119 |
+
}
|
120 |
+
|
121 |
+
/**
|
122 |
+
* Download a backup file from a remote server.
|
123 |
+
*
|
124 |
+
* @since SINCEVERSION
|
125 |
+
*
|
126 |
+
* @return bool True on success.
|
127 |
+
*/
|
128 |
+
public function download() {
|
129 |
+
if ( ! $this->is_valid_url() ) {
|
130 |
+
$this->error = __( 'Invalid URL address.', 'boldgrid-backup' );
|
131 |
+
return false;
|
132 |
+
}
|
133 |
+
|
134 |
+
if ( ! $this->is_valid_backupdir() ) {
|
135 |
+
$this->error = implode( '<br />', $this->core->backup_dir->errors );
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
|
139 |
+
$this->filepath = $this->core->upload->get_save_path( basename( $this->url ) );
|
140 |
+
|
141 |
+
$this->response = wp_remote_get(
|
142 |
+
$this->url,
|
143 |
+
[
|
144 |
+
'filename' => $this->filepath,
|
145 |
+
'headers' => 'Accept: ' . implode( ', ', $this->allowed_content_types ),
|
146 |
+
'sslverify' => false,
|
147 |
+
'stream' => true,
|
148 |
+
'timeout' => MINUTE_IN_SECONDS * 20,
|
149 |
+
]
|
150 |
+
);
|
151 |
+
|
152 |
+
if ( $this->is_call_successful() ) {
|
153 |
+
$this->post_successful_download();
|
154 |
+
|
155 |
+
return true;
|
156 |
+
} else {
|
157 |
+
$this->core->wp_filesystem->delete( $this->filepath );
|
158 |
+
|
159 |
+
$this->error = __(
|
160 |
+
'Could not retrieve the remote file. It may not be a ZIP file, or the link is no longer valid.',
|
161 |
+
'boldgrid-backup'
|
162 |
+
);
|
163 |
+
|
164 |
+
return false;
|
165 |
+
}
|
166 |
+
}
|
167 |
+
|
168 |
+
/**
|
169 |
+
* Get our error message.
|
170 |
+
*
|
171 |
+
* @since SINCEVERSION
|
172 |
+
*
|
173 |
+
* @return string
|
174 |
+
*/
|
175 |
+
public function get_error() {
|
176 |
+
return $this->error;
|
177 |
+
}
|
178 |
+
|
179 |
+
/**
|
180 |
+
* Get our array of info after a successful download.
|
181 |
+
*
|
182 |
+
* @since SINCEVERSION
|
183 |
+
*
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
public function get_info() {
|
187 |
+
return $this->info;
|
188 |
+
}
|
189 |
+
|
190 |
+
/**
|
191 |
+
* Whether or not we encountered an error during the download process.
|
192 |
+
*
|
193 |
+
* @since SINCEVERSION
|
194 |
+
*
|
195 |
+
* @return bool
|
196 |
+
*/
|
197 |
+
public function has_error() {
|
198 |
+
return ! empty( $this->error );
|
199 |
+
}
|
200 |
+
|
201 |
+
/**
|
202 |
+
* Whether or not the call to download the file was successful.
|
203 |
+
*
|
204 |
+
* This does not represent the success of the download() method, but instead the state of the
|
205 |
+
* wp_remote_get call.
|
206 |
+
*
|
207 |
+
* @since SINCEVERSION
|
208 |
+
*
|
209 |
+
* @return bool True on success.
|
210 |
+
*/
|
211 |
+
private function is_call_successful() {
|
212 |
+
return is_array( $this->response ) &&
|
213 |
+
! is_wp_error( $this->response ) &&
|
214 |
+
in_array( $this->response['headers']['content-type'], $this->allowed_content_types, true );
|
215 |
+
}
|
216 |
+
|
217 |
+
/**
|
218 |
+
* Validate our backup directory.
|
219 |
+
*
|
220 |
+
* @since SINCEVERSION
|
221 |
+
*
|
222 |
+
* @return bool True if valid.
|
223 |
+
*/
|
224 |
+
private function is_valid_backupdir() {
|
225 |
+
$backup_directory = $this->core->backup_dir->get();
|
226 |
+
|
227 |
+
return $this->core->backup_dir->is_valid( $backup_directory ) && empty( $this->core->backup_dir->errors );
|
228 |
+
}
|
229 |
+
|
230 |
+
/**
|
231 |
+
* Validate our download url.
|
232 |
+
*
|
233 |
+
* @since SINCEVERSION
|
234 |
+
*
|
235 |
+
* @return bool True if valid.
|
236 |
+
*/
|
237 |
+
private function is_valid_url() {
|
238 |
+
$url_regex = '/' . $this->core->configs['url_regex'] . '/i';
|
239 |
+
|
240 |
+
return preg_match( $url_regex, $this->url );
|
241 |
+
}
|
242 |
+
|
243 |
+
/**
|
244 |
+
* Steps to take if our raw wp_remote_get() call to download the backup was successful.
|
245 |
+
*
|
246 |
+
* @since SINCEVERSION
|
247 |
+
*/
|
248 |
+
private function post_successful_download() {
|
249 |
+
$this->set_logfilepath();
|
250 |
+
|
251 |
+
$filename = basename( $this->filepath );
|
252 |
+
|
253 |
+
// Restore the log file from the archive.
|
254 |
+
$this->core->archive_log->restore_by_zip( $this->filepath, basename( $this->log_filepath ) );
|
255 |
+
|
256 |
+
// Update the archive file modification time, based on the log file contents.
|
257 |
+
$this->core->remote->post_download( $this->filepath );
|
258 |
+
|
259 |
+
// Get the archive details.
|
260 |
+
$archive = $this->core->archive->get_by_name( $filename );
|
261 |
+
|
262 |
+
$this->info = [
|
263 |
+
'filepath' => $this->filepath,
|
264 |
+
'detailsUrl' => admin_url( 'admin.php?page=boldgrid-backup-archive-details&filename=' . basename( $this->filepath ) ),
|
265 |
+
'archiveFilename' => $filename,
|
266 |
+
'archiveKey' => $archive['key'],
|
267 |
+
];
|
268 |
+
}
|
269 |
+
|
270 |
+
/**
|
271 |
+
* Set the archive log filepath.
|
272 |
+
*
|
273 |
+
* @since SINCEVERSION
|
274 |
+
*/
|
275 |
+
private function set_logfilepath() {
|
276 |
+
$this->log_filepath = $this->filepath;
|
277 |
+
|
278 |
+
if ( ! empty( $this->response['headers']['content-disposition'] ) ) {
|
279 |
+
$this->log_filepath = trim(
|
280 |
+
str_replace(
|
281 |
+
'attachment; filename=', '', $this->response['headers']['content-disposition']
|
282 |
+
), '"'
|
283 |
+
);
|
284 |
+
|
285 |
+
$this->log_filepath = $this->core->backup_dir->get_path_to( $this->log_filepath );
|
286 |
+
}
|
287 |
+
|
288 |
+
$this->log_filepath = $this->core->archive_log->path_from_zip( $this->log_filepath );
|
289 |
+
}
|
290 |
+
}
|
includes/class-boldgrid-backup-archiver.php
ADDED
@@ -0,0 +1,394 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-archiver.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @subpackage Boldgrid_Backup/includes
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @version $Id$
|
12 |
+
* @author BoldGrid <support@boldgrid.com>
|
13 |
+
*/
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Class: Boldgrid_Backup_Archiver
|
17 |
+
*
|
18 |
+
* Originally, all methods for archiving a file have lived in Boldgrid_Backup_Admin_Core. This class,
|
19 |
+
* over time, will absorb those methods.
|
20 |
+
*
|
21 |
+
* @since SINCEVERSION
|
22 |
+
*/
|
23 |
+
class Boldgrid_Backup_Archiver {
|
24 |
+
/**
|
25 |
+
* Admin core.
|
26 |
+
*
|
27 |
+
* @since SINCEVERSION
|
28 |
+
* @access private
|
29 |
+
* @var Boldgrid_Backup_Admin_Core
|
30 |
+
*/
|
31 |
+
private $core;
|
32 |
+
|
33 |
+
/**
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
private $format;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* \Boldgrid\Backup\Archiver\Info
|
40 |
+
*/
|
41 |
+
private $info;
|
42 |
+
|
43 |
+
/**
|
44 |
+
*
|
45 |
+
* @var \Boldgrid\Backup\V2\Archiver\Resumer()
|
46 |
+
*/
|
47 |
+
private $resumer;
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Whether or not we are archiving.
|
51 |
+
*
|
52 |
+
* @since SINCEVERSION
|
53 |
+
* @access private
|
54 |
+
* @var bool
|
55 |
+
*/
|
56 |
+
private static $is_archiving = false;
|
57 |
+
|
58 |
+
/**
|
59 |
+
* An instance of Boldgrid_Backup_Admin_Task.
|
60 |
+
*
|
61 |
+
* @since SINCEVERSION
|
62 |
+
* @access private
|
63 |
+
* @var Boldgrid_Backup_Admin_Task
|
64 |
+
*/
|
65 |
+
private $task;
|
66 |
+
|
67 |
+
/**
|
68 |
+
* @var \BoldGrid\Backup\V2\Archiver\Archiver
|
69 |
+
*/
|
70 |
+
protected $backup_process;
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Constructor.
|
74 |
+
*
|
75 |
+
* @since SINCEVERSION
|
76 |
+
*/
|
77 |
+
public function __construct( $id = null ) {
|
78 |
+
$this->core = apply_filters( 'boldgrid_backup_get_core', null );
|
79 |
+
$this->format = $this->core->settings->get_setting( 'format' );
|
80 |
+
|
81 |
+
if ( 'one' === $this->format ) {
|
82 |
+
$this->info = new \Boldgrid\Backup\Archiver\Info( 'one', array() );
|
83 |
+
} else {
|
84 |
+
$this->backup_process = \BoldGrid\Backup\V2\Archiver\Factory::run( $id );
|
85 |
+
$this->info = new \Boldgrid\Backup\Archiver\Info( 'many', $this->backup_process );
|
86 |
+
$this->resumer = new \Boldgrid\Backup\V2\Archiver\Resumer();
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Steps to take when archiving is complete.
|
92 |
+
*
|
93 |
+
* @since SINCEVERSION
|
94 |
+
*/
|
95 |
+
public function complete() {
|
96 |
+
// Calculate duration.
|
97 |
+
$this->info->set_key( 'duration', number_format( ( microtime( true ) - $this->info->get_key( 'time_start' ) ), 2, '.', '' ) );
|
98 |
+
$this->info->set_key( 'db_duration', number_format( ( $this->info->get_key( 'db_time_stop' ) - $this->info->get_key( 'time_start' ) ), 2, '.', '' ) );
|
99 |
+
|
100 |
+
/**
|
101 |
+
* Actions to take after a backup has been created.
|
102 |
+
*
|
103 |
+
* At priority 10, we add to the jobs queue the tasks of uploading this backup to our remote
|
104 |
+
* storage providers. Each remote storage provider individually hooks into this action and adds
|
105 |
+
* a job to the queue.
|
106 |
+
*
|
107 |
+
* At priority 100, we add a job to delete the local backup file if the user does
|
108 |
+
* not want to keep it.
|
109 |
+
*
|
110 |
+
* At priority 200, we send an email to the user with a summary of the
|
111 |
+
* backup and the jobs.
|
112 |
+
*
|
113 |
+
* @since 1.5.2
|
114 |
+
*
|
115 |
+
* @param array $this->info {
|
116 |
+
* An array of info about the backup just created.
|
117 |
+
*
|
118 |
+
* @type string $mode backup
|
119 |
+
* @type bool $dryrun
|
120 |
+
* @type string $compressor pcl_zip
|
121 |
+
* @type int $filesize 30992482
|
122 |
+
* @type bool $save
|
123 |
+
* @type int $total_size
|
124 |
+
* @type string $filepath C:\file.zip
|
125 |
+
* @type int $lastmodunix 1506602959
|
126 |
+
* @type int $duration 57.08
|
127 |
+
* @type int $db_duration 0.35
|
128 |
+
* @type bool $mail_success
|
129 |
+
* }
|
130 |
+
*/
|
131 |
+
do_action( 'boldgrid_backup_post_archive_files', $this->info->get() );
|
132 |
+
|
133 |
+
/*
|
134 |
+
* Send an email to the user, RIGHT NOW.
|
135 |
+
*
|
136 |
+
* Only send an email to the user now IF they are manually creating a backup. If this backup
|
137 |
+
* was created during a scheduled backup, the user will get an email from the jobs queue.
|
138 |
+
* Scheduled backups receive email notifications from the jobs queue because that email will
|
139 |
+
* not only include the standard info about the backup (which we're sending now), it will
|
140 |
+
* also include info about other jobs that were run (such as uploading the backup remotely).
|
141 |
+
*/
|
142 |
+
if ( $this->core->email->user_wants_notification( 'backup' ) && ! $this->core->is_scheduled_backup ) {
|
143 |
+
$this->core->logger->add( 'Starting sending of email...' );
|
144 |
+
|
145 |
+
$email_parts = $this->core->email->post_archive_parts( $this->info->get() );
|
146 |
+
$email_body = $email_parts['body']['main'] . $email_parts['body']['signature'];
|
147 |
+
$email_success = $this->core->email->send( $email_parts['subject'], $email_body );
|
148 |
+
$this->info->set_key( 'mail_success', $email_success );
|
149 |
+
|
150 |
+
$this->core->logger->add( 'Sending of email complete! Status: ' . $email_success );
|
151 |
+
}
|
152 |
+
|
153 |
+
// Update WP option for "boldgrid_backup_last_backup".
|
154 |
+
update_site_option( 'boldgrid_backup_last_backup', time() );
|
155 |
+
|
156 |
+
$this->core->archive_log->write( $this->info->get() );
|
157 |
+
|
158 |
+
// Enforce retention setting.
|
159 |
+
$this->core->enforce_retention();
|
160 |
+
|
161 |
+
update_option( 'boldgrid_backup_latest_backup', $this->info->get() );
|
162 |
+
|
163 |
+
// Actions to take if we're creating a full site backup.
|
164 |
+
if ( $this->core->archiver_utility->is_full_backup() ) {
|
165 |
+
$this->core->archive->write_results_file( $this->info->get() );
|
166 |
+
}
|
167 |
+
|
168 |
+
Boldgrid_Backup_Admin_In_Progress_Data::set_args( [ 'status' => esc_html__( 'Backup complete!', 'boldgrid-backup' ) ] );
|
169 |
+
|
170 |
+
if ( isset( $this->core->activity ) ) {
|
171 |
+
$this->core->activity->add( 'any_backup_created', 1, $this->core->rating_prompt_config );
|
172 |
+
}
|
173 |
+
|
174 |
+
if ( 'many' === $this->format ) {
|
175 |
+
$this->resumer->remove_cron();
|
176 |
+
}
|
177 |
+
|
178 |
+
$this->core->logger->add( 'Backup complete!' );
|
179 |
+
$this->core->logger->add_memory();
|
180 |
+
|
181 |
+
$this->task->end();
|
182 |
+
|
183 |
+
self::$is_archiving = false;
|
184 |
+
}
|
185 |
+
|
186 |
+
/**
|
187 |
+
* Get our archive info.
|
188 |
+
*
|
189 |
+
* @since SINCEVERSION
|
190 |
+
*
|
191 |
+
* @return array
|
192 |
+
*/
|
193 |
+
public function get_info() {
|
194 |
+
return $this->info->get();
|
195 |
+
}
|
196 |
+
|
197 |
+
/**
|
198 |
+
* Steps to take before an archive is started.
|
199 |
+
*
|
200 |
+
* This method includes actions for both v1 and v2 backups.
|
201 |
+
*
|
202 |
+
* @since SINCEVERSION
|
203 |
+
*/
|
204 |
+
public function init() {
|
205 |
+
// Init our logger.
|
206 |
+
$log_filename = 'archive-' . time() . '.log';
|
207 |
+
$this->core->logger->init( $log_filename );
|
208 |
+
$this->info->set_key( 'log_filename', $log_filename );
|
209 |
+
|
210 |
+
$this->core->logger->add( 'Backup process initialized.' );
|
211 |
+
$this->info->set_key( 'time_start', microtime( true ) );
|
212 |
+
|
213 |
+
// Init our task.
|
214 |
+
$this->task = new Boldgrid_Backup_Admin_Task();
|
215 |
+
if ( ! empty( $_POST['task_id'] ) ) { // phpcs:ignore
|
216 |
+
$this->task->init_by_id( $_POST['task_id'] ); // phpcs:ignore
|
217 |
+
} else {
|
218 |
+
$this->task->init( [ 'type' => 'backup' ] );
|
219 |
+
}
|
220 |
+
$this->task->start();
|
221 |
+
|
222 |
+
self::$is_archiving = true;
|
223 |
+
|
224 |
+
if ( 'many' === $this->format ) {
|
225 |
+
$this->resumer->maybe_add_cron();
|
226 |
+
}
|
227 |
+
|
228 |
+
Boldgrid_Backup_Admin_Utility::bump_memory_limit( '1G' );
|
229 |
+
// Close any PHP session, so that another session can open during the backup operation.
|
230 |
+
session_write_close();
|
231 |
+
// Prevent this script from dying.
|
232 |
+
ignore_user_abort( true );
|
233 |
+
|
234 |
+
/*
|
235 |
+
* A scheduled backup is a backup triggered by the user's Settings > Backup Schedule. If the user clicked
|
236 |
+
* "Backup Site Now" or this is a backup before an auto update occurs, this is not a scheduled backup.
|
237 |
+
*/
|
238 |
+
$this->core->is_scheduled_backup = $this->core->doing_cron && ! $this->core->pre_auto_update;
|
239 |
+
$this->core->pre_auto_update = 'pre_auto_update' === current_filter();
|
240 |
+
|
241 |
+
Boldgrid_Backup_Admin_In_Progress_Data::set_args(
|
242 |
+
[ 'status' => esc_html__( 'Initializing backup', 'boldgrid-backup' ) ]
|
243 |
+
);
|
244 |
+
|
245 |
+
/**
|
246 |
+
* Actions to take before any archiving begins.
|
247 |
+
*
|
248 |
+
* @since 1.5.2
|
249 |
+
*/
|
250 |
+
do_action( 'boldgrid_backup_archive_files_init' );
|
251 |
+
|
252 |
+
$this->core->in_progress->set();
|
253 |
+
|
254 |
+
/*
|
255 |
+
* If this is a scheduled backup and no location is selected to save the
|
256 |
+
* backup to, abort.
|
257 |
+
*
|
258 |
+
* While we could prevent he user from setting this up in the first place,
|
259 |
+
* at the moment the settings page saves all settings. So, if the user
|
260 |
+
* wanted to change their retention settings but did not want to schedule
|
261 |
+
* backups, validating storage locations would be problematic.
|
262 |
+
*/
|
263 |
+
if ( $this->core->is_scheduled_backup && ! $this->core->remote->any_enabled() ) {
|
264 |
+
$error = esc_html__( 'No backup locations selected! While we could create a backup archive, you have not selected where the backup archive should be saved. Please choose a storage location in your settings for where to save this backup archive.', 'boldgrid-backup' );
|
265 |
+
$this->core->archive_fail->schedule_fail_email( $error );
|
266 |
+
return [ 'error' => $error ];
|
267 |
+
}
|
268 |
+
|
269 |
+
// Check if functional.
|
270 |
+
if ( ! $this->core->test->run_functionality_tests() ) {
|
271 |
+
// Display an error notice, if not already on the test page.
|
272 |
+
if ( ! isset( $_GET['page'] ) || 'boldgrid-backup-test' !== $_GET['page'] ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
|
273 |
+
// Display an error notice.
|
274 |
+
$this->core->notice->functionality_fail_notice();
|
275 |
+
}
|
276 |
+
|
277 |
+
return [ 'error' => 'Functionality tests fail.' ];
|
278 |
+
}
|
279 |
+
|
280 |
+
/*
|
281 |
+
* Initialize return array and add "compressor" and "save" keys. Since 1.6.0, the folder include
|
282 |
+
* and exclude settings below are for informational purposes only. This array cannot be filtered
|
283 |
+
* to adjust which folders are actually included / excluded.
|
284 |
+
*/
|
285 |
+
$this->info->set_keys( array(
|
286 |
+
'mode' => 'backup',
|
287 |
+
'compressor' => null,
|
288 |
+
'format' => $this->format,
|
289 |
+
'filesize' => 0,
|
290 |
+
'total_size' => 0,
|
291 |
+
'folder_include' => $this->core->folder_exclusion->from_settings( 'include' ),
|
292 |
+
'folder_exclude' => $this->core->folder_exclusion->from_settings( 'exclude' ),
|
293 |
+
'table_exclude' => $this->core->db_omit->get_excluded_tables(),
|
294 |
+
'title' => ! empty( $_POST['backup_title'] ) ? stripslashes( $_POST['backup_title'] ) : null, // phpcs:ignore WordPress.CSRF.NonceVerification,WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine
|
295 |
+
'description' => ! empty( $_POST['backup_description'] ) ? stripslashes( $_POST['backup_description'] ) : null, // phpcs:ignore WordPress.CSRF.NonceVerification,WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine
|
296 |
+
// Information used for the emergency restoration process.
|
297 |
+
'ABSPATH' => ABSPATH,
|
298 |
+
'backup_id' => $this->core->get_backup_identifier(),
|
299 |
+
'siteurl' => site_url(),
|
300 |
+
'timestamp' => time(), // @todo Is this a duplicate value? $info['lastmodunix'] is added below.
|
301 |
+
// Environment information.
|
302 |
+
'gateway_interface' => getenv( 'GATEWAY_INTERFACE' ),
|
303 |
+
'http_host' => getenv( 'HTTP_HOST' ),
|
304 |
+
'php_sapi_name' => php_sapi_name(),
|
305 |
+
'php_uname' => php_uname(),
|
306 |
+
'php_version' => phpversion(),
|
307 |
+
'server_addr' => getenv( 'SERVER_ADDR' ) ? getenv( 'SERVER_ADDR' ) : getenv( 'LOCAL_ADDR' ),
|
308 |
+
'server_name' => getenv( 'SERVER_NAME' ),
|
309 |
+
'server_protocol' => getenv( 'SERVER_PROTOCOL' ),
|
310 |
+
'server_software' => getenv( 'SERVER_SOFTWARE' ),
|
311 |
+
'uid' => getmyuid(),
|
312 |
+
'username' => get_current_user(),
|
313 |
+
'encrypt_db' => false,
|
314 |
+
) );
|
315 |
+
|
316 |
+
// Determine how this backup was triggered.
|
317 |
+
if ( $this->core->pre_auto_update ) {
|
318 |
+
$this->info->set_key( 'trigger', esc_html__( 'Auto update', 'boldgrid-bakcup' ) );
|
319 |
+
} elseif ( $this->core->doing_ajax && is_user_logged_in() ) {
|
320 |
+
$current_user = wp_get_current_user();
|
321 |
+
$this->info->set_key( 'trigger', $current_user->user_login . ' (' . $current_user->user_email . ')' );
|
322 |
+
} elseif ( $this->core->doing_wp_cron ) {
|
323 |
+
$this->info->set_key( 'trigger', 'WP cron' );
|
324 |
+
} elseif ( $this->core->doing_cron ) {
|
325 |
+
$this->info->set_key( 'trigger', 'Cron' );
|
326 |
+
} else {
|
327 |
+
$this->info->set_key( 'trigger', esc_html__( 'Unknown', 'boldgrid-backup' ) );
|
328 |
+
}
|
329 |
+
|
330 |
+
// Get and validate our compressor.
|
331 |
+
$compressor = $this->core->compressors->get();
|
332 |
+
$this->info->set_key( 'compressor', $compressor );
|
333 |
+
if ( null === $compressor ) {
|
334 |
+
return [ 'error' => 'No available compressor.' ];
|
335 |
+
}
|
336 |
+
|
337 |
+
// Cleanup. Enforce retention and delete orphaned files.
|
338 |
+
$this->core->enforce_retention();
|
339 |
+
$orphan_cleanup = new Boldgrid\Backup\Admin\Orphan\Cleanup();
|
340 |
+
$orphan_cleanup->run();
|
341 |
+
|
342 |
+
$this->info->set_key( 'init_time_end', microtime( true ) );
|
343 |
+
}
|
344 |
+
|
345 |
+
/**
|
346 |
+
* Return whether or not we are currently generating an archive.
|
347 |
+
*
|
348 |
+
* @since SINCEVERSION
|
349 |
+
* @return bool
|
350 |
+
*/
|
351 |
+
public static function is_archiving() {
|
352 |
+
return self::$is_archiving;
|
353 |
+
}
|
354 |
+
|
355 |
+
/**
|
356 |
+
*
|
357 |
+
*/
|
358 |
+
public function is_init_incomplete() {
|
359 |
+
$start = $this->info->get_key( 'time_start' );
|
360 |
+
$end = $this->info->get_key( 'init_time_end' );
|
361 |
+
|
362 |
+
return ! empty( $start ) && empty( $end );
|
363 |
+
}
|
364 |
+
|
365 |
+
/**
|
366 |
+
* Create an archive.
|
367 |
+
*
|
368 |
+
* Do everything.
|
369 |
+
*
|
370 |
+
* @since SINCEVERSION
|
371 |
+
*/
|
372 |
+
public function run() {
|
373 |
+
// Todo. If resuming, do we run init again?
|
374 |
+
if ( $this->is_init_incomplete() ) {
|
375 |
+
$this->info->set_key( 'error', __( 'Unable to initialize backup. Previous init was incomplete.', 'boldgrid-backup' ) );
|
376 |
+
} else {
|
377 |
+
$this->init();
|
378 |
+
}
|
379 |
+
|
380 |
+
if ( empty( $this->info->get_key( 'error' ) ) ) {
|
381 |
+
if ( 'one' === $this->format ) {
|
382 |
+
$info = $this->get_info();
|
383 |
+
$info = $this->core->archive_files( $info );
|
384 |
+
$this->info->set( $info );
|
385 |
+
} else {
|
386 |
+
$this->backup_process->run();
|
387 |
+
}
|
388 |
+
}
|
389 |
+
|
390 |
+
$this->complete();
|
391 |
+
|
392 |
+
return $this->get_info();
|
393 |
+
}
|
394 |
+
}
|
includes/class-boldgrid-backup-restorer.php
ADDED
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-restorer.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @subpackage Boldgrid_Backup/includes
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @version $Id$
|
12 |
+
* @author BoldGrid <support@boldgrid.com>
|
13 |
+
*/
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Class: Boldgrid_Backup_Restorer
|
17 |
+
*
|
18 |
+
* Originally, all methods for restoring a file have lived in Boldgrid_Backup_Admin_Core. This class,
|
19 |
+
* over time, will absorb those methods.
|
20 |
+
*
|
21 |
+
* @since SINCEVERSION
|
22 |
+
*/
|
23 |
+
class Boldgrid_Backup_Restorer {
|
24 |
+
/**
|
25 |
+
* Admin core.
|
26 |
+
*
|
27 |
+
* @since SINCEVERSION
|
28 |
+
* @access private
|
29 |
+
* @var Boldgrid_Backup_Admin_Core
|
30 |
+
*/
|
31 |
+
private $core;
|
32 |
+
|
33 |
+
/**
|
34 |
+
* An array of info about our archive.
|
35 |
+
*
|
36 |
+
* @since SINCEVERSION
|
37 |
+
* @access private
|
38 |
+
* @var array
|
39 |
+
*/
|
40 |
+
private $info;
|
41 |
+
|
42 |
+
/**
|
43 |
+
* An instance of Boldgrid_Backup_Admin_Task.
|
44 |
+
*
|
45 |
+
* @since SINCEVERSION
|
46 |
+
* @access private
|
47 |
+
* @var Boldgrid_Backup_Admin_Task
|
48 |
+
*/
|
49 |
+
private $task;
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Constructor.
|
53 |
+
*
|
54 |
+
* @since SINCEVERSION
|
55 |
+
*/
|
56 |
+
public function __construct() {
|
57 |
+
$this->core = apply_filters( 'boldgrid_backup_get_core', null );
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Steps to take when archiving is complete.
|
62 |
+
*
|
63 |
+
* @since SINCEVERSION
|
64 |
+
*/
|
65 |
+
public function complete() {
|
66 |
+
// Update the log.
|
67 |
+
$this->core->logger->add( 'Restoration complete!' );
|
68 |
+
$this->core->logger->add_memory();
|
69 |
+
|
70 |
+
if ( $this->has_error() ) {
|
71 |
+
$this->core->logger->add( 'Error during restoration: ' . $this->get_error() );
|
72 |
+
}
|
73 |
+
|
74 |
+
// End the task.
|
75 |
+
$this->task->end();
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Get our error message.
|
80 |
+
*
|
81 |
+
* @since SINCEVERSION
|
82 |
+
*
|
83 |
+
* @return string
|
84 |
+
*/
|
85 |
+
private function get_error() {
|
86 |
+
return ! empty( $this->info['error'] ) ? $this->info['error'] : __( 'Unknown error', 'boldgrid-backup' );
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Get our archive info.
|
91 |
+
*
|
92 |
+
* @since SINCEVERSION
|
93 |
+
*
|
94 |
+
* @return array
|
95 |
+
*/
|
96 |
+
public function get_info() {
|
97 |
+
return $this->info;
|
98 |
+
}
|
99 |
+
|
100 |
+
/**
|
101 |
+
* Whether or not we have an error.
|
102 |
+
*
|
103 |
+
* @since SINCEVERSION
|
104 |
+
*
|
105 |
+
* @return bool
|
106 |
+
*/
|
107 |
+
private function has_error() {
|
108 |
+
return ! empty( $this->info['error'] );
|
109 |
+
}
|
110 |
+
|
111 |
+
/**
|
112 |
+
* Steps to take before an archive is started.
|
113 |
+
*
|
114 |
+
* @since SINCEVERSION
|
115 |
+
*/
|
116 |
+
public function init() {
|
117 |
+
// Init our logger.
|
118 |
+
$this->core->logger->init( 'restore-' . time() . '.log' );
|
119 |
+
$this->core->logger->add( 'Restore process initialized.' );
|
120 |
+
$this->core->logger->add_memory();
|
121 |
+
|
122 |
+
/*
|
123 |
+
* Setup our task.
|
124 |
+
*
|
125 |
+
* We're either starting a new task, or continuing on an existing task.
|
126 |
+
*/
|
127 |
+
$this->task = new Boldgrid_Backup_Admin_Task();
|
128 |
+
if ( ! empty( $_POST['task_id'] ) ) { // phpcs:ignore
|
129 |
+
$this->task->init_by_id( $_POST['task_id'] ); // phpcs:ignore
|
130 |
+
} else {
|
131 |
+
$this->task->init( [ 'type' => 'restore' ] );
|
132 |
+
}
|
133 |
+
$this->task->start();
|
134 |
+
}
|
135 |
+
|
136 |
+
/**
|
137 |
+
* Restore a backup by id.
|
138 |
+
*
|
139 |
+
* @since SINCEVERSION
|
140 |
+
*
|
141 |
+
* @param string $id The backup id.
|
142 |
+
*/
|
143 |
+
public function restore_by_id( $id ) {
|
144 |
+
$archive = Boldgrid\Backup\Archive\Factory::get_by_id( $id );
|
145 |
+
|
146 |
+
$this->restore_by_key( $archive->get_key(), $archive->filename );
|
147 |
+
}
|
148 |
+
|
149 |
+
/**
|
150 |
+
* Restore an archive by key (and filename).
|
151 |
+
*
|
152 |
+
* @since SINCEVERSION
|
153 |
+
*
|
154 |
+
* @param int $key The archive key to restore.
|
155 |
+
* @param string $filename The archive filename to restore.
|
156 |
+
*/
|
157 |
+
public function restore_by_key( $key, $filename ) {
|
158 |
+
$restore_args = [
|
159 |
+
'archive_key' => $key,
|
160 |
+
'archive_filename' => $filename,
|
161 |
+
];
|
162 |
+
|
163 |
+
$this->info = $this->core->restore_archive_file( false, $restore_args );
|
164 |
+
}
|
165 |
+
|
166 |
+
/**
|
167 |
+
* Restore a site by url.
|
168 |
+
*
|
169 |
+
* @since SINCEVERSION
|
170 |
+
*
|
171 |
+
* @param string $url A url to a zip file.
|
172 |
+
*/
|
173 |
+
public function restore_by_url( $url ) {
|
174 |
+
// Download the backup file.
|
175 |
+
$archive_fetcher = new Boldgrid_Backup_Archive_Fetcher( $url );
|
176 |
+
$archive_fetcher->download();
|
177 |
+
|
178 |
+
// If we have errors, abort.
|
179 |
+
if ( $archive_fetcher->has_error() ) {
|
180 |
+
$this->set_error( $archive_fetcher->get_error() );
|
181 |
+
return;
|
182 |
+
}
|
183 |
+
|
184 |
+
// Restore the new archive just downloaded.
|
185 |
+
$info = $archive_fetcher->get_info();
|
186 |
+
$this->restore_by_key( $info['archiveKey'], $info['archiveFilename'] );
|
187 |
+
}
|
188 |
+
|
189 |
+
/**
|
190 |
+
* Run a basic restore.
|
191 |
+
*
|
192 |
+
* This mimics a standard call to core->restore_archive_file, except it adds additional things
|
193 |
+
* like tasks and logs.
|
194 |
+
*
|
195 |
+
* @since SINCEVERSION
|
196 |
+
*/
|
197 |
+
public function run() {
|
198 |
+
$this->init();
|
199 |
+
|
200 |
+
$this->info = $this->core->restore_archive_file();
|
201 |
+
|
202 |
+
$this->complete();
|
203 |
+
}
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Run a restoration by backup id.
|
207 |
+
*
|
208 |
+
* Method run_by_id: This method, does more than just restoration. Handles logging, etc.
|
209 |
+
* Method restore_by_id: Handles just the restoration, nothing more.
|
210 |
+
*
|
211 |
+
* @since SINCEVERSION
|
212 |
+
*
|
213 |
+
* @param int $id The backup id.
|
214 |
+
*/
|
215 |
+
public function run_by_id( $id ) {
|
216 |
+
$this->init();
|
217 |
+
|
218 |
+
$this->restore_by_id( $id );
|
219 |
+
|
220 |
+
$this->complete();
|
221 |
+
}
|
222 |
+
|
223 |
+
/**
|
224 |
+
* Run a restoration by a url.
|
225 |
+
*
|
226 |
+
* Method run_by_url: This method, does more than just restoration. Handles logging, etc.
|
227 |
+
* Method restore_by_url: Handles just the restoration, nothing more.
|
228 |
+
*
|
229 |
+
* @since SINCEVERSION
|
230 |
+
*
|
231 |
+
* @param string $url A url to a zip file.
|
232 |
+
*/
|
233 |
+
public function run_by_url( $url ) {
|
234 |
+
$this->init();
|
235 |
+
|
236 |
+
$this->restore_by_url( $url );
|
237 |
+
|
238 |
+
$this->complete();
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Set an error message.
|
243 |
+
*
|
244 |
+
* @since SINCEVERSION
|
245 |
+
*
|
246 |
+
* @param string $message The error message to set.
|
247 |
+
*/
|
248 |
+
private function set_error( $message ) {
|
249 |
+
$this->info['error'] = $message;
|
250 |
+
}
|
251 |
+
}
|
includes/class-boldgrid-backup.php
CHANGED
@@ -293,12 +293,35 @@ class Boldgrid_Backup {
|
|
293 |
|
294 |
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup-activator.php';
|
295 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-usage.php';
|
297 |
|
298 |
// Logs system.
|
299 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-log.php';
|
300 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-log-page.php';
|
301 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-plugin-notices.php';
|
303 |
|
304 |
// Orphaned files.
|
@@ -307,8 +330,28 @@ class Boldgrid_Backup {
|
|
307 |
|
308 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-environment.php';
|
309 |
|
|
|
|
|
310 |
require_once BOLDGRID_BACKUP_PATH . '/cli/class-info.php';
|
311 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
$this->loader = new Boldgrid_Backup_Loader();
|
313 |
}
|
314 |
|
@@ -341,6 +384,7 @@ class Boldgrid_Backup {
|
|
341 |
|
342 |
// Instantiate the admin core.
|
343 |
$plugin_admin_core = new Boldgrid_Backup_Admin_Core();
|
|
|
344 |
|
345 |
// WP-CLI support.
|
346 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
@@ -510,6 +554,7 @@ class Boldgrid_Backup {
|
|
510 |
$this->loader->add_action( 'wp_ajax_nopriv_boldgrid_backup_run_jobs', $plugin_admin_core->jobs, 'run' );
|
511 |
$this->loader->add_action( 'wp_ajax_nopriv_boldgrid_backup_run_backup', $plugin_admin_core->cron, 'backup' );
|
512 |
$this->loader->add_action( 'wp_ajax_nopriv_boldgrid_backup_run_restore', $plugin_admin_core->cron, 'restore' );
|
|
|
513 |
|
514 |
// For public downloads.
|
515 |
$this->loader->add_action( 'wp_ajax_boldgrid_backup_download', $plugin_admin_core->download, 'public_download' );
|
@@ -550,6 +595,21 @@ class Boldgrid_Backup {
|
|
550 |
$this->loader->add_action( 'admin_notices', $plugin_admin_core->notice, 'plugin_renamed_notice' );
|
551 |
$this->loader->add_action( 'wp_ajax_dismissBoldgridNotice', 'Boldgrid\Library\Library\Notice', 'dismiss' );
|
552 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
553 |
$usage = new Boldgrid_Backup_Admin_Usage();
|
554 |
|
555 |
$this->loader->add_action( 'admin_init', $usage, 'admin_init' );
|
@@ -580,6 +640,15 @@ class Boldgrid_Backup {
|
|
580 |
$this->loader->add_filter( 'Boldgrid\Library\Plugin\Notices\admin_enqueue_scripts', $plugin_notices, 'filter' );
|
581 |
|
582 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin_core, 'add_thickbox' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
583 |
}
|
584 |
|
585 |
/**
|
293 |
|
294 |
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup-activator.php';
|
295 |
|
296 |
+
// REST API support.
|
297 |
+
require_once BOLDGRID_BACKUP_PATH . '/rest/class-boldgrid-backup-rest-controller.php';
|
298 |
+
require_once BOLDGRID_BACKUP_PATH . '/rest/class-boldgrid-backup-rest-job.php';
|
299 |
+
require_once BOLDGRID_BACKUP_PATH . '/rest/class-boldgrid-backup-rest-setting.php';
|
300 |
+
require_once BOLDGRID_BACKUP_PATH . '/rest/class-boldgrid-backup-rest-archive.php';
|
301 |
+
require_once BOLDGRID_BACKUP_PATH . '/rest/class-boldgrid-backup-rest-test.php';
|
302 |
+
|
303 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-usage.php';
|
304 |
|
305 |
// Logs system.
|
306 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-log.php';
|
307 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-log-page.php';
|
308 |
|
309 |
+
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-nopriv.php';
|
310 |
+
|
311 |
+
// Task system.
|
312 |
+
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-task.php';
|
313 |
+
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-task-helper.php';
|
314 |
+
|
315 |
+
// Archiver and Restorer classes.
|
316 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup-archiver.php';
|
317 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup-restorer.php';
|
318 |
+
|
319 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup-archive-fetcher.php';
|
320 |
+
|
321 |
+
// Archive namespace.
|
322 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/archive/class-factory.php';
|
323 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/archive/class-option.php';
|
324 |
+
|
325 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-plugin-notices.php';
|
326 |
|
327 |
// Orphaned files.
|
330 |
|
331 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-environment.php';
|
332 |
|
333 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/archiver/class-info.php';
|
334 |
+
|
335 |
require_once BOLDGRID_BACKUP_PATH . '/cli/class-info.php';
|
336 |
|
337 |
+
/*
|
338 |
+
* Include v2 files.
|
339 |
+
*
|
340 |
+
* V2 is the beginning of split / resumable backups.
|
341 |
+
*/
|
342 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/filelist/class-create.php';
|
343 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/step/class-step.php';
|
344 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/step/class-data.php';
|
345 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/step/class-json-file.php';
|
346 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/archiver/class-factory.php';
|
347 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/archiver/class-archiver.php';
|
348 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/archiver/class-resumer.php';
|
349 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/archiver/steps/class-discovery.php';
|
350 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/archiver/steps/class-archive-database.php';
|
351 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/archiver/steps/class-archive-files.php';
|
352 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/archiver/steps/archive_files/class-part.php';
|
353 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/v2/archiver/steps/archive_files/class-parts.php';
|
354 |
+
|
355 |
$this->loader = new Boldgrid_Backup_Loader();
|
356 |
}
|
357 |
|
384 |
|
385 |
// Instantiate the admin core.
|
386 |
$plugin_admin_core = new Boldgrid_Backup_Admin_Core();
|
387 |
+
$resumer = new \Boldgrid\Backup\V2\Archiver\Resumer( $plugin_admin_core );
|
388 |
|
389 |
// WP-CLI support.
|
390 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
554 |
$this->loader->add_action( 'wp_ajax_nopriv_boldgrid_backup_run_jobs', $plugin_admin_core->jobs, 'run' );
|
555 |
$this->loader->add_action( 'wp_ajax_nopriv_boldgrid_backup_run_backup', $plugin_admin_core->cron, 'backup' );
|
556 |
$this->loader->add_action( 'wp_ajax_nopriv_boldgrid_backup_run_restore', $plugin_admin_core->cron, 'restore' );
|
557 |
+
$this->loader->add_action( 'wp_ajax_nopriv_boldgrid_backup_run_resume', $resumer, 'run' );
|
558 |
|
559 |
// For public downloads.
|
560 |
$this->loader->add_action( 'wp_ajax_boldgrid_backup_download', $plugin_admin_core->download, 'public_download' );
|
595 |
$this->loader->add_action( 'admin_notices', $plugin_admin_core->notice, 'plugin_renamed_notice' );
|
596 |
$this->loader->add_action( 'wp_ajax_dismissBoldgridNotice', 'Boldgrid\Library\Library\Notice', 'dismiss' );
|
597 |
|
598 |
+
// Register REST endpoints.
|
599 |
+
add_action( 'rest_api_init', function() use ( $plugin_admin_core ) {
|
600 |
+
$rest_job = new Boldgrid_Backup_Rest_Job( $plugin_admin_core );
|
601 |
+
$rest_job->register_routes();
|
602 |
+
|
603 |
+
$rest_archive = new Boldgrid_Backup_Rest_Archive( $plugin_admin_core );
|
604 |
+
$rest_archive->register_routes();
|
605 |
+
|
606 |
+
$rest_setting = new Boldgrid_Backup_Rest_Setting( $plugin_admin_core );
|
607 |
+
$rest_setting->register_routes();
|
608 |
+
|
609 |
+
$rest_test = new Boldgrid_Backup_Rest_Test( $plugin_admin_core );
|
610 |
+
$rest_test->register_routes();
|
611 |
+
} );
|
612 |
+
|
613 |
$usage = new Boldgrid_Backup_Admin_Usage();
|
614 |
|
615 |
$this->loader->add_action( 'admin_init', $usage, 'admin_init' );
|
640 |
$this->loader->add_filter( 'Boldgrid\Library\Plugin\Notices\admin_enqueue_scripts', $plugin_notices, 'filter' );
|
641 |
|
642 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin_core, 'add_thickbox' );
|
643 |
+
|
644 |
+
/*
|
645 |
+
* Things to do in a dev environment.
|
646 |
+
*
|
647 |
+
* @link https://make.wordpress.org/core/2020/07/24/new-wp_get_environment_type-function-in-wordpress-5-5/
|
648 |
+
*/
|
649 |
+
if ( defined( 'WP_ENVIRONMENT_TYPE' ) && 'development' === WP_ENVIRONMENT_TYPE ) {
|
650 |
+
$this->loader->add_action( 'admin_footer', 'Boldgrid_Backup_Rest_Utility', 'insert_nonce' );
|
651 |
+
}
|
652 |
}
|
653 |
|
654 |
/**
|
includes/config/config.cron.php
CHANGED
@@ -45,6 +45,15 @@ $config = [
|
|
45 |
],
|
46 |
],
|
47 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
],
|
49 |
];
|
50 |
|
45 |
],
|
46 |
],
|
47 |
],
|
48 |
+
'resume' => [
|
49 |
+
'search' => [
|
50 |
+
'cron' => [
|
51 |
+
'mode=resume',
|
52 |
+
'siteurl=' . $site_url . ' ',
|
53 |
+
],
|
54 |
+
// todo add wp-cron
|
55 |
+
],
|
56 |
+
],
|
57 |
],
|
58 |
];
|
59 |
|
includes/v2/archiver/class-archiver.php
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Archiver class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Archiver;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Archiver
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Archiver extends \Boldgrid\Backup\V2\Step\Step {
|
22 |
+
|
23 |
+
/**
|
24 |
+
*
|
25 |
+
*/
|
26 |
+
protected $unresponsive_time = 60;
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Run the archive process.
|
30 |
+
*
|
31 |
+
* @since SINCEVERSION
|
32 |
+
*/
|
33 |
+
public function run() {
|
34 |
+
\Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'dir', $this->get_dir() );
|
35 |
+
|
36 |
+
$this->add_attempt();
|
37 |
+
|
38 |
+
$file_types = array(
|
39 |
+
'plugins' => array(),
|
40 |
+
'themes' => array(),
|
41 |
+
'uploads' => array(),
|
42 |
+
'other' => array(),
|
43 |
+
'sql' => array(
|
44 |
+
'use_full_filepath' => true,
|
45 |
+
'part_configs' => array(
|
46 |
+
'junk_paths' => true,
|
47 |
+
),
|
48 |
+
),
|
49 |
+
);
|
50 |
+
|
51 |
+
$steps = array(
|
52 |
+
new \Boldgrid\Backup\V2\Archiver\Steps\Discovery( 'discovery', $this->id, $this->get_dir() ),
|
53 |
+
new \Boldgrid\Backup\V2\Archiver\Steps\Archive_Database( 'archive_database', $this->id, $this->get_dir() ),
|
54 |
+
);
|
55 |
+
|
56 |
+
foreach ( $file_types as $type => $type_configs ) {
|
57 |
+
$default_type_configs = array(
|
58 |
+
'id' => 'archive_' . $type,
|
59 |
+
'type' => $type,
|
60 |
+
);
|
61 |
+
|
62 |
+
$configs = wp_parse_args( $type_configs, $default_type_configs );
|
63 |
+
|
64 |
+
$step = new \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files( 'archive_' . $type, $this->id, $this->get_dir() );
|
65 |
+
$step->set_configs( $configs );
|
66 |
+
|
67 |
+
$steps[] = $step;
|
68 |
+
}
|
69 |
+
|
70 |
+
foreach ( $steps as $step ) {
|
71 |
+
$this->check_in();
|
72 |
+
|
73 |
+
if ( $step->maybe_run() ) {
|
74 |
+
$step_success = $step->run();
|
75 |
+
|
76 |
+
if ( ! $step_success ) {
|
77 |
+
// Failed to create zip. todo: cleanup?
|
78 |
+
return false;
|
79 |
+
}
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
$this->info->set_key( 'lastmodunix', $this->get_core()->wp_filesystem->mtime( $this->info->get_key( 'filepath' ) ) );
|
84 |
+
|
85 |
+
$this->complete();
|
86 |
+
}
|
87 |
+
}
|
includes/v2/archiver/class-factory.php
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Archive Process Factory class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Archiver;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Factory
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Factory {
|
22 |
+
/**
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
public static function run( $id = null ) {
|
26 |
+
$core = apply_filters( 'boldgrid_backup_get_core', false );
|
27 |
+
|
28 |
+
// Create a 16 digit id.
|
29 |
+
if ( empty( $id ) ) {
|
30 |
+
$id = substr( md5( time() ), -16 );
|
31 |
+
}
|
32 |
+
|
33 |
+
$name = 'boldgrid-backup-' . $core->get_backup_identifier() . '-' . $id;
|
34 |
+
|
35 |
+
// Create the folder if it does not exist.
|
36 |
+
$backup_folder_path = $core->backup_dir->get_path_to( $name );
|
37 |
+
if ( ! $core->wp_filesystem->exists( $backup_folder_path ) ) {
|
38 |
+
$core->wp_filesystem->mkdir( $backup_folder_path );
|
39 |
+
}
|
40 |
+
|
41 |
+
// Create the zip placeholder.
|
42 |
+
$zip_filepath = $core->backup_dir->get_path_to( $name . '.zip' );
|
43 |
+
if ( ! $core->wp_filesystem->exists( $zip_filepath ) ) {
|
44 |
+
$core->wp_filesystem->touch( $zip_filepath );
|
45 |
+
}
|
46 |
+
|
47 |
+
$archiver = new \Boldgrid\Backup\V2\Archiver\Archiver( 'archiver', false, $backup_folder_path );
|
48 |
+
$archiver->get_info()->set_key( 'filepath', $zip_filepath );
|
49 |
+
|
50 |
+
return $archiver;
|
51 |
+
}
|
52 |
+
}
|
includes/v2/archiver/class-resumer.php
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Resume class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Archiver;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Resumer
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Resumer {
|
22 |
+
private $core;
|
23 |
+
|
24 |
+
/**
|
25 |
+
*
|
26 |
+
*/
|
27 |
+
public function __construct( $core = null ) {
|
28 |
+
$this->core = empty( $core ) ? apply_filters( 'boldgrid_backup_get_core', null ) : $core;
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
*
|
33 |
+
*/
|
34 |
+
private function add_cron_command() {
|
35 |
+
$command = $this->get_cron_command();
|
36 |
+
|
37 |
+
return $this->core->cron->update_cron( $command );
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
*
|
42 |
+
*/
|
43 |
+
private function get_cron_command() {
|
44 |
+
$command = array(
|
45 |
+
'* * * * *',
|
46 |
+
$this->core->cron->get_cron_command(),
|
47 |
+
'"' . BOLDGRID_BACKUP_PATH . '/boldgrid-backup-cron.php"',
|
48 |
+
'mode=resume',
|
49 |
+
'siteurl=' . get_site_url(),
|
50 |
+
'id=' . $this->core->get_backup_identifier(),
|
51 |
+
'secret=' . $this->core->cron->get_cron_secret(),
|
52 |
+
);
|
53 |
+
|
54 |
+
return implode( ' ', $command );
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
*
|
59 |
+
*/
|
60 |
+
public function maybe_add_cron() {
|
61 |
+
$cron = new \Boldgrid\Backup\Admin\Cron();
|
62 |
+
$backup_entry = $cron->get_entry( 'resume' );
|
63 |
+
|
64 |
+
if ( ! $backup_entry->is_set() ) {
|
65 |
+
$this->add_cron_command();
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
*
|
71 |
+
*/
|
72 |
+
public function remove_cron() {
|
73 |
+
$command = $this->get_cron_command();
|
74 |
+
|
75 |
+
return $this->core->cron->entry_delete( $command );
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
*
|
80 |
+
*/
|
81 |
+
public function run() {
|
82 |
+
error_log( 'RUNNING RESUMER...' ); // phpcs:ignore
|
83 |
+
|
84 |
+
$id = \Boldgrid_Backup_Admin_In_Progress_Data::get_backup_id();
|
85 |
+
if ( ! empty( $id ) ) {
|
86 |
+
$backup_process = \BoldGrid\Backup\V2\Archiver\Factory::run( $id );
|
87 |
+
if ( $backup_process->is_unresponsive() ) {
|
88 |
+
error_log( 'RESUMING!' ); // phpcs:ignore
|
89 |
+
$archiver = new \Boldgrid_Backup_Archiver( $id );
|
90 |
+
$archiver->run();
|
91 |
+
} else {
|
92 |
+
error_log( 'NOT RESUMING - NOT UNRESONSIVE' ); // phpcs:ignore
|
93 |
+
}
|
94 |
+
} else {
|
95 |
+
$this->remove_cron();
|
96 |
+
error_log( 'NOT RESUMING - NO ID FOUND' ); // phpcs:ignore
|
97 |
+
}
|
98 |
+
}
|
99 |
+
}
|
includes/v2/archiver/steps/archive_files/class-part.php
ADDED
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Archiver\Steps\Archive_Files;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Part
|
18 |
+
*
|
19 |
+
* This class represents a part of the backup, one of the several zips. For example, each of the following
|
20 |
+
* are a part:
|
21 |
+
* # plugins-1.zip
|
22 |
+
* # plugins-2.zip
|
23 |
+
*
|
24 |
+
* @since SINCEVERSION
|
25 |
+
*/
|
26 |
+
class Part {
|
27 |
+
/**
|
28 |
+
* Our parent "archive files" class.
|
29 |
+
*
|
30 |
+
* It could represent archiving plugins or themes for example.
|
31 |
+
*
|
32 |
+
* @since SINCEVERSION
|
33 |
+
* @access private
|
34 |
+
* @var \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files
|
35 |
+
*/
|
36 |
+
private $archive_files;
|
37 |
+
|
38 |
+
/**
|
39 |
+
*
|
40 |
+
*/
|
41 |
+
private $configs;
|
42 |
+
|
43 |
+
/**
|
44 |
+
* The filepath to this part.
|
45 |
+
*
|
46 |
+
* For example, /home/user/backups/1234/plugins-1.zip
|
47 |
+
*
|
48 |
+
* @since SINCEVERSION
|
49 |
+
* @access private
|
50 |
+
* @var string
|
51 |
+
*/
|
52 |
+
private $filepath;
|
53 |
+
|
54 |
+
/**
|
55 |
+
* This part's key.
|
56 |
+
*
|
57 |
+
* IE if this is plugins-1.zip, the key is 0.
|
58 |
+
*
|
59 |
+
* @since SINCEVERSION
|
60 |
+
* @access private
|
61 |
+
* @var int
|
62 |
+
*/
|
63 |
+
private $key;
|
64 |
+
|
65 |
+
/**
|
66 |
+
* The max size of this part.
|
67 |
+
*
|
68 |
+
* IE each plugins-#.zip file can only be 100MB.
|
69 |
+
*
|
70 |
+
* @since SINCEVERSION
|
71 |
+
* @access private
|
72 |
+
* @var int
|
73 |
+
*/
|
74 |
+
private $max_size = 100 * 1000000;
|
75 |
+
|
76 |
+
/**
|
77 |
+
* This part's number.
|
78 |
+
*
|
79 |
+
* IE the plugins-1.zip
|
80 |
+
*
|
81 |
+
* @since SINCEVERSION
|
82 |
+
* @access private
|
83 |
+
* @var int
|
84 |
+
*/
|
85 |
+
private $number;
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Constructor.
|
89 |
+
*
|
90 |
+
* @since SINCEVERSION
|
91 |
+
*
|
92 |
+
* @param \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files $archive_files Our parent arching files class.
|
93 |
+
* @param int $number This part number.
|
94 |
+
*/
|
95 |
+
public function __construct( \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files $archive_files, $number ) {
|
96 |
+
$this->archive_files = $archive_files;
|
97 |
+
$this->number = $number;
|
98 |
+
$this->key = $number - 1;
|
99 |
+
|
100 |
+
$filename = 'zip-' . $this->archive_files->get_configs()['type'] . '-' . $number . '.zip';
|
101 |
+
$this->filepath = $this->archive_files->get_path_to( $filename );
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Add a batch to this part.
|
106 |
+
*
|
107 |
+
* IE plugins-1.zip (this part) is made up of batches (batch-1.txt, batch-2.txt, etc). This method
|
108 |
+
* adds one of the batch files to the zip.
|
109 |
+
*
|
110 |
+
* @since SINCEVERSION
|
111 |
+
*
|
112 |
+
* @param string $batch_filelist_filepath The path to the batch file.
|
113 |
+
* @return bool True on success
|
114 |
+
*/
|
115 |
+
public function add_batch( $batch_filelist_filepath ) {
|
116 |
+
$success = false;
|
117 |
+
$return = 'unknown';
|
118 |
+
|
119 |
+
$original_size = $this->get_size();
|
120 |
+
|
121 |
+
$j = empty( $this->configs['junk_paths'] ) ? '' : '-j';
|
122 |
+
|
123 |
+
$archive_command = 'cd ' . ABSPATH . '; zip ' . $this->filepath . ' ' . $j . ' -@ < ' . $batch_filelist_filepath;
|
124 |
+
|
125 |
+
// error_log( '$archive_command = ' . getmypid() . ' ' . $archive_command );
|
126 |
+
|
127 |
+
$this->archive_files->get_core()->execute_command( $archive_command, $success, $return );
|
128 |
+
|
129 |
+
$new_size = $this->get_size();
|
130 |
+
|
131 |
+
return ( $original_size !== $new_size ) && $success;
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Steps to take when this part is complete.
|
136 |
+
*
|
137 |
+
* IE we've hit the max filesize set for parts, or we're done backing up.
|
138 |
+
*
|
139 |
+
* @since SINCEVERSION
|
140 |
+
*/
|
141 |
+
public function complete() {
|
142 |
+
$this->set_key( 'complete_time', time() );
|
143 |
+
$this->set_key( 'filename', basename( $this->filepath ) );
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Get the max size for this part.
|
148 |
+
*
|
149 |
+
* @since SINCEVERSION
|
150 |
+
*
|
151 |
+
* @return int
|
152 |
+
*/
|
153 |
+
public function get_max_size() {
|
154 |
+
return $this->max_size;
|
155 |
+
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Get this part number.
|
159 |
+
*
|
160 |
+
* @since SINCEVERSION
|
161 |
+
*
|
162 |
+
* @return int
|
163 |
+
*/
|
164 |
+
public function get_number() {
|
165 |
+
return $this->number;
|
166 |
+
}
|
167 |
+
|
168 |
+
/**
|
169 |
+
* Get the remaining size available for this part.
|
170 |
+
*
|
171 |
+
* Based upon the max size we've set for a part.
|
172 |
+
*
|
173 |
+
* @since SINCEVERSION
|
174 |
+
*
|
175 |
+
* @return int
|
176 |
+
*/
|
177 |
+
public function get_remaining_size() {
|
178 |
+
return $this->max_size - $this->get_size();
|
179 |
+
}
|
180 |
+
|
181 |
+
/**
|
182 |
+
* Get the current size of this part.
|
183 |
+
*
|
184 |
+
* @since SINCEVERSION
|
185 |
+
*
|
186 |
+
* @return int
|
187 |
+
*/
|
188 |
+
public function get_size() {
|
189 |
+
// PHP will cache the size. Clear the cache.
|
190 |
+
clearstatcache();
|
191 |
+
|
192 |
+
return $this->archive_files->get_core()->wp_filesystem->size( $this->filepath );
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Determine whether or not this part is empty.
|
197 |
+
*
|
198 |
+
* IE if it's empty, it's a new part and we haven't net written any batches to it.
|
199 |
+
*
|
200 |
+
* @since SINCEVERSION
|
201 |
+
*
|
202 |
+
* @return bool
|
203 |
+
*/
|
204 |
+
public function is_empty() {
|
205 |
+
$size = $this->get_size();
|
206 |
+
|
207 |
+
return empty( $size );
|
208 |
+
}
|
209 |
+
|
210 |
+
/**
|
211 |
+
*
|
212 |
+
*/
|
213 |
+
public function set_configs( $configs ) {
|
214 |
+
$defaults = array(
|
215 |
+
'junk_paths' => false,
|
216 |
+
);
|
217 |
+
|
218 |
+
$this->configs = wp_parse_args( $configs, $defaults );
|
219 |
+
}
|
220 |
+
|
221 |
+
/**
|
222 |
+
* Set a key / value for this part.
|
223 |
+
*
|
224 |
+
* IE set when the part was completed, the filename of the part, etc.
|
225 |
+
*
|
226 |
+
* This is somewhat of a hack, it stores this data in the parent archive_files class.
|
227 |
+
*
|
228 |
+
* @since SINCEVERSION
|
229 |
+
*
|
230 |
+
* @param string $key The key for this data.
|
231 |
+
* @param mixed $value The data to store.
|
232 |
+
*/
|
233 |
+
public function set_key( $key, $value ) {
|
234 |
+
$data = $this->archive_files->get_data_type( 'step' )->get_data();
|
235 |
+
|
236 |
+
$data['parts'][ $this->key ][ $key ] = $value;
|
237 |
+
|
238 |
+
$this->archive_files->get_data_type( 'step' )->set_key( 'parts', $data['parts'] );
|
239 |
+
}
|
240 |
+
}
|
includes/v2/archiver/steps/archive_files/class-parts.php
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Parts class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Archiver\Steps\Archive_Files;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Steps
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Parts {
|
22 |
+
/**
|
23 |
+
* Our parent archive_files class.
|
24 |
+
*
|
25 |
+
* @since SINCEVERSION
|
26 |
+
* @access private
|
27 |
+
* @var \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files
|
28 |
+
*/
|
29 |
+
private $archive_files;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Constructor.
|
33 |
+
*
|
34 |
+
* @since SINCEVERSION
|
35 |
+
*
|
36 |
+
* @param \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files $archive_files Our parent archive_files class.
|
37 |
+
*/
|
38 |
+
public function __construct( $archive_files ) {
|
39 |
+
$this->archive_files = $archive_files;
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Determine our next part.
|
44 |
+
*
|
45 |
+
* @since SINCEVERSION
|
46 |
+
*
|
47 |
+
* @return \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files\Part
|
48 |
+
*/
|
49 |
+
public function get_next() {
|
50 |
+
$parts = $this->archive_files->get_data_type( 'step' )->get_key( 'parts', array() );
|
51 |
+
|
52 |
+
$part_number = 1;
|
53 |
+
|
54 |
+
if ( ! empty( $parts ) ) {
|
55 |
+
foreach ( $parts as $part ) {
|
56 |
+
// If our part is complete, our next part will be one more.
|
57 |
+
if ( ! empty( $part['complete_time'] ) ) {
|
58 |
+
$part_number++;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
return new \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files\Part( $this->archive_files, $part_number );
|
64 |
+
}
|
65 |
+
}
|
includes/v2/archiver/steps/class-archive-database.php
ADDED
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Archive Database class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Archiver\Steps;
|
15 |
+
|
16 |
+
use Ifsnop\Mysqldump as IMysqldump;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Class: Archive_Database
|
20 |
+
*
|
21 |
+
* @since SINCEVERSION
|
22 |
+
*/
|
23 |
+
class Archive_Database extends \Boldgrid\Backup\V2\Step\Step {
|
24 |
+
/**
|
25 |
+
* The path to our dump file.
|
26 |
+
*
|
27 |
+
* @since SINCEVERSION
|
28 |
+
* @access private
|
29 |
+
* @var string
|
30 |
+
*/
|
31 |
+
private $dump_filepath;
|
32 |
+
|
33 |
+
/**
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
private function add_to_filelist() {
|
37 |
+
$sql_filepath = $this->get_path_to( 'filelist-sql.json' );
|
38 |
+
|
39 |
+
$filelist = array(
|
40 |
+
array(
|
41 |
+
$this->dump_filepath,
|
42 |
+
basename( $this->dump_filepath ),
|
43 |
+
$this->get_core()->wp_filesystem->size( $this->dump_filepath ),
|
44 |
+
),
|
45 |
+
);
|
46 |
+
|
47 |
+
$this->get_core()->wp_filesystem->put_contents( $sql_filepath, wp_json_encode( $filelist ) );
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Dump the database.
|
52 |
+
*
|
53 |
+
* @since SINCEVERSION
|
54 |
+
*
|
55 |
+
* @return true on success, array on failure.
|
56 |
+
*/
|
57 |
+
private function dump() {
|
58 |
+
global $wpdb;
|
59 |
+
|
60 |
+
$discovery = new \Boldgrid\Backup\V2\Archiver\Steps\Discovery( 'discovery', $this->id, $this->get_dir() );
|
61 |
+
$table_list = $discovery->get_data_type( 'step' )->get_key( 'tables' );
|
62 |
+
|
63 |
+
\Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'status', __( 'Backing up database...', 'boldgrid-backup' ) );
|
64 |
+
\Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'tables', $table_list['tables'] );
|
65 |
+
\Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'step', 1 );
|
66 |
+
|
67 |
+
$settings = array(
|
68 |
+
'include-tables' => $table_list['tables'],
|
69 |
+
'include-views' => $table_list['views'],
|
70 |
+
'add-drop-table' => true,
|
71 |
+
'no-autocommit' => false,
|
72 |
+
);
|
73 |
+
|
74 |
+
/*
|
75 |
+
* Set default character set.
|
76 |
+
*
|
77 |
+
* By default, IMysqldump\Mysqldump uses utf8.
|
78 |
+
*
|
79 |
+
* By default, WordPress sets CHARSET to utf8 in wp-config but will default to utf8mb4
|
80 |
+
* if it's available.
|
81 |
+
*
|
82 |
+
* @see wpdb::determine_charset
|
83 |
+
*/
|
84 |
+
if ( ! empty( $wpdb->charset ) ) {
|
85 |
+
$settings['default-character-set'] = $wpdb->charset;
|
86 |
+
}
|
87 |
+
|
88 |
+
if ( ! empty( $table_list['views'] ) ) {
|
89 |
+
$db_import = new \Boldgrid_Backup_Admin_Db_Import();
|
90 |
+
$user_has_privileges = $db_import->has_db_privileges( array( 'SHOW VIEW' ) );
|
91 |
+
if ( false === $user_has_privileges ) {
|
92 |
+
return array(
|
93 |
+
'error' => esc_html__(
|
94 |
+
'The database contains VIEWS, but the database user does not have the permissions needed to create a backup.',
|
95 |
+
'boldgrid-backup'
|
96 |
+
),
|
97 |
+
);
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
try {
|
102 |
+
$dump = new IMysqldump\Mysqldump(
|
103 |
+
$this->get_core()->db_dump->get_connection_string(),
|
104 |
+
DB_USER,
|
105 |
+
DB_PASSWORD,
|
106 |
+
$settings
|
107 |
+
);
|
108 |
+
$dump->start( $this->dump_filepath );
|
109 |
+
} catch ( \Exception $e ) {
|
110 |
+
return array( 'error' => $e->getMessage() );
|
111 |
+
}
|
112 |
+
|
113 |
+
return true;
|
114 |
+
}
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Run the database archiver.
|
118 |
+
*
|
119 |
+
* @since SINCEVERSION
|
120 |
+
*/
|
121 |
+
public function run() {
|
122 |
+
$this->add_attempt();
|
123 |
+
|
124 |
+
$this->dump_filepath = $this->get_path_to( DB_NAME . '.' . date( 'Ymd-His' ) . '.sql' );
|
125 |
+
$this->info->set_key( 'db_filename', basename( $this->dump_filepath ) );
|
126 |
+
|
127 |
+
$this->pre();
|
128 |
+
|
129 |
+
$success = $this->dump();
|
130 |
+
|
131 |
+
$this->info->set_key( 'db_time_stop', microtime( true ) );
|
132 |
+
|
133 |
+
$this->post();
|
134 |
+
|
135 |
+
if ( true === $success ) {
|
136 |
+
$this->complete();
|
137 |
+
}
|
138 |
+
|
139 |
+
return $success;
|
140 |
+
}
|
141 |
+
|
142 |
+
/**
|
143 |
+
* Steps to take after a database has been dumped.
|
144 |
+
*
|
145 |
+
* @since SINCEVERSION
|
146 |
+
*/
|
147 |
+
private function post() {
|
148 |
+
$this->add_to_filelist();
|
149 |
+
|
150 |
+
/**
|
151 |
+
* Take action after a database is dumped.
|
152 |
+
*
|
153 |
+
* @since 1.6.0
|
154 |
+
*/
|
155 |
+
do_action( 'boldgrid_backup_post_dump', $this->dump_filepath );
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Steps to take before a database has been dumped.
|
160 |
+
*
|
161 |
+
* @since SINCEVERSION
|
162 |
+
*/
|
163 |
+
private function pre() {
|
164 |
+
/**
|
165 |
+
* Take action before a database is dumped.
|
166 |
+
*
|
167 |
+
* @since 1.6.0
|
168 |
+
*/
|
169 |
+
do_action( 'boldgrid_backup_pre_dump', $this->dump_filepath );
|
170 |
+
}
|
171 |
+
}
|
includes/v2/archiver/steps/class-archive-files.php
ADDED
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Archive Files class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Archiver\Steps;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Archive_Files
|
18 |
+
*
|
19 |
+
* This class is used to archive a "type" of file. For example, this class can represet "plugins",
|
20 |
+
* "themes", etc.
|
21 |
+
*
|
22 |
+
* @since SINCEVERSION
|
23 |
+
*/
|
24 |
+
class Archive_Files extends \Boldgrid\Backup\V2\Step\Step {
|
25 |
+
/**
|
26 |
+
* An array of configs.
|
27 |
+
*
|
28 |
+
* @since SINCEVERSION
|
29 |
+
* @access private
|
30 |
+
* @var array
|
31 |
+
*/
|
32 |
+
private $configs;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* An array of files belonging to this "type".
|
36 |
+
*
|
37 |
+
* IE An array of all "plugins".
|
38 |
+
*
|
39 |
+
* Set via the self::set_filelist() method.
|
40 |
+
*
|
41 |
+
* @since SINCEVERSION
|
42 |
+
* @access private
|
43 |
+
* @var array
|
44 |
+
*/
|
45 |
+
private $filelist;
|
46 |
+
|
47 |
+
/**
|
48 |
+
* The last key of the filelist archived.
|
49 |
+
*
|
50 |
+
* @since SINCEVERSION
|
51 |
+
* @access private
|
52 |
+
* @var int
|
53 |
+
*/
|
54 |
+
private $last_archived_key;
|
55 |
+
|
56 |
+
/**
|
57 |
+
* The max batch size.
|
58 |
+
*
|
59 |
+
* @since SINCEVERSION
|
60 |
+
* @access private
|
61 |
+
* @var int
|
62 |
+
*/
|
63 |
+
private $max_batch_size = 25 * 1000000;
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Our parts class.
|
67 |
+
*
|
68 |
+
* @since SINCEVERSION
|
69 |
+
* @access private
|
70 |
+
* @var \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files\Parts
|
71 |
+
*/
|
72 |
+
private $parts;
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Constructor.
|
76 |
+
*
|
77 |
+
* @since SINCEVERSION
|
78 |
+
*
|
79 |
+
* @param string $id The id of this step.
|
80 |
+
* @param string $dir The backup directory.
|
81 |
+
* @param array $configs An array of configs.
|
82 |
+
*/
|
83 |
+
public function __construct( $id, $parent_id, $dir ) {
|
84 |
+
parent::__construct( $id, $parent_id, $dir );
|
85 |
+
|
86 |
+
$this->parts = new \Boldgrid\Backup\V2\Archiver\Steps\Archive_Files\Parts( $this );
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Get our next batch data.
|
91 |
+
*
|
92 |
+
* Not too complicated, but probably the most complex part of the backup process. Need to loop through
|
93 |
+
* all the files and determine how to create the batches so the parts are as close as possible to
|
94 |
+
* the max.
|
95 |
+
*
|
96 |
+
* @since SINCEVERSION
|
97 |
+
*
|
98 |
+
* @return mixed An array of data on success, false on failure.
|
99 |
+
*/
|
100 |
+
private function get_next_batch() {
|
101 |
+
// An array of files to add during this batch.
|
102 |
+
$batch_filelist = array();
|
103 |
+
|
104 |
+
$start_key = empty( $this->last_archived_key ) ? 0 : $this->last_archived_key + 1;
|
105 |
+
|
106 |
+
$files_added = 0;
|
107 |
+
|
108 |
+
$part = $this->parts->get_next();
|
109 |
+
|
110 |
+
if ( ! empty( $this->configs['part_configs'] ) ) {
|
111 |
+
$part->set_configs( $this->configs['part_configs'] );
|
112 |
+
}
|
113 |
+
|
114 |
+
// Determine the max size to archive during this batch.
|
115 |
+
$max_batch_size = min( $part->get_remaining_size(), $this->max_batch_size );
|
116 |
+
$remaining_size = $max_batch_size;
|
117 |
+
$is_part_empty = $part->is_empty();
|
118 |
+
|
119 |
+
// If the very next file would push us over the limit, we need to get a new part.
|
120 |
+
if ( ! $is_part_empty && $this->filelist[ $start_key ][2] > $remaining_size ) {
|
121 |
+
$part->complete();
|
122 |
+
$part = $this->parts->get_next();
|
123 |
+
|
124 |
+
// Determine the max size to archive during this batch.
|
125 |
+
$max_batch_size = min( $part->get_remaining_size(), $this->max_batch_size );
|
126 |
+
$remaining_size = $max_batch_size;
|
127 |
+
$is_part_empty = $part->is_empty();
|
128 |
+
}
|
129 |
+
|
130 |
+
// At this point, no matter what, we're adding at least one file.
|
131 |
+
foreach ( $this->filelist as $key => $file ) {
|
132 |
+
if ( $key < $start_key ) {
|
133 |
+
continue;
|
134 |
+
}
|
135 |
+
|
136 |
+
$too_big = $file[2] > $remaining_size;
|
137 |
+
$allow_in_batch = ! $too_big || ( 0 === $files_added && $is_part_empty );
|
138 |
+
|
139 |
+
if ( $allow_in_batch ) {
|
140 |
+
$batch_filelist[] = $this->configs['use_full_filepath'] ? $file[0] : $file[1];
|
141 |
+
$remaining_size -= $file[2];
|
142 |
+
$this->last_archived_key = $key;
|
143 |
+
$files_added++;
|
144 |
+
} else {
|
145 |
+
break;
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
// Write the batch file.
|
150 |
+
$batch_filelist_filename = 'filelist-' . $this->configs['type'] . '-' . $start_key . '.txt';
|
151 |
+
$batch_filelist_filepath = $this->get_path_to( $batch_filelist_filename );
|
152 |
+
|
153 |
+
if ( empty( $batch_filelist ) ) {
|
154 |
+
$this->fail( 'Something went wrong. Empty batch filelist ' . $batch_filelist_filename . ' was almost written.' );
|
155 |
+
return false;
|
156 |
+
}
|
157 |
+
|
158 |
+
$success = $this->get_core()->wp_filesystem->put_contents( $batch_filelist_filepath, implode( PHP_EOL, $batch_filelist ) );
|
159 |
+
|
160 |
+
$batch_info = array(
|
161 |
+
'batch_filelist_filepath' => $batch_filelist_filepath,
|
162 |
+
'part' => $part,
|
163 |
+
);
|
164 |
+
|
165 |
+
return $success ? $batch_info : false;
|
166 |
+
}
|
167 |
+
|
168 |
+
/**
|
169 |
+
* Get our configs.
|
170 |
+
*
|
171 |
+
* @since SINCEVERSION
|
172 |
+
*
|
173 |
+
* @return array
|
174 |
+
*/
|
175 |
+
public function get_configs() {
|
176 |
+
return $this->configs;
|
177 |
+
}
|
178 |
+
|
179 |
+
/**
|
180 |
+
* Archive files.
|
181 |
+
*
|
182 |
+
* @since SINCEVERSION
|
183 |
+
*/
|
184 |
+
public function run() {
|
185 |
+
// error_log( 'archive files configs = ' . print_r( $this->configs,1) );
|
186 |
+
|
187 |
+
\Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'step', 3 );
|
188 |
+
|
189 |
+
$this->add_attempt();
|
190 |
+
|
191 |
+
/*
|
192 |
+
* Get our filelist.
|
193 |
+
*
|
194 |
+
* If we don't have any files, complete and return right now. For example, if we are filtering
|
195 |
+
* by "*.txt", we may not find any txt files in the uploads folder.
|
196 |
+
*/
|
197 |
+
$this->set_filelist();
|
198 |
+
if ( empty( $this->filelist ) ) {
|
199 |
+
$this->complete();
|
200 |
+
return;
|
201 |
+
}
|
202 |
+
|
203 |
+
$last_key = count( $this->filelist ) - 1;
|
204 |
+
$this->last_archived_key = $this->get_data_type( 'step' )->get_key( 'last_archived_key', 0 );
|
205 |
+
$archived_all_keys = false;
|
206 |
+
|
207 |
+
while ( ! $archived_all_keys ) {
|
208 |
+
$batch_info = $this->get_next_batch();
|
209 |
+
|
210 |
+
if ( false !== $batch_info ) {
|
211 |
+
|
212 |
+
/*
|
213 |
+
* If a sysadmin kills the zip command but not this main process, we'll try again. If
|
214 |
+
* it was killed, sleep before the next attepmt.
|
215 |
+
*/
|
216 |
+
$zip_attempts = 0;
|
217 |
+
$zip_max_attempts = 3;
|
218 |
+
$zip_success = false;
|
219 |
+
$zip_sleep = 10;
|
220 |
+
|
221 |
+
while ( ! $zip_success && ( $zip_attempts < $zip_max_attempts ) ) {
|
222 |
+
$zip_attempts++;
|
223 |
+
|
224 |
+
error_log( 'Zip attempt ' . $zip_attempts ); // phpcs:ignore
|
225 |
+
|
226 |
+
$zip_success = $batch_info['part']->add_batch( $batch_info['batch_filelist_filepath'] );
|
227 |
+
|
228 |
+
if ( ! $zip_success ) {
|
229 |
+
error_log( 'Zipping failed. Sleeping...' ); // phpcs:ignore
|
230 |
+
sleep( $zip_sleep );
|
231 |
+
}
|
232 |
+
}
|
233 |
+
|
234 |
+
if ( $zip_success ) {
|
235 |
+
// Save the last key we successfully archived.
|
236 |
+
$this->get_data_type( 'step' )->set_key( 'last_archived_key', $this->last_archived_key );
|
237 |
+
|
238 |
+
// If we've archived all the files, flag the last part as complete.
|
239 |
+
if ( $this->last_archived_key === $last_key ) {
|
240 |
+
$batch_info['part']->complete();
|
241 |
+
}
|
242 |
+
} else {
|
243 |
+
$this->fail( 'Failed ' . $zip_max_attempts . ' times to add ' . $batch_info['batch_filelist_filepath'] . ' to archive.' );
|
244 |
+
return false;
|
245 |
+
}
|
246 |
+
} else {
|
247 |
+
$this->fail( 'Error getting last batch.' );
|
248 |
+
return false;
|
249 |
+
}
|
250 |
+
|
251 |
+
$archived_all_keys = $this->last_archived_key === $last_key;
|
252 |
+
}
|
253 |
+
|
254 |
+
$this->complete();
|
255 |
+
|
256 |
+
return true;
|
257 |
+
}
|
258 |
+
|
259 |
+
/**
|
260 |
+
*
|
261 |
+
*/
|
262 |
+
public function set_configs( $configs ) {
|
263 |
+
$default_configs = array(
|
264 |
+
'use_full_filepath' => false,
|
265 |
+
);
|
266 |
+
|
267 |
+
$this->configs = wp_parse_args( $configs, $default_configs );
|
268 |
+
}
|
269 |
+
|
270 |
+
/**
|
271 |
+
* Set our filelist.
|
272 |
+
*
|
273 |
+
* @since SINCEVERSION
|
274 |
+
*/
|
275 |
+
private function set_filelist() {
|
276 |
+
$filelist_filepath = $this->get_path_to( 'filelist-' . $this->configs['type'] . '.json' );
|
277 |
+
$json = $this->get_core()->wp_filesystem->get_contents( $filelist_filepath );
|
278 |
+
|
279 |
+
$this->filelist = json_decode( $json, true );
|
280 |
+
}
|
281 |
+
}
|
includes/v2/archiver/steps/class-discovery.php
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Discovery class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Archiver\Steps;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Discovery
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Discovery extends \Boldgrid\Backup\V2\Step\Step {
|
22 |
+
/**
|
23 |
+
* Run the discovery scripts.
|
24 |
+
*
|
25 |
+
* Used to determine what needs to be backed up.
|
26 |
+
*
|
27 |
+
* @since SINCEVERSION
|
28 |
+
*/
|
29 |
+
public function run() {
|
30 |
+
$this->add_attempt();
|
31 |
+
|
32 |
+
$this->database();
|
33 |
+
$this->files();
|
34 |
+
|
35 |
+
$this->complete();
|
36 |
+
|
37 |
+
return true;
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Discover which tables and views in the database should be backed up.
|
42 |
+
*
|
43 |
+
* @since SINCEVERSION
|
44 |
+
*/
|
45 |
+
private function database() {
|
46 |
+
$tables = $this->get_core()->db_dump->get_table_list();
|
47 |
+
|
48 |
+
$this->get_data_type( 'step' )->set_key( 'tables', $tables );
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Discover which files need to be backed up.
|
53 |
+
*
|
54 |
+
* @since SINCEVERSION
|
55 |
+
*/
|
56 |
+
private function files() {
|
57 |
+
$filelist_creator = new \Boldgrid\Backup\V2\Filelist\Create();
|
58 |
+
$files = $filelist_creator->run();
|
59 |
+
|
60 |
+
\Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived', $filelist_creator->get_total_size() );
|
61 |
+
\Boldgrid_Backup_Admin_In_Progress_Data::set_arg( 'total_size_archived_size_format', size_format( $filelist_creator->get_total_size(), 2 ) );
|
62 |
+
|
63 |
+
$filelists = array();
|
64 |
+
|
65 |
+
foreach ( $files as $type => $data ) {
|
66 |
+
$filename = 'filelist-' . $type . '.json';
|
67 |
+
$this->write_contents( $filename, wp_json_encode( $data ) );
|
68 |
+
|
69 |
+
$filelists[] = $filename;
|
70 |
+
}
|
71 |
+
|
72 |
+
$this->get_data_type( 'step' )->set_key( 'filelists', $filelists );
|
73 |
+
}
|
74 |
+
}
|
includes/v2/filelist/class-create.php
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Filelist class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Filelist;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Create
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Create {
|
22 |
+
/**
|
23 |
+
* The core class object.
|
24 |
+
*
|
25 |
+
* @since SINCEVERSION
|
26 |
+
* @access private
|
27 |
+
* @var Boldgrid_Backup_Admin_Core
|
28 |
+
*/
|
29 |
+
private $core;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* An array of filelists.
|
33 |
+
*
|
34 |
+
* @since SINCEVERSION
|
35 |
+
* @access private
|
36 |
+
* @var array
|
37 |
+
*/
|
38 |
+
private $list = array();
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Total size of all files in the list.
|
42 |
+
*
|
43 |
+
* @since SINCEVERSION
|
44 |
+
* @access private
|
45 |
+
* @var int
|
46 |
+
*/
|
47 |
+
private $total_size = 0;
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Construct.
|
51 |
+
*
|
52 |
+
* @since SINCEVERSION
|
53 |
+
*/
|
54 |
+
public function __construct() {
|
55 |
+
$this->core = apply_filters( 'boldgrid_backup_get_core', false );
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Run our filelist creator.
|
60 |
+
*
|
61 |
+
* @since SINCEVERSION
|
62 |
+
*
|
63 |
+
* @return array
|
64 |
+
*/
|
65 |
+
public function run() {
|
66 |
+
$filelist = $this->core->get_filtered_filelist( ABSPATH );
|
67 |
+
|
68 |
+
// Create our different file lists.
|
69 |
+
foreach ( $filelist as $file ) {
|
70 |
+
$type = $this->get_type( $file[1] );
|
71 |
+
$this->list[ $type ][] = $file;
|
72 |
+
|
73 |
+
$this->total_size += empty( $file[2] ) ? 0 : $file[2];
|
74 |
+
}
|
75 |
+
|
76 |
+
return $this->list;
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Get the total size of all files to archive (uncompressed).
|
81 |
+
*
|
82 |
+
* @since SINCEVERSION
|
83 |
+
*
|
84 |
+
* @return int
|
85 |
+
*/
|
86 |
+
public function get_total_size() {
|
87 |
+
return $this->total_size;
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Get which type of file this is.
|
92 |
+
*
|
93 |
+
* @since SINCEVERSION
|
94 |
+
*
|
95 |
+
* @param string $relative_path A path to a file that we'll backup.
|
96 |
+
* @return string The type, such as plugins, themes, etc.
|
97 |
+
*/
|
98 |
+
private function get_type( $relative_path ) {
|
99 |
+
if ( \Boldgrid_Backup_Admin_Utility::starts_with( $relative_path, 'wp-content/plugins/' ) ) {
|
100 |
+
return 'plugins';
|
101 |
+
} elseif ( \Boldgrid_Backup_Admin_Utility::starts_with( $relative_path, 'wp-content/themes/' ) ) {
|
102 |
+
return 'themes';
|
103 |
+
} elseif ( \Boldgrid_Backup_Admin_Utility::starts_with( $relative_path, 'wp-content/uploads/' ) ) {
|
104 |
+
return 'uploads';
|
105 |
+
} else {
|
106 |
+
return 'other';
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
}
|
includes/v2/step/class-data.php
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Data class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Step;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Data
|
18 |
+
*
|
19 |
+
* Represents a type of data for a step. Such as "run" data or "step" data.
|
20 |
+
*
|
21 |
+
* @since SINCEVERSION
|
22 |
+
*/
|
23 |
+
class Data {
|
24 |
+
/**
|
25 |
+
* The id of this data.
|
26 |
+
*
|
27 |
+
* IE "run" or "step".
|
28 |
+
*
|
29 |
+
* @since SINCEVERSION
|
30 |
+
* @access private
|
31 |
+
* @var string
|
32 |
+
*/
|
33 |
+
private $id;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Our parent step.
|
37 |
+
*
|
38 |
+
* @since SINCEVERSION
|
39 |
+
* @access private
|
40 |
+
* @var \Boldgrid\Backup\V2\Step\Step
|
41 |
+
*/
|
42 |
+
private $step;
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Constructor.
|
46 |
+
*
|
47 |
+
* @since SINCEVERSION
|
48 |
+
*
|
49 |
+
* @param \Boldgrid\Backup\V2\Step\Step $step Our parent step.
|
50 |
+
* @param string $id The id of our step.
|
51 |
+
*/
|
52 |
+
public function __construct( \Boldgrid\Backup\V2\Step\Step $step, $id ) {
|
53 |
+
$this->step = $step;
|
54 |
+
$this->id = $id;
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Get our data.
|
59 |
+
*
|
60 |
+
* @since SINCEVERSION
|
61 |
+
*
|
62 |
+
* @return array
|
63 |
+
*/
|
64 |
+
public function get_data() {
|
65 |
+
$contents = $this->step->get_contents();
|
66 |
+
|
67 |
+
return isset( $contents[ $this->id ] ) ? $contents[ $this->id ] : array();
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Get a specific key from the data.
|
72 |
+
*
|
73 |
+
* @since SINCEVERSION
|
74 |
+
*
|
75 |
+
* @param string $key The key to get.
|
76 |
+
* @param mixed $defalt The default value to return.
|
77 |
+
* @return mixed
|
78 |
+
*/
|
79 |
+
public function get_key( $key, $default = false ) {
|
80 |
+
$data = $this->get_data();
|
81 |
+
|
82 |
+
return isset( $data[ $key ] ) ? $data[ $key ] : $default;
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Set a key.
|
87 |
+
*
|
88 |
+
* @since SINCEVERSION
|
89 |
+
*
|
90 |
+
* @param string $key The key of the key/value pair.$this
|
91 |
+
* @param mixed $value The value to save.
|
92 |
+
*/
|
93 |
+
public function set_key( $key, $value ) {
|
94 |
+
$data = $this->get_data();
|
95 |
+
$data[ $key ] = $value;
|
96 |
+
|
97 |
+
return $this->step->write_key( $this->id, $data );
|
98 |
+
}
|
99 |
+
}
|
includes/v2/step/class-json-file.php
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* JSON File class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Step;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: JSON File
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Json_File {
|
22 |
+
/**
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
private $filepath;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Constructor.
|
29 |
+
*
|
30 |
+
* @since SINCEVERSION
|
31 |
+
*
|
32 |
+
* @param \Boldgrid\Backup\V2\Step\Step $step Our parent step.
|
33 |
+
* @param string $id The id of our step.
|
34 |
+
*/
|
35 |
+
public function __construct( $filepath ) {
|
36 |
+
$this->filepath = $filepath;
|
37 |
+
|
38 |
+
$this->core = apply_filters( 'boldgrid_backup_get_core', null );
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
*
|
43 |
+
*/
|
44 |
+
public function get() {
|
45 |
+
$file_contents = $this->core->wp_filesystem->get_contents( $this->filepath );
|
46 |
+
|
47 |
+
$info = json_decode( $file_contents, true );
|
48 |
+
$info = empty( $info ) ? array() : $info;
|
49 |
+
|
50 |
+
return $info;
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
*
|
55 |
+
*/
|
56 |
+
public function get_key( $key, $default = false ) {
|
57 |
+
$info = $this->get();
|
58 |
+
|
59 |
+
return ( isset( $info[ $key ] ) ? $info[ $key ] : $default );
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
*
|
64 |
+
*/
|
65 |
+
public function set_key( $key, $value ) {
|
66 |
+
$info = $this->get();
|
67 |
+
|
68 |
+
$info[ $key ] = $value;
|
69 |
+
|
70 |
+
$this->write( $info );
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
*
|
75 |
+
*/
|
76 |
+
public function set_keys( $array ) {
|
77 |
+
foreach ( $array as $key => $value ) {
|
78 |
+
$this->set_key( $key, $value );
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
*
|
84 |
+
*/
|
85 |
+
public function write( $info ) {
|
86 |
+
$this->core->wp_filesystem->put_contents( $this->filepath, wp_json_encode( $info ) );
|
87 |
+
}
|
88 |
+
}
|
includes/v2/step/class-step.php
ADDED
@@ -0,0 +1,412 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Step class.
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid\Backup
|
9 |
+
* @subpackage Boldgrid\Backup\Archive
|
10 |
+
* @copyright BoldGrid
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
namespace Boldgrid\Backup\V2\Step;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class: Step
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Step {
|
22 |
+
/**
|
23 |
+
* This step's id.
|
24 |
+
*
|
25 |
+
* @since SINCEVERSION
|
26 |
+
* @var string
|
27 |
+
*/
|
28 |
+
public $id;
|
29 |
+
|
30 |
+
/**
|
31 |
+
* The core class object.
|
32 |
+
*
|
33 |
+
* @since SINCEVERSION
|
34 |
+
* @access private
|
35 |
+
* @var Boldgrid_Backup_Admin_Core
|
36 |
+
*/
|
37 |
+
private $core;
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Data stored for this step.
|
41 |
+
*
|
42 |
+
* IE run data or step data.
|
43 |
+
*
|
44 |
+
* @since SINCEVERSION
|
45 |
+
* @access private
|
46 |
+
* @var array
|
47 |
+
*/
|
48 |
+
private $data;
|
49 |
+
|
50 |
+
/**
|
51 |
+
* The directory this step will live.
|
52 |
+
*
|
53 |
+
* IE backup-1234546-1234567812345678
|
54 |
+
*
|
55 |
+
* @since SINCEVERSION
|
56 |
+
* @access private
|
57 |
+
* @var string
|
58 |
+
*/
|
59 |
+
private $dir;
|
60 |
+
|
61 |
+
private $filename;
|
62 |
+
|
63 |
+
/**
|
64 |
+
* The filepath to this step's json file.
|
65 |
+
*
|
66 |
+
* @since SINCEVERSION
|
67 |
+
* @access private
|
68 |
+
* @var string
|
69 |
+
*/
|
70 |
+
private $filepath;
|
71 |
+
|
72 |
+
/**
|
73 |
+
* The max attempts to execute this step before giving up.
|
74 |
+
*
|
75 |
+
* @since SINCEVERSION
|
76 |
+
* @access private
|
77 |
+
* @var int
|
78 |
+
*/
|
79 |
+
private $max_attempts = 5;
|
80 |
+
|
81 |
+
/**
|
82 |
+
*
|
83 |
+
*/
|
84 |
+
private $parent_id;
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Our persistent info class.
|
88 |
+
*
|
89 |
+
* @since SINCEVERSION
|
90 |
+
* @access protected
|
91 |
+
* @var \Boldgrid\Backup\V2\Step\Json_file
|
92 |
+
*/
|
93 |
+
protected $info;
|
94 |
+
|
95 |
+
/**
|
96 |
+
* The number of seconds until a step is seen as unresonsive.
|
97 |
+
*
|
98 |
+
* @since SINCEVERSION
|
99 |
+
* @access private
|
100 |
+
* @var int
|
101 |
+
*/
|
102 |
+
protected $unresponsive_time = 15;
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Constructor.
|
106 |
+
*
|
107 |
+
* @since SINCEVERSION
|
108 |
+
*
|
109 |
+
* @param string $id The id of this step.
|
110 |
+
* @param string $dir The directory where this step's data is saved.
|
111 |
+
*/
|
112 |
+
public function __construct( $id, $parent_id, $dir ) {
|
113 |
+
$this->core = apply_filters( 'boldgrid_backup_get_core', false );
|
114 |
+
|
115 |
+
$this->id = $id;
|
116 |
+
$this->parent_id = $parent_id;
|
117 |
+
$this->dir = trailingslashit( $dir );
|
118 |
+
$this->filename = 'step-' . $this->id . '.json';
|
119 |
+
$this->filepath = $this->dir . $this->filename;
|
120 |
+
|
121 |
+
$this->data['run'] = new \Boldgrid\Backup\V2\Step\Data( $this, 'run_data' );
|
122 |
+
$this->data['step'] = new \Boldgrid\Backup\V2\Step\Data( $this, 'step_data' );
|
123 |
+
|
124 |
+
$this->info = new \Boldgrid\Backup\V2\Step\Json_file( $this->get_path_to( 'info.json' ) );
|
125 |
+
|
126 |
+
add_filter( 'boldgrid_backup_get_step_' . $this->id, array( $this, 'get_this' ) );
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Add an attempt for this step.
|
131 |
+
*
|
132 |
+
* @since SINCEVERSION
|
133 |
+
*/
|
134 |
+
public function add_attempt() {
|
135 |
+
$attempts = $this->get_data_type( 'run' )->get_key( 'attempts', 0 );
|
136 |
+
$attempts++;
|
137 |
+
|
138 |
+
$this->get_data_type( 'run' )->set_key( 'attempts', $attempts );
|
139 |
+
$this->get_data_type( 'run' )->set_key( 'start_time', time() );
|
140 |
+
$this->get_data_type( 'run' )->set_key( 'memory_peak_start', memory_get_peak_usage() );
|
141 |
+
$this->check_in();
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Check in.
|
146 |
+
*
|
147 |
+
* Used to tell if the step is unresponsive.
|
148 |
+
*
|
149 |
+
* @since SINCEVERSION
|
150 |
+
*/
|
151 |
+
public function check_in() {
|
152 |
+
$this->get_data_type( 'run' )->set_key( 'last_check_in', time() );
|
153 |
+
|
154 |
+
// Whenever this step checks in, the parent should check in as well.
|
155 |
+
$parent = $this->get_parent();
|
156 |
+
if ( ! empty( $parent ) ) {
|
157 |
+
$parent->check_in();
|
158 |
+
}
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Steps to take when this step is complete.
|
163 |
+
*
|
164 |
+
* @since SINCEVERSION
|
165 |
+
*/
|
166 |
+
public function complete() {
|
167 |
+
$complete_time = time();
|
168 |
+
$duration = $complete_time - $this->get_data_type( 'run' )->get_key( 'start_time' );
|
169 |
+
|
170 |
+
$this->get_data_type( 'run' )->set_key( 'complete_time', time() );
|
171 |
+
$this->get_data_type( 'run' )->set_key( 'duration', $duration );
|
172 |
+
|
173 |
+
$memory_peak_end = memory_get_peak_usage();
|
174 |
+
$memory_peak_change = $memory_peak_end - $this->get_data_type( 'run' )->get_key( 'memory_peak_start' );
|
175 |
+
|
176 |
+
$this->get_data_type( 'run' )->set_key( 'memory_peak_end', $memory_peak_end );
|
177 |
+
$this->get_data_type( 'run' )->set_key( 'memory_peak_change', $memory_peak_change );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
*
|
182 |
+
*/
|
183 |
+
public function fail( $message ) {
|
184 |
+
$this->get_data_type( 'run' )->set_key( 'fail_time', time() );
|
185 |
+
$this->get_data_type( 'run' )->set_key( 'fail_message', $message );
|
186 |
+
|
187 |
+
$this->info->set_key( 'error', $message );
|
188 |
+
|
189 |
+
$this->complete();
|
190 |
+
}
|
191 |
+
|
192 |
+
/**
|
193 |
+
* Get core.
|
194 |
+
*
|
195 |
+
* @since SINCEVERSION
|
196 |
+
*
|
197 |
+
* @return Boldgrid_Backup_Admin_Core
|
198 |
+
*/
|
199 |
+
public function get_core() {
|
200 |
+
return $this->core;
|
201 |
+
}
|
202 |
+
|
203 |
+
/**
|
204 |
+
* Get the contents of our step's json file.
|
205 |
+
*
|
206 |
+
* @since SINCEVERSION
|
207 |
+
*
|
208 |
+
* @return array
|
209 |
+
*/
|
210 |
+
public function get_contents() {
|
211 |
+
$data = array();
|
212 |
+
|
213 |
+
if ( $this->core->wp_filesystem->exists( $this->filepath ) ) {
|
214 |
+
$json = $this->core->wp_filesystem->get_contents( $this->filepath );
|
215 |
+
$data = json_decode( $json, true );
|
216 |
+
$data = is_array( $data ) ? $data : array();
|
217 |
+
}
|
218 |
+
|
219 |
+
return $data;
|
220 |
+
}
|
221 |
+
|
222 |
+
/**
|
223 |
+
* Get our data type.
|
224 |
+
*
|
225 |
+
* Generally retrieved so we can add data to it.
|
226 |
+
*
|
227 |
+
* @since SINCEVERSION
|
228 |
+
*
|
229 |
+
* @param string $type The data type, such as "run" or "step".
|
230 |
+
* @return \Boldgrid\Backup\V2\Step\Data
|
231 |
+
*/
|
232 |
+
public function get_data_type( $type ) {
|
233 |
+
return $this->data[ $type ];
|
234 |
+
}
|
235 |
+
|
236 |
+
/**
|
237 |
+
* Get the directory this step's data is saved to.
|
238 |
+
*
|
239 |
+
* @since SINCEVERSION
|
240 |
+
*
|
241 |
+
* @return string
|
242 |
+
*/
|
243 |
+
public function get_dir() {
|
244 |
+
return $this->dir;
|
245 |
+
}
|
246 |
+
|
247 |
+
/**
|
248 |
+
*
|
249 |
+
*/
|
250 |
+
public function get_info() {
|
251 |
+
return $this->info;
|
252 |
+
}
|
253 |
+
|
254 |
+
/**
|
255 |
+
*
|
256 |
+
*/
|
257 |
+
public function get_parent() {
|
258 |
+
return $this->get_step( $this->parent_id );
|
259 |
+
}
|
260 |
+
|
261 |
+
/**
|
262 |
+
* Get the path to a file in our data directory.
|
263 |
+
*
|
264 |
+
* @since SINCEVERSION
|
265 |
+
*
|
266 |
+
* @param string $filename A filename.
|
267 |
+
* @return string
|
268 |
+
*/
|
269 |
+
public function get_path_to( $filename ) {
|
270 |
+
return $this->get_dir() . $filename;
|
271 |
+
}
|
272 |
+
|
273 |
+
/**
|
274 |
+
*
|
275 |
+
*/
|
276 |
+
public function get_this() {
|
277 |
+
return $this;
|
278 |
+
}
|
279 |
+
|
280 |
+
/**
|
281 |
+
*
|
282 |
+
*/
|
283 |
+
public function get_step( $id ) {
|
284 |
+
return apply_filters( 'boldgrid_backup_get_step_' . $id, false );
|
285 |
+
}
|
286 |
+
|
287 |
+
/**
|
288 |
+
* Whether or not this step is complete.
|
289 |
+
*
|
290 |
+
* @since SINCEVERSION
|
291 |
+
*
|
292 |
+
* @return bool
|
293 |
+
*/
|
294 |
+
public function is_complete() {
|
295 |
+
$data = $this->get_data_type( 'run' )->get_data();
|
296 |
+
|
297 |
+
return ! empty( $data['complete_time'] );
|
298 |
+
}
|
299 |
+
|
300 |
+
/**
|
301 |
+
* Whether or not this step has failed.
|
302 |
+
*
|
303 |
+
* @since SINCEVERSION
|
304 |
+
*
|
305 |
+
* @return bool
|
306 |
+
*/
|
307 |
+
public function is_fail() {
|
308 |
+
$data = $this->get_data_type( 'run' )->get_data();
|
309 |
+
|
310 |
+
return ! empty( $data['fail_time'] );
|
311 |
+
}
|
312 |
+
|
313 |
+
/**
|
314 |
+
* Whether or not this step is in progress.
|
315 |
+
*
|
316 |
+
* @since SINCEVERSION
|
317 |
+
*
|
318 |
+
* @return bool
|
319 |
+
*/
|
320 |
+
public function is_in_progress() {
|
321 |
+
$data = $this->get_data_type( 'run' )->get_data();
|
322 |
+
|
323 |
+
// todo maybe add something about last check in and timeouts.
|
324 |
+
return ! empty( $data['start_time'] ) && empty( $data['complete_time'] );
|
325 |
+
}
|
326 |
+
|
327 |
+
/**
|
328 |
+
* Whether or not we have retried too many times.
|
329 |
+
*
|
330 |
+
* @since SINCEVERSION
|
331 |
+
*
|
332 |
+
* @return bool
|
333 |
+
*/
|
334 |
+
public function is_max_attemps() {
|
335 |
+
return $this->get_data_type( 'run' )->get_key( 'attempts', 0 ) >= $this->max_attempts;
|
336 |
+
}
|
337 |
+
|
338 |
+
/**
|
339 |
+
* Determine whether or not this step is unresponsive.
|
340 |
+
*
|
341 |
+
* @since SINCEVERSION
|
342 |
+
*
|
343 |
+
* @return bool
|
344 |
+
*/
|
345 |
+
public function is_unresponsive() {
|
346 |
+
$time_since_checkin = time() - $this->get_data_type( 'run' )->get_key( 'last_check_in', 0 );
|
347 |
+
|
348 |
+
return ! $this->is_complete() && $time_since_checkin >= $this->unresponsive_time;
|
349 |
+
}
|
350 |
+
|
351 |
+
/**
|
352 |
+
* Determine whether or not we should run this step.
|
353 |
+
*
|
354 |
+
* @since SINCEVERSION
|
355 |
+
*
|
356 |
+
* @return bool
|
357 |
+
*/
|
358 |
+
public function maybe_run() {
|
359 |
+
// No matter what, if we've hit our max attempts, don't try again.
|
360 |
+
if ( $this->is_max_attemps() ) {
|
361 |
+
return false;
|
362 |
+
}
|
363 |
+
|
364 |
+
if ( $this->is_complete() ) {
|
365 |
+
return false;
|
366 |
+
}
|
367 |
+
|
368 |
+
if ( $this->is_fail() ) {
|
369 |
+
return false;
|
370 |
+
}
|
371 |
+
|
372 |
+
if ( $this->is_in_progress() && ! $this->is_unresponsive() ) {
|
373 |
+
return false;
|
374 |
+
}
|
375 |
+
|
376 |
+
return true;
|
377 |
+
}
|
378 |
+
|
379 |
+
/**
|
380 |
+
* Write a file to the step's directory.
|
381 |
+
*
|
382 |
+
* @since SINCEVERSION
|
383 |
+
*
|
384 |
+
* @param string $filename The filename to write to.
|
385 |
+
* @param string $contents The contents to write to the file.
|
386 |
+
* @return bool True on success.
|
387 |
+
*/
|
388 |
+
public function write_contents( $filename, $contents ) {
|
389 |
+
$written = $this->core->wp_filesystem->put_contents( $this->dir . $filename, $contents );
|
390 |
+
|
391 |
+
return $written;
|
392 |
+
}
|
393 |
+
|
394 |
+
/**
|
395 |
+
* Write a key to this step's json file.
|
396 |
+
*
|
397 |
+
* @since SINCEVERSION
|
398 |
+
*
|
399 |
+
* @param string $key The key of the key/value pair.
|
400 |
+
* @param mixed $value The vale to the key/value pair.
|
401 |
+
*/
|
402 |
+
public function write_key( $key, $value ) {
|
403 |
+
$contents = $this->get_contents();
|
404 |
+
$contents[ $key ] = $value;
|
405 |
+
|
406 |
+
// old
|
407 |
+
// return $this->core->wp_filesystem->put_contents( $this->filename, wp_json_encode( $contents ) );
|
408 |
+
$this->write_contents( $this->filename, wp_json_encode( $contents ) );
|
409 |
+
|
410 |
+
// $this->check_in();
|
411 |
+
}
|
412 |
+
}
|
rest/README.MD
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# PLEASE READ
|
2 |
+
|
3 |
+
Before testing the jQuery calls on this page, be sure to add the following to your wp-config.php:
|
4 |
+
|
5 |
+
`define( 'WP_ENVIRONMENT_TYPE', 'development' );`
|
6 |
+
|
7 |
+
This will:
|
8 |
+
|
9 |
+
1. Add the `wp_rest` nonce to all your admin pages
|
10 |
+
1. Add your site url as `bgbkup_site_url`
|
11 |
+
|
12 |
+
# Archives
|
13 |
+
|
14 |
+
## Get a list of archives
|
15 |
+
|
16 |
+
```
|
17 |
+
jQuery.ajax( {
|
18 |
+
url: jQuery( '#bgbkup_site_url' ).val() + '/wp-json/bgbkup/v1/archives/',
|
19 |
+
method: 'GET',
|
20 |
+
beforeSend: function ( xhr ) {
|
21 |
+
xhr.setRequestHeader( 'X-WP-Nonce', jQuery( '#wp_rest' ).val() );
|
22 |
+
}
|
23 |
+
} ).done( function ( response ) {
|
24 |
+
console.log( response );
|
25 |
+
} );
|
26 |
+
```
|
27 |
+
|
28 |
+
## Create
|
29 |
+
|
30 |
+
```
|
31 |
+
jQuery.ajax( {
|
32 |
+
url: jQuery( '#bgbkup_site_url' ).val() + '/wp-json/bgbkup/v1/archives',
|
33 |
+
method: 'POST',
|
34 |
+
beforeSend: function ( xhr ) {
|
35 |
+
xhr.setRequestHeader( 'X-WP-Nonce', jQuery( '#wp_rest' ).val() );
|
36 |
+
}
|
37 |
+
} ).done( function ( response ) {
|
38 |
+
console.log( response );
|
39 |
+
} );
|
40 |
+
```
|
41 |
+
|
42 |
+
## Restore
|
43 |
+
|
44 |
+
### Restore via id
|
45 |
+
|
46 |
+
Take note of the `id=4` in the url.
|
47 |
+
|
48 |
+
```
|
49 |
+
jQuery.ajax( {
|
50 |
+
url: jQuery( '#bgbkup_site_url' ).val() + '/wp-json/bgbkup/v1/archives/?id=4',
|
51 |
+
method: 'PUT',
|
52 |
+
beforeSend: function ( xhr ) {
|
53 |
+
xhr.setRequestHeader( 'X-WP-Nonce', jQuery( '#wp_rest' ).val() );
|
54 |
+
}
|
55 |
+
} ).done( function ( response ) {
|
56 |
+
console.log( response );
|
57 |
+
} );
|
58 |
+
```
|
59 |
+
|
60 |
+
### Restore via url
|
61 |
+
|
62 |
+
This needs to be fleshed out more.
|
63 |
+
|
64 |
+
```
|
65 |
+
jQuery.ajax({
|
66 |
+
url: 'https://domain.com/wp-json/bgbkup/v1/archives/?url=' + encodeURIComponent( <URL> ),
|
67 |
+
type: 'put'
|
68 |
+
});
|
69 |
+
```
|
rest/class-boldgrid-backup-rest-archive.php
ADDED
@@ -0,0 +1,277 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-rest-archive.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @copyright BoldGrid
|
10 |
+
* @version $Id$
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Class: Boldgrid_Backup_Rest_Archive
|
16 |
+
*
|
17 |
+
* REST endpoints to perform simple archive manipulation.
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Boldgrid_Backup_Rest_Archive extends Boldgrid_Backup_Rest_Controller {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Resource name.
|
25 |
+
*
|
26 |
+
* @since SINCEVERSION
|
27 |
+
* @access private
|
28 |
+
* @var string
|
29 |
+
*/
|
30 |
+
protected $resource = 'archives';
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Register all routes.
|
34 |
+
*
|
35 |
+
* @since SINCEVERSION
|
36 |
+
*/
|
37 |
+
public function register_routes() {
|
38 |
+
$this->register_creation();
|
39 |
+
$this->register_restore();
|
40 |
+
$this->register_list();
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Register the route for creating an archive.
|
45 |
+
*
|
46 |
+
* @since SINCEVERSION
|
47 |
+
*/
|
48 |
+
public function register_creation() {
|
49 |
+
register_rest_route( $this->namespace, '/' . $this->resource, [
|
50 |
+
[
|
51 |
+
'methods' => WP_REST_Server::CREATABLE,
|
52 |
+
'callback' => [ $this, 'create_item' ],
|
53 |
+
'permission_callback' => [ $this, 'permission_check' ],
|
54 |
+
],
|
55 |
+
'schema' => [ $this, 'get_schema' ],
|
56 |
+
] );
|
57 |
+
}
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Register the route for restoring a backup.
|
61 |
+
*
|
62 |
+
* @since SINCEVERSION
|
63 |
+
*/
|
64 |
+
public function register_restore() {
|
65 |
+
register_rest_route( $this->namespace, '/' . $this->resource, [
|
66 |
+
[
|
67 |
+
'methods' => 'PUT',
|
68 |
+
'callback' => [ $this, 'restore' ],
|
69 |
+
'permission_callback' => [ $this, 'permission_check' ],
|
70 |
+
'args' => [
|
71 |
+
'url' => [
|
72 |
+
'required' => false,
|
73 |
+
'description' => esc_html__( 'Route URL to restore.', 'boldgrid-backup' ),
|
74 |
+
'type' => 'string',
|
75 |
+
'sanitation_callback' => function ( $field ) {
|
76 |
+
return esc_url_raw( $field );
|
77 |
+
},
|
78 |
+
],
|
79 |
+
'id' => [
|
80 |
+
'required' => false,
|
81 |
+
'description' => esc_html__( 'Backup id to restore.', 'boldgrid-backup' ),
|
82 |
+
'type' => 'int',
|
83 |
+
'sanitation_callback' => function ( $field ) {
|
84 |
+
return (int) $field;
|
85 |
+
},
|
86 |
+
],
|
87 |
+
],
|
88 |
+
],
|
89 |
+
'schema' => [ $this, 'get_schema' ],
|
90 |
+
] );
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Register the route for viewing a list of backups.
|
95 |
+
*
|
96 |
+
* @since SINCEVERSION
|
97 |
+
*/
|
98 |
+
public function register_list() {
|
99 |
+
register_rest_route( $this->namespace, '/' . $this->resource, [
|
100 |
+
[
|
101 |
+
'methods' => WP_REST_Server::READABLE,
|
102 |
+
'callback' => [ $this, 'get_items' ],
|
103 |
+
'permission_callback' => [ $this, 'permission_check' ],
|
104 |
+
],
|
105 |
+
'schema' => [ $this, 'get_schema' ],
|
106 |
+
] );
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Get our sample schema for an archive.
|
111 |
+
*
|
112 |
+
* @since SINCEVERSION
|
113 |
+
*
|
114 |
+
* @return array Schema Format.
|
115 |
+
*/
|
116 |
+
public function get_schema() {
|
117 |
+
$schema = [
|
118 |
+
'$schema' => 'http://json-schema.org/draft-04/schema#',
|
119 |
+
'title' => $this->resource,
|
120 |
+
'type' => 'object',
|
121 |
+
'properties' => [
|
122 |
+
'id' => [
|
123 |
+
'context' => [ 'view' ],
|
124 |
+
'description' => esc_html__( 'Unique identifier for the object.', 'boldgrid-backup' ),
|
125 |
+
'type' => 'string',
|
126 |
+
],
|
127 |
+
'title' => [
|
128 |
+
'context' => [ 'view' ],
|
129 |
+
'description' => esc_html__( 'Name of the archive.', 'boldgrid-backup' ),
|
130 |
+
'type' => 'string',
|
131 |
+
],
|
132 |
+
'description' => [
|
133 |
+
'context' => [ 'view' ],
|
134 |
+
'description' => esc_html__( 'Description of the archive.', 'boldgrid-backup' ),
|
135 |
+
'type' => 'array',
|
136 |
+
],
|
137 |
+
'filename' => [
|
138 |
+
'context' => [ 'view' ],
|
139 |
+
'description' => esc_html__( 'Filename of backup.', 'boldgrid-backup' ),
|
140 |
+
'type' => 'string',
|
141 |
+
],
|
142 |
+
'url' => [
|
143 |
+
'context' => [ 'view' ],
|
144 |
+
'description' => esc_html__( 'Download link for the backup.', 'boldgrid-backup' ),
|
145 |
+
'type' => 'string',
|
146 |
+
],
|
147 |
+
'creation_date' => [
|
148 |
+
'context' => [ 'view' ],
|
149 |
+
'description' => esc_html__( 'Date the archive was created.', 'boldgrid-backup' ),
|
150 |
+
'type' => 'string',
|
151 |
+
],
|
152 |
+
],
|
153 |
+
];
|
154 |
+
|
155 |
+
return $schema;
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Prepare the item for the REST response.
|
160 |
+
*
|
161 |
+
* @since SINCEVERSION
|
162 |
+
*
|
163 |
+
* @param mixed $item WordPress representation of the item.
|
164 |
+
* @param WP_REST_Request $request Request object.
|
165 |
+
* @return mixed
|
166 |
+
*/
|
167 |
+
public function prepare_item_for_response( $item, $request ) {
|
168 |
+
return $this->filter_schema_properties( $item );
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Create a new archive.
|
173 |
+
*
|
174 |
+
* For examples, please see rest/README.MD
|
175 |
+
*
|
176 |
+
* @since SINCEVERSION
|
177 |
+
*
|
178 |
+
* @see Boldgrid_Backup_Rest_Controller::permission_check for more information if you are getting
|
179 |
+
* a 401 unauthorized error.
|
180 |
+
*
|
181 |
+
* @param WP_REST_Request $request Full data about the request.
|
182 |
+
* @return array Job Resource.
|
183 |
+
*/
|
184 |
+
public function create_item( $request ) {
|
185 |
+
// Initialize a new task.
|
186 |
+
$task = new Boldgrid_Backup_Admin_Task();
|
187 |
+
$task->init( [ 'type' => 'backup' ] );
|
188 |
+
$task->update();
|
189 |
+
$task->date_format = 'c';
|
190 |
+
|
191 |
+
// Trigger our backup.
|
192 |
+
$nopriv = new Boldgrid_Backup_Admin_Nopriv();
|
193 |
+
$nopriv->do_backup( [ 'task_id' => $task->get_id() ] );
|
194 |
+
|
195 |
+
return new WP_REST_Response( $task->get(), 200 );
|
196 |
+
}
|
197 |
+
|
198 |
+
/**
|
199 |
+
* Get all archives for a WordPress.
|
200 |
+
*
|
201 |
+
* For examples, please see rest/README.MD
|
202 |
+
*
|
203 |
+
* @since SINCEVERSION
|
204 |
+
*
|
205 |
+
* @param WP_REST_Request $request Full data about the request.
|
206 |
+
* @return array A collection of archive resources.
|
207 |
+
*/
|
208 |
+
public function get_items( $request ) {
|
209 |
+
// Init our list of raw backup data.
|
210 |
+
$core = apply_filters( 'boldgrid_backup_get_core', null );
|
211 |
+
$core->archives_all->init();
|
212 |
+
|
213 |
+
// Init our list of backups to return.
|
214 |
+
$backups = [];
|
215 |
+
|
216 |
+
foreach ( $core->archives_all->all as $backup ) {
|
217 |
+
$archive = Boldgrid\Backup\Archive\Factory::get_by_filename( $backup['filename'] );
|
218 |
+
$url = $archive->generate_download_link( $backup['filename'] );
|
219 |
+
|
220 |
+
$backups[] = [
|
221 |
+
'id' => $archive->get_id(),
|
222 |
+
'title' => $archive->get_attribute( 'title' ),
|
223 |
+
'description' => $archive->get_attribute( 'description' ),
|
224 |
+
'url' => $url['download_url'],
|
225 |
+
'filename' => $backup['filename'],
|
226 |
+
'creation_date' => date( 'c', $archive->timestamp ),
|
227 |
+
];
|
228 |
+
}
|
229 |
+
|
230 |
+
foreach ( $backups as &$backup ) {
|
231 |
+
$backup = $this->prepare_item_for_response( $backup, $request );
|
232 |
+
}
|
233 |
+
|
234 |
+
return $backups;
|
235 |
+
}
|
236 |
+
|
237 |
+
/**
|
238 |
+
* Restore an archive.
|
239 |
+
*
|
240 |
+
* For examples, please see rest/README.MD
|
241 |
+
*
|
242 |
+
* @since SINCEVERSION
|
243 |
+
*
|
244 |
+
* @param WP_REST_Request $request Full data about the request.
|
245 |
+
* @return array Job Resource.
|
246 |
+
*/
|
247 |
+
public function restore( $request ) {
|
248 |
+
$id = $request->get_param( 'id' );
|
249 |
+
$url = $request->get_param( 'url' );
|
250 |
+
|
251 |
+
// Initialize a new task.
|
252 |
+
$task = new Boldgrid_Backup_Admin_Task();
|
253 |
+
$task->init( [ 'type' => 'restore' ] );
|
254 |
+
$task->date_format = 'c';
|
255 |
+
|
256 |
+
if ( ! empty( $url ) || ! empty( $id ) ) {
|
257 |
+
// Update our task with either url or backup id.
|
258 |
+
if ( ! empty( $url ) ) {
|
259 |
+
$task->update_data( 'url', $url );
|
260 |
+
} else {
|
261 |
+
$task->update_data( 'backup_id', $id );
|
262 |
+
}
|
263 |
+
|
264 |
+
// Trigger our backup.
|
265 |
+
$nopriv = new Boldgrid_Backup_Admin_Nopriv();
|
266 |
+
$nopriv->do_restore( [ 'task_id' => $task->get_id() ] );
|
267 |
+
} else { // phpcs:ignore
|
268 |
+
return new WP_Error(
|
269 |
+
'bgbkup_rest_missing_param',
|
270 |
+
__( 'Unable to restore. Missing required parameters.', 'boldgrid-backup' ),
|
271 |
+
[ 'status' => 400 ]
|
272 |
+
);
|
273 |
+
}
|
274 |
+
|
275 |
+
return new WP_REST_Response( $task->get(), 200 );
|
276 |
+
}
|
277 |
+
}
|
rest/class-boldgrid-backup-rest-controller.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-rest-controller.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @copyright BoldGrid
|
10 |
+
* @version $Id$
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Class: Boldgrid_Backup_Rest_Controller
|
16 |
+
*
|
17 |
+
* A base class for the wp rest controller.
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Boldgrid_Backup_Rest_Controller extends WP_REST_Controller {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* The core class object.
|
25 |
+
*
|
26 |
+
* @since SINCEVERSION
|
27 |
+
* @access private
|
28 |
+
* @var Boldgrid_Backup_Admin_Core
|
29 |
+
*/
|
30 |
+
protected $core;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Namespace of the class.
|
34 |
+
*
|
35 |
+
* @since SINCEVERSION
|
36 |
+
* @access private
|
37 |
+
* @var string
|
38 |
+
*/
|
39 |
+
protected $namespace = 'bgbkup/v1';
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Setup the core backup class.
|
43 |
+
*
|
44 |
+
* @since SINCEVERSION
|
45 |
+
* @param Boldgrid_Backup_Admin_Core $core Core Backup class.
|
46 |
+
*/
|
47 |
+
public function __construct( $core ) {
|
48 |
+
$this->core = $core;
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Ensure user has access to any of the archive endpoints.
|
53 |
+
*
|
54 |
+
* @since SINCEVERSION
|
55 |
+
*
|
56 |
+
* @return boolean Has Access?
|
57 |
+
*/
|
58 |
+
public function permission_check() {
|
59 |
+
return current_user_can( 'activate_plugins' );
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Make sure that an item only has the items present in the schema.
|
64 |
+
*
|
65 |
+
* @since SINCEVERSION
|
66 |
+
*
|
67 |
+
* @param array $item Resource Item.
|
68 |
+
* @return array Updated resource item.
|
69 |
+
*/
|
70 |
+
protected function filter_schema_properties( $item ) {
|
71 |
+
$resource = [];
|
72 |
+
$schema = $this->get_schema();
|
73 |
+
foreach ( $schema['properties'] as $name => $property ) {
|
74 |
+
if ( isset( $item[ $name ] ) ) {
|
75 |
+
$resource[ $name ] = $item[ $name ];
|
76 |
+
} else {
|
77 |
+
$resource[ $name ] = 'array' === $property['type'] ? [] : null;
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
return $resource;
|
82 |
+
}
|
83 |
+
|
84 |
+
}
|
rest/class-boldgrid-backup-rest-job.php
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-rest-job.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @copyright BoldGrid
|
10 |
+
* @version $Id$
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Class: Boldgrid_Backup_Rest_Job
|
16 |
+
*
|
17 |
+
* REST endpoints to perform get jobs.
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Boldgrid_Backup_Rest_Job extends Boldgrid_Backup_Rest_Controller {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Resource name.
|
25 |
+
*
|
26 |
+
* @since SINCEVERSION
|
27 |
+
* @access private
|
28 |
+
* @var string
|
29 |
+
*/
|
30 |
+
protected $resource = 'jobs';
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Register the routes for the objects of the controller.
|
34 |
+
*
|
35 |
+
* @since SINCEVERSION
|
36 |
+
*/
|
37 |
+
public function register_routes() {
|
38 |
+
register_rest_route( $this->namespace, '/' . $this->resource . '/(?P<id>[\w-]+)', [
|
39 |
+
[
|
40 |
+
'methods' => WP_REST_Server::READABLE,
|
41 |
+
'callback' => [ $this, 'get_item' ],
|
42 |
+
'permission_callback' => [ $this, 'permission_check' ],
|
43 |
+
'args' => [
|
44 |
+
'id' => [
|
45 |
+
'required' => true,
|
46 |
+
'context' => [ 'view' ],
|
47 |
+
'description' => esc_html__( 'Unique identifier for the object.', 'boldgrid-backup' ),
|
48 |
+
'type' => 'string',
|
49 |
+
],
|
50 |
+
],
|
51 |
+
],
|
52 |
+
'schema' => [ $this, 'get_schema' ],
|
53 |
+
] );
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Get our sample schema for comments.
|
58 |
+
*
|
59 |
+
* @since SINCEVERSION
|
60 |
+
*
|
61 |
+
* @return array Schema Format.
|
62 |
+
*/
|
63 |
+
public function get_schema() {
|
64 |
+
$schema = [
|
65 |
+
'$schema' => 'http://json-schema.org/draft-04/schema#',
|
66 |
+
'title' => 'job',
|
67 |
+
'type' => 'object',
|
68 |
+
'properties' => [
|
69 |
+
'id' => [
|
70 |
+
'context' => [ 'view' ],
|
71 |
+
'description' => esc_html__( 'Unique identifier for the object.', 'boldgrid-backup' ),
|
72 |
+
'type' => 'string',
|
73 |
+
],
|
74 |
+
'type' => [
|
75 |
+
'context' => [ 'view' ],
|
76 |
+
'description' => esc_html__( 'Type of job.', 'boldgrid-backup' ),
|
77 |
+
'type' => 'string',
|
78 |
+
'enum' => [
|
79 |
+
'backup',
|
80 |
+
'restoration',
|
81 |
+
],
|
82 |
+
],
|
83 |
+
'status' => [
|
84 |
+
'context' => [ 'view' ],
|
85 |
+
'description' => esc_html__( 'Currently status of the job.', 'boldgrid-backup' ),
|
86 |
+
'type' => 'string',
|
87 |
+
],
|
88 |
+
'started_at' => [
|
89 |
+
'context' => [ 'view' ],
|
90 |
+
'description' => esc_html__( 'Information attached to the start of the prcoess.', 'boldgrid-backup' ),
|
91 |
+
'type' => 'string',
|
92 |
+
],
|
93 |
+
'completed_at' => [
|
94 |
+
'context' => [ 'view' ],
|
95 |
+
'description' => esc_html__( 'Results of the process.', 'boldgrid-backup' ),
|
96 |
+
'type' => 'string',
|
97 |
+
],
|
98 |
+
],
|
99 |
+
];
|
100 |
+
|
101 |
+
return $schema;
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Prepare the item for the REST response.
|
106 |
+
*
|
107 |
+
* @since SINCEVERSION
|
108 |
+
*
|
109 |
+
* @param mixed $item WordPress representation of the item.
|
110 |
+
* @param WP_REST_Request $request Request object.
|
111 |
+
* @return mixed
|
112 |
+
*/
|
113 |
+
public function prepare_item_for_response( $item, $request ) {
|
114 |
+
return $this->filter_schema_properties( $item );
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Get one item from the collection.
|
119 |
+
*
|
120 |
+
* Example call:
|
121 |
+
* jQuery.get( 'https://domain/wp-json/bgbkup/v1/jobs/<JOB-ID>' );
|
122 |
+
*
|
123 |
+
* @since SINCEVERSION
|
124 |
+
*
|
125 |
+
* @param WP_REST_Request $request Full data about the request.
|
126 |
+
* @return WP_Error|WP_REST_Response
|
127 |
+
*/
|
128 |
+
public function get_item( $request ) {
|
129 |
+
$id = $request->get_param( 'id' );
|
130 |
+
|
131 |
+
$task = new Boldgrid_Backup_Admin_Task();
|
132 |
+
$task->init_by_id( $id );
|
133 |
+
$task->date_format = 'c';
|
134 |
+
|
135 |
+
$item = $task->get();
|
136 |
+
if ( ! empty( $item ) ) {
|
137 |
+
$data = $this->prepare_item_for_response( $item, $request );
|
138 |
+
return new WP_REST_Response( $data, 200 );
|
139 |
+
} else {
|
140 |
+
return new WP_Error( 'no_job', esc_html__( 'Job Not found', 'boldgrid-backup' ), [
|
141 |
+
'status' => 404,
|
142 |
+
] );
|
143 |
+
}
|
144 |
+
}
|
145 |
+
}
|
rest/class-boldgrid-backup-rest-setting.php
ADDED
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-rest-setting.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @copyright BoldGrid
|
10 |
+
* @version $Id$
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Class: Boldgrid_Backup_Rest_Setting
|
16 |
+
*
|
17 |
+
* REST endpoints to access the backup settings.
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Boldgrid_Backup_Rest_Setting extends Boldgrid_Backup_Rest_Controller {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Resource name.
|
25 |
+
*
|
26 |
+
* @since SINCEVERSION
|
27 |
+
* @access private
|
28 |
+
* @var string
|
29 |
+
*/
|
30 |
+
protected $resource = 'settings';
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Register the routes for the objects of the controller.
|
34 |
+
*
|
35 |
+
* @since SINCEVERSION
|
36 |
+
*/
|
37 |
+
public function register_routes() {
|
38 |
+
$this->register_get();
|
39 |
+
$this->register_update();
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Register the route for creating a backup.
|
44 |
+
*
|
45 |
+
* @since SINCEVERSION
|
46 |
+
*/
|
47 |
+
public function register_get() {
|
48 |
+
register_rest_route( $this->namespace, '/' . $this->resource, [
|
49 |
+
[
|
50 |
+
'methods' => WP_REST_Server::READABLE,
|
51 |
+
'callback' => [ $this, 'get_item' ],
|
52 |
+
'permission_callback' => [ $this, 'permission_check' ],
|
53 |
+
],
|
54 |
+
'schema' => [ $this, 'get_schema' ],
|
55 |
+
] );
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Register router for updating settings.
|
60 |
+
*
|
61 |
+
* @since SINCEVERSION
|
62 |
+
*/
|
63 |
+
public function register_update() {
|
64 |
+
register_rest_route( $this->namespace, '/' . $this->resource, [
|
65 |
+
[
|
66 |
+
'methods' => WP_REST_Server::EDITABLE,
|
67 |
+
'callback' => [ $this, 'update_item' ],
|
68 |
+
'permission_callback' => [ $this, 'permission_check' ],
|
69 |
+
],
|
70 |
+
'schema' => [ $this, 'get_schema' ],
|
71 |
+
] );
|
72 |
+
}
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Prepare the item for the REST response.
|
76 |
+
*
|
77 |
+
* @since SINCEVERSION
|
78 |
+
*
|
79 |
+
* @param mixed $item WordPress representation of the item.
|
80 |
+
* @param WP_REST_Request $request Request object.
|
81 |
+
* @return mixed
|
82 |
+
*/
|
83 |
+
public function prepare_item_for_response( $item, $request ) {
|
84 |
+
return $this->filter_schema_properties( $item );
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Get schema for settings.
|
89 |
+
*
|
90 |
+
* @since SINCEVERSION
|
91 |
+
*
|
92 |
+
* @return array Schema Format.
|
93 |
+
*/
|
94 |
+
public function get_schema() {
|
95 |
+
$schema = [
|
96 |
+
'$schema' => 'http://json-schema.org/draft-04/schema#',
|
97 |
+
'title' => $this->resource,
|
98 |
+
'type' => 'object',
|
99 |
+
'properties' => [
|
100 |
+
'schedule' => [
|
101 |
+
'context' => [ 'view' ],
|
102 |
+
'description' => esc_html__( 'Date the backup was created.', 'boldgrid-backup' ),
|
103 |
+
'type' => 'array',
|
104 |
+
],
|
105 |
+
'autoupdate' => [
|
106 |
+
'context' => [ 'view' ],
|
107 |
+
'description' => esc_html__( 'Automatic Update.', 'boldgrid-backup' ),
|
108 |
+
'type' => 'array',
|
109 |
+
],
|
110 |
+
'notification_email' => [
|
111 |
+
'context' => [ 'view' ],
|
112 |
+
'description' => esc_html__( 'Email to notify got backups.', 'boldgrid-backup' ),
|
113 |
+
'type' => 'string',
|
114 |
+
],
|
115 |
+
'auto_backup' => [
|
116 |
+
'context' => [ 'view' ],
|
117 |
+
'description' => esc_html__( 'Does a site have auto backups enabled?', 'boldgrid-backup' ),
|
118 |
+
'type' => 'integer',
|
119 |
+
],
|
120 |
+
'auto_backup' => [
|
121 |
+
'context' => [ 'view' ],
|
122 |
+
'description' => esc_html__( 'Does a site have auto rollback enabled?', 'boldgrid-backup' ),
|
123 |
+
'type' => 'integer',
|
124 |
+
],
|
125 |
+
'folder_exclusion_include' => [
|
126 |
+
'context' => [ 'view' ],
|
127 |
+
'description' => esc_html__( 'Directories and files to include.', 'boldgrid-backup' ),
|
128 |
+
'type' => 'string',
|
129 |
+
],
|
130 |
+
'folder_exclusion_exclude' => [
|
131 |
+
'context' => [ 'view' ],
|
132 |
+
'description' => esc_html__( 'Directories and files to exclude.', 'boldgrid-backup' ),
|
133 |
+
'type' => 'string',
|
134 |
+
],
|
135 |
+
],
|
136 |
+
];
|
137 |
+
|
138 |
+
return $schema;
|
139 |
+
}
|
140 |
+
|
141 |
+
/**
|
142 |
+
* Get the users plugin settings.
|
143 |
+
*
|
144 |
+
* @since SINCEVERSION
|
145 |
+
*
|
146 |
+
* @param WP_REST_Request $request Request object.
|
147 |
+
* @return array Plugin settings.
|
148 |
+
*/
|
149 |
+
public function get_item( $request ) {
|
150 |
+
$settings = get_option( 'boldgrid_backup_settings', [] );
|
151 |
+
$boldgrid_settings = get_option( 'boldgrid_settings' );
|
152 |
+
|
153 |
+
$settings['autoupdate'] = isset( $boldgrid_settings['autoupdate'] ) ? $boldgrid_settings['autoupdate'] : null;
|
154 |
+
|
155 |
+
return $this->prepare_item_for_response( $settings, $request );
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Update settings through API.
|
160 |
+
*
|
161 |
+
* @since SINCEVERSION
|
162 |
+
*
|
163 |
+
* @param WP_REST_Request $request Request object.
|
164 |
+
* @return array Updated Settings.
|
165 |
+
*/
|
166 |
+
public function update_item( $request ) {
|
167 |
+
$schema = $this->get_schema();
|
168 |
+
$settings = get_option( 'boldgrid_backup_settings', [] );
|
169 |
+
$requested_settings = $request->get_param( 'settings' );
|
170 |
+
|
171 |
+
foreach ( $schema['properties'] as $name => $value ) {
|
172 |
+
if ( isset( $requested_settings[ $name ] ) ) {
|
173 |
+
$settings[ $name ] = $requested_settings[ $name ];
|
174 |
+
}
|
175 |
+
}
|
176 |
+
|
177 |
+
$scheduler = new Boldgrid_Backup_Admin_Scheduler( $this->core );
|
178 |
+
$settings['scheduler'] = $scheduler->get();
|
179 |
+
|
180 |
+
$admin_settings = new Boldgrid_Backup_Admin_Settings( $this->core );
|
181 |
+
$settings = $admin_settings->update_cron( $settings );
|
182 |
+
|
183 |
+
// Update Settings.
|
184 |
+
update_option( 'boldgrid_backup_settings', $settings );
|
185 |
+
|
186 |
+
// Update the auto update setting.
|
187 |
+
if ( ! empty( $requested_settings['autoupdate'] ) ) {
|
188 |
+
$boldgrid_settings = get_option( 'boldgrid_settings' );
|
189 |
+
$boldgrid_settings['autoupdate'] = $requested_settings['autoupdate'];
|
190 |
+
update_option( 'boldgrid_settings', $boldgrid_settings );
|
191 |
+
}
|
192 |
+
|
193 |
+
return $this->get_item( $request );
|
194 |
+
}
|
195 |
+
}
|
rest/class-boldgrid-backup-rest-test.php
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-rest-test.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @copyright BoldGrid
|
10 |
+
* @version $Id$
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Class: Boldgrid_Backup_Rest_Test
|
16 |
+
*
|
17 |
+
* REST endpoints to access the backup preflight check results.
|
18 |
+
*
|
19 |
+
* @since SINCEVERSION
|
20 |
+
*/
|
21 |
+
class Boldgrid_Backup_Rest_Test extends Boldgrid_Backup_Rest_Controller {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Resource name.
|
25 |
+
*
|
26 |
+
* @since SINCEVERSION
|
27 |
+
* @access private
|
28 |
+
* @var string
|
29 |
+
*/
|
30 |
+
protected $resource = 'test';
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Register the routes for the objects of the controller.
|
34 |
+
*
|
35 |
+
* @since SINCEVERSION
|
36 |
+
*/
|
37 |
+
public function register_routes() {
|
38 |
+
$this->register_get();
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Register the route for getting test results.
|
43 |
+
*
|
44 |
+
* @since SINCEVERSION
|
45 |
+
*/
|
46 |
+
public function register_get() {
|
47 |
+
register_rest_route( $this->namespace, '/' . $this->resource, [
|
48 |
+
[
|
49 |
+
'methods' => WP_REST_Server::READABLE,
|
50 |
+
'callback' => [ $this, 'get_item' ],
|
51 |
+
'permission_callback' => [ $this, 'permission_check' ],
|
52 |
+
],
|
53 |
+
'schema' => [ $this, 'get_schema' ],
|
54 |
+
] );
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Prepare the item for the REST response.
|
59 |
+
*
|
60 |
+
* @since SINCEVERSION
|
61 |
+
*
|
62 |
+
* @param mixed $item WordPress representation of the item.
|
63 |
+
* @param WP_REST_Request $request Request object.
|
64 |
+
* @return mixed
|
65 |
+
*/
|
66 |
+
public function prepare_item_for_response( $item, $request ) {
|
67 |
+
return $this->filter_schema_properties( $item );
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Get schema for results.
|
72 |
+
*
|
73 |
+
* @since SINCEVERSION
|
74 |
+
*
|
75 |
+
* @return array Schema Format.
|
76 |
+
*/
|
77 |
+
public function get_schema() {
|
78 |
+
$schema = [
|
79 |
+
'$schema' => 'http://json-schema.org/draft-04/schema#',
|
80 |
+
'title' => $this->resource,
|
81 |
+
'type' => 'object',
|
82 |
+
'properties' => [
|
83 |
+
'passed' => [
|
84 |
+
'context' => [ 'view' ],
|
85 |
+
'description' => esc_html__( 'Whether or not the site passed the preflight check.', 'boldgrid-backup' ),
|
86 |
+
'type' => 'bool',
|
87 |
+
],
|
88 |
+
],
|
89 |
+
];
|
90 |
+
|
91 |
+
return $schema;
|
92 |
+
}
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Get the the preflight check results.
|
96 |
+
*
|
97 |
+
* @since SINCEVERSION
|
98 |
+
*
|
99 |
+
* @param WP_REST_Request $request Request object.
|
100 |
+
* @return array Preflight check results.
|
101 |
+
*/
|
102 |
+
public function get_item( $request ) {
|
103 |
+
$preflight_test = new Boldgrid_Backup_Admin_Test( $this->core );
|
104 |
+
$settings['passed'] = $preflight_test->run_functionality_tests();
|
105 |
+
return $this->prepare_item_for_response( $settings, $request );
|
106 |
+
}
|
107 |
+
}
|
rest/class-boldgrid-backup-rest-utility.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File: class-boldgrid-backup-rest-utility.php
|
4 |
+
*
|
5 |
+
* @link https://www.boldgrid.com
|
6 |
+
* @since SINCEVERSION
|
7 |
+
*
|
8 |
+
* @package Boldgrid_Backup
|
9 |
+
* @copyright BoldGrid
|
10 |
+
* @version $Id$
|
11 |
+
* @author BoldGrid <support@boldgrid.com>
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Class: Boldgrid_Backup_Rest_Utility
|
16 |
+
*
|
17 |
+
* @since SINCEVERSION
|
18 |
+
*/
|
19 |
+
class Boldgrid_Backup_Rest_Utility {
|
20 |
+
/**
|
21 |
+
* Get the current url.
|
22 |
+
*
|
23 |
+
* @since SINCEVERSION
|
24 |
+
*
|
25 |
+
* @return string
|
26 |
+
*/
|
27 |
+
public static function get_current_url() {
|
28 |
+
$protocol = isset( $_SERVER['HTTPS'] ) && 'on' === $_SERVER['HTTPS'] ? 'https' : 'http';
|
29 |
+
|
30 |
+
return $protocol . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Echo a wp_rest nonce to the screen.
|
35 |
+
*
|
36 |
+
* This method is only using for testing, and is only called in a dev environment.
|
37 |
+
*
|
38 |
+
* @since SINCEVERSION
|
39 |
+
*
|
40 |
+
* @see Boldgrid_Backup::define_admin_hooks() For more info on how this method is used within a
|
41 |
+
* dev environment.
|
42 |
+
* @see rest/README.MD For a list of example rest calls that depend on this
|
43 |
+
* method.
|
44 |
+
*/
|
45 |
+
public static function insert_nonce() {
|
46 |
+
wp_nonce_field( 'wp_rest', 'wp_rest' );
|
47 |
+
echo '<input type="hidden" id="bgbkup_site_url" value="' . esc_attr( get_site_url() ) . '" />';
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Whether or not we're in a REST call.
|
52 |
+
*
|
53 |
+
* @since SINCEVERSION
|
54 |
+
*
|
55 |
+
* @return bool
|
56 |
+
*/
|
57 |
+
public static function is_rest() {
|
58 |
+
$current_url = self::get_current_url();
|
59 |
+
|
60 |
+
// True when the current url begins with http://domain.com/wp-json/.
|
61 |
+
$rest_prefix = get_site_url( null, 'wp-json/' );
|
62 |
+
$in_pretty_permalink = substr( $current_url, 0, strlen( $rest_prefix ) ) === $rest_prefix;
|
63 |
+
|
64 |
+
// True when the current url begins with http://domain.com/index.php/wp-json/
|
65 |
+
$rest_prefix = get_site_url( null, 'index.php/wp-json/' );
|
66 |
+
$in_index_url = substr( $current_url, 0, strlen( $rest_prefix ) ) === $rest_prefix;
|
67 |
+
|
68 |
+
// True when url includes the rest_route parameter.
|
69 |
+
$in_get = ! empty( $_GET['rest_route'] ); // phpcs:ignore
|
70 |
+
|
71 |
+
return $in_pretty_permalink || $in_index_url || $in_get;
|
72 |
+
}
|
73 |
+
}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit330c6d37f1f7d1e9db9dd0b27407636e::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInita95e543c6101ada8304863902cd87b21
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
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\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInita95e543c6101ada8304863902cd87b21
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit330c6d37f1f7d1e9db9dd0b27407636e
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit330c6d37f1f7d1e9db9dd0b27407636e', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit330c6d37f1f7d1e9db9dd0b27407636e', '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\ComposerStaticInit330c6d37f1f7d1e9db9dd0b27407636e::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\ComposerStaticInit330c6d37f1f7d1e9db9dd0b27407636e::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequire330c6d37f1f7d1e9db9dd0b27407636e($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequire330c6d37f1f7d1e9db9dd0b27407636e($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
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
@@ -91,9 +91,9 @@ class ComposerStaticInita95e543c6101ada8304863902cd87b21
|
|
91 |
public static function getInitializer(ClassLoader $loader)
|
92 |
{
|
93 |
return \Closure::bind(function () use ($loader) {
|
94 |
-
$loader->prefixLengthsPsr4 =
|
95 |
-
$loader->prefixDirsPsr4 =
|
96 |
-
$loader->classMap =
|
97 |
|
98 |
}, null, ClassLoader::class);
|
99 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit330c6d37f1f7d1e9db9dd0b27407636e
|
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 = ComposerStaticInit330c6d37f1f7d1e9db9dd0b27407636e::$prefixLengthsPsr4;
|
95 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit330c6d37f1f7d1e9db9dd0b27407636e::$prefixDirsPsr4;
|
96 |
+
$loader->classMap = ComposerStaticInit330c6d37f1f7d1e9db9dd0b27407636e::$classMap;
|
97 |
|
98 |
}, null, ClassLoader::class);
|
99 |
}
|