File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/PhpSpreadsheet/Writer/Xls Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ private function addContinue($data)
217217 // Retrieve the last chunk of data
218218 $ header = pack ('vv ' , $ record , strlen ($ data ) - $ i );
219219 $ tmp .= $ header ;
220- $ tmp .= substr ($ data , $ i, strlen ( $ data ) - $ i );
220+ $ tmp .= substr ($ data , $ i );
221221
222222 return $ tmp ;
223223 }
Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ private function convertNumber($num)
561561 private function convertString ($ string )
562562 {
563563 // chop away beggining and ending quotes
564- $ string = substr ($ string , 1 , strlen ( $ string ) - 2 );
564+ $ string = substr ($ string , 1 , - 2 );
565565 if (strlen ($ string ) > 255 ) {
566566 throw new WriterException ('String is too long ' );
567567 }
You can’t perform that action at this time.
0 commit comments