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

Version Description

Download this release

Release Info

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

Code changes from version 1.14.3 to branch.issue-376.202008241505

admin/class-boldgrid-backup-admin-archive-details.php CHANGED
@@ -206,7 +206,8 @@ class Boldgrid_Backup_Admin_Archive_Details {
206
  * @see Boldgrid_Backup_Admin_Archive_Browser::authorize()
207
  */
208
  public function validate_nonce() {
209
- return check_ajax_referer( 'bgbkup_archive_details_page', 'security', false );
 
210
  }
211
 
212
  /**
206
  * @see Boldgrid_Backup_Admin_Archive_Browser::authorize()
207
  */
208
  public function validate_nonce() {
209
+ return check_ajax_referer( 'bgbkup_archive_details_page', 'security', false ) ||
210
+ check_ajax_referer( 'boldgrid_backup_remote_storage_upload', 'security', false );
211
  }
212
 
213
  /**
admin/remote/class-boldgrid-backup-admin-ftp.php CHANGED
@@ -1098,6 +1098,11 @@ class Boldgrid_Backup_Admin_Ftp {
1098
  * @return bool
1099
  */
1100
  public function upload( $filepath ) {
 
 
 
 
 
1101
  // Make sure our backup file exists.
1102
  if ( ! $this->core->wp_filesystem->exists( $filepath ) ) {
1103
  $this->last_error = sprintf(
@@ -1105,25 +1110,36 @@ class Boldgrid_Backup_Admin_Ftp {
1105
  __( 'Archive does not exist: $1$s', 'boldgrid-backup' ),
1106
  $filepath
1107
  );
 
1108
  return false;
1109
  }
1110
 
1111
  $remote_file = $this->get_folder_name() . '/' . basename( $filepath );
1112
 
 
 
 
1113
  $timestamp = filemtime( $filepath );
1114
 
 
1115
  $this->connect();
 
1116
  $this->log_in();
1117
  if ( ! $this->logged_in ) {
1118
- $this->errors[] = __( 'Unable to log in to ftp server.', 'boldgrid-backup' );
 
 
1119
  return false;
1120
  }
1121
 
1122
  $has_remote_dir = $this->create_backup_dir();
1123
  if ( ! $has_remote_dir ) {
 
1124
  return false;
1125
  }
1126
 
 
 
1127
  switch ( $this->type ) {
1128
  case 'ftp':
1129
  case 'ftpes':
@@ -1148,6 +1164,8 @@ class Boldgrid_Backup_Admin_Ftp {
1148
  break;
1149
  }
1150
 
 
 
1151
  if ( ! $uploaded ) {
1152
  $last_error = error_get_last();
1153
 
@@ -1165,8 +1183,15 @@ class Boldgrid_Backup_Admin_Ftp {
1165
  return false;
1166
  }
1167
 
 
1168
  $this->enforce_retention();
 
 
 
 
 
1169
 
 
1170
  return true;
1171
  }
1172
  }
1098
  * @return bool
1099
  */
1100
  public function upload( $filepath ) {
1101
+ $logger = new Boldgrid_Backup_Admin_Log( $this->core );
1102
+ $logger->init( 'ftp.log' );
1103
+ $logger->add_separator();
1104
+ $logger->add( 'Beginning ' . __METHOD__ . '...' );
1105
+
1106
  // Make sure our backup file exists.
1107
  if ( ! $this->core->wp_filesystem->exists( $filepath ) ) {
1108
  $this->last_error = sprintf(
1110
  __( 'Archive does not exist: $1$s', 'boldgrid-backup' ),
1111
  $filepath
1112
  );
1113
+ $logger->add( $this->last_error );
1114
  return false;
1115
  }
1116
 
1117
  $remote_file = $this->get_folder_name() . '/' . basename( $filepath );
1118
 
1119
+ $logger->add( 'Local path: ' . $filepath . ' / ' . $this->core->wp_filesystem->size( $filepath ) );
1120
+ $logger->add( 'Remote path: ' . $remote_file );
1121
+
1122
  $timestamp = filemtime( $filepath );
1123
 
1124
+ $logger->add( 'Connecting...' );
1125
  $this->connect();
1126
+ $logger->add( 'Logging in...' );
1127
  $this->log_in();
1128
  if ( ! $this->logged_in ) {
1129
+ $error = __( 'Unable to log in to ftp server.', 'boldgrid-backup' );
1130
+ $this->errors[] = $error;
1131
+ $logger->add( $error );
1132
  return false;
1133
  }
1134
 
1135
  $has_remote_dir = $this->create_backup_dir();
1136
  if ( ! $has_remote_dir ) {
1137
+ $logger->add( 'Unable to create backup directory on remote host.' );
1138
  return false;
1139
  }
1140
 
1141
+ $logger->add( 'Beginning upload...' );
1142
+
1143
  switch ( $this->type ) {
1144
  case 'ftp':
1145
  case 'ftpes':
1164
  break;
1165
  }
1166
 
1167
+ $logger->add( 'Upload status: ' . print_r( $uploaded,1 ) ); //phpcs:ignore
1168
+
1169
  if ( ! $uploaded ) {
1170
  $last_error = error_get_last();
1171
 
1183
  return false;
1184
  }
1185
 
1186
+ $logger->add( 'Enforcing retention...' );
1187
  $this->enforce_retention();
1188
+ $logger->add( 'Retention enforcement complete!' );
1189
+
1190
+ $logger->add( 'Getting remote contents...' );
1191
+ $contents = $this->get_contents( true, $this->get_folder_name() );
1192
+ $logger->add( 'Remote contents: ' . print_r( $contents, 1 ) ); // phpcs:ignore
1193
 
1194
+ $logger->add( 'Completed ' . __METHOD__ . '!' );
1195
  return true;
1196
  }
1197
  }
coverage.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1597406619">
3
- <project timestamp="1597406619">
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">
@@ -921,7 +921,7 @@
921
  </file>
922
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-details.php">
923
  <class name="Boldgrid_Backup_Admin_Archive_Details" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
924
- <metrics complexity="20" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="100" coveredstatements="2" elements="106" coveredelements="3"/>
925
  </class>
926
  <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
927
  <line num="49" type="stmt" count="29"/>
@@ -1007,29 +1007,30 @@
1007
  <line num="190" type="stmt" count="0"/>
1008
  <line num="194" type="stmt" count="0"/>
1009
  <line num="195" type="stmt" count="0"/>
1010
- <line num="208" type="method" name="validate_nonce" visibility="public" complexity="1" crap="2" count="0"/>
1011
  <line num="209" type="stmt" count="0"/>
1012
- <line num="217" type="method" name="wp_ajax_update" visibility="public" complexity="11" crap="132" count="0"/>
1013
- <line num="218" type="stmt" count="0"/>
1014
  <line num="219" type="stmt" count="0"/>
1015
  <line num="220" type="stmt" count="0"/>
1016
- <line num="222" type="stmt" count="0"/>
1017
  <line num="223" type="stmt" count="0"/>
1018
  <line num="224" type="stmt" count="0"/>
1019
- <line num="226" type="stmt" count="0"/>
1020
  <line num="227" type="stmt" count="0"/>
1021
  <line num="228" type="stmt" count="0"/>
1022
- <line num="230" type="stmt" count="0"/>
1023
- <line num="232" type="stmt" count="0"/>
1024
  <line num="233" type="stmt" count="0"/>
1025
  <line num="234" type="stmt" count="0"/>
1026
- <line num="237" type="stmt" count="0"/>
1027
- <line num="239" type="stmt" count="0"/>
1028
  <line num="240" type="stmt" count="0"/>
1029
  <line num="241" type="stmt" count="0"/>
1030
- <line num="243" type="stmt" count="0"/>
1031
  <line num="244" type="stmt" count="0"/>
1032
- <metrics loc="245" ncloc="150" classes="1" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="100" coveredstatements="2" elements="106" coveredelements="3"/>
 
1033
  </file>
1034
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-fail.php">
1035
  <class name="Boldgrid_Backup_Admin_Archive_Fail" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
@@ -13264,7 +13265,7 @@
13264
  </file>
13265
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php">
13266
  <class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
13267
- <metrics complexity="135" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="475" coveredstatements="14" elements="497" coveredelements="16"/>
13268
  </class>
13269
  <line num="247" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
13270
  <line num="248" type="stmt" count="29"/>
@@ -13729,45 +13730,65 @@
13729
  <line num="1087" type="stmt" count="0"/>
13730
  <line num="1089" type="stmt" count="0"/>
13731
  <line num="1100" type="method" name="upload" visibility="public" complexity="11" crap="132" count="0"/>
 
13732
  <line num="1102" type="stmt" count="0"/>
13733
  <line num="1103" type="stmt" count="0"/>
13734
- <line num="1105" type="stmt" count="0"/>
13735
  <line num="1107" type="stmt" count="0"/>
13736
  <line num="1108" type="stmt" count="0"/>
13737
- <line num="1111" type="stmt" count="0"/>
 
13738
  <line num="1113" type="stmt" count="0"/>
13739
- <line num="1115" type="stmt" count="0"/>
13740
- <line num="1116" type="stmt" count="0"/>
13741
  <line num="1117" type="stmt" count="0"/>
13742
- <line num="1118" type="stmt" count="0"/>
13743
  <line num="1119" type="stmt" count="0"/>
 
13744
  <line num="1122" type="stmt" count="0"/>
13745
- <line num="1123" type="stmt" count="0"/>
13746
  <line num="1124" type="stmt" count="0"/>
 
 
13747
  <line num="1127" type="stmt" count="0"/>
13748
  <line num="1128" type="stmt" count="0"/>
13749
  <line num="1129" type="stmt" count="0"/>
13750
  <line num="1130" type="stmt" count="0"/>
 
 
 
 
 
13751
  <line num="1138" type="stmt" count="0"/>
13752
- <line num="1139" type="stmt" count="0"/>
13753
- <line num="1140" type="stmt" count="0"/>
13754
  <line num="1141" type="stmt" count="0"/>
13755
- <line num="1142" type="stmt" count="0"/>
 
13756
  <line num="1145" type="stmt" count="0"/>
13757
  <line num="1146" type="stmt" count="0"/>
13758
- <line num="1147" type="stmt" count="0"/>
13759
- <line num="1148" type="stmt" count="0"/>
13760
- <line num="1149" type="stmt" count="0"/>
13761
- <line num="1151" type="stmt" count="0"/>
13762
- <line num="1152" type="stmt" count="0"/>
13763
  <line num="1154" type="stmt" count="0"/>
 
 
 
 
13764
  <line num="1161" type="stmt" count="0"/>
13765
  <line num="1162" type="stmt" count="0"/>
13766
  <line num="1163" type="stmt" count="0"/>
 
13767
  <line num="1165" type="stmt" count="0"/>
13768
- <line num="1168" type="stmt" count="0"/>
 
13769
  <line num="1170" type="stmt" count="0"/>
13770
- <metrics loc="1172" ncloc="723" classes="1" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="479" coveredstatements="14" elements="501" coveredelements="16"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
13771
  </file>
13772
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php">
13773
  <class name="Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin.Remote">
@@ -76767,7 +76788,7 @@
76767
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76768
  </file>
76769
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76770
- <class name="ComposerStaticInit0f59088f016b7f47678253c2ecab0bd3" namespace="Composer\Autoload">
76771
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76772
  </class>
76773
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -76859,7 +76880,7 @@
76859
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76860
  </file>
76861
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76862
- <class name="ComposerAutoloaderInit0f59088f016b7f47678253c2ecab0bd3" namespace="global">
76863
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76864
  </class>
76865
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -96079,6 +96100,6 @@
96079
  <line num="16" type="stmt" count="0"/>
96080
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96081
  </file>
96082
- <metrics files="961" loc="192939" ncloc="117635" classes="870" methods="3587" coveredmethods="306" conditionals="0" coveredconditionals="0" statements="86584" coveredstatements="4561" elements="90171" coveredelements="4867"/>
96083
  </project>
96084
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1598296061">
3
+ <project timestamp="1598296061">
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">
921
  </file>
922
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-details.php">
923
  <class name="Boldgrid_Backup_Admin_Archive_Details" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
924
+ <metrics complexity="21" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="101" coveredstatements="2" elements="107" coveredelements="3"/>
925
  </class>
926
  <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
927
  <line num="49" type="stmt" count="29"/>
1007
  <line num="190" type="stmt" count="0"/>
1008
  <line num="194" type="stmt" count="0"/>
1009
  <line num="195" type="stmt" count="0"/>
1010
+ <line num="208" type="method" name="validate_nonce" visibility="public" complexity="2" crap="6" count="0"/>
1011
  <line num="209" type="stmt" count="0"/>
1012
+ <line num="210" type="stmt" count="0"/>
1013
+ <line num="218" type="method" name="wp_ajax_update" visibility="public" complexity="11" crap="132" count="0"/>
1014
  <line num="219" type="stmt" count="0"/>
1015
  <line num="220" type="stmt" count="0"/>
1016
+ <line num="221" type="stmt" count="0"/>
1017
  <line num="223" type="stmt" count="0"/>
1018
  <line num="224" type="stmt" count="0"/>
1019
+ <line num="225" type="stmt" count="0"/>
1020
  <line num="227" type="stmt" count="0"/>
1021
  <line num="228" type="stmt" count="0"/>
1022
+ <line num="229" type="stmt" count="0"/>
1023
+ <line num="231" type="stmt" count="0"/>
1024
  <line num="233" type="stmt" count="0"/>
1025
  <line num="234" type="stmt" count="0"/>
1026
+ <line num="235" type="stmt" count="0"/>
1027
+ <line num="238" type="stmt" count="0"/>
1028
  <line num="240" type="stmt" count="0"/>
1029
  <line num="241" type="stmt" count="0"/>
1030
+ <line num="242" type="stmt" count="0"/>
1031
  <line num="244" type="stmt" count="0"/>
1032
+ <line num="245" type="stmt" count="0"/>
1033
+ <metrics loc="246" ncloc="151" classes="1" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="101" coveredstatements="2" elements="107" coveredelements="3"/>
1034
  </file>
1035
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-fail.php">
1036
  <class name="Boldgrid_Backup_Admin_Archive_Fail" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
13265
  </file>
13266
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php">
13267
  <class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
13268
+ <metrics complexity="135" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="495" coveredstatements="14" elements="517" coveredelements="16"/>
13269
  </class>
13270
  <line num="247" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
13271
  <line num="248" type="stmt" count="29"/>
13730
  <line num="1087" type="stmt" count="0"/>
13731
  <line num="1089" type="stmt" count="0"/>
13732
  <line num="1100" type="method" name="upload" visibility="public" complexity="11" crap="132" count="0"/>
13733
+ <line num="1101" type="stmt" count="0"/>
13734
  <line num="1102" type="stmt" count="0"/>
13735
  <line num="1103" type="stmt" count="0"/>
13736
+ <line num="1104" type="stmt" count="0"/>
13737
  <line num="1107" type="stmt" count="0"/>
13738
  <line num="1108" type="stmt" count="0"/>
13739
+ <line num="1110" type="stmt" count="0"/>
13740
+ <line num="1112" type="stmt" count="0"/>
13741
  <line num="1113" type="stmt" count="0"/>
13742
+ <line num="1114" type="stmt" count="0"/>
 
13743
  <line num="1117" type="stmt" count="0"/>
 
13744
  <line num="1119" type="stmt" count="0"/>
13745
+ <line num="1120" type="stmt" count="0"/>
13746
  <line num="1122" type="stmt" count="0"/>
 
13747
  <line num="1124" type="stmt" count="0"/>
13748
+ <line num="1125" type="stmt" count="0"/>
13749
+ <line num="1126" type="stmt" count="0"/>
13750
  <line num="1127" type="stmt" count="0"/>
13751
  <line num="1128" type="stmt" count="0"/>
13752
  <line num="1129" type="stmt" count="0"/>
13753
  <line num="1130" type="stmt" count="0"/>
13754
+ <line num="1131" type="stmt" count="0"/>
13755
+ <line num="1132" type="stmt" count="0"/>
13756
+ <line num="1135" type="stmt" count="0"/>
13757
+ <line num="1136" type="stmt" count="0"/>
13758
+ <line num="1137" type="stmt" count="0"/>
13759
  <line num="1138" type="stmt" count="0"/>
 
 
13760
  <line num="1141" type="stmt" count="0"/>
13761
+ <line num="1143" type="stmt" count="0"/>
13762
+ <line num="1144" type="stmt" count="0"/>
13763
  <line num="1145" type="stmt" count="0"/>
13764
  <line num="1146" type="stmt" count="0"/>
 
 
 
 
 
13765
  <line num="1154" type="stmt" count="0"/>
13766
+ <line num="1155" type="stmt" count="0"/>
13767
+ <line num="1156" type="stmt" count="0"/>
13768
+ <line num="1157" type="stmt" count="0"/>
13769
+ <line num="1158" type="stmt" count="0"/>
13770
  <line num="1161" type="stmt" count="0"/>
13771
  <line num="1162" type="stmt" count="0"/>
13772
  <line num="1163" type="stmt" count="0"/>
13773
+ <line num="1164" type="stmt" count="0"/>
13774
  <line num="1165" type="stmt" count="0"/>
13775
+ <line num="1167" type="stmt" count="0"/>
13776
+ <line num="1169" type="stmt" count="0"/>
13777
  <line num="1170" type="stmt" count="0"/>
13778
+ <line num="1172" type="stmt" count="0"/>
13779
+ <line num="1179" type="stmt" count="0"/>
13780
+ <line num="1180" type="stmt" count="0"/>
13781
+ <line num="1181" type="stmt" count="0"/>
13782
+ <line num="1183" type="stmt" count="0"/>
13783
+ <line num="1186" type="stmt" count="0"/>
13784
+ <line num="1187" type="stmt" count="0"/>
13785
+ <line num="1188" type="stmt" count="0"/>
13786
+ <line num="1190" type="stmt" count="0"/>
13787
+ <line num="1191" type="stmt" count="0"/>
13788
+ <line num="1192" type="stmt" count="0"/>
13789
+ <line num="1194" type="stmt" count="0"/>
13790
+ <line num="1195" type="stmt" count="0"/>
13791
+ <metrics loc="1197" ncloc="744" classes="1" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="499" coveredstatements="14" elements="521" coveredelements="16"/>
13792
  </file>
13793
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php">
13794
  <class name="Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin.Remote">
76788
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76789
  </file>
76790
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76791
+ <class name="ComposerStaticInitd4656ad0cc856dae2482119553341bc8" namespace="Composer\Autoload">
76792
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76793
  </class>
76794
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
76880
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76881
  </file>
76882
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76883
+ <class name="ComposerAutoloaderInitd4656ad0cc856dae2482119553341bc8" namespace="global">
76884
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76885
  </class>
76886
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
96100
  <line num="16" type="stmt" count="0"/>
96101
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96102
  </file>
96103
+ <metrics files="961" loc="192965" ncloc="117657" classes="870" methods="3587" coveredmethods="306" conditionals="0" coveredconditionals="0" statements="86605" coveredstatements="4561" elements="90192" coveredelements="4867"/>
96104
  </project>
96105
  </coverage>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit0f59088f016b7f47678253c2ecab0bd3::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitd4656ad0cc856dae2482119553341bc8::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit0f59088f016b7f47678253c2ecab0bd3
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit0f59088f016b7f47678253c2ecab0bd3
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit0f59088f016b7f47678253c2ecab0bd3', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit0f59088f016b7f47678253c2ecab0bd3', '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\ComposerStaticInit0f59088f016b7f47678253c2ecab0bd3::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit0f59088f016b7f47678253c2ecab0bd3
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit0f59088f016b7f47678253c2ecab0bd3::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire0f59088f016b7f47678253c2ecab0bd3($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire0f59088f016b7f47678253c2ecab0bd3($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitd4656ad0cc856dae2482119553341bc8
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitd4656ad0cc856dae2482119553341bc8', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitd4656ad0cc856dae2482119553341bc8', '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\ComposerStaticInitd4656ad0cc856dae2482119553341bc8::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\ComposerStaticInitd4656ad0cc856dae2482119553341bc8::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequired4656ad0cc856dae2482119553341bc8($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequired4656ad0cc856dae2482119553341bc8($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 ComposerStaticInit0f59088f016b7f47678253c2ecab0bd3
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit0f59088f016b7f47678253c2ecab0bd3
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit0f59088f016b7f47678253c2ecab0bd3::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit0f59088f016b7f47678253c2ecab0bd3::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit0f59088f016b7f47678253c2ecab0bd3::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitd4656ad0cc856dae2482119553341bc8
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 = ComposerStaticInitd4656ad0cc856dae2482119553341bc8::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInitd4656ad0cc856dae2482119553341bc8::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInitd4656ad0cc856dae2482119553341bc8::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }