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

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-342.202007311419
Comparing to
See all releases

Code changes from version branch.issue-342.202007311302 to branch.issue-342.202007311419

admin/class-boldgrid-backup-admin-db-import.php CHANGED
@@ -186,8 +186,15 @@ class Boldgrid_Backup_Admin_Db_Import {
186
 
187
  // Check if this is the end of the query.
188
  if ( substr( trim( $line ), -1, 1 ) === ';' ) {
 
189
  $affected_rows = $this->exec_import( $db, $templine );
190
 
 
 
 
 
 
 
191
  // Update stats for the log file.
192
  $stats['exec_count']++;
193
  $stats['affected_rows_count'] += $affected_rows;
@@ -348,6 +355,40 @@ class Boldgrid_Backup_Admin_Db_Import {
348
  return $line_fixed_definer;
349
  }
350
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  /**
352
  * Tests if database user has specific privileges.
353
  *
186
 
187
  // Check if this is the end of the query.
188
  if ( substr( trim( $line ), -1, 1 ) === ';' ) {
189
+ // Run the import query.
190
  $affected_rows = $this->exec_import( $db, $templine );
191
 
192
+ // If the import failed, try to fix the sql and run once more.
193
+ if ( false === $affected_rows ) {
194
+ $newline = $this->fix_line( $db, $templine );
195
+ $affected_rows = $newline !== $templine ? $this->exec_import( $db, $newline ) : $affected_rows;
196
+ }
197
+
198
  // Update stats for the log file.
199
  $stats['exec_count']++;
200
  $stats['affected_rows_count'] += $affected_rows;
355
  return $line_fixed_definer;
356
  }
357
 
358
+ /**
359
+ * Fix our line to import.
360
+ *
361
+ * Sometimes, when executing a command in self::import_lines(), a (1) known and (2) fixable error
362
+ * occurs. This methd attempts to find and fix those errors so the command can be tried again.
363
+ *
364
+ * @since SINCEVERSION
365
+ *
366
+ * @param pdo $db
367
+ * @param string $line An sql command.
368
+ * @return string The updated sql command.
369
+ */
370
+ public function fix_line( $db, $line ) {
371
+ // Array format not guaranteed, convert to string for searchability. See self::import_lines comment.
372
+ $error_info = implode( ' ', $db->errorInfo() );
373
+
374
+ $is_syntax_error = strpos( $error_info, '1064' ) !== false;
375
+ $is_checksum_error = strpos( $error_info, 'PAGE_CHECKSUM=1' ) !== false;
376
+
377
+ /*
378
+ * Fix PAGE_CHECKSUM=1 issues.
379
+ *
380
+ * This is a syntax error caused by lack of feature support. Can happen when source / destination
381
+ * sql servers are different.
382
+ */
383
+ if ( $is_syntax_error && $is_checksum_error ) {
384
+ $line = str_replace( 'PAGE_CHECKSUM=1', 'CHECKSUM=1', $line );
385
+ $this->logger_add( __METHOD__ . ' Replacing PAGE_CHECKSUM=1 with CHECKSUM=1' );
386
+ }
387
+
388
+ return $line;
389
+
390
+ }
391
+
392
  /**
393
  * Tests if database user has specific privileges.
394
  *
coverage.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1596215120">
3
- <project timestamp="1596215120">
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">
@@ -4797,7 +4797,7 @@
4797
  </file>
4798
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php">
4799
  <class name="Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4800
- <metrics complexity="46" methods="14" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="139" coveredstatements="125" elements="153" coveredelements="136"/>
4801
  </class>
4802
  <line num="45" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="13"/>
4803
  <line num="47" type="stmt" count="13"/>
@@ -4834,7 +4834,7 @@
4834
  <line num="126" type="stmt" count="1"/>
4835
  <line num="129" type="stmt" count="0"/>
4836
  <line num="131" type="stmt" count="0"/>
4837
- <line num="150" type="method" name="import_lines" visibility="public" complexity="7" crap="8.40" count="3"/>
4838
  <line num="151" type="stmt" count="3"/>
4839
  <line num="153" type="stmt" count="3"/>
4840
  <line num="155" type="stmt" count="1"/>
@@ -4851,108 +4851,121 @@
4851
  <line num="182" type="stmt" count="1"/>
4852
  <line num="185" type="stmt" count="2"/>
4853
  <line num="188" type="stmt" count="2"/>
4854
- <line num="189" type="stmt" count="2"/>
4855
- <line num="192" type="stmt" count="2"/>
4856
  <line num="193" type="stmt" count="2"/>
4857
- <line num="196" type="stmt" count="2"/>
4858
- <line num="198" type="stmt" count="0"/>
4859
- <line num="201" type="stmt" count="0"/>
4860
- <line num="202" type="stmt" count="0"/>
4861
- <line num="203" type="stmt" count="0"/>
4862
- <line num="204" type="stmt" count="0"/>
4863
  <line num="205" type="stmt" count="0"/>
4864
- <line num="218" type="stmt" count="0"/>
4865
- <line num="220" type="stmt" count="0"/>
4866
- <line num="221" type="stmt" count="0"/>
4867
- <line num="222" type="stmt" count="0"/>
4868
- <line num="223" type="stmt" count="0"/>
4869
- <line num="226" type="stmt" count="2"/>
4870
- <line num="227" type="stmt" count="2"/>
4871
- <line num="228" type="stmt" count="2"/>
4872
- <line num="230" type="stmt" count="2"/>
4873
- <line num="232" type="stmt" count="2"/>
4874
- <line num="246" type="method" name="import_string" visibility="public" complexity="2" crap="2.02" count="1"/>
4875
- <line num="247" type="stmt" count="1"/>
4876
- <line num="249" type="stmt" count="1"/>
4877
- <line num="251" type="stmt" count="1"/>
4878
- <line num="252" type="stmt" count="0"/>
4879
- <line num="255" type="stmt" count="1"/>
4880
- <line num="257" type="stmt" count="1"/>
4881
- <line num="273" type="method" name="logger_add" visibility="public" complexity="2" crap="2" count="4"/>
4882
- <line num="274" type="stmt" count="4"/>
4883
- <line num="275" type="stmt" count="1"/>
4884
- <line num="276" type="stmt" count="1"/>
4885
- <line num="277" type="stmt" count="4"/>
4886
- <line num="289" type="method" name="fix_view_statements" visibility="public" complexity="7" crap="7" count="3"/>
4887
- <line num="291" type="stmt" count="3"/>
4888
- <line num="293" type="stmt" count="3"/>
4889
- <line num="294" type="stmt" count="3"/>
4890
- <line num="295" type="stmt" count="3"/>
4891
- <line num="296" type="stmt" count="3"/>
4892
- <line num="297" type="stmt" count="3"/>
4893
- <line num="299" type="stmt" count="3"/>
4894
- <line num="300" type="stmt" count="1"/>
 
4895
  <line num="303" type="stmt" count="3"/>
4896
- <line num="305" type="stmt" count="3"/>
4897
- <line num="306" type="stmt" count="1"/>
4898
- <line num="309" type="stmt" count="3"/>
4899
- <line num="311" type="stmt" count="3"/>
4900
  <line num="312" type="stmt" count="3"/>
4901
- <line num="313" type="stmt" count="2"/>
4902
- <line num="314" type="stmt" count="2"/>
4903
- <line num="315" type="stmt" count="3"/>
4904
- <line num="317" type="stmt" count="3"/>
4905
  <line num="319" type="stmt" count="3"/>
4906
- <line num="332" type="method" name="fix_definer" visibility="public" complexity="3" crap="3" count="3"/>
4907
- <line num="333" type="stmt" count="3"/>
4908
- <line num="334" type="stmt" count="3"/>
4909
- <line num="335" type="stmt" count="3"/>
4910
- <line num="336" type="stmt" count="3"/>
4911
- <line num="337" type="stmt" count="1"/>
4912
- <line num="338" type="stmt" count="1"/>
4913
- <line num="339" type="stmt" count="3"/>
4914
  <line num="342" type="stmt" count="3"/>
4915
  <line num="343" type="stmt" count="3"/>
4916
- <line num="344" type="stmt" count="3"/>
4917
  <line num="345" type="stmt" count="1"/>
4918
- <line num="348" type="stmt" count="3"/>
4919
- <line num="359" type="method" name="has_db_privileges" visibility="public" complexity="3" crap="3" count="6"/>
4920
- <line num="360" type="stmt" count="6"/>
4921
- <line num="361" type="stmt" count="6"/>
4922
- <line num="362" type="stmt" count="6"/>
4923
- <line num="364" type="stmt" count="1"/>
4924
- <line num="365" type="stmt" count="1"/>
4925
- <line num="367" type="stmt" count="1"/>
4926
- <line num="379" type="method" name="get_db_privileges" visibility="public" complexity="7" crap="7" count="6"/>
4927
- <line num="380" type="stmt" count="6"/>
4928
- <line num="382" type="stmt" count="6"/>
4929
- <line num="383" type="stmt" count="6"/>
4930
- <line num="384" type="stmt" count="6"/>
4931
- <line num="385" type="stmt" count="6"/>
4932
- <line num="386" type="stmt" count="6"/>
4933
- <line num="388" type="stmt" count="6"/>
4934
- <line num="389" type="stmt" count="5"/>
4935
- <line num="391" type="stmt" count="1"/>
4936
- <line num="392" type="stmt" count="1"/>
4937
- <line num="394" type="stmt" count="1"/>
4938
- <line num="395" type="stmt" count="1"/>
4939
- <line num="407" type="method" name="show_grants_query" visibility="public" complexity="1" crap="1" count="5"/>
4940
- <line num="408" type="stmt" count="5"/>
4941
- <line num="409" type="stmt" count="5"/>
4942
- <line num="410" type="stmt" count="5"/>
4943
- <line num="425" type="method" name="exec_import" visibility="public" complexity="1" crap="1" count="1"/>
4944
- <line num="426" type="stmt" count="1"/>
4945
- <line num="437" type="method" name="get_grants_array" visibility="public" complexity="3" crap="3" count="2"/>
4946
- <line num="438" type="stmt" count="2"/>
4947
- <line num="440" type="stmt" count="2"/>
4948
- <line num="441" type="stmt" count="2"/>
4949
- <line num="442" type="stmt" count="2"/>
4950
- <line num="444" type="stmt" count="2"/>
4951
- <line num="445" type="stmt" count="2"/>
4952
- <line num="446" type="stmt" count="2"/>
4953
- <line num="447" type="stmt" count="2"/>
4954
- <line num="449" type="stmt" count="2"/>
4955
- <metrics loc="451" ncloc="234" classes="1" methods="14" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="139" coveredstatements="125" elements="153" coveredelements="136"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4956
  </file>
4957
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-omit.php">
4958
  <class name="Boldgrid_Backup_Admin_Db_Omit" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
@@ -76724,7 +76737,7 @@
76724
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76725
  </file>
76726
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76727
- <class name="ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894" namespace="Composer\Autoload">
76728
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76729
  </class>
76730
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -76816,7 +76829,7 @@
76816
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76817
  </file>
76818
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76819
- <class name="ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894" namespace="global">
76820
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76821
  </class>
76822
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -96035,6 +96048,6 @@
96035
  <line num="16" type="stmt" count="0"/>
96036
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96037
  </file>
96038
- <metrics files="961" loc="192815" ncloc="117581" classes="870" methods="3583" coveredmethods="307" conditionals="0" coveredconditionals="0" statements="86544" coveredstatements="4583" elements="90127" coveredelements="4890"/>
96039
  </project>
96040
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1596219675">
3
+ <project timestamp="1596219675">
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">
4797
  </file>
4798
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php">
4799
  <class name="Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4800
+ <metrics complexity="51" methods="15" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="151" coveredstatements="126" elements="166" coveredelements="137"/>
4801
  </class>
4802
  <line num="45" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="13"/>
4803
  <line num="47" type="stmt" count="13"/>
4834
  <line num="126" type="stmt" count="1"/>
4835
  <line num="129" type="stmt" count="0"/>
4836
  <line num="131" type="stmt" count="0"/>
4837
+ <line num="150" type="method" name="import_lines" visibility="public" complexity="9" crap="12.47" count="3"/>
4838
  <line num="151" type="stmt" count="3"/>
4839
  <line num="153" type="stmt" count="3"/>
4840
  <line num="155" type="stmt" count="1"/>
4851
  <line num="182" type="stmt" count="1"/>
4852
  <line num="185" type="stmt" count="2"/>
4853
  <line num="188" type="stmt" count="2"/>
4854
+ <line num="190" type="stmt" count="2"/>
 
4855
  <line num="193" type="stmt" count="2"/>
4856
+ <line num="194" type="stmt" count="0"/>
4857
+ <line num="195" type="stmt" count="0"/>
4858
+ <line num="196" type="stmt" count="0"/>
4859
+ <line num="199" type="stmt" count="2"/>
4860
+ <line num="200" type="stmt" count="2"/>
4861
+ <line num="203" type="stmt" count="2"/>
4862
  <line num="205" type="stmt" count="0"/>
4863
+ <line num="208" type="stmt" count="0"/>
4864
+ <line num="209" type="stmt" count="0"/>
4865
+ <line num="210" type="stmt" count="0"/>
4866
+ <line num="211" type="stmt" count="0"/>
4867
+ <line num="212" type="stmt" count="0"/>
4868
+ <line num="225" type="stmt" count="0"/>
4869
+ <line num="227" type="stmt" count="0"/>
4870
+ <line num="228" type="stmt" count="0"/>
4871
+ <line num="229" type="stmt" count="0"/>
4872
+ <line num="230" type="stmt" count="0"/>
4873
+ <line num="233" type="stmt" count="2"/>
4874
+ <line num="234" type="stmt" count="2"/>
4875
+ <line num="235" type="stmt" count="2"/>
4876
+ <line num="237" type="stmt" count="2"/>
4877
+ <line num="239" type="stmt" count="2"/>
4878
+ <line num="253" type="method" name="import_string" visibility="public" complexity="2" crap="2.02" count="1"/>
4879
+ <line num="254" type="stmt" count="1"/>
4880
+ <line num="256" type="stmt" count="1"/>
4881
+ <line num="258" type="stmt" count="1"/>
4882
+ <line num="259" type="stmt" count="0"/>
4883
+ <line num="262" type="stmt" count="1"/>
4884
+ <line num="264" type="stmt" count="1"/>
4885
+ <line num="280" type="method" name="logger_add" visibility="public" complexity="2" crap="2" count="4"/>
4886
+ <line num="281" type="stmt" count="4"/>
4887
+ <line num="282" type="stmt" count="1"/>
4888
+ <line num="283" type="stmt" count="1"/>
4889
+ <line num="284" type="stmt" count="4"/>
4890
+ <line num="296" type="method" name="fix_view_statements" visibility="public" complexity="7" crap="7" count="3"/>
4891
+ <line num="298" type="stmt" count="3"/>
4892
+ <line num="300" type="stmt" count="3"/>
4893
+ <line num="301" type="stmt" count="3"/>
4894
+ <line num="302" type="stmt" count="3"/>
4895
  <line num="303" type="stmt" count="3"/>
4896
+ <line num="304" type="stmt" count="3"/>
4897
+ <line num="306" type="stmt" count="3"/>
4898
+ <line num="307" type="stmt" count="1"/>
4899
+ <line num="310" type="stmt" count="3"/>
4900
  <line num="312" type="stmt" count="3"/>
4901
+ <line num="313" type="stmt" count="1"/>
4902
+ <line num="316" type="stmt" count="3"/>
4903
+ <line num="318" type="stmt" count="3"/>
 
4904
  <line num="319" type="stmt" count="3"/>
4905
+ <line num="320" type="stmt" count="2"/>
4906
+ <line num="321" type="stmt" count="2"/>
4907
+ <line num="322" type="stmt" count="3"/>
4908
+ <line num="324" type="stmt" count="3"/>
4909
+ <line num="326" type="stmt" count="3"/>
4910
+ <line num="339" type="method" name="fix_definer" visibility="public" complexity="3" crap="3" count="3"/>
4911
+ <line num="340" type="stmt" count="3"/>
4912
+ <line num="341" type="stmt" count="3"/>
4913
  <line num="342" type="stmt" count="3"/>
4914
  <line num="343" type="stmt" count="3"/>
4915
+ <line num="344" type="stmt" count="1"/>
4916
  <line num="345" type="stmt" count="1"/>
4917
+ <line num="346" type="stmt" count="3"/>
4918
+ <line num="349" type="stmt" count="3"/>
4919
+ <line num="350" type="stmt" count="3"/>
4920
+ <line num="351" type="stmt" count="3"/>
4921
+ <line num="352" type="stmt" count="1"/>
4922
+ <line num="355" type="stmt" count="3"/>
4923
+ <line num="370" type="method" name="fix_line" visibility="public" complexity="3" crap="12" count="0"/>
4924
+ <line num="372" type="stmt" count="0"/>
4925
+ <line num="374" type="stmt" count="0"/>
4926
+ <line num="375" type="stmt" count="0"/>
4927
+ <line num="383" type="stmt" count="0"/>
4928
+ <line num="384" type="stmt" count="0"/>
4929
+ <line num="385" type="stmt" count="0"/>
4930
+ <line num="386" type="stmt" count="0"/>
4931
+ <line num="388" type="stmt" count="0"/>
4932
+ <line num="400" type="method" name="has_db_privileges" visibility="public" complexity="3" crap="3" count="6"/>
4933
+ <line num="401" type="stmt" count="6"/>
4934
+ <line num="402" type="stmt" count="6"/>
4935
+ <line num="403" type="stmt" count="6"/>
4936
+ <line num="405" type="stmt" count="1"/>
4937
+ <line num="406" type="stmt" count="1"/>
4938
+ <line num="408" type="stmt" count="1"/>
4939
+ <line num="420" type="method" name="get_db_privileges" visibility="public" complexity="7" crap="7" count="6"/>
4940
+ <line num="421" type="stmt" count="6"/>
4941
+ <line num="423" type="stmt" count="6"/>
4942
+ <line num="424" type="stmt" count="6"/>
4943
+ <line num="425" type="stmt" count="6"/>
4944
+ <line num="426" type="stmt" count="6"/>
4945
+ <line num="427" type="stmt" count="6"/>
4946
+ <line num="429" type="stmt" count="6"/>
4947
+ <line num="430" type="stmt" count="5"/>
4948
+ <line num="432" type="stmt" count="1"/>
4949
+ <line num="433" type="stmt" count="1"/>
4950
+ <line num="435" type="stmt" count="1"/>
4951
+ <line num="436" type="stmt" count="1"/>
4952
+ <line num="448" type="method" name="show_grants_query" visibility="public" complexity="1" crap="1" count="5"/>
4953
+ <line num="449" type="stmt" count="5"/>
4954
+ <line num="450" type="stmt" count="5"/>
4955
+ <line num="451" type="stmt" count="5"/>
4956
+ <line num="466" type="method" name="exec_import" visibility="public" complexity="1" crap="1" count="1"/>
4957
+ <line num="467" type="stmt" count="1"/>
4958
+ <line num="478" type="method" name="get_grants_array" visibility="public" complexity="3" crap="3" count="2"/>
4959
+ <line num="479" type="stmt" count="2"/>
4960
+ <line num="481" type="stmt" count="2"/>
4961
+ <line num="482" type="stmt" count="2"/>
4962
+ <line num="483" type="stmt" count="2"/>
4963
+ <line num="485" type="stmt" count="2"/>
4964
+ <line num="486" type="stmt" count="2"/>
4965
+ <line num="487" type="stmt" count="2"/>
4966
+ <line num="488" type="stmt" count="2"/>
4967
+ <line num="490" type="stmt" count="2"/>
4968
+ <metrics loc="492" ncloc="251" classes="1" methods="15" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="151" coveredstatements="126" elements="166" coveredelements="137"/>
4969
  </file>
4970
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-omit.php">
4971
  <class name="Boldgrid_Backup_Admin_Db_Omit" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
76737
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76738
  </file>
76739
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76740
+ <class name="ComposerStaticInitf02decd371c066865722b3e27e585232" namespace="Composer\Autoload">
76741
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76742
  </class>
76743
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
76829
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76830
  </file>
76831
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76832
+ <class name="ComposerAutoloaderInitf02decd371c066865722b3e27e585232" namespace="global">
76833
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76834
  </class>
76835
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
96048
  <line num="16" type="stmt" count="0"/>
96049
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96050
  </file>
96051
+ <metrics files="961" loc="192856" ncloc="117598" classes="870" methods="3584" coveredmethods="307" conditionals="0" coveredconditionals="0" statements="86556" coveredstatements="4584" elements="90140" coveredelements="4891"/>
96052
  </project>
96053
  </coverage>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitf02decd371c066865722b3e27e585232::getLoader();
vendor/boldgrid/library/build/toggles-full.css DELETED
@@ -1,209 +0,0 @@
1
- .toggle-slide {
2
- overflow: hidden;
3
- cursor: pointer;
4
- -webkit-user-select: none;
5
- -moz-user-select: none;
6
- -ms-user-select: none;
7
- user-select: none;
8
- direction: ltr;
9
- text-align: center;
10
- }
11
- div.disabled > .toggle-slide {
12
- opacity: 0.7;
13
- pointer-events: none;
14
- }
15
- .toggle-slide .toggle-on,
16
- .toggle-slide .toggle-off,
17
- .toggle-slide .toggle-blob {
18
- float: left;
19
- }
20
- .toggle-slide .toggle-blob {
21
- position: relative;
22
- z-index: 99;
23
- cursor: hand;
24
- cursor: grab;
25
- }
26
- .toggle-dark .toggle-slide {
27
- border-radius: 5px;
28
- box-shadow: 0 0 0 1px #242529, 0 1px 0 1px #666;
29
- }
30
- .toggle-dark .toggle-on,
31
- .toggle-dark .toggle-off,
32
- .toggle-dark .toggle-blob {
33
- color: rgba(255, 255, 255, 0.7);
34
- font-size: 11px;
35
- }
36
- .toggle-dark .toggle-on,
37
- .toggle-dark .toggle-select .toggle-inner .active {
38
- background: -webkit-linear-gradient(#1A70BE, #31A2E1);
39
- background: linear-gradient(#1A70BE, #31A2E1);
40
- }
41
- .toggle-dark .toggle-off,
42
- .toggle-dark .toggle-select .toggle-on {
43
- background: -webkit-linear-gradient(#242529, #34363B);
44
- background: linear-gradient(#242529, #34363B);
45
- }
46
- .toggle-dark .toggle-blob {
47
- border-radius: 4px;
48
- background: -webkit-linear-gradient(#CFCFCF, whiteSmoke);
49
- background: linear-gradient(#CFCFCF, whiteSmoke);
50
- box-shadow: inset 0 0 0 1px #888, inset 0 0 0 2px white;
51
- }
52
- .toggle-dark .toggle-blob:hover {
53
- background: -webkit-linear-gradient(#c0c0c0, #dadada);
54
- background: linear-gradient(#c0c0c0, #dadada);
55
- box-shadow: inset 0 0 0 1px #888,inset 0 0 0 2px #ddd;
56
- }
57
- .toggle-iphone .toggle-slide {
58
- border-radius: 9999px;
59
- box-shadow: 0 0 0 1px #999;
60
- }
61
- .toggle-iphone .toggle-on,
62
- .toggle-iphone .toggle-off {
63
- color: white;
64
- font-size: 18px;
65
- font-weight: bold;
66
- text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
67
- }
68
- .toggle-iphone .toggle-on {
69
- border-radius: 9999px 0 0 9999px;
70
- background: #037bda;
71
- box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.4);
72
- }
73
- .toggle-iphone .toggle-on:after {
74
- background: -webkit-linear-gradient(#1189f1, #3797ef);
75
- background: linear-gradient(#1189f1, #3797ef);
76
- height: 50%;
77
- content: '';
78
- margin-top: -19%;
79
- display: block;
80
- border-radius: 9999px;
81
- margin-left: 10%;
82
- }
83
- .toggle-iphone .toggle-off {
84
- box-shadow: inset -2px 2px 5px rgba(0, 0, 0, 0.4);
85
- border-radius: 0 9999px 9999px 0;
86
- color: #828282;
87
- background: #ECECEC;
88
- text-shadow: 0 0 1px white;
89
- }
90
- .toggle-iphone .toggle-off:after {
91
- background: -webkit-linear-gradient(#fafafa, #fdfdfd);
92
- background: linear-gradient(#fafafa, #fdfdfd);
93
- height: 50%;
94
- content: '';
95
- margin-top: -19%;
96
- display: block;
97
- margin-right: 10%;
98
- border-radius: 9999px;
99
- }
100
- .toggle-iphone .toggle-blob {
101
- border-radius: 50px;
102
- background: -webkit-linear-gradient(#d1d1d1, #fafafa);
103
- background: linear-gradient(#d1d1d1, #fafafa);
104
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 2px white, 0 0 3px rgba(0, 0, 0, 0.6);
105
- }
106
- .toggle-light .toggle-slide {
107
- border-radius: 9999px;
108
- box-shadow: 0 0 0 1px #999;
109
- }
110
- .toggle-light .toggle-on,
111
- .toggle-light .toggle-off {
112
- font-size: 11px;
113
- font-weight: 500;
114
- }
115
- .toggle-light .toggle-on,
116
- .toggle-light .toggle-select .toggle-inner .active {
117
- background: #45a31f;
118
- box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.2);
119
- text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
120
- color: rgba(255, 255, 255, 0.8);
121
- }
122
- .toggle-light .toggle-off,
123
- .toggle-light .toggle-select .toggle-on {
124
- color: rgba(0, 0, 0, 0.6);
125
- text-shadow: 0 1px rgba(255, 255, 255, 0.2);
126
- background: -webkit-linear-gradient(#cfcfcf, #f5f5f5);
127
- background: linear-gradient(#cfcfcf, #f5f5f5);
128
- }
129
- .toggle-light .toggle-blob {
130
- border-radius: 50px;
131
- background: -webkit-linear-gradient(#f5f5f5, #cfcfcf);
132
- background: linear-gradient(#f5f5f5, #cfcfcf);
133
- box-shadow: 1px 1px 2px #888;
134
- }
135
- .toggle-light .toggle-blob:hover {
136
- background: -webkit-linear-gradient(#e4e4e4, #f9f9f9);
137
- background: linear-gradient(#e4e4e4, #f9f9f9);
138
- }
139
- .toggle-modern .toggle-slide {
140
- border-radius: 4px;
141
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.2);
142
- background: -webkit-linear-gradient(#c0c5c9, #a1a9af);
143
- background: linear-gradient(#c0c5c9, #a1a9af);
144
- box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.15);
145
- }
146
- .toggle-modern .toggle-on,
147
- .toggle-modern .toggle-off {
148
- -webkit-transition: all 0.1s ease-out;
149
- transition: all 0.1s ease-out;
150
- color: white;
151
- text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
152
- font-size: 11px;
153
- box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.2);
154
- }
155
- .toggle-modern .toggle-select .toggle-off,
156
- .toggle-modern .toggle-select .toggle-on {
157
- background: none;
158
- }
159
- .toggle-modern .toggle-off,
160
- .toggle-modern .toggle-off.active {
161
- background: -webkit-linear-gradient(#737e8d, #3f454e);
162
- background: linear-gradient(#737e8d, #3f454e);
163
- }
164
- .toggle-modern .toggle-on,
165
- .toggle-modern .toggle-on.active {
166
- background: -webkit-linear-gradient(#4894cd, #2852a6);
167
- background: linear-gradient(#4894cd, #2852a6);
168
- }
169
- .toggle-modern .toggle-blob {
170
- background: -webkit-linear-gradient(#c0c6c9, #81898f);
171
- background: linear-gradient(#c0c6c9, #81898f);
172
- box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.1), 1px 1px 2px rgba(0, 0, 0, 0.2);
173
- border-radius: 3px;
174
- }
175
- .toggle-modern .toggle-blob:hover {
176
- background-image: -webkit-linear-gradient(#a1a9af, #a1a9af);
177
- background-image: linear-gradient(#a1a9af, #a1a9af);
178
- }
179
- .toggle-soft .toggle-slide {
180
- border-radius: 5px;
181
- box-shadow: 0 0 0 1px #999;
182
- }
183
- .toggle-soft .toggle-on,
184
- .toggle-soft .toggle-off {
185
- color: rgba(0, 0, 0, 0.7);
186
- font-size: 11px;
187
- text-shadow: 1px 1px white;
188
- }
189
- .toggle-soft .toggle-on,
190
- .toggle-soft .toggle-select .toggle-inner .active {
191
- background: -webkit-linear-gradient(#d2ff52, #91e842);
192
- background: linear-gradient(#d2ff52, #91e842);
193
- }
194
- .toggle-soft .toggle-off,
195
- .toggle-soft .toggle-select .toggle-on {
196
- background: -webkit-linear-gradient(#cfcfcf, #f5f5f5);
197
- background: linear-gradient(#cfcfcf, #f5f5f5);
198
- }
199
- .toggle-soft .toggle-blob {
200
- border-radius: 4px;
201
- background: -webkit-linear-gradient(#cfcfcf, #f5f5f5);
202
- background: linear-gradient(#cfcfcf, #f5f5f5);
203
- box-shadow: inset 0 0 0 1px #bbb, inset 0 0 0 2px white;
204
- }
205
- .toggle-soft .toggle-blob:hover {
206
- background: -webkit-linear-gradient(#e4e4e4, #f9f9f9);
207
- background: linear-gradient(#e4e4e4, #f9f9f9);
208
- box-shadow: inset 0 0 0 1px #ddd,inset 0 0 0 2px #ddd;
209
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/boldgrid/library/build/toggles.min.js DELETED
@@ -1,10 +0,0 @@
1
- /*
2
- jQuery Toggles v4.0.0
3
- Copyright 2012 - 2015 Simon Tabor - MIT License
4
- https://github.com/simontabor/jquery-toggles / http://simontabor.com/labs/toggles
5
- */
6
- (function(g){function p(q){var p=g.Toggles=function(c,a){var g=this;if("boolean"===typeof a&&c.data("toggles"))c.data("toggles").toggle(a);else{for(var k="on drag click width height animate easing type checkbox".split(" "),b={},l=0;l<k.length;l++){var t=c.data("toggle-"+k[l]);"undefined"!==typeof t&&(b[k[l]]=t)}a=q.extend({drag:!0,click:!0,text:{on:"ON",off:"OFF"},on:!1,animate:250,easing:"swing",checkbox:null,clicker:null,width:0,height:0,type:"compact",event:"toggle"},a||{},b);c.data("toggles",
7
- g);var f=!a.on,n="select"===a.type,p=q(a.checkbox),k=a.clicker&&q(a.clicker),d=a.height||c.height()||20,m=a.width||c.width()||50;c.height(d);c.width(m);var b=function(a){return q('<div class="toggle-'+a+'">')},r=b("slide"),s=b("inner"),w=b("on"),x=b("off"),h=b("blob"),b=d/2,l=m-b,t=a.text;w.css({height:d,width:l,textIndent:n?"":-d/3,lineHeight:d+"px"}).html(t.on);x.css({height:d,width:l,marginLeft:n?"":-b,textIndent:n?"":d/3,lineHeight:d+"px"}).html(t.off);h.css({height:d,width:d,marginLeft:-b});
8
- s.css({width:2*m-d,marginLeft:n?0:-m+d});n&&(r.addClass("toggle-select"),c.css("width",2*l),h.hide());s.append(w,h,x);r.html(s);c.html(r);var v=g.toggle=function(b,e,A){f!==b&&(f=g.active=!f,c.data("toggle-active",f),x.toggleClass("active",!f),w.toggleClass("active",f),p.prop("checked",f),A||c.trigger(a.event,f),n||(b=f?0:-m+d,s.stop().animate({marginLeft:b},e?0:a.animate,a.easing)))},b=function(b){c.hasClass("disabled")||b.target===h[0]&&a.drag||v()};if(a.click&&(!k||!k.has(c).length))c.on("click",
9
- b);if(k)k.on("click",b);if(a.drag&&!n){var e,y=(m-d)/4,z=function(b){c.off("mousemove");r.off("mouseleave");h.off("mouseup");!e&&a.click&&"mouseleave"!==b.type?v():(f?e<-y:e>y)?v():s.stop().animate({marginLeft:f?0:-m+d},a.animate/2,a.easing)},u=-m+d;h.on("mousedown",function(a){if(!c.hasClass("disabled")){e=0;h.off("mouseup");r.off("mouseleave");var b=a.pageX;c.on("mousemove",h,function(a){e=a.pageX-b;f?(a=e,0<e&&(a=0),e<u&&(a=u)):(a=e+u,0>e&&(a=u),e>-u&&(a=0));s.css("margin-left",a)});h.on("mouseup",
10
- z);r.on("mouseleave",z)}})}v(a.on,!0,!0)}};q.fn.toggles=function(c){return this.each(function(){new p(q(this),c)})}}"function"===typeof define&&define.amd?define(["jquery"],p):p(g.jQuery||g.Zepto||g.ender||g.$||$)})(this);
 
 
 
 
 
 
 
 
 
 
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894', '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\ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire7dbb8a0a083de0357ac72f3ea5247894($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire7dbb8a0a083de0357ac72f3ea5247894($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 ComposerAutoloaderInitf02decd371c066865722b3e27e585232
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitf02decd371c066865722b3e27e585232', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitf02decd371c066865722b3e27e585232', '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\ComposerStaticInitf02decd371c066865722b3e27e585232::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\ComposerStaticInitf02decd371c066865722b3e27e585232::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequiref02decd371c066865722b3e27e585232($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequiref02decd371c066865722b3e27e585232($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 ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitf02decd371c066865722b3e27e585232
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 = ComposerStaticInitf02decd371c066865722b3e27e585232::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInitf02decd371c066865722b3e27e585232::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInitf02decd371c066865722b3e27e585232::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }