11<?php
2+
23/*
34* Module written/ported by Xavier Noguer <[email protected] > 45*
@@ -903,9 +904,6 @@ protected function _storeNames()
903904 }
904905 }
905906
906-
907-
908-
909907 /******************************************************************************
910908 *
911909 * BIFF RECORDS
@@ -1048,7 +1046,6 @@ protected function _storeStyle()
10481046 $ this ->_append ($ header . $ data );
10491047 }
10501048
1051-
10521049 /**
10531050 * Writes Excel FORMAT record for non "built-in" numerical formats.
10541051 *
@@ -1106,7 +1103,6 @@ protected function _storeDatemode()
11061103 $ this ->_append ($ header . $ data );
11071104 }
11081105
1109-
11101106 /**
11111107 * Write BIFF record EXTERNCOUNT to indicate the number of external sheet
11121108 * references in the workbook.
@@ -1130,7 +1126,6 @@ protected function _storeExterncount($cxals)
11301126 $ this ->_append ($ header . $ data );
11311127 }
11321128
1133-
11341129 /**
11351130 * Writes the Excel BIFF EXTERNSHEET record. These references are used by
11361131 * formulas. NAME record is required to define the print area and the repeat
@@ -1154,7 +1149,6 @@ protected function _storeExternsheet($sheetname)
11541149 $ this ->_append ($ header . $ data . $ sheetname );
11551150 }
11561151
1157-
11581152 /**
11591153 * Store the NAME record in the short format that is used for storing the print
11601154 * area, repeat rows only and repeat columns only.
@@ -1218,7 +1212,6 @@ protected function _storeNameShort($index, $type, $rowmin, $rowmax, $colmin, $co
12181212 $ this ->_append ($ header . $ data );
12191213 }
12201214
1221-
12221215 /**
12231216 * Store the NAME record in the long format that is used for storing the repeat
12241217 * rows and columns when both are specified. This shares a lot of code with
@@ -1395,7 +1388,6 @@ protected function _calculateSharedStringsSizes()
13951388 $ header_length = 3 ; // Min string + header size -1
13961389 $ space_remaining = $ continue_limit - $ written - $ continue ;
13971390
1398-
13991391 /* TODO: Unicode data should only be split on char (2 byte)
14001392 boundaries. Therefore, in some cases we need to reduce the
14011393 amount of available
@@ -1423,7 +1415,6 @@ protected function _calculateSharedStringsSizes()
14231415 }
14241416 }
14251417
1426-
14271418 if ($ space_remaining > $ header_length ) {
14281419 // Write as much as possible of the string in the current block
14291420 $ written += $ space_remaining ;
@@ -1468,7 +1459,6 @@ protected function _calculateSharedStringsSizes()
14681459 $ this ->_block_sizes [] = $ written + $ continue ;
14691460 }
14701461
1471-
14721462 /* Calculate the total length of the SST and associated CONTINUEs (if any).
14731463 The SST record will have a length even if it contains no strings.
14741464 This length is required to set the offsets in the BOUNDSHEET records since
@@ -1525,16 +1515,11 @@ protected function _storeSharedStringsTable()
15251515 $ length = 8 ;
15261516 }
15271517
1528-
1529-
15301518 // Write the SST block header information
15311519 $ header = pack ("vv " , $ record , $ length );
15321520 $ data = pack ("VV " , $ this ->_str_total , $ this ->_str_unique );
15331521 $ this ->_append ($ header . $ data );
15341522
1535-
1536-
1537-
15381523 /* TODO: not good for performance */
15391524 foreach (array_keys ($ this ->_str_table ) as $ string ) {
15401525
@@ -1548,7 +1533,6 @@ protected function _storeSharedStringsTable()
15481533 //
15491534 $ block_length += $ string_length ;
15501535
1551-
15521536 // We can write the string if it doesn't cross a CONTINUE boundary
15531537 if ($ block_length < $ continue_limit ) {
15541538 $ this ->_append ($ string );
@@ -1568,7 +1552,6 @@ protected function _storeSharedStringsTable()
15681552 $ header_length = 3 ; // Min string + header size -1
15691553 $ space_remaining = $ continue_limit - $ written - $ continue ;
15701554
1571-
15721555 // Unicode data should only be split on char (2 byte) boundaries.
15731556 // Therefore, in some cases we need to reduce the amount of available
15741557 // space by 1 byte to ensure the correct alignment.
@@ -1595,7 +1578,6 @@ protected function _storeSharedStringsTable()
15951578 }
15961579 }
15971580
1598-
15991581 if ($ space_remaining > $ header_length ) {
16001582 // Write as much as possible of the string in the current block
16011583 $ tmp = substr ($ string , 0 , $ space_remaining );
@@ -1648,6 +1630,4 @@ protected function _storeSharedStringsTable()
16481630 }
16491631 }
16501632
1651-
16521633}
1653-
0 commit comments